Although many people will use the VMware Workstation to build the virtual environment, but still found that there are many people do not understand the use of skills, especially the network that a piece is not at all, so to get a complete virtual machine using method skills, hope to help people in need.
Build virtual machines with VMware Workstation = understood to be a process of purchasing a computer from your computer city
Install the virtual machine initialization interface:
How to use virtual machines: Create virtual machines, manage virtual machines (snapshots (very important), clones).
First step: Create a virtual machine
Click--Create a new virtual machine--Customize--
Select the operating system (Windows,linux), in particular: you choose to install the operating system must be
Your image file must be identical. Otherwise it may be an error, if it is a 32-bit operating system, do not point
64-bit, if the image is a 64-bit operating system, be sure to select 64 bits, if the number of bits, 64 bit will be
X64.
The following are examples of Windows7 32-bit operating systems and Linux 64-bit operations, respectively
Case one: Installing a Windows 732-bit operating system
Remember semantics, change virtual machine name, location
Choose memory size, generally default on the line, special case (the server needs to run a lot of program services, it needs to increase the memory, increase the memory directly up and down on the line)
Network card type selection (heavy weight), related to whether you will build the key to simulate an environment
The NIC type is divided into
1) Bridging: Will occupy you a real IP address, with your real computer network card in the same network segment, you can Sisu network, the corresponding is your local connection (that is, the real computer network card)
2) Nat: Also can Sisu network, will not occupy your real IP, the corresponding network card VM8
3) only host (main), can not Sisu network, the corresponding network card VM1
If you are not in the work scene, do not choose the bridge, the direct default NAT can be
In the actual work such as you this computer is ERP, file server, such as this situation will be bridged
Select the disk size, usually the default is OK
Click Finish, a virtual machine is created, the equivalent of you go to the computer shop to buy the computer back, buy back the hardware
Next install the operating system, the premise of installation operation: First there is an image file, optical drive
Click on the virtual machine right---set--the image of the local disk is loaded into the optical drive---OK
After loading the mirrored disc, install the operating system, and you'll be ready to start.
So far, the virtual machine installation is complete.
---------------------------------End---------------------------------------------------------
Managing Virtual Machines (snapshot (very important), cloning)
How do I open an existing virtual machine file?
FILE--open--Choose where your virtual machine files are located
Snapshot---Save the existing state and create a restore point.
Snapshot-Create a snapshot-click on the snapshot name (semantic is very important)
Recovering a Snapshot
--Snapshot--Recover snapshot--Select the snapshot you want to recover
Cloning--important for building a test environment--mainly saves system resources and time
Must be in a shutdown or pending state to operate
Right--management--cloning
In general, is to create a connection clone, so that the most resource-saving, if the connection is cloned, you must source files (the original virtual machine location cannot be moved, can also be deleted)
Cloning it is, in effect, recreating an identical virtual machine.
Note semantics, fill in the virtual machine name and the virtual machine file location
Click Done, then clone (created) another virtual machine
Important event: Because the cloned virtual machine is exactly the same, that is, the SID that represents it. IP address and so on everything is the same, then there will be two problems
1) in a LAN is not able to have two identical IP
2) It is not possible to have the same hostname (for Windows) within a LAN
3) within a LAN MAC address must be the only one in the world, Change Mac (under Linux)
4) It is not possible to have the same SID number within a LAN
Solution:
As long as it is a cloned operating system, the first step is to remove the SID number, reset the IP address, if it is a Windows system, remove the SID number
2008R2 comes with Sysperp program, unlike 2003 also need to go to install disc to find.
Path is C:\Windows \system32\sysprep\sysprep.exe
3) when found, directly double-click Run. Tick the generic entry and start.
During the process of running the program.
The program ends, automatically restarts, and the user information is reconfigured during the restart process.
If it's Linux, remove the MAC, reset the IP address
Restart Network Service restart
The clone machine needs to modify the UUID
Vi/etc/sysconfig/network-scripts/ifcfg-eth0
1 Delete MAC address lines
Rm-rf/etc/udev/rules.d/70-persistent-net.rules
2 removing the NIC and MAC address bindings file
3 Rebooting the System init 6
Virtual machine Use skill three: only for Windows to use, install Vmtool software, let real machine and virtual machine data can copy each other, move the mouse when convenient
To install the Vmtool method:
Right-click---install Vmtool (the premise must be installed on the CD-ROM, otherwise it must be connected to the case), after the installation and restart the computer will take effect, and vmtool features, even if you change a user, the first time you log on must be unregistered restart will be effective
The interface for mounting the closing disk is as follows:
How to use VMware Workstation