Article Title: Virtualbox virtual XP installation in Ubuntu. Linux is a technology channel of the IT lab in China. Including desktop applications, Linux system management, kernel research, embedded systems, open source, and other basic categories 1. Install virtual box
You can search for virtual box installation by cutting-edge or use the command line apt-get for installation.
2. Add a user to the vboxusers user group (usually a user logging on to ubuntu)
System-user management-add users and groups to vboxusers user groups. You can also use sudo adduser youruser vboxusers to add users.
3. Install the XP System
Start the system (master) and start virtual box to install the operating system.
4. Implementation of Virtual Machine bridging
First install two software: sudo apt-get install uml-utilities bridge-utils (the tool for creating a virtual network device (TAP interfaces) uml-utilities and bridge-utils)
To enable your VM to access network interfaces, you must set the user name (usually your ubuntu Login User name) of the user running the VM) add to the uml-net user group (replace "vboxuser" with your user name "):
Sudo gpasswd-a vboxuser uml-net
5. The operating system describes the virtual network device you want to add, edit/etc/network/interfaces, and give me the following:
# This file describes the network interfaces available on your system # And how to activate them. For more information, see interfaces (5 ). # The loopback network interface Auto lo Iface lo inet loopback # The primary network interface Allow-hotplug eth0 Iface eth0 inet manual Up ifconfig eth0 0.0.0.0 promisc up Auto eth0 Auto tap0 Iface tap0 inet manual Up ifconfig $ IFACE 0.0.0.0 up Down ifconfig $ IFACE down Tunctl_user well (change this to your user name) Auto br0 Iface br0 inet static Address your ip address Netmask 255.255.255.0 Network: your ip address. The last group is changed to 0. Broadcast: Change your ip address in the last group to 255. Gateway: the ip address of your gateway. (If you use dhcp, change the above six lines to iface br0 inet dhcp) Bridge_ports all tap0 |
6. Activate the created virtual network interface and Network Bridge:
Sudo/sbin/ifup tap0
Sudo/sbin/ifup br0
This step only needs to be performed once. The interface and bridge will be automatically activated the next time the host restarts.
7. Let virtualbox use this virtual network interface.
Start virtualbox, select the virtual machine that you want to use the tap0 virtual network interface just created on the main interface, click "set", and select "network" in the pop-up window ", select one network adapter (usually "network adapter 0"), select "enable network adapter", select "Host Interface" after "Connect", and select "access network cable ", in the "host network interface name", enter the name of the created virtual network interface "tap0". OK.
8. Configure the Virtual Machine NIC address. In fact, it is very simple. It is the same as the br0 configuration of the host, but the ip address can be changed to a non-repeated one. The subnet mask, gateway, and DNS remain unchanged, just like the br0 settings.
This virtual machine can access the Internet.