Bug 1261377 - running commands with virt-builder doesn't work
Summary: running commands with virt-builder doesn't work
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: libguestfs
Version: 22
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Richard W.M. Jones
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 1261318 1261323 1261327 1261330 1261334 1261355 1261361 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-09-09 08:23 UTC by Jan Sedlák
Modified: 2015-11-09 17:43 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-11-09 17:43:32 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
virt-builder output (105.11 KB, text/plain)
2015-09-09 08:24 UTC, Jan Sedlák
no flags Details

Description Jan Sedlák 2015-09-09 08:23:54 UTC
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.

Comment 1 Jan Sedlák 2015-09-09 08:24:20 UTC
Created attachment 1071612 [details]
virt-builder output

Comment 2 Pino Toscano 2015-09-09 08:31:41 UTC
*** Bug 1261318 has been marked as a duplicate of this bug. ***

Comment 3 Pino Toscano 2015-09-09 08:31:45 UTC
*** Bug 1261323 has been marked as a duplicate of this bug. ***

Comment 4 Pino Toscano 2015-09-09 08:31:50 UTC
*** Bug 1261327 has been marked as a duplicate of this bug. ***

Comment 5 Pino Toscano 2015-09-09 08:31:53 UTC
*** Bug 1261330 has been marked as a duplicate of this bug. ***

Comment 6 Pino Toscano 2015-09-09 08:32:03 UTC
*** Bug 1261334 has been marked as a duplicate of this bug. ***

Comment 7 Pino Toscano 2015-09-09 08:32:07 UTC
*** Bug 1261355 has been marked as a duplicate of this bug. ***

Comment 8 Pino Toscano 2015-09-09 08:32:10 UTC
*** Bug 1261361 has been marked as a duplicate of this bug. ***

Comment 9 Pino Toscano 2015-09-09 08:36:36 UTC
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.

Comment 10 Richard W.M. Jones 2015-09-09 09:26:28 UTC
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)

Comment 11 Pino Toscano 2015-11-09 17:43:32 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.