Skip to content

Instantly share code, notes, and snippets.

@hbokh
Created November 4, 2018 09:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hbokh/782e792644fa5fe40698182089c7925c to your computer and use it in GitHub Desktop.
Save hbokh/782e792644fa5fe40698182089c7925c to your computer and use it in GitHub Desktop.
Packer - build output with driver string `hvf` added to `post-processor/vagrant/libvirt.go#L42`
==> qemu: Gracefully halting virtual machine...
2018/11/04 08:51:06 packer: 2018/11/04 08:51:06 Executing shutdown command: echo '1ma63b0rk3d' | sudo -E -S poweroff
2018/11/04 08:51:06 packer: 2018/11/04 08:51:06 [DEBUG] Opening new ssh session
2018/11/04 08:51:06 packer: 2018/11/04 08:51:06 [DEBUG] starting remote command: echo '1ma63b0rk3d' | sudo -E -S poweroff
2018/11/04 08:51:06 packer: 2018/11/04 08:51:06 [ERROR] Remote command exited without exit status or exit signal.
2018/11/04 08:51:06 packer: 2018/11/04 08:51:06 Waiting max 5m0s for shutdown to complete
2018/11/04 08:51:08 packer: 2018/11/04 08:51:08 VM shut down.
==> qemu: Running post-processor: vagrant
==> qemu (vagrant): Creating Vagrant box for 'libvirt' provider
qemu (vagrant): Copying from artifact: build/2018-11-04-07-42-42/base-stretch
qemu (vagrant): Using custom Vagrantfile: source/debian/9_stretch/base.vagrant
2018/11/04 08:51:26 packer: 2018/11/04 08:51:26 Turning dir into box: /var/folders/kl/bqr5zh8x5pd_99lzq769krnr0000gn/T/packer335320161 => build/2018-11-04-07-42-42/base-stretch-0.0.0-qemu.box
2018/11/04 08:51:26 packer: 2018/11/04 08:51:26 Compressing with gzip compression level: 6
2018/11/04 08:51:26 packer: 2018/11/04 08:51:26 Skipping directory '/var/folders/kl/bqr5zh8x5pd_99lzq769krnr0000gn/T/packer335320161' for box 'build/2018-11-04-07-42-42/base-stretch-0.0.0-qemu.box'
2018/11/04 08:51:26 packer: 2018/11/04 08:51:26 Box add: '/var/folders/kl/bqr5zh8x5pd_99lzq769krnr0000gn/T/packer335320161/Vagrantfile' to 'build/2018-11-04-07-42-42/base-stretch-0.0.0-qemu.box'
qemu (vagrant): Compressing: Vagrantfile
2018/11/04 08:51:26 packer: 2018/11/04 08:51:26 Box add: '/var/folders/kl/bqr5zh8x5pd_99lzq769krnr0000gn/T/packer335320161/box.img' to 'build/2018-11-04-07-42-42/base-stretch-0.0.0-qemu.box'
qemu (vagrant): Compressing: box.img
2018/11/04 08:51:46 packer: 2018/11/04 08:51:46 Box add: '/var/folders/kl/bqr5zh8x5pd_99lzq769krnr0000gn/T/packer335320161/metadata.json' to 'build/2018-11-04-07-42-42/base-stretch-0.0.0-qemu.box'
qemu (vagrant): Compressing: metadata.json
2018/11/04 08:51:47 Flagging to keep original artifact from post-processor 'vagrant'
==> qemu: Running post-processor: compress
==> qemu (compress): Using pgzip compression with 8 cores for build/2018-11-04-07-42-42/base-stretch.raw.gz
==> qemu (compress): Archiving build/2018-11-04-07-42-42/base-stretch with pgzip
==> qemu (compress): Archive build/2018-11-04-07-42-42/base-stretch.raw.gz completed
2018/11/04 08:52:09 Builds completed. Waiting on interrupt barrier...
Build 'qemu' finished.
==> Builds finished. The artifacts of successful builds are:
2018/11/04 08:52:09 machine readable: qemu,artifact-count []string{"3"}
==> Builds finished. The artifacts of successful builds are:
2018/11/04 08:52:09 machine readable: qemu,artifact []string{"0", "builder-id", "transcend.qemu"}
2018/11/04 08:52:09 machine readable: qemu,artifact []string{"0", "id", "VM"}
2018/11/04 08:52:09 machine readable: qemu,artifact []string{"0", "string", "VM files in directory: build/2018-11-04-07-42-42"}
2018/11/04 08:52:09 machine readable: qemu,artifact []string{"0", "files-count", "1"}
2018/11/04 08:52:09 machine readable: qemu,artifact []string{"0", "file", "0", "build/2018-11-04-07-42-42/base-stretch"}
2018/11/04 08:52:09 machine readable: qemu,artifact []string{"0", "end"}
--> qemu: VM files in directory: build/2018-11-04-07-42-42
2018/11/04 08:52:09 machine readable: qemu,artifact []string{"1", "builder-id", "mitchellh.post-processor.vagrant"}
2018/11/04 08:52:09 machine readable: qemu,artifact []string{"1", "id", "libvirt"}
2018/11/04 08:52:09 machine readable: qemu,artifact []string{"1", "string", "'libvirt' provider box: build/2018-11-04-07-42-42/base-stretch-0.0.0-qemu.box"}
2018/11/04 08:52:09 machine readable: qemu,artifact []string{"1", "files-count", "1"}
2018/11/04 08:52:09 machine readable: qemu,artifact []string{"1", "file", "0", "build/2018-11-04-07-42-42/base-stretch-0.0.0-qemu.box"}
--> qemu: 'libvirt' provider box: build/2018-11-04-07-42-42/base-stretch-0.0.0-qemu.box
2018/11/04 08:52:09 machine readable: qemu,artifact []string{"1", "end"}
--> qemu: compressed artifacts in: build/2018-11-04-07-42-42/base-stretch.raw.gz
2018/11/04 08:52:09 machine readable: qemu,artifact []string{"2", "builder-id", "packer.post-processor.compress"}
2018/11/04 08:52:09 machine readable: qemu,artifact []string{"2", "id", ""}
2018/11/04 08:52:09 machine readable: qemu,artifact []string{"2", "string", "compressed artifacts in: build/2018-11-04-07-42-42/base-stretch.raw.gz"}
2018/11/04 08:52:09 machine readable: qemu,artifact []string{"2", "files-count", "1"}
2018/11/04 08:52:09 machine readable: qemu,artifact []string{"2", "file", "0", "build/2018-11-04-07-42-42/base-stretch.raw.gz"}
2018/11/04 08:52:09 machine readable: qemu,artifact []string{"2", "end"}
2018/11/04 08:52:09 waiting for all plugin processes to complete...
2018/11/04 08:52:09 /usr/local/bin/packer: plugin process exited
2018/11/04 08:52:09 /usr/local/bin/packer: plugin process exited
2018/11/04 08:52:09 /usr/local/bin/packer: plugin process exited
2018/11/04 08:52:09 /usr/local/bin/packer: plugin process exited
2018/11/04 08:52:09 /usr/local/bin/packer: plugin process exited
2018/11/04 08:52:09 /usr/local/bin/packer: plugin process exited
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment