<br><br><div class="gmail_quote">On Mon, Aug 15, 2011 at 3:49 PM, David Konerding <span dir="ltr"><<a href="mailto:dek@konerding.com">dek@konerding.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br><br><div class="gmail_quote"><div class="im">On Mon, Aug 15, 2011 at 3:33 PM, Richard W.M. Jones <span dir="ltr"><<a href="mailto:rjones@redhat.com" target="_blank">rjones@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div>On Mon, Aug 15, 2011 at 03:21:25PM -0700, David Konerding wrote:<br>
> OK, I have a new 2.6.38 kernel with virtio_blk.ko.  This solves the failure<br>
> to find ext2 root device.<br>
><br>
> Still not having any luck running the test-tool to completion.  There is no<br>
> /sys in the guest root image. There is also no /etc/fstab (is that<br>
> expected?)  There is no ethernet interface even though it looks like it can<br>
> load virtio_net.<br>
<br>
</div>In my appliance, there is /sys, /etc/fstab (present but empty) and<br>
eth0.<br>
<div><br></div></blockquote></div></div></blockquote><div><br></div><div>OK.  I fixed the /sys problem: no /sys directory exists in the base image, so mounting fails.  I edited inittab, and added mkdir /sys , this seems to help.</div>
<div>Isn't this normally created by febootstrap?</div><div><br></div><div>I have no fstab, but this doesn't really cause any problems AFAICT.</div><div><br></div><div>The next one is eth0.  The KVM invocation in test-tools is this; I see no -net option to setup a network interface.</div>
<div><br></div><div><div>libguestfs: [12474ms] /home/dek/sw/qemu-kvm-0.14.1/bin/qemu-system-x86_64 \</div><div>    -drive file=/tmp/libguestfs-test-tool-sda-KUZzVU,cache=off,format=raw,if=virtio \</div><div>    -nodefconfig \</div>
<div>    -enable-kvm \</div><div>    -nodefaults \</div><div>    -nographic \</div><div>    -m 500 \</div><div>    -no-reboot \</div><div>    -no-hpet \</div><div>    -device virtio-serial \</div><div>    -serial stdio \</div>
<div>    -chardev socket,path=/tmp/libguestfsgIrcIo/guestfsd.sock,id=channel0 \</div><div>    -device virtserialport,chardev=channel0,name=org.libguestfs.channel.0 \</div><div>    -kernel /var/tmp/.guestfs-88619/kernel.28112 \</div>
<div>    -initrd /var/tmp/.guestfs-88619/initrd.28112 \</div><div>    -append 'panic=1 console=ttyS0 udevtimeout=300 noapic acpi=off printk.time=1 cgroup_disable=memory selinux=0 guestfs_verbose=1 TERM=rxvt ' \</div>
<div>    -drive file=/var/tmp/.guestfs-88619/root.28112,snapshot=on,if=virtio,cache=unsafe</div></div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="gmail_quote">
<div class="im"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>
> Starting /init script ...<br>
> warning: can't open /etc/fstab: No such file or directory<br>
> mount: mount point /sys does not exist<br>
<br>
</div>Next step would be to add some debugging to appliance/init to show<br>
what commands are being executed, and what's in the filesystem.<br>
<br>
Also if you do:<br>
<br>
  $ ./run rescue/virt-rescue -a /dev/null<br>
<br>
then it may manage to get to a shell, in which case you can poke<br>
around in the appliance by hand.<br>
<div><br></div></blockquote><div><br></div></div><div>Interesting.  yes, this booted into a pretty dysfunctional host, but I did get a shell.  The error messages are the same.  I'll investigate some more.</div><div>
<br></div><div>Dave</div><div class="im"><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>
Rich.<br>
<br>
--<br>
Richard Jones, Virtualization Group, Red Hat <a href="http://people.redhat.com/~rjones" target="_blank">http://people.redhat.com/~rjones</a><br>
</div><div>virt-df lists disk usage of guests without needing to install any<br>
software inside the virtual machine.  Supports Linux and Windows.<br>
</div><a href="http://et.redhat.com/~rjones/virt-df/" target="_blank">http://et.redhat.com/~rjones/virt-df/</a><br>
</blockquote></div></div><br>
</blockquote></div><br>