* [Qemu-devel] multiple VM on one tap device
@ 2007-12-13 16:57 Kирилл Паленов
0 siblings, 0 replies; only message in thread
From: Kирилл Паленов @ 2007-12-13 16:57 UTC (permalink / raw)
To: qemu-devel
[-- Attachment #1: Type: text/plain, Size: 1166 bytes --]
Hello all.
Is it possible run several VM connected with one tap device?
I tried to run two VM with allready exist tap0 but when I started second
I've got message: "warning: could not configure /dev/net/tun: no virtual
network emulation Could not initialize device 'tap' ".
I did following under root:
-bash-3.00# tunctl -b -t tap0
-bash-3.00# ifconfig tap0 192.168.4.1 netmask 255.255.255.0 up
-bash-3.00# ifconfig tap0
tap0 Link encap:Ethernet HWaddr 00:FF:A1:81:05:B0
inet addr:192.168.4.1 Bcast:192.168.4.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:500
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Then started VM with following parameters:
1. -net nic,macaddr=00:1a:4b:34:74:43 -net
tap,vlan=0,ifname=tap0,host=sv3,script=no
2. -net nic,macaddr=00:1a:4b:34:74:44 -net
tap,vlan=0,ifname=tap0,host=sv4,script=no
I did it under linux kernel 2.6.23.9.
What does it mean fd in -net tap,fd ? File discriptor of /dev/net/tun or
tap device.
[-- Attachment #2: Type: text/html, Size: 1949 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2007-12-13 16:57 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-12-13 16:57 [Qemu-devel] multiple VM on one tap device Kирилл Паленов
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).