内容摘要:Ubuntu 7.04下Virtualbox安装及网络桥接
sudo apt-get install uml-utilities
sudo apt-get install bridge-utils
In order for VirtualBox to be able to access the interface, the user who will be running the virtual machine must be added to the group uml-net, for example with the following command (replace vboxuser with your user name):
sudo gpasswd -a vboxuser uml-net
You may have to log out and log in again for the change to take effect.
2. To describe the TAP interface to your Debian or Ubuntu system, add an entry to the file /etc/network/interfaces. This names the the interface and must also specify the user who will be running the virtual machine using the interface. The following sample entry creates the interface tap0 for the user vboxuser (again, replace with your user name):
auto tap0
iface tap0 inet manual
up ifconfig $IFACE 0.0.0.0 up
down ifconfig $IFACE down
tunctl_user vboxuser
You will probably want to change the entry based on your networking needs. On the host, you will find more documentation in these files:
a) /usr/share/doc/uml-utilities/README.Debian and
b) /usr/share/doc/ifupdown/examples/network-interfaces.gz.
3. The first time it is used, activate the new interface and the bridge with these two commands:
sudo /sbin/ifup tap0
sudo /sbin/ifup br0
This is only needed once, however; the next time the host is restarted, the interface and the bridge should be activated automatically.
责编:豆豆技术应用