<br><tt><font size=2>"Daniel P. Berrange" <berrange@redhat.com>
wrote on 04/08/2010 09:07:39 AM:<br>
<br>
> <br>
> Due to licensing complexity we can't distribute pre-built guest images<br>
> directly with the TCK. So I think what we'd want todo is to write
a <br>
> kickstart file that installs  a bare minimum Fedora guest OS,
with a<br>
> pre-set root password, ssh daemon  active & known IP address.
Then use<br>
> that with Rich Jones'  febootstrap script to create the guest
image<br>
> at runtime. We'd cache the guest image between runs of the TCK, so
the<br>
> overhead of febootstrap will only be seen the first time.</font></tt>
<br>
<br><tt><font size=2>Would it be possible to download one of the images
at these links as part of the script?</font></tt>
<br>
<br><a href=http://stacklet.com/downloads/images/vmdk/fedora/12><tt><font size=2>http://stacklet.com/downloads/images/vmdk/fedora/12</font></tt></a>
<br><a href=http://stacklet.com/downloads/images/vmdk/fedora/12.64bit><tt><font size=2>http://stacklet.com/downloads/images/vmdk/fedora/12.64bit</font></tt></a><tt><font size=2><br>
</font></tt>
<br><tt><font size=2>The images are in vmdk format, so a one-time conversion
may be necessary</font></tt>
<br>
<br><tt><font size=2>-> qemu-img convert -O raw fedora.12.x86-64.vmdk
fc12.img</font></tt>
<br>
<br><tt><font size=2>The image seems to use DHCP, so a pre-cooked ifcfg-eth0
may need to be put into it.</font></tt>
<br>
<br><tt><font size=2>-> mount -o loop,offset=32256 fc12.img ./mnt</font></tt>
<br><tt><font size=2>-> cp ifcfg-eth0.master ./mnt/etc/sysconfig/network-scripts/ifcfg-eth0</font></tt>
<br>
<br>
<br><tt><font size=2>Regards,</font></tt>
<br><tt><font size=2>   Stefan</font></tt>
<br>
<br><tt><font size=2> <br>
> Then, your test scripts can simply request booting of a guest using
this<br>
> minimal guest image instead of the normal anaconda kernel/initrd the
TCK <br>
> uses.<br>
> <br>
> Daniel<br>
> -- <br>
> |: Red Hat, Engineering, London    -o-   </font></tt><a href=http://people.redhat.com/berrange/:|><tt><font size=2>http://people.redhat.com/berrange/:|</font></tt></a><tt><font size=2><br>
> |: </font></tt><a href=http://libvirt.org/><tt><font size=2>http://libvirt.org</font></tt></a><tt><font size=2>
-o- </font></tt><a href="http://virt-manager.org/"><tt><font size=2>http://virt-manager.org</font></tt></a><tt><font size=2>
-o- </font></tt><a href=http://deltacloud.org:|/><tt><font size=2>http://deltacloud.org:|</font></tt></a><tt><font size=2><br>
> |: </font></tt><a href=http://autobuild.org/><tt><font size=2>http://autobuild.org</font></tt></a><tt><font size=2>
       -o-         </font></tt><a href=http://search.cpan.org/~danberr/:|><tt><font size=2>http://search.cpan.org/~danberr/:|</font></tt></a><tt><font size=2><br>
> |: GnuPG: 7D3B9505  -o-   F3C9 553F A1DA 4AC2 5648 23C1
B3DF F742 7D3B 9505 :|<br>
</font></tt>