Closed ddelnano closed 3 years ago
@dsko1234 I moved this PR to here since I needed to add the goreleaser and github workflow changes on top of yours. I preserved the history and your commits though.
Thanks again for taking the time to open your original PR and please give this a look over if you want.
I'll look into fixing the unit tests tomorrow.
This is a continuation of #10 and also upgrades go from 1.14 to 1.16 (the goreleaser and github workflows depended on it so why not :smile:)
Testing
==> xenserver-iso: XAPI client session established ==> xenserver-iso: Starting HTTP server on port 8000 ==> xenserver-iso: Step: Create Instance ==> xenserver-iso: Using the following SR for the VM: OpaqueRef:10e7e21a-0569-4e6c-931e-d295a76a3be0 ==> xenserver-iso: Created instance '3bc8cada-550c-9f76-553a-f56defadb1c1' ==> xenserver-iso: Step: Start VM Paused ==> xenserver-iso: Step: Set SSH address to VM host IP ==> xenserver-iso: Set host SSH address to '192.168.88.89'. ==> xenserver-iso: Unpausing VM 3bc8cada-550c-9f76-553a-f56defadb1c1 ==> xenserver-iso: Waiting 10s for boot... ==> xenserver-iso: Connecting to the VM console VNC over xapi ==> xenserver-iso: Making HTTP request to initiate VNC connection: CONNECT /console?uuid=c1c0daaa-b9d8-812d-a004-21d0d408d8ba HTTP/1.0 ==> xenserver-iso: Cookie: session_id=OpaqueRef:0617a8df-1c4b-49f9-82cb-c934ae049160 ==> xenserver-iso: ==> xenserver-iso: ==> xenserver-iso: Received response: HTTP/1.1 200 OK ==> xenserver-iso: Connection: keep-alive ==> xenserver-iso: Cache-Control: no-cache, no-store ==> xenserver-iso: ==> xenserver-iso: xenserver-iso: Found local IP: 192.168.88.254 ==> xenserver-iso: Typing boot commands over VNC... ==> xenserver-iso: Finished typing. ==> xenserver-iso: Step: Wait for VM's IP to become known to us. xenserver-iso: Got IP '192.168.88.226' from HTTP request ==> xenserver-iso: Got IP address '192.168.88.226' ==> xenserver-iso: Creating a local port forward over SSH on local port 5900 ==> xenserver-iso: Port forward setup. 5900 ---> 192.168.88.226:22 on 192.168.88.89 ==> xenserver-iso: Using ssh communicator to connect: 192.168.88.226 ==> xenserver-iso: Waiting for SSH to become available... ==> xenserver-iso: Connected to SSH! ==> xenserver-iso: Step: Shutting down VM xenserver-iso: Executing shutdown command... ==> xenserver-iso: Shutdown command failed: Process exited with status 1 ==> xenserver-iso: WARNING: Forcing hard shutdown of the VM... xenserver-iso: Successfully shut down VM xenserver-iso: Successfully set VM as a template ==> xenserver-iso: Step: export artifact ==> xenserver-iso: Getting XVA https://xen.internal.ddelnano.com/export?uuid=3bc8cada-550c-9f76-553a-f56defadb1c1&session_id=OpaqueRef:0617a8df-1c4b-49f9-82cb-c934ae049160 ==> xenserver-iso: Download completed: packer-ubuntu-2004-x86_64-xenserver Build 'xenserver-iso' finished after 42 minutes 53 seconds.
==> Wait completed after 42 minutes 53 seconds
==> Builds finished. The artifacts of successful builds are: --> xenserver-iso: VM files in directory: packer-ubuntu-2004-x86_64-xenserver