Recently, centos is more concise than Ubuntu, and some of them fall in love with centos.
1. Prepare a centos installation Image File
Official Website: http://www.centos.org/download/
Three official versions are available: DVD, everything, and minimal,
And I installed the mini version, CentOS-7.0-1406-x86_64-Minimal.iso
2. Install vm11
1) Click create new Vm and select "typical (recommended )"
2) Select "Install the CD image file" and select the file path prepared above
3). Set the user name and password (remember that this is the default root password after the program is installed)
4) Select the installation location. Generally, 20 GB space is enough and multiple files are split and saved.
5). The selection is complete. Just wait for the virtual machine to be installed.
Note:
During installation, I encountered the problem that "binary conversion is not compatible with the long mode on this platform, and the installation was interrupted.
At this time, you need to restart and enter bois (I press the F2 key at startup), and find intel Virtual Technology in Bois.
Set it to enable, and enable the VM again.
3. Configure the network
Input: ip addr. The network is not connected.
View "Virtual Machine-> Settings-> network adapter" and select "nat mode" as the connection mode"
Terminal open "/etc/sysconfig/network-script/ifcfg-eno16777736"
Modify onboot = Yes
Enter "service network restart" to restart the network service, check the IP address again, and Ping
4. Update and install software
Yum install kernel-devel
Yum-y update
Yum install Vim // powerful VI Editor
Yum install wget // a tool that automatically downloads files from the network
Yum install GCC // a set of compilers developed by the GNU project that support multiple programming languages
Yum install CPP
Yum install gcc-C ++
Yum install make // makefile
Yum install GDB // debugging tool
Yum inatall Perl // install the required software in mvwaretools
Yum install net-tools // ifconfig command, mvwarwaretools also needs to use
Yum groupinstall "development tools"
Note:
Check whether a software is installed locally
Input: rpm-Qa xxx
Return: version number or none
5. Modify the default resolution
View: http://www.centoscn.com/CentOS/config/2014/1031/4029.html
Modify the file "/boot/grub2/grub. cfg" and find
Linux16/vmlinuz-3.10.0-123.el7.x86_64 root = UUID = 881ac4e6-4a55-47b1-b864-555de7051763 Ro Rd. LVM. lv = centos/swap vconsole. font = latarcyrheb-sun16 Rd. LVM. lv = centos/root crashkernel = auto vconsole. keymap = US rhgb quiet lang = en_US.UTF-8
Add VGA = 0x ??? (Question mark indicates the resolution code.) paste a corresponding table here to facilitate viewing.
The modification is as follows:
Modify the running level and open "/etc/inittab"
Add
# Ln-SF/lib/systemd/system/runlevel ?. Target/etc/systemd/system/default.tar get
After saving it, restart it!
6. Install vmwaretools
1) Click "Virtual Machine-> install VMware Tools" to load the image
Mkdir/mnt/CDROM
Mount/dev/CDROM/mnt/CDROM # mount the device
CD/mnt/CDROM
CP vmware-tools-xxxxxx.tar.gz/root
Umount/mnt/CDROM # disable the device
CD/root
Tar zxvf vmware-tools-xxxxxx.tar.gz # Extract files
2) install vmware-Tools
CD vmware-tools-distrib # enter the file directory
../Vmware-install.pl # Installation
7. Configure Shared Folders
Click "set" to add a shared folder.
Under the terminal "/mnt/HGFS/", you can see the folder you just added.
Now you can seamlessly connect to the Windows and Linux worlds.
Note:
After updating the system, I could not find the shared folder. Then I found that I needed to reconfigure tools.
Run/usr/bin/vmware-config-tools.pl.
8. helloworld
Let's compile and run the program.
Compile a helloworl original file in windows and compile and run it in the virtual machine.
Reprinted Please note:Reprinted from isat [http://www.cnblogs.com/jlily/]
Install and configure vm11 + centos7mini