[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [libvirt] [TCK] [PATCH] Switch to installation of FC14 image and other fixes

On 05/10/2011 05:17 AM, Daniel P. Berrange wrote:
On Mon, May 09, 2011 at 04:49:48PM -0400, Stefan Berger wrote:
On 05/09/2011 05:26 AM, Daniel P. Berrange wrote:
On Fri, May 06, 2011 at 10:39:52AM -0400, Stefan Berger wrote:
This patch fixes the creation of VM images. Previously, FC12 images were
created but the files necessary for FC12 image creation are no longer
available in the public repositories. This patch now switches it to
create FC14 images. To get such a new image one may want to remove all
content in /var/cache/libvirt-tck. I takes a long time for the image to
install, though.
We can probably do a little refactoring to use the libguestfs
appliance image soon, which will make things simpler...
You say 'soon' -- is it not possible to do, yet ?
By soon I mean 'when I (or someone else) gets some free time' :-)

The new FC14 image takes a lot longer to boot. Rather than waiting a
fixed timeout during which the VM presumably has booted it is now
waiting for the VM to become pingable and then starts the actual tests.
...and libguestfs can boot in a couple of seconds.
I looked at the contents of the .img files with libguestfs-1.8.6-1.
I am missing an ssh daemon. Is that one supposed to be installed
upon the first image start? Also, how does one use libguestfs to
create a bootable image?
I was actually hoping we wouldn't need to run commands via ssh, instead
be able to use the lbiguestfs APIs, but that's to be investigated.

I am currently writing test cases for TPM support. What I am doing inside the VM are things like

- check for availability of /dev/tpm0
- checking of content of /sys/devices/pnp0/00:0?/pcrs
- mounting of securityfs to /sys/kernel/security
- checking of content of /sys/kernel/security/tpm/ascii_bios_measurements

For all that I am using ssh for logging into the FC14 image and scripting to get to the data. The existing nwfilter tests run other commands inside the VM as well, including 'yum' to install an additional tool (dsniff). We'd need to have similar capabilities when switch over to whatever libguestfs can do inside the VM following commands from the host.

From my perspective the unfortunate part is that the installation of the FC14 image takes such a long time. However, once it's done the VM can be used for a long time.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]