jakobadam / packer-qemu-templates

Packer qemu templates
Mozilla Public License 2.0
332 stars 175 forks source link

Post-processor failed: Unknown libvirt domain type: tcg #14

Closed qmacpit closed 7 years ago

qmacpit commented 7 years ago

Hi,

I'm trying to build ubuntu 16.04 vagrant image forvagrant libvirt. The only change I made was adding: ubuntu1604.json:

"version" : "1",
"headless": "true"

as I'm building on a server. The build fails with the following reason:

==> qemu: Gracefully halting virtual machine...
==> qemu: Converting hard drive...
==> qemu: Running post-processor: vagrant
==> qemu (vagrant): Creating Vagrant box for 'libvirt' provider
    qemu (vagrant): Copying from artifact: output-ubuntu1604/ubuntu1604
Build 'qemu' errored: 1 error(s) occurred:

* Post-processor failed: Unknown libvirt domain type: tcg

Any help will be much appreciated:)

Cheers, qmacpit

jakobadam commented 7 years ago

Hi

Sorry. I'm not familiar with the internals of the vagrant libvirt postprocessor. But very strange that the copying step should throw that error from libvirt.

Try to get some more debug output with PACKER_LOG=1.

Workaround qcow2 -> box Create the vagrant box with the following tool https://github.com/vagrant-libvirt/vagrant-libvirt/blob/master/tools/create_box.sh

kind regards, Jakob

qmacpit commented 7 years ago

Thanks!

The logs I have provided are with PACKER_LOG=1 already. I'll check the workaround out :)

jakobadam commented 7 years ago

Maybe the libvirt log tells more?