VirtualBox 需要每次桥接才能上网吗?(Transparent Bridge)

Kvm、VMware、Virtualbox、Xen、Qemu 等
回复
lonelyair
帖子: 23
注册时间: 2007-03-13 22:57

VirtualBox 需要每次桥接才能上网吗?(Transparent Bridge)

#1

帖子 lonelyair » 2007-07-20 12:42

Failed to open '/dev/net/tun' for read/write access. Please check the permissions of that node. Either do 'chmod 0666 /dev/net/tun' or change the group of that node and get member of that group. Make sure that these changes are permanently in particular if you are using udev.
VBox status code: -3100 (VERR_HOSTIF_INIT_FAILED).


Result Code:
0x80004005
Component:
Console
Interface:
IConsole {1dea5c4b-0753-4193-b909-22330f64ec45}

每次启动就要配一次
#chmod 0666 /dev/net/tun #设置访问权限
#tunctl -t tap0 -u leemars #建立一个tap设备, 名字为tap0, 所有者为leemars

#ifconfig eth0 0.0.0.0 promisc #使eth0进入promiscuous模式
#ifconfig tap0 0.0.0.0 promisc #使tap0进入promiscuous模式
#brctl addbr br0 #增加一个网桥
#brctl addif br0 eth0 #将eth0加入网桥
#ifconfig eth0 up #激活eth0
#dhclient br0 #为br0设置IP地址
#brctl addif br0 tap0 #将tap0加入网桥
#ifconfig tap0 up #激活tap0
ino1
帖子: 266
注册时间: 2006-10-28 18:05

#2

帖子 ino1 » 2007-07-20 19:46

P4M 2.4GHz 256+512MDDR IGP340M共享64M
越来越喜欢beryl了,把我的桌面扩展得好大呀!
lonelyair
帖子: 23
注册时间: 2007-03-13 22:57

#3

帖子 lonelyair » 2007-07-23 10:32

谢谢,ino1
回复