On (Sun) Mar 21 2010 [20:18:53], Liang YANG wrote: > I want to set up the virtio-net for the GuestOS on KVM. Following is my steps: > > 1.Compile the kvm-88 and make, make install. > 2.Compile the GuestOS(redhat) with kernel version 2.6.27.45(with > virtio support). The required option are all selected. > o CONFIG_VIRTIO_PCI=y (Virtualization -> PCI driver for > virtio devices) > o CONFIG_VIRTIO_BALLOON=y (Virtualization -> Virtio balloon driver) > o CONFIG_VIRTIO_BLK=y (Device Drivers -> Block -> Virtio block driver) > o CONFIG_VIRTIO_NET=y (Device Drivers -> Network device > support -> Virtio network driver) > o CONFIG_VIRTIO=y (automatically selected) > o CONFIG_VIRTIO_RING=y (automatically selected) > 3.Then start up the GuestOS by such command: > x86_64-softmmu/qemu-system-x86_64 -m 1024 /root/redhat.img > -net nic,model=virtio -net tap,script=/etc/kvm/qemu-ifup > 4.Result is this: > * The Guest OS start up. > * But the network not, no eth-X device found. > * lsmod | grep virtio get none module about virtio Since you selected the virtio options as 'y', they are directly compiled into the kernel and hence you won't see the modules. Check your 'lspci -v' output. You should see the virtio device there. You can also try some usual things like 'ifconfig eth0 up', etc., to get the interface. Amit -- http://log.amitshah.net/ -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html