I believe you are very familiar with VMware. It can be used to achieve the effect of multiple PCs in a single PC, also known as virtual machines. The virtual machine software is both economical and safe, it is very convenient for the friend who wants to learn *nix. I am a software company's technical support engineer, the company's day-to-day operation and FreeBSD, so in the company did not play in the real environment FreeBSD hardware and network conditions, usually need to take a notebook to work, I was one of the beneficiaries of VMware. Some time ago saw the Powerplane brothers wrote "A kind of poor people use VMware play FreeBSD method", feel good. Today, I will introduce to you my experience in the use of.
Usage Environment:
1, notebook use of Windows Advanced Server in the company can access the Internet through the local area network.
2, Win2000 in the actual local area network IP address is 192.168.0.240; Gateway is 192.168.0.254;dns 210.52.149.2;
3, I am using the Vmware3,vmnet1 IP address is the 192.168.171.1;DHCP server address is 192.168.171.254;
VMNet8 IP Address is 192.168.34.1;DHCP server address is 192.168.34.254;
4, Brigde way to install the FreeBSD IP address is 192.168.0.179; Gateway is 192.168.0.254;dns 210.52.149.2;
Implementation features:
1, I in the company's LAN internal use my FreeBSD to maintain a phpbb forum;
2, FreeBSD in the company need to be able to access the Internet, FTP, ports installation software, etc.;
3, return home needs Win2000 and FreeBSD connectivity;
4, back home need to maintain phpBB forum and its database, and need to use Win2000 ie to browse;
The existing Problem 1:
A careful friend may find contradictions in the above requirements. There are 3 types of guestos and outside communication in VMware: Bridge, Nat and Host-only. If you want to FreeBSD the forum can be accessed by other machines within the company's local area network, this FreeBSD must use the bridge approach in VMware. And back home in the absence of real LAN environment Win2000 if you can connect with FreeBSD, then FreeBSD in VMware must use Host-only way. And at this point if there is no physical network with Win2000 to browse the phpBB forum that Access Bridge installation FreeBSD, we said it is impossible, VMware Bridge in the absence of local area network is impossible to communicate with the outside world, Because the bridge installation of FreeBSD and Win2000 are equivalent to the LAN two independent machines, so we said that two independent machines if there is no network cable words is not able to communicate. So how to solve it?
Workaround:
From the above requirements we can see that the focus is on how to make Win2000 access to the phpBB forum without a physical network. And at this point Win2000 can only use the host-only way to install the FreeBSD, then we follow this train of thought, to the FreeBSD of our bridge mode into the host-only way of FreeBSD. First create a new virtual machine, select a custom installation, Guest OS select FreeBSD, and an easily identifiable name for the new virtual machine;
The network connection chooses the host-only way; in the select disk interface, select an already existing disk, At this point, according to the actual path to find our previous installation of the bridge mode of FreeBSD. vmdk file, note that the general installed virtual machine files will have about FREEBSD.VMDK, FREEBSD-02.VMDK in order to name the file, where we choose FREEBSD.VMDK, according to my experimental results to choose FREEBSD-02.VMDK or other. vmdk files are not available, the system prompts "The specified file is Not a valid VMware disk. "I think maybe that's the difference between FREEBSD.VMDK and other. vmdk files; In the interface of disk mode, I choose persistent permanent change, The other two options are undoable, which asks if you want to save changes to the virtual machine file for the borrowed bridge way FreeBSD before shutting down the virtual machine, Nonpersistent to close this virtual machine before you save the changes to the virtual machine files for the borrowed Bridge way FreeBSD, click the Finish button when selected. At this point, we have a new host-only way of FreeBSD.
Effect Description:
After my repeated tests, can prove that the above method to create FreeBSD and the original bridge way of the FreeBSD in the content is exactly the same, including the original FreeBSD an important parameter--ip address. We can use it safely. ^_^