[转帖]Ubuntu Virtualbox桥接及USB设备使用(8.04 64位)
发表于 : 2008-05-17 23:40
Ubuntu Virtualbox桥接
最近玩腻了Ubuntu了,换个xubuntu.感觉还凑合
准备安装Virtualbox,本来刚开始的时候只不过是测试玩玩的。后来发现还确实不错。
为了实现桥接我可郁闷死了。终于完成了。写写步骤。别在忘记了
1.安装必要工具
$sudo apt-get install uml-utilities bridge-utils
2.安装Virtualbox
$sudo apt-get install virtualbox
3.设置Virtualbox启动
$sudo gpasswd -a 你的帐户名 uml-net
$sudo gpasswd -a 你的帐户名 vboxusers
4.实现网卡bridge
auto eth0
iface eth0 inet manual
up ifconfig $IFACE 0.0.0.0 up
auto vbox0
iface vbox0 inet manual
up ifconfig $IFACE 0.0.0.0 up
down ifconfig $IFACE down
tunctl_user 你的帐户名
auto br0
iface br0 inet static
bridge_ports eth0 vbox0
address 192.168.1.1
netmask 255.255.255.0
network 192.168.1.0
bridge_maxwait 0
5.实现Virtualbox的usb功能
1)$sudo groupadd usbfs
2)$sudo gpasswd -a 你的帐户名 usbfs
3) 编辑/etc/fstab,在最后添加
none /proc/bus/usb usbfs devgid=1002,devmode=664 0 0
注意devgid=1002,1002为usbfs的GID号
4)$sudo mount -a
OK!
http://www.linuxdiyf.com/bbs/thread-82361-1-1.html
最近玩腻了Ubuntu了,换个xubuntu.感觉还凑合
准备安装Virtualbox,本来刚开始的时候只不过是测试玩玩的。后来发现还确实不错。
为了实现桥接我可郁闷死了。终于完成了。写写步骤。别在忘记了
1.安装必要工具
$sudo apt-get install uml-utilities bridge-utils
2.安装Virtualbox
$sudo apt-get install virtualbox
3.设置Virtualbox启动
$sudo gpasswd -a 你的帐户名 uml-net
$sudo gpasswd -a 你的帐户名 vboxusers
4.实现网卡bridge
auto eth0
iface eth0 inet manual
up ifconfig $IFACE 0.0.0.0 up
auto vbox0
iface vbox0 inet manual
up ifconfig $IFACE 0.0.0.0 up
down ifconfig $IFACE down
tunctl_user 你的帐户名
auto br0
iface br0 inet static
bridge_ports eth0 vbox0
address 192.168.1.1
netmask 255.255.255.0
network 192.168.1.0
bridge_maxwait 0
5.实现Virtualbox的usb功能
1)$sudo groupadd usbfs
2)$sudo gpasswd -a 你的帐户名 usbfs
3) 编辑/etc/fstab,在最后添加
none /proc/bus/usb usbfs devgid=1002,devmode=664 0 0
注意devgid=1002,1002为usbfs的GID号
4)$sudo mount -a
OK!
http://www.linuxdiyf.com/bbs/thread-82361-1-1.html