public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* virtio with 2.6.25-rc8: problem with /dev/vda
@ 2008-04-09  6:43 Jun Koi
  2008-04-09  7:38 ` Felix Leimbach
  0 siblings, 1 reply; 8+ messages in thread
From: Jun Koi @ 2008-04-09  6:43 UTC (permalink / raw)
  To: KVM

Hi,

I am trying virtio: guest is running 2.6.25-rc8 kernel, with virtio
compiled in. In Grub menu, I changed

"root=/dev/sda1"

to:

"root=/dev/vda1".

(That is guided by http://kvm.qumranet.com/kvmwiki/Virtio)

However, I got booting error like "/dev/vda1 doest exist...", so boot
failure. How can I fix this?

Thanks,
Jun

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone

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

* Re: virtio with 2.6.25-rc8: problem with /dev/vda
  2008-04-09  6:43 virtio with 2.6.25-rc8: problem with /dev/vda Jun Koi
@ 2008-04-09  7:38 ` Felix Leimbach
  2008-04-09  7:50   ` Jun Koi
  0 siblings, 1 reply; 8+ messages in thread
From: Felix Leimbach @ 2008-04-09  7:38 UTC (permalink / raw)
  To: Jun Koi; +Cc: KVM


[-- Attachment #1.1: Type: text/plain, Size: 335 bytes --]

>  However, I got booting error like "/dev/vda1 doest exist...", so boot
>  failure. How can I fix this?

make sure that your command line on the host looks like that:
kvm -drive file=<your-image>,if=virtio,boot=on <other stuff here>

And check that the guest has the following kernel option enabled:
CONFIG_VIRTIO_BLK

regards,
Felix

[-- Attachment #1.2: Type: text/html, Size: 664 bytes --]

[-- Attachment #2: Type: text/plain, Size: 320 bytes --]

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone

[-- Attachment #3: Type: text/plain, Size: 158 bytes --]

_______________________________________________
kvm-devel mailing list
kvm-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/kvm-devel

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

* Re: virtio with 2.6.25-rc8: problem with /dev/vda
  2008-04-09  7:38 ` Felix Leimbach
@ 2008-04-09  7:50   ` Jun Koi
  2008-04-10  3:28     ` Anthony Liguori
  0 siblings, 1 reply; 8+ messages in thread
From: Jun Koi @ 2008-04-09  7:50 UTC (permalink / raw)
  To: Felix Leimbach; +Cc: KVM

On 4/9/08, Felix Leimbach <felix.leimbach@gmx.net> wrote:
>
>  > However, I got booting error like "/dev/vda1 doest exist...", so boot
>  > failure. How can I fix this?
>
>  make sure that your command line on the host looks like that:
>  kvm -drive file=<your-image>,if=virtio,boot=on <other
> stuff here>
>
>  And check that the guest has the following kernel option enabled:
>  CONFIG_VIRTIO_BLK

Yes, I missed this VIRTIO_BLK!

It might be easier if we put all of virtio stuffs under the same menu,
so nobody can miss anything?

Thanks,
Jun

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone

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

* Re: virtio with 2.6.25-rc8: problem with /dev/vda
  2008-04-09  7:50   ` Jun Koi
@ 2008-04-10  3:28     ` Anthony Liguori
  2008-04-10  3:59       ` Jun Koi
  0 siblings, 1 reply; 8+ messages in thread
From: Anthony Liguori @ 2008-04-10  3:28 UTC (permalink / raw)
  To: Jun Koi; +Cc: Felix Leimbach, KVM

Jun Koi wrote:
> On 4/9/08, Felix Leimbach <felix.leimbach@gmx.net> wrote:
>   
>>  > However, I got booting error like "/dev/vda1 doest exist...", so boot
>>  > failure. How can I fix this?
>>
>>  make sure that your command line on the host looks like that:
>>  kvm -drive file=<your-image>,if=virtio,boot=on <other
>> stuff here>
>>
>>  And check that the guest has the following kernel option enabled:
>>  CONFIG_VIRTIO_BLK
>>     
>
> Yes, I missed this VIRTIO_BLK!
>
> It might be easier if we put all of virtio stuffs under the same menu,
> so nobody can miss anything?
>   

As distros upgrade their kernels to 2.6.25 and greater, it'll all get 
built by default so users won't have to deal with this sort of thing.

Regards,

Anthony Liguori

> Thanks,
> Jun
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
> Don't miss this year's exciting event. There's still time to save $100. 
> Use priority code J8TL2D2. 
> http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
> _______________________________________________
> kvm-devel mailing list
> kvm-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/kvm-devel
>   


-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone

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

* Re: virtio with 2.6.25-rc8: problem with /dev/vda
  2008-04-10  3:28     ` Anthony Liguori
@ 2008-04-10  3:59       ` Jun Koi
  2008-04-10  4:06         ` Jorge Lucángeli Obes
  0 siblings, 1 reply; 8+ messages in thread
From: Jun Koi @ 2008-04-10  3:59 UTC (permalink / raw)
  To: Anthony Liguori; +Cc: KVM

On 4/10/08, Anthony Liguori <anthony@codemonkey.ws> wrote:
> Jun Koi wrote:
>
> > On 4/9/08, Felix Leimbach <felix.leimbach@gmx.net> wrote:
> >
> >
> > >  > However, I got booting error like "/dev/vda1 doest exist...", so boot
> > >  > failure. How can I fix this?
> > >
> > >  make sure that your command line on the host looks like that:
> > >  kvm -drive file=<your-image>,if=virtio,boot=on <other
> > > stuff here>
> > >
> > >  And check that the guest has the following kernel option enabled:
> > >  CONFIG_VIRTIO_BLK
> > >
> > >
> >
> > Yes, I missed this VIRTIO_BLK!
> >
> > It might be easier if we put all of virtio stuffs under the same menu,
> > so nobody can miss anything?
> >
> >
>
>  As distros upgrade their kernels to 2.6.25 and greater, it'll all get built
> by default so users won't have to deal with this sort of thing.

Thanks.

Now I succesfully installed 2.6.25-rc8, and virtio block device works
well. But from inside my VM, how can I say it is using virtio for
block?

And is there any number about the performance gain using virtio block?

Another question: currently I have some problem with network: I use option

"-net nic,model=virtio"

and try to configure VM from inside after booting, network doesnt
work, even after I manually configure eth0.

How to fix that network problem?

Thanks,
Jun

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone

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

* Re: virtio with 2.6.25-rc8: problem with /dev/vda
  2008-04-10  3:59       ` Jun Koi
@ 2008-04-10  4:06         ` Jorge Lucángeli Obes
  2008-04-10  5:14           ` Jun Koi
  0 siblings, 1 reply; 8+ messages in thread
From: Jorge Lucángeli Obes @ 2008-04-10  4:06 UTC (permalink / raw)
  To: Jun Koi; +Cc: KVM

On Thu, Apr 10, 2008 at 12:59 AM, Jun Koi <junkoi2004@gmail.com> wrote:
>  Now I succesfully installed 2.6.25-rc8, and virtio block device works
>  well. But from inside my VM, how can I say it is using virtio for
>  block?
>
>  And is there any number about the performance gain using virtio block?
>
>  Another question: currently I have some problem with network: I use option
>
>  "-net nic,model=virtio"
>
>  and try to configure VM from inside after booting, network doesnt
>  work, even after I manually configure eth0.
>
>  How to fix that network problem?

'-net nic,...' only specifies the "hardware" part of QEMU/KVM's
networking. You also need to specify whether you are going to use
usermode networking or bridged networking. QEMU documentation covers
both modes pretty well.

To test the card quickly, use usermode networking, where QEMU provides
a usermode network stack (complete with DHCP server) that let's you
use the VM as if it were behind a completely restrictive firewall that
only allows outbound connections.

'-net nic,model=virtio -net user'

It's a great way to test the network card. If your host has an
Internet connection, firing up a browser in the guest (after getting
the guest interface up using DHCP) and accessing a web page should
"just work".

Cheers!
Jorge

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone

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

* Re: virtio with 2.6.25-rc8: problem with /dev/vda
  2008-04-10  4:06         ` Jorge Lucángeli Obes
@ 2008-04-10  5:14           ` Jun Koi
  2008-04-10  7:49             ` Dor Laor
  0 siblings, 1 reply; 8+ messages in thread
From: Jun Koi @ 2008-04-10  5:14 UTC (permalink / raw)
  To: Jorge Lucángeli Obes; +Cc: KVM

On 4/10/08, Jorge Lucángeli Obes <t4m5yn@gmail.com> wrote:
> On Thu, Apr 10, 2008 at 12:59 AM, Jun Koi <junkoi2004@gmail.com> wrote:
>  >  Now I succesfully installed 2.6.25-rc8, and virtio block device works
>  >  well. But from inside my VM, how can I say it is using virtio for
>  >  block?
>  >
>  >  And is there any number about the performance gain using virtio block?
>  >
>  >  Another question: currently I have some problem with network: I use option
>  >
>  >  "-net nic,model=virtio"
>  >
>  >  and try to configure VM from inside after booting, network doesnt
>  >  work, even after I manually configure eth0.
>  >
>  >  How to fix that network problem?
>
>
> '-net nic,...' only specifies the "hardware" part of QEMU/KVM's
>  networking. You also need to specify whether you are going to use
>  usermode networking or bridged networking. QEMU documentation covers
>  both modes pretty well.
>
>  To test the card quickly, use usermode networking, where QEMU provides
>  a usermode network stack (complete with DHCP server) that let's you
>  use the VM as if it were behind a completely restrictive firewall that
>  only allows outbound connections.
>
>  '-net nic,model=virtio -net user'
>
>  It's a great way to test the network card. If your host has an
>  Internet connection, firing up a browser in the guest (after getting
>  the guest interface up using DHCP) and accessing a web page should
>  "just work".

"-net user" works, thanks!

I didnt use the option because I think that is default. But it seems
if you use "-net" (for "model=virtio" in this case), you must specify
the networking mode.

Regards,
Jun

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone

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

* Re: virtio with 2.6.25-rc8: problem with /dev/vda
  2008-04-10  5:14           ` Jun Koi
@ 2008-04-10  7:49             ` Dor Laor
  0 siblings, 0 replies; 8+ messages in thread
From: Dor Laor @ 2008-04-10  7:49 UTC (permalink / raw)
  To: Jun Koi; +Cc: KVM


On Thu, 2008-04-10 at 14:14 +0900, Jun Koi wrote:
> On 4/10/08, Jorge Lucángeli Obes <t4m5yn@gmail.com> wrote:
> > On Thu, Apr 10, 2008 at 12:59 AM, Jun Koi <junkoi2004@gmail.com> wrote:
> >  >  Now I succesfully installed 2.6.25-rc8, and virtio block device works
> >  >  well. But from inside my VM, how can I say it is using virtio for
> >  >  block?
> >  >
> >  >  And is there any number about the performance gain using virtio block?
> >  >
> >  >  Another question: currently I have some problem with network: I use option
> >  >
> >  >  "-net nic,model=virtio"
> >  >
> >  >  and try to configure VM from inside after booting, network doesnt
> >  >  work, even after I manually configure eth0.
> >  >
> >  >  How to fix that network problem?
> >
> >
> > '-net nic,...' only specifies the "hardware" part of QEMU/KVM's
> >  networking. You also need to specify whether you are going to use
> >  usermode networking or bridged networking. QEMU documentation covers
> >  both modes pretty well.
> >
> >  To test the card quickly, use usermode networking, where QEMU provides
> >  a usermode network stack (complete with DHCP server) that let's you
> >  use the VM as if it were behind a completely restrictive firewall that
> >  only allows outbound connections.
> >
> >  '-net nic,model=virtio -net user'
> >
> >  It's a great way to test the network card. If your host has an
> >  Internet connection, firing up a browser in the guest (after getting
> >  the guest interface up using DHCP) and accessing a web page should
> >  "just work".
> 
> "-net user" works, thanks!
> 

For general knowledge -net tap drastically improves performance.
There is also work in progress mainly by Rusty to do copy-less tap
networking.

> I didnt use the option because I think that is default. But it seems
> if you use "-net" (for "model=virtio" in this case), you must specify
> the networking mode.
> 
> Regards,
> Jun
> 
> -------------------------------------------------------------------------
> This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
> Don't miss this year's exciting event. There's still time to save $100. 
> Use priority code J8TL2D2. 
> http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
> _______________________________________________
> kvm-devel mailing list
> kvm-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/kvm-devel


-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
kvm-devel mailing list
kvm-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/kvm-devel

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

end of thread, other threads:[~2008-04-10  7:49 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-04-09  6:43 virtio with 2.6.25-rc8: problem with /dev/vda Jun Koi
2008-04-09  7:38 ` Felix Leimbach
2008-04-09  7:50   ` Jun Koi
2008-04-10  3:28     ` Anthony Liguori
2008-04-10  3:59       ` Jun Koi
2008-04-10  4:06         ` Jorge Lucángeli Obes
2008-04-10  5:14           ` Jun Koi
2008-04-10  7:49             ` Dor Laor

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