Thursday, October 2, 2008

Good Household Masterbation Lubes

Helix 2 has finally arrived!


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.

But between theory and practice, as usual, there is always some difficulty, since, in order to browse the network and see the shared folders, you must configure both Linux and network connections of the virtualized system.
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

chmod 666 / dev / net / tun brctl
addbr br0 brctl

addif br0 eth0 ifconfig br0 192.168.1.100 netmask 255.255.255.0

vbox0

ifconfig br0 brctl addif vbox0 up ifconfig

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 persistent
Taken 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
bridge br0 brctl addif vbox0 - how to do it for only eth0 vbox0. configuramo a network card (which appears under Windows), an interface to Host MAC Address assigned by VirtualBox Vbox0 name and interface.






Then configure a second network card and put it in NAT mode.




Now send in running the virtual machine. We are on Windows.

We will see two tabs active network, the one with Nat, which will have an assigned IP address and allows us to surf the web and that should allow you to browse the shared folders in Linux. Let's step back. Under Linux I have installed the Samba, samba-common and the demon nmbd. After installing these packages must enable the user with the command: sudo smbpasswd-a nomeutente_che usate_per_Linux
sudo smbpasswd-e nomeutente_che usate_per_Linux

To watch other configurations of Samba, you can look at the file:
/ usr / share / apps / samba / smb.conf Then take a folder of Linux (eg / home / username / Documents) and choose the "Sharing" at this point of virtualized Windows, you should be able to browse the network and get to the My Documents folder, shared under Linux. Buna virtualization! Links:
http://guide.debianizzati.org/index.php/Condivisione_risorse_con_Samba
http://samiux.wordpress.com/2007/07/11/bridge-network-interface-on-virtualbox/

0 comments:

Post a Comment