On Fri, Aug 31, 2012 at 11:56:15AM +0000, tao.zhou(a)neusoft.com wrote:
i yum install V1.18.6 on Fedora 17, and then compiled libguestfs
1.19.35 from source on
the same machine, although the installing is error, the local guestfs version has been
changed to
1.19.35,and i can execute [--firstboot] command,so your guess is right。
next monday, i will test as you say, thank you for your patient help
Compiling from source is great, but you probably shouldn't
try to 'make install', since that will overwrite parts of
the already-installed RPM (or else it will install in /usr/local
meaning that you've got a confusing mix of two systems installed).
Much better to just use ./run and run everything from the local
copy, so:
./run ./sysprep/virt-sysprep --firstboot foo.sh -a disk.img
(with sudo if it needs to run as root to access the disk).
The ./run script sets up environment variables so it always ignores
any installed version.
Rich.
--
Richard Jones, Virtualization Group, Red Hat
http://people.redhat.com/~rjones
virt-top is 'top' for virtual machines. Tiny program with many
powerful monitoring features, net stats, disk stats, logging, etc.
http://et.redhat.com/~rjones/virt-top