public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* TUN networking - guest device missing
@ 2007-01-11 11:21 Nikola Ciprich
       [not found] ` <20070111112118.GA26299-Q1hMHgS8kG8mnefyVReuhO3CNBr840j2@public.gmane.org>
  0 siblings, 1 reply; 9+ messages in thread
From: Nikola Ciprich @ 2007-01-11 11:21 UTC (permalink / raw)
  To: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

Hello,
I'm having trouble getting TUN networking to work in KVM - everything looks fine on host side, but I don't see any ne2k-pci device in the guest. When I use default (user) networking, I see ne2k-pci device in the guest, but I'd like to use TUN...
I'm using fedora 6, 2.6.18-28.6 kernel, x86_64 on host, and 2.6.16, i686 on guest.
any suggestions on what I'm doing wrong??
thanks a lot in advance
BR
Nik


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

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

* Re: TUN networking - guest device missing
       [not found] ` <20070111112118.GA26299-Q1hMHgS8kG8mnefyVReuhO3CNBr840j2@public.gmane.org>
@ 2007-01-11 11:46   ` Avi Kivity
       [not found]     ` <45A6239E.9060905-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
  2007-01-11 11:51   ` Dor Laor
  1 sibling, 1 reply; 9+ messages in thread
From: Avi Kivity @ 2007-01-11 11:46 UTC (permalink / raw)
  To: Nikola Ciprich; +Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

Nikola Ciprich wrote:
> Hello,
> I'm having trouble getting TUN networking to work in KVM - everything looks fine on host side, but I don't see any ne2k-pci device in the guest. When I use default (user) networking, I see ne2k-pci device in the guest, but I'd like to use TUN...
> I'm using fedora 6, 2.6.18-28.6 kernel, x86_64 on host, and 2.6.16, i686 on guest.
> any suggestions on what I'm doing wrong??
> thanks a lot in advance
>   

What does lspci say on the guest?


-- 
error compiling committee.c: too many arguments to function


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

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

* Re: TUN networking - guest device missing
       [not found] ` <20070111112118.GA26299-Q1hMHgS8kG8mnefyVReuhO3CNBr840j2@public.gmane.org>
  2007-01-11 11:46   ` Avi Kivity
@ 2007-01-11 11:51   ` Dor Laor
  1 sibling, 0 replies; 9+ messages in thread
From: Dor Laor @ 2007-01-11 11:51 UTC (permalink / raw)
  To: Nikola Ciprich, kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

>
>Hello,
>I'm having trouble getting TUN networking to work in KVM - everything
looks
>fine on host side, but I don't see any ne2k-pci device in the guest.
When I
>use default (user) networking, I see ne2k-pci device in the guest, but
I'd
>like to use TUN...
>I'm using fedora 6, 2.6.18-28.6 kernel, x86_64 on host, and 2.6.16,
i686 on
>guest.
>any suggestions on what I'm doing wrong??
>thanks a lot in advance
>BR
>Nik

Can you please send your qemu command line.
You can check a working example by looking at the kvm python script +
/scripts directory that contains an ifup script + a script to add a
bridge.

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

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

* Re: TUN networking - guest device missing
       [not found]         ` <20070111115723.GA26924-Q1hMHgS8kG8mnefyVReuhO3CNBr840j2@public.gmane.org>
@ 2007-01-11 11:53           ` Avi Kivity
       [not found]             ` <45A6251E.90809-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
  0 siblings, 1 reply; 9+ messages in thread
From: Avi Kivity @ 2007-01-11 11:53 UTC (permalink / raw)
  To: Nikola Ciprich; +Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

Nikola Ciprich wrote:
> On 2007-01-11, Avi Kivity wrote:
> eth device is missing in lspci output...
>
>   

What's your qemu command line?

Does it work with -no-kvm?


-- 
error compiling committee.c: too many arguments to function


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

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

* Re: TUN networking - guest device missing
       [not found]     ` <45A6239E.9060905-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
@ 2007-01-11 11:57       ` Nikola Ciprich
       [not found]         ` <20070111115723.GA26924-Q1hMHgS8kG8mnefyVReuhO3CNBr840j2@public.gmane.org>
  0 siblings, 1 reply; 9+ messages in thread
From: Nikola Ciprich @ 2007-01-11 11:57 UTC (permalink / raw)
  To: Avi Kivity; +Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

On 2007-01-11, Avi Kivity wrote:
eth device is missing in lspci output...

> Nikola Ciprich wrote:
> >Hello,
> >I'm having trouble getting TUN networking to work in KVM - everything 
> >looks fine on host side, but I don't see any ne2k-pci device in the guest. 
> >When I use default (user) networking, I see ne2k-pci device in the guest, 
> >but I'd like to use TUN...
> >I'm using fedora 6, 2.6.18-28.6 kernel, x86_64 on host, and 2.6.16, i686 
> >on guest.
> >any suggestions on what I'm doing wrong??
> >thanks a lot in advance
> >  
> 
> What does lspci say on the guest?
> 
> 
> -- 
> error compiling committee.c: too many arguments to function
> 

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

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

* Re: TUN networking - guest device missing
       [not found]                 ` <20070111121744.GB26924-Q1hMHgS8kG8mnefyVReuhO3CNBr840j2@public.gmane.org>
@ 2007-01-11 12:12                   ` Avi Kivity
  0 siblings, 0 replies; 9+ messages in thread
From: Avi Kivity @ 2007-01-11 12:12 UTC (permalink / raw)
  To: Nikola Ciprich; +Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

Nikola Ciprich wrote:
> Sorry, I should have already attached that information.
> cmdline is:
>
> qemu-system-x86_64 \
>     -m 384 -no-acpi \
>     -hda vdisk.img \
>     -boot c \
>     -net tap,script=/etc/kvm/qemu-ifup
>
> /etc/kvm/qemu-ifup is:
> #!/bin/sh
> brctl addif br0 $1
> exit 0
>
>   

is it qemu-ifup executable?

>  - I already have br0 defined, with eth0 as a member, IP address is set only for bridge...
>
> I don't see device even with -no-kvm
>
>   

ok

> I also noticed another strange thing - clock is running much faster in the guest system...
>
> I'm using version 10 of KVM - should I give ver 11 a try?
>
>
>   

shouldn't make a difference in this area.

-- 
error compiling committee.c: too many arguments to function


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

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

* Re: TUN networking - guest device missing
       [not found]             ` <45A6251E.90809-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
@ 2007-01-11 12:17               ` Nikola Ciprich
       [not found]                 ` <20070111121744.GB26924-Q1hMHgS8kG8mnefyVReuhO3CNBr840j2@public.gmane.org>
  2007-01-11 12:26                 ` Uri Lublin
  0 siblings, 2 replies; 9+ messages in thread
From: Nikola Ciprich @ 2007-01-11 12:17 UTC (permalink / raw)
  To: Avi Kivity; +Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

Sorry, I should have already attached that information.
cmdline is:

qemu-system-x86_64 \
    -m 384 -no-acpi \
    -hda vdisk.img \
    -boot c \
    -net tap,script=/etc/kvm/qemu-ifup

/etc/kvm/qemu-ifup is:
#!/bin/sh
brctl addif br0 $1
exit 0

 - I already have br0 defined, with eth0 as a member, IP address is set only for bridge...

I don't see device even with -no-kvm

I also noticed another strange thing - clock is running much faster in the guest system...

I'm using version 10 of KVM - should I give ver 11 a try?



> What's your qemu command line?
> 
> Does it work with -no-kvm?
> 
> 
> -- 
> error compiling committee.c: too many arguments to function
> 

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

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

* Re: TUN networking - guest device missing
  2007-01-11 12:17               ` Nikola Ciprich
       [not found]                 ` <20070111121744.GB26924-Q1hMHgS8kG8mnefyVReuhO3CNBr840j2@public.gmane.org>
@ 2007-01-11 12:26                 ` Uri Lublin
       [not found]                   ` <64F9B87B6B770947A9F8391472E0321603496AFE-yEcIvxbTEBqsx+V+t5oei8rau4O3wl8o3fe8/T/H7NteoWH0uzbU5w@public.gmane.org>
  1 sibling, 1 reply; 9+ messages in thread
From: Uri Lublin @ 2007-01-11 12:26 UTC (permalink / raw)
  To: Nikola Ciprich; +Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f


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

Try Adding "-net nic" to the command line:
qemu-system-x86_64 \
   -m 384 -no-acpi \
   -hda vdisk.img \
   -boot c \
   -net nic \
   -net tap,script=/etc/kvm/qemu-ifup


-----Original Message-----
From: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org on behalf of Nikola Ciprich
Sent: Thu 11/01/2007 14:17
To: Avi Kivity
Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Subject: Re: [kvm-devel] TUN networking - guest device missing
 
Sorry, I should have already attached that information.
cmdline is:

qemu-system-x86_64 \
    -m 384 -no-acpi \
    -hda vdisk.img \
    -boot c \
    -net tap,script=/etc/kvm/qemu-ifup

/etc/kvm/qemu-ifup is:
#!/bin/sh
brctl addif br0 $1
exit 0

 - I already have br0 defined, with eth0 as a member, IP address is set only for bridge...

I don't see device even with -no-kvm

I also noticed another strange thing - clock is running much faster in the guest system...

I'm using version 10 of KVM - should I give ver 11 a try?



> What's your qemu command line?
> 
> Does it work with -no-kvm?
> 
> 
> -- 
> error compiling committee.c: too many arguments to function
> 

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
kvm-devel mailing list
kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/kvm-devel



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

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

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

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

_______________________________________________
kvm-devel mailing list
kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/kvm-devel

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

* Re: TUN networking - guest device missing
       [not found]                   ` <64F9B87B6B770947A9F8391472E0321603496AFE-yEcIvxbTEBqsx+V+t5oei8rau4O3wl8o3fe8/T/H7NteoWH0uzbU5w@public.gmane.org>
@ 2007-01-11 14:10                     ` Nikola Ciprich
  0 siblings, 0 replies; 9+ messages in thread
From: Nikola Ciprich @ 2007-01-11 14:10 UTC (permalink / raw)
  To: Uri Lublin; +Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

On 2007-01-11, Uri Lublin wrote:
then I see one interface....
if-up script is executable...

> Try Adding "-net nic" to the command line:
> qemu-system-x86_64 \
>    -m 384 -no-acpi \
>    -hda vdisk.img \
>    -boot c \
>    -net nic \
>    -net tap,script=/etc/kvm/qemu-ifup
> 
> 

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

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

end of thread, other threads:[~2007-01-11 14:10 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-01-11 11:21 TUN networking - guest device missing Nikola Ciprich
     [not found] ` <20070111112118.GA26299-Q1hMHgS8kG8mnefyVReuhO3CNBr840j2@public.gmane.org>
2007-01-11 11:46   ` Avi Kivity
     [not found]     ` <45A6239E.9060905-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2007-01-11 11:57       ` Nikola Ciprich
     [not found]         ` <20070111115723.GA26924-Q1hMHgS8kG8mnefyVReuhO3CNBr840j2@public.gmane.org>
2007-01-11 11:53           ` Avi Kivity
     [not found]             ` <45A6251E.90809-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2007-01-11 12:17               ` Nikola Ciprich
     [not found]                 ` <20070111121744.GB26924-Q1hMHgS8kG8mnefyVReuhO3CNBr840j2@public.gmane.org>
2007-01-11 12:12                   ` Avi Kivity
2007-01-11 12:26                 ` Uri Lublin
     [not found]                   ` <64F9B87B6B770947A9F8391472E0321603496AFE-yEcIvxbTEBqsx+V+t5oei8rau4O3wl8o3fe8/T/H7NteoWH0uzbU5w@public.gmane.org>
2007-01-11 14:10                     ` Nikola Ciprich
2007-01-11 11:51   ` Dor Laor

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