Installing Virtualbox Virtual XP on Ubuntu System

  
1. Install virtual box You can use the new Lied search virtual box installation, or you can use the command line apt-get to install. 2. Add users to the vboxusers user group (usually ubuntu login users) System--User Management--Users and groups add users to the vboxusers user group, or you can use sudo adduser youruser vboxusers to add. 3. Install xp system from the new boot system (main), open the virtual box to install the operating system 4. Virtual machine bridge The implementation first installs two pieces of software: sudo apt-get install uml-utilities bridge-utils (the tool uml-utilities for creating virtual network devices (TAP interfaces) and the bridge tool for bridge-utils) in order to enable your virtual machine to access the network interface You must add the username of the user running the virtual host (usually your ubuntu login username) to the uml-net user group (replace your "vboxuser" with your username): sudo gpasswd -a vboxuser uml -net 5. The operating system describes the virtual network device you want to add, edit /etc/network/interfaces, below Out of my:
# 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 (this changed to your username) auto Br0 iface br0 inet static address your ip netmask 255.255.255.0 network your ip, the last group is changed to 0 broadcast your ip, the last group is changed to 255 gateway your gateway ip (if you use dhcp, above 6 Please change it to iface br0 inet dhcp ) bridge_ports all tap06. Activate the virtual network interface and network bridge just created: sudo /sbin/ifup tap0 sudo /sbin/ifup br0 This step only needs to be done once, the next time the host restarts, This interface and bridge will be activated automatically. 7. Let virtualbox use this virtual network interface. Start virtualbox, select the virtual machine to use the virtual network interface tap0 just created on the main interface, click "Settings", select "Network" in the pop-up window, select one of the network cards (usually "Network Adapter 0"), select "Enable network adapter", select "Host Interface" after "Connect to", select "Access network cable", and then fill in the name of the virtual network interface just created "tap0" in "Host network interface name", and confirm. 8. Configure the virtual machine NIC address. In fact, it is very simple, the same configuration as the host br0, but ip can not be repeated. The subnet mask, gateway, and DNS are unchanged, the same as the setting of br0. Go to this virtual machine to get online.

Copyright © Windows knowledge All Rights Reserved