Closed lmayorga1980 closed 5 years ago
hmm, not able to reproduce with jakobadam/packer-qemu-templates
on osx.
Installed the suggested packages by Red Hat https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/6/html/virtualization_host_configuration_and_guest_installation_guide/sect-virtualization_host_configuration_and_guest_installation_guide-host_installation-installing_kvm_packages_on_an_existing_red_hat_enterprise_linux_system
I wonder if there is another dependency missing before running the build.
https://www.packer.io/docs/builders/qemu.html Coulnd't see a list of packages required.
hmm, it should just depend on qemu and nothing else
I'll keep seeing if I can reproduce, but it would be extremely helpful if you could bisect packer and find the change that introduced the failure
Also, can you try to build the centos template in https://github.com/jakobadam/packer-qemu-templates ?
Very interesting that I got this error.
Build 'centos-6.7-x86_64-server-vagrant' errored: Failed creating Qemu driver: exec: "qemu-system-x86_64": executable file not found in $PATH
Issues with the PATH https://github.com/hashicorp/packer/issues/659
Might be that RHEL keeps an old version?
virsh version --daemon
Compiled against library: libvirt 3.9.0
Using library: libvirt 3.9.0
Using API: QEMU 3.9.0
Running hypervisor: QEMU 1.5.3
Running against daemon: 3.9.0
Interesting. Unfortunately I don't have any other theories. Let us know if you get it working!
Closing this due to inactivity. I hope you ended up finding a way to get it working.
For the record:
The problem, at least for me, is that packer
is looking for qemu-system-x86_64
, which does not exist in RHEL. You need to use /usr/libexec/qemu-kvm
.
You can do two things to solve this:
/usr/libexec
to your path and create a symlink named qemu-system-x86_64
qemu_binary
like the code/documentation says:
https://github.com/hashicorp/packer/blob/d9156188199528fb54d47e8aa39af30e1520322a/builder/qemu/builder.go#L279-L283It looks like there used to be more issues with this because in the issue you are linking, they try both options without success. Currently, it is working for me.
Cheers!
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
PACKER: 1.2.5
The
quemu
provider does not seem to do anything.