Skip to contentSkip to conversation

TUN networking - guest device missing

DISCUSSION Nikola Ciprich 4 participants 9 messages Jan 11, 2007 6 messages not in the archive KVM

lore
Share & tools
lore
#0 lore raw

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

#2 lore raw
In reply to a message not in the archive
Quoted 6 lines · Nikola Ciprich

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?

Signature · 8 lines
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
#14 lore raw
In reply to a message not in the archive
Quoted 3 lines

Hello,
I'm having trouble getting TUN networking to work in KVM - everything

looks

Quoted 1 line

fine on host side, but I don't see any ne2k-pci device in the guest.

When I

Quoted 1 line

use default (user) networking, I see ne2k-pci device in the guest, but

I'd

Quoted 2 lines

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

Quoted 5 lines

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

#6 lore raw
In reply to a message not in the archive
Quoted 4 lines · Nikola Ciprich

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?

Signature · 8 lines
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
#4 lore raw
In reply to a message not in the archive

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

Quoted 12 lines
Quoted 10 lines · Nikola Ciprich

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

Quoted 6 lines

What does lspci say on the guest?

Signature · 1 line
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

#10 lore raw
In reply to a message not in the archive
Quoted 9 lines · Nikola Ciprich

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
Quoted 6 lines

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

is it qemu-ifup executable?

Quoted 5 lines

- 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

Quoted 6 lines

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.

Signature · 8 lines
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
#8 lore raw
In reply to a message not in the archive

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?

Quoted 8 lines

What's your qemu command line?

Does it work with -no-kvm?

Signature · 1 line
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

#11 lore raw

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: [email protected]
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?

Quoted 8 lines

What's your qemu command line?

Does it work with -no-kvm?

Signature · 1 line
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 [email protected]
https://lists.sourceforge.net/lists/listinfo/kvm-devel

-------------------------------------------------------------------------
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 [email protected]
https://lists.sourceforge.net/lists/listinfo/kvm-devel

#13 lore raw
In reply to a message not in the archive

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

Quoted 9 lines

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