Description of problem: virt-builder doesn't run any commands on system that it is building - if you specify command to run with --run-command or packages to install with --install (or even --selinux-relabel), it doesn't fail during building that image, but it doesn't seem to run that command either. For example, if you run: virt-builder -x -v fedora-22 --install vim --root-password password:weakpassword -o disk.img vim isn't installed on output disk image. Version-Release number of selected component (if applicable): virt-builder 1.30.1fedora=22,release=2.fc22,libvirt How reproducible: Always. Steps to Reproduce: 1. Run 'virt-builder -x -v fedora-22 --install vim --root-password password:weakpassword -o disk.img' 2. Boot disk.img: 'qemu-kvm disk.img' 3. Observe that vim isn't installed.
Created attachment 1071612 [details] virt-builder output
*** Bug 1261318 has been marked as a duplicate of this bug. ***
*** Bug 1261323 has been marked as a duplicate of this bug. ***
*** Bug 1261327 has been marked as a duplicate of this bug. ***
*** Bug 1261330 has been marked as a duplicate of this bug. ***
*** Bug 1261334 has been marked as a duplicate of this bug. ***
*** Bug 1261355 has been marked as a duplicate of this bug. ***
*** Bug 1261361 has been marked as a duplicate of this bug. ***
The upstream fix (commit d875346ad441d4762455ea1b41d57ad6174d9b63, backported to the stable-1.30 branch as 42734a3954a4d4eb370dfa051f788812b2b23984) caused that regression. This has been fixed upstream with commit 7bdb3e0df93ef9cdee11b40a85056e609de45414, backported to stable-1.30 as commit 16d92df4d86fb944a4331870fe7bfd0b8aa57a5e; the fixes are part of libguestfs >= 1.31.4 and >= 1.30.2.
Yes, this was definitely broken in 1.30.1-2, but fixed in this testing release: https://bodhi.fedoraproject.org/updates/FEDORA-2015-15401 (f22) https://bodhi.fedoraproject.org/updates/FEDORA-2015-15420 (f23)
Fixed versions available in Fedora already: - https://bodhi.fedoraproject.org/updates/FEDORA-2015-f7b0c57297 (f22) - https://bodhi.fedoraproject.org/updates/FEDORA-2015-15420 (f23) so closing.