Open marcpires opened 3 years ago
Sorry, I don't know how I missed this earlier!
This sounds like you're not running libvirt
inside your container, which is likely going to be necessary to use libvirt
there. :sweat_smile:
I'm really very unfamiliar with Packer though -- does it maybe have a direct QEMU harness instead of going through libvirt
?
@marcpires have you a link to youre packer.json / packer.pkr.hcl?
@tianon yes packer use QEMU directly but also hase many other plugins that can work / or can not work. https://www.packer.io/plugins/builders/qemu
I am trying to use packer to build an image using packer. I created a custom image adding packer and other tools I need, but when I run virt-install inside the container I got the following error.
Adding a volume to my '/var/run/libvirt/libvirt-sock' it works, but as I plan to use this in a CI, it would require my agent to have QEMU/KVM installed.