Test failure w/ libguestfs-1.0.61 on RHEL5 -- needs virtio support in guest kernel?
See attachment for full logs. Appears at first glance to be related to the lack of support for virtio-net in the guest kernel. /usr/bin/qemu-kvm /usr/bin/qemu-kvm -drive file=test1.img,cache=off,if=ide -drive file=test2.img,cache=off,if=ide -drive file=test3.img,cache=off,if=ide -drive file=../images/test.sqsh,snapshot=on,if=ide -m 500 -no-reboot -kernel /tmp/libguestfscfrLMf/kernel -initrd /tmp/libguestfscfrLMf/initrd -append panic=1 console=ttyS0 guestfs=10.0.2.4:6666 guestfs_verbose=1 noapic -nographic -serial stdio -net channel,6666:unix:/tmp/libguestfscfrLMf/sock,server,nowait -net user,vlan=0 -net nic,model=virtio,vlan=0 -no-hpet -rtc-td-hack [...] SIOCSIFADDR: No such device eth0: unknown interface: No such device SIOCADDRT: No such process Reading all physical volumes. This may take a while... /init: line 48: /sys/block/vd*/queue/rotational: No such file or directory verbose daemon enabled connect: Network is unreachable connection to 10.0.2.4:6666 failed Kernel panic - not syncing: Attempted to kill init! Pid: 1, comm: guestfsd Not tainted 2.6.30 #1 Call Trace: [<ffffffff8023a51f>] panic+0xe0/0x190 [<ffffffff8023c044>] ? put_files_struct+0xac/0xb9 [<ffffffff802427af>] ? exit_ptrace+0x2f/0x112 [<ffffffff8023d296>] do_exit+0x7e/0x668 [<ffffffff8023d8f8>] do_group_exit+0x78/0xa8 [<ffffffff8023d93f>] sys_exit_group+0x17/0x1b [<ffffffff8020bbdb>] system_call_fastpath+0x16/0x1b Rebooting in 1 seconds..sock_read_event: 0x62d010 g->state = 1, fd = 3, events = 0x1 stdout_event: 0x62d010: child process died guestfs_wait_ready failed, see earlier error messages guestfs_wait_ready FAILED closing guestfs handle 0x62d010 (state 0) FAIL: tests
Switched from virtio to e1000, and libguestfs-1.0.61 now Works For Me. (e1000 is more stable in my experience anyhow -- but then, I'm a stick-in-the-mud who doesn't trust virtio-blk either). See attached patch.
Erk -- sorry about the unnecessary reordering in kmod.whitelist.in; the block looked to be in rough sort order to me, so I just selected it and did a :!sort to position the addition of e1000.ko in the right place. Mea culpa for not eyeballing the patch before attaching it.
On Wed, Jul 15, 2009 at 10:12:48PM -0500, Charles Duffy wrote:
Switched from virtio to e1000, and libguestfs-1.0.61 now Works For Me. (e1000 is more stable in my experience anyhow -- but then, I'm a stick-in-the-mud who doesn't trust virtio-blk either).
The patch is fine, but we can't take this because virtio-net is a requirement. If there are stability or performance problems with virtio-net then we'd prefer to find and fix those, instead of investing any time in the emulated network drivers. Rich. -- Richard Jones, Emerging Technologies, Red Hat http://et.redhat.com/~rjones virt-df lists disk usage of guests without needing to install any software inside the virtual machine. Supports Linux and Windows. http://et.redhat.com/~rjones/virt-df/
False alarm -- this is on account of my host running a non-stock kernel (incidentally, more modern kernels also use a squashfs module incompatible with the userland tools from CentOS 5). I've tweaked the RPM to disable supermin, am running a custom build, and should be much happier when it's complete. Sorry, 'yall!
participants (2)
-
Charles Duffy -
Richard W.M. Jones