Installation and use virtual machines

The establishment of virtual machine software download and installation

Create a new virtual machine

Virtual machine configuration

A, VMware Workstation installation and configuration

VMware Workstation (Chinese name "Rui Wei workstation") is a desktop virtual machine software, users can run different operating systems (the most common is linux, centOS, abuntu and windows system) simultaneously on a single desktop, development, test, deploy new applications the best solution. VMware Workstation can simulate a complete network environment on a physical machine.

1, install VMware Workstation ( software version according to their own computer to download, I was win10,64 bit )

(1) download VMware Workstation, Download: HTTP: //www.xp510.com/xiazai/ossoft/OtherSystems/13741.html
(2) After the download is complete extract directly open the installation.
The following screen appears after selecting I accept the terms of the license agreement, then click Next
Here Insert Picture Description
(3) then the following screen appears, select the file installation path, the path may not be the default c drive path, user-created file folder other than the installation disk c and then select Next.
Here Insert Picture Description
(4) in the user experience settings, it is recommended the product updates to help improve the removal of two options, or automatically detect each will affect the computer speed. And then click Next.
Here Insert Picture Description
(5) Finally, install shortcuts, these two are the default shortcuts we checked, we seek to facilitate the program and run the program, and then click Next.
Here Insert Picture Description
(6) are now virtual machine installation is complete, enter the license key virtual machine to complete the installation.
Note that without buying, direct election of the second term, and then enter the key: UY758-0RXEQ-M81WP-8ZM7Z-Y3HDA ( If this does not work well on their own Baidu a).
Here Insert Picture Description

2, create the base virtual machine settings

First you need to download a virtual machine image file, the official website to download, https: //www.centos.org/, you can download Baidu cloud files
link: https: //pan.baidu.com/s/16gjyb3QqShoUkW5WO-sPvA
extract code: wcu9
download a position in the computer yourself, remember where the back to use. I usually build a separate folder on the D drive, easy to find. The image file regardless of how many virtual machines to establish, you can just download a.
(1) Open vmware workstations, file -> new virtual machine, the following screen, select "Custom (Advanced)" option appears, continue to the next step:
Here Insert Picture Description
(2) The following figure then appears, do not change anything here, click Next .
Here Insert Picture Description
(3) In the following dialogue appears, select "Install OS later" option, continue to the next step:
Here Insert Picture Description
(4) in the following interface, the client operating system selection "linux", version select "CentOS 64 Bits", in addition , you can also choose the version of Red Hat 64-bit, here is the number of bits required to choose according to your own computer. Next to continue: (because I need the linux virtual system you want to use other systems here to select the corresponding.)
Here Insert Picture Description
(5) following dialogue appears, enter a custom virtual machine name, virtual machine name, it is best to do it too literally, here is the "CentOS7_CDH_bd06"; specify the virtual machine location, here is the "D: \ virtual machines \ CentOS7_CDH_bd06 ", and then continue to the next step here :( address and name I generally do not change, if afraid that they can not remember where you can save the screenshot lower position)
Here Insert Picture Description
(6) appears at FIG interface, select number of processors and the number of each processor core, there are 2 and 4, (I do not know why the election may be 1, 2, but is generally selected from 2,4 computer memory can all be supported) next to continue:
Here Insert Picture Description
(7) the following dialogue appears, specify the virtual machine memory for size, here I chose 2048MB, next to continue:
Here Insert Picture Description
(8) appears as shown below interface, select the network connection type.
Supplementary note:
There are three types of network connections
<1> bridging
this case corresponds to a separate virtual machine on a computer network, with the same host, has a separate IP address.
<2> NAT connector
case by other virtual machines on the host workstation way access network (including the Internet), a virtual machine can not access other workstations.
<3> only the host
at this time only the virtual machine and the virtual machine host are interconnected with other workstations on the network can not access.
Most people recommend a bridge, but in the establishment, I chose the bridge, the virtual machine can not use yum, could not find a reason, after seeing yum say that because of incomplete expansion pack due, I did not go to trial; also there is because the card does not work. But then I found that if re-establish the virtual machine where the NAT connection, yum can be used normally, so here suggest that you select NAT connection. PS: Here did not choose to be all right, finished behind the establishment of the virtual machine can be changed.
Here Insert Picture Description
(9) The default selection recommended here do not like change, click Next to continue:
Here Insert Picture Description
(10) Ibid, click Next:
Here Insert Picture Description
(11) Select Create a new virtual disk (the default), click Next:
Here Insert Picture Description
(12) appears as follows interface, enter the virtual machine disk size, 20g general enough to use the default, recommended setting is somewhat larger, here set the virtual machine disk size is 80G, next to continue:
Here Insert Picture Description
(13) default like, you can also set up their own. Click Next to continue:
Here Insert Picture Description
(14) Click "Finish" to complete virtual machine creation, as shown:
Here Insert Picture Description
(15) after exit the installation wizard, we can see the virtual machine you just created in the left column of the virtual machine management interface, right-hand column you can see the virtual machine configuration details, as :( If you are creating a new virtual machine will be displayed after the above steps 14 steps, all created on the left side of the virtual machine, open the software can choose which one to run)
Here Insert Picture Description
####################### ## I am the dividing line #########################


Below is the virtual machine configuration issues


(1) Open VMware Workstation, the left select the virtual machine you want to configure, that is, we have just established that the right to select Edit virtual machine settings to begin configuration.
Here Insert Picture Description
(2) Click on "Network adapters", select the "NAT Mode", then do not point to determine, to see the next step.
PS: this is said before, if in front of the other to establish a network of selected process, here is can be changed again.
Here Insert Picture Description
While the figure need to specify "CD / DVD (IDE)" installation image on the left select "CD / DVD / IDE", on the right select "Use ISO image file" and then browse to find in front of our downloadable virtual machine image file . The results below:
Here Insert Picture Description
remove the "USB Controller", "sound" and "printer", that they were selected, below select Remove. Then click OK, as shown below:
Here Insert Picture Description
(3) Click to open the virtual machine enters CentOS7 operating system installation process.
Here Insert Picture Description
(4) virtual machine console appears interface, the mouse to select Install CentOS liunx 7, press the Enter key to continue.
Here Insert Picture Description
(5) Continue prompted click the Enter key
Here Insert Picture Description
(6) as the default selection Dictionary Dictionary English interface, click Continue Continue
Here Insert Picture Description
(7) 1.4.22 CentOS7 installation configuration main interface shown, this figure is a good distribution of the results, when just entering this interface there are two most below will appear yellow warning ⚠.
Here Insert Picture Description
<1> Localization and does not require any software portion is provided, which should be noted that sofrware selection option, where the current default value (i.e., minimizing installation, which system does not include a graphical interface linux) installed, the other components until later use by yum install.
<2> Click "installation destination", enter the following interface, select the 80g hard drive, scroll down to the end, select "i will configure partitioning", ie custom disk partition, and finally click on the upper left corner done disk partition plan, as
Here Insert Picture Description
< 3> then there will be a disk partitioning screen, as shown below, click on the + sign on the bottom corner of the most disk partitioning, divided space are:
1) / the Boot: 1024M, create a standard partition format.
2) swap: 4096M, create a standard partition format.
3) /: All the remaining space, the volume group created using lvm format. (That is, after the selected directory, not below the amount of space to fill, press "ENTER" button)
after the planning interface is as follows, click done to complete the zoning plan, the pop-up dialog box, click "accept changs", as shown in
Here Insert Picture Description
Here Insert Picture Description
<4> completed after the disk layout, click below the red box section, modify the operating system host name, modify here db06, (the default host name localhost.localdomain), can also be changed to another, see themselves here. Then click done to complete the hostname configuration, return to the main configuration interface:
Here Insert Picture Description
(8) In the following figure, in fact, from the beginning step in configuring the lower right corner we can find "begin installtion" button has moved from the original gray to blue, indicating that already can install the operating system to work, click "begin installtion" operating system installation process.
Here Insert Picture Description
(9) disposed in the lower diagram of a user needs to do is change the root password. (So each boot password must be entered using a virtual machine, be sure to remember, forget I do not know Zaban, only to re-build a virtual machine instead.) Click the "root password", set a password, if the password security It is not high. You may need to click OK twice before they can. Password I have here is "my birthday + name begins with the letter" a moderate level. We can find user interface before setting the red warning disappears when the root password has been set back to the installation screen again.
Here Insert Picture Description
Here Insert Picture Description
Here Insert Picture Description
(10) In the following figure, the operating system installation has been completed, click restart the OS reboot.
Here Insert Picture Description
(11) logged in as root (ie root / password you set), as
PS: here to enter root, press enter, then enter the password, enter the password process is can not see the password, enter the complete press enter key.
Here Insert Picture Description
(12) change the IP address (vi / etc / sysconfig / network -scripts / ifcfg-ens32), after manually enter this code, click enter, the following will second FIG.
Here Insert Picture Description
Here Insert Picture Description
Here to enter a "i", that enter edit mode, this time, the interface will be the lowest end of --INSER-- logo appears, that has entered the edit mode.
The next place after drawing the winning red to make changes, this interface can only use the arrow keys, you can not use the mouse.
Namely: BOOTPROTO = DTCP, is the default value does not change, I figure refers to the static dynamic root, then the problem is always present in use, so here chose not change the default DHCP better.
ONBOOT = yes, indicate on boot.
Here Insert Picture Description
After the change, press the "esc" key, enter: wq enter, save changes and exit to complete the configuration file editing.
(13) or input systemctl restart network service network restart command to restart the card, modified to take effect just ip address; reboot may enter the test network connectivity ping www.baidu.com, FIG
Here Insert Picture Description
restart occurs [OK] indicates a successful restart.
After entering ping www.baidu.com, if one has a pop-up data, and each line: ttl =, time =, then the network is China Unicom.
Well, so far, CentOS7 operating system installed successfully.

Other issues

If the virtual machine networks, you can try the following error detection methods:
(1) in VMware Workstation Select "Edit" option, select "Virtual Network Editor."
Here Insert Picture Description
If you create a virtual machine correctly, it appears Interface:
There are three networks: Custom (bridge), NAT, only the host, China Unicom case should be the same with the figure.
Click the lower right corner of the "Change Settings" If you open the software, select the administrator permission to open, this place would not have such an option.
Here Insert Picture Description
The following screen appears after the open, you can see the original "custom" to "bridge mode", and gray below the original part of the changes to be changed.
Here Insert Picture Description
Here we first select the bridge mode, the following information in VMnetz, the same bridge mode is selected, the default is bridged to the general is right, if we do not worry, you can check their computer in the end is what the network.
Query methods (forget)
again, we select NAT mode, VMnet information, we choose the second, and you can check the following two.
Here Insert Picture Description
(2) If you modify the above information, the network is blocked, it can re-enter the above steps (12) to see whether the file is modified successfully.
(3) If you are correct, then the network is still different, you can rebuild a virtual machine, it may be in the process of establishing what step wrong.

Purely personal note, there is an error welcome criticism.

Released two original articles · won praise 1 · views 70

Guess you like

Origin blog.csdn.net/ashiners/article/details/105149635