often talk about creating a virtual machine under Linux, to run another operating system
"virtualized "This system is often represented by Windows.
The concept is simple, you create a virtual machine, with its own virtual hard drive and install Windows on it as if it were a normal installation, clearly, the machine virtual must activate the CD-Rom, so you can insert your Windows CD. Once you install the operating system from Microsoft, the problem remains of how to do communicate with the host system Linux to browse the shared directories for example.
Here I describe my experience with Virtualbox (
http://www.virtualbox.org/
) if anyone has anything to add or correct feel free to write your comments .... because this is a typical result Trial and error! First you need to create a shell like this:
tunctl-t-u vbox0 nbs
addbr br0 brctl
addif br0 eth0 ifconfig br0 192.168.1.100 netmask 255.255.255.0
vbox0
Or put these commands in the file / etc / network / interfaces
If you decide to create the file, the name, for example, vbox.sh. In this example I used the 192.168.1.x address, note that my network card in Linux is configured with IP address 192.168.0.222 and gateway 192.168.0.1, then the bridge that is being created by this script belongs to a subset different. What does the script:
tunctl - creates and manages interface TUN / TAP persistentTaken from Wikipedia:
"into computer networks, TUN and TAP are drivers that allow the creation of virtual network devices. Compared to common peripherals ( eg. eth0) which are controlled directly by the network cards, packets sent to or from devices TUN / TAP will be sent to or from software programs. TUN is able to simulate a network device point-to-point and works with type of IP packets while TAP is capable of simulating an Ethernet device and logically using Ethernet frames. " chmod 666 / dev / net / tun - please set the right to read and write to all users on the virtual device addbr br0 brctl - create a virtual bridge. The bridge is a network device that can also sort the packets between different subnets.
addif br0 eth0 brctl - makes the eth0 port of the bridge, in fact arise in order to sort the packets from eth0 ifconfig br0 192.168.1.100 netmask 255.255.255.0- Configures the IP and netmask of
After installing these packages must enable the user with the command: sudo smbpasswd-a
0 comments:
Post a Comment