[libvirt] [PATCH v2]

Stefan Berger stefanb at us.ibm.com
Fri Apr 9 12:02:16 UTC 2010

"Daniel P. Berrange" <berrange at redhat.com> wrote on 04/08/2010 09:07:39 

> Due to licensing complexity we can't distribute pre-built guest images
> directly with the TCK. So I think what we'd want todo is to write a 
> kickstart file that installs  a bare minimum Fedora guest OS, with a
> pre-set root password, ssh daemon  active & known IP address. Then use
> that with Rich Jones'  febootstrap script to create the guest image
> at runtime. We'd cache the guest image between runs of the TCK, so the
> overhead of febootstrap will only be seen the first time.

Would it be possible to download one of the images at these links as part 
of the script?


The images are in vmdk format, so a one-time conversion may be necessary

-> qemu-img convert -O raw fedora.12.x86-64.vmdk fc12.img

The image seems to use DHCP, so a pre-cooked ifcfg-eth0 may need to be put 
into it.

-> mount -o loop,offset=32256 fc12.img ./mnt
-> cp ifcfg-eth0.master ./mnt/etc/sysconfig/network-scripts/ifcfg-eth0


> Then, your test scripts can simply request booting of a guest using this
> minimal guest image instead of the normal anaconda kernel/initrd the TCK 

> uses.
> Daniel
> -- 
> |: Red Hat, Engineering, London    -o-   
> |: http://libvirt.org -o- http://virt-manager.org -o- 
> |: http://autobuild.org        -o-         
> |: GnuPG: 7D3B9505  -o-   F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 
9505 :|
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20100409/dc242ea0/attachment-0001.htm>

More information about the libvir-list mailing list