[fedora-virt] How to use virtio-scsi on F17 host and F17 guest

Kevin Wolf kwolf at redhat.com
Fri Jun 8 09:32:07 UTC 2012


Am 07.06.2012 19:50, schrieb Kashyap Chamarthy:
> A related question:
> 
> A while ago, I was using just bare qemu-kvm to invoke an f16 kernel to test virtio-scsi:
> 
> qemu-kvm invocation:
> #---------------------------------------------------#
> # /usr/bin/qemu-kvm \
>  -device virtio-scsi-pci,id=scsi \
>  -enable-kvm \
>  -nographic -nodefconfig -nodefaults \
>  -chardev stdio,id=charserial0 \
>  -device isa-serial,chardev=charserial0,id=serial0 \
>  -device sga \
>  -kernel vmlinuz-3.2.7-1.fc16.x86_64 \
>  -initrd initramfs-3.2.7-1.fc16.x86_64.img \
>  -append "console=ttyS0"
> #---------------------------------------------------#

You're only adding the virtio-scsi controller here, but no disks, so
your guest can't find its root file system. I think you need to add:

-drive file=disk.img,if=none,id=sda
-device scsi-disk,bus=scsi.0,drive=sda

Kevin


More information about the virt mailing list