public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* virtio & minimal .config
@ 2008-02-18 14:06 Thomas Mueller
  2008-02-18 14:12 ` Anthony Liguori
  0 siblings, 1 reply; 6+ messages in thread
From: Thomas Mueller @ 2008-02-18 14:06 UTC (permalink / raw)
  To: kvm-devel

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/

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: virtio & minimal .config
  2008-02-18 14:06 virtio & minimal .config Thomas Mueller
@ 2008-02-18 14:12 ` Anthony Liguori
  2008-02-18 16:51   ` Thomas Mueller
  0 siblings, 1 reply; 6+ messages in thread
From: Anthony Liguori @ 2008-02-18 14:12 UTC (permalink / raw)
  To: Thomas Mueller; +Cc: kvm-devel

Thomas Mueller wrote:
> 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.

> 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

> 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/
> _______________________________________________
> kvm-devel mailing list
> kvm-devel@lists.sourceforge.net
> 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/

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: virtio & minimal .config
  2008-02-18 14:12 ` Anthony Liguori
@ 2008-02-18 16:51   ` Thomas Mueller
  2008-02-18 17:35     ` Anthony Liguori
  0 siblings, 1 reply; 6+ messages in thread
From: Thomas Mueller @ 2008-02-18 16:51 UTC (permalink / raw)
  To: kvm-devel

Hi Anthony

>> 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)


>> 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/

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: virtio & minimal .config
  2008-02-18 16:51   ` Thomas Mueller
@ 2008-02-18 17:35     ` Anthony Liguori
  2008-02-19  7:39       ` Thomas Mueller
  2008-02-19  7:39       ` Thomas Mueller
  0 siblings, 2 replies; 6+ messages in thread
From: Anthony Liguori @ 2008-02-18 17:35 UTC (permalink / raw)
  To: Thomas Mueller; +Cc: kvm-devel

Thomas Mueller wrote:
> Hi Anthony
>
>   
>>> 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)
>
>
>   
>>> 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?
>   

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

> 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/
> _______________________________________________
> kvm-devel mailing list
> kvm-devel@lists.sourceforge.net
> 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/

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: virtio & minimal .config
  2008-02-18 17:35     ` Anthony Liguori
@ 2008-02-19  7:39       ` Thomas Mueller
  2008-02-19  7:39       ` Thomas Mueller
  1 sibling, 0 replies; 6+ messages in thread
From: Thomas Mueller @ 2008-02-19  7:39 UTC (permalink / raw)
  To: kvm-devel




>>>>   
>>>>       
>>> 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.

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/

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: virtio & minimal .config
  2008-02-18 17:35     ` Anthony Liguori
  2008-02-19  7:39       ` Thomas Mueller
@ 2008-02-19  7:39       ` Thomas Mueller
  1 sibling, 0 replies; 6+ messages in thread
From: Thomas Mueller @ 2008-02-19  7:39 UTC (permalink / raw)
  To: kvm-devel




>>>>   
>>>>       
>>> 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.

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/

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2008-02-19  7:39 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-02-18 14:06 virtio & minimal .config Thomas Mueller
2008-02-18 14:12 ` Anthony Liguori
2008-02-18 16:51   ` Thomas Mueller
2008-02-18 17:35     ` Anthony Liguori
2008-02-19  7:39       ` Thomas Mueller
2008-02-19  7:39       ` Thomas Mueller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox