Tutorial environment: host operating system: UbuntuLinux9.04DesktopI386 Virtual Machine Software: Virtualbox2.1.4OSE (which can be automatically installed from ubuntutweak) Virtual Operating System: CentOSLinux5.3I386 objective: to enable bridging between Centos and Ubuntu, in a LAN. Note: the latest version of Virtualbox 3.0.4 has been tested.
Lab environment:
Host operating system: Ubuntu Linux 9.04 Desktop I386
Virtual Machine Software: Virtualbox 2.1.4 OSE version (can be automatically installed from ubuntu tweak)
Virtual Operating System: CentOS Linux 5.3 I386
Objective: To bridge Centos and Ubuntu in a LAN.
Note: after testing, the latest version of Virtualbox 3.0.4 and the built-in bridging function cannot achieve the above purpose. Therefore, only version 2.1.4 OSE can be used currently. I don't know whether it is my own RPWT or the software itself.
1. install necessary software packages
First install uml-utilities. This tool contains a tool for creating virtual network devices (so-called "TAP interfaces"), and then bridge-utils, which can be installed together, there is a prompt for starting. If it is successful, OK is displayed. Command:
Sudo apt-get install uml-utilities bridge-utils
2. In order for your virtual machine to be able to access network interfaces, you must add the user name http://ubuntuone.cn/(usually your ubuntu Login User Name) Running the virtual machine to the uml-net user group. For example, the ubuntu user name is solar and the command is written as follows:
Sudo gpasswd-a solar uml-net