Skip to contentSkip to conversation

virtio & minimal .config

DISCUSSION Thomas Mueller 3 participants 6 messages Feb 18, 2008 – Feb 19, 2008 KVM

lore
Share & tools
lore
#0 lore raw

hi there

i've read http://kvm.qumranet.com/kvmwiki/Virtio?highlight=%28virtio%29
about virtio. To test it, i got a new 2.6.25-rc2 kernel and kvm-60 (both on debian).

has anybody out there a minimalistic .config to build a minimal guest kernel image with virtio enabled?

all my tries with virtio ended up with a kernel panic not finding the harddisk... Is virtio for the disk supported by kvm-60 and do i need to enable it on the command line? Without my own virtio enabled kernel things work just fine.

Thanks
- Thomas

PS: maybe a kvm-users mailinglist was more apropriate for this question.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/

#1 lore raw
Quoted 9 lines · Thomas Mueller

hi there

i've read http://kvm.qumranet.com/kvmwiki/Virtio?highlight=%28virtio%29
about virtio. To test it, i got a new 2.6.25-rc2 kernel and kvm-60 (both on debian).

has anybody out there a minimalistic .config to build a minimal guest kernel image with virtio enabled?

I usually do a make defconfig, enable the CONFIG_VIRTIO_* options in .config, then do a make oldconfig and answer 'y' to all of the questions.

Quoted 5 lines

all my tries with virtio ended up with a kernel panic not finding the harddisk... Is virtio for the disk supported by kvm-60 and do i need to enable it on the command line? Without my own virtio enabled kernel things work just fine.

Please post your command line for launching KVM. Make sure you have a root parameter like "root=/dev/vda1".

Regards,

Anthony Liguori

Quoted 5 lines

Thanks
- Thomas

PS: maybe a kvm-users mailinglist was more apropriate for this question.

Quoted 9 lines

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
kvm-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/kvm-devel

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/

#2 lore raw

Hi Anthony

Quoted 6 lines
Quoted 3 lines

has anybody out there a minimalistic .config to build a minimal guest kernel image with virtio enabled?

I usually do a make defconfig, enable the CONFIG_VIRTIO_* options in .config, then do a make oldconfig and answer 'y' to all of the questions.

ok, i'll give it a try. But "make defconfig" will make a new .config. So i think there won't ever be any 'y' to give to "make oldconfig"?

anyhow. after "make defconfig" there was no "CONFIG_VIRTIO_BLK" in it. But in "make menuconfig" i found and enabled it (also CONFIG_VIRTIO_NIC). (maybe some issues of -rc2)

Quoted 8 lines
Quoted 5 lines

all my tries with virtio ended up with a kernel panic not finding the harddisk... Is virtio for the disk supported by kvm-60 and do i need to enable it on the command line? Without my own virtio enabled kernel things work just fine.

Please post your command line for launching KVM. Make sure you have a root parameter like "root=/dev/vda1".

the "vda1" thing i didn't know. thanks. will also give it a try - tomorrow.

Is "virtio" block device replacing SATA/SCSI - are the SCSI/SATA drivers needed on guest?

thanks
- Thomas

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/

#3 lore raw
Quoted 26 lines · Thomas Mueller

Hi Anthony

Quoted 7 lines
Quoted 4 lines

has anybody out there a minimalistic .config to build a minimal guest kernel image with virtio enabled?

I usually do a make defconfig, enable the CONFIG_VIRTIO_* options in .config, then do a make oldconfig and answer 'y' to all of the questions.

ok, i'll give it a try. But "make defconfig" will make a new .config. So i think there won't ever be any 'y' to give to "make oldconfig"?

anyhow. after "make defconfig" there was no "CONFIG_VIRTIO_BLK" in it. But in "make menuconfig" i found and enabled it (also CONFIG_VIRTIO_NIC). (maybe some issues of -rc2)

Quoted 6 lines
Quoted 6 lines

all my tries with virtio ended up with a kernel panic not finding the harddisk... Is virtio for the disk supported by kvm-60 and do i need to enable it on the command line? Without my own virtio enabled kernel things work just fine.

Quoted 9 lines
Quoted 3 lines

Please post your command line for launching KVM. Make sure you have a root parameter like "root=/dev/vda1".

the "vda1" thing i didn't know. thanks. will also give it a try - tomorrow.

Is "virtio" block device replacing SATA/SCSI - are the SCSI/SATA drivers needed on guest?

The virtio block driver should be the only block driver you need in the guest unless you want to give the guest a cdrom (which requires IDE). The virtio block protocol should support everything needed to expose a CDROM to a guest but we haven't implemented backend support for it yet.

Regards,

Anthony Liguori

Quoted 5 lines

thanks
- Thomas

Quoted 9 lines

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
kvm-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/kvm-devel

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/

#4 lore raw
Quoted 10 lines
Quoted 10 lines
Quoted 8 lines
Quoted 5 lines

Please post your command line for launching KVM. Make sure you have a root parameter like "root=/dev/vda1".

the "vda1" thing i didn't know. thanks. will also give it a try - tomorrow.

Quoted 8 lines
Quoted 3 lines

Is "virtio" block device replacing SATA/SCSI - are the SCSI/SATA drivers needed on guest?

The virtio block driver should be the only block driver you need in the guest unless you want to give the guest a cdrom (which requires IDE). The virtio block protocol should support everything needed to expose a CDROM to a guest but we haven't implemented backend support for it yet.

thanks to Anthony, you led me to the right direction. it's working now. problem was mainly that there's a new (ok, don't know if it's realy new, but i never used it) -drive option.

i just updated http://kvm.qumranet.com/kvmwiki/Virtio with my new knowledge. :)

- Thomas

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/

#5 lore raw
In reply to Anthony Liguori
Quoted 10 lines
Quoted 10 lines
Quoted 8 lines
Quoted 5 lines

Please post your command line for launching KVM. Make sure you have a root parameter like "root=/dev/vda1".

the "vda1" thing i didn't know. thanks. will also give it a try - tomorrow.

Quoted 8 lines
Quoted 3 lines

Is "virtio" block device replacing SATA/SCSI - are the SCSI/SATA drivers needed on guest?

The virtio block driver should be the only block driver you need in the guest unless you want to give the guest a cdrom (which requires IDE). The virtio block protocol should support everything needed to expose a CDROM to a guest but we haven't implemented backend support for it yet.

thanks to Anthony, you led me to the right direction. it's working now. problem was mainly that there's a new (ok, don't know if it's realy new, but i never used it) -drive option.

i just updated http://kvm.qumranet.com/kvmwiki/Virtio with my new knowledge. :)

- Thomas

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/