1. Required documents
- VMware Fusion Pro
- CentOS-7-x86_64-Minimal-2003.iso
Two, download
Go to the vm official website to download the vm installation package
Install after the download is complete
3. Installation
As shown below,double clickInstall the package and install
it Drag the downloaded centos here
If there is a problem, the error "cannot open /dev/vmmon" is reported when Mac VMware Fusion is opened
The solution is as follows:
- method 1:
First of all, you can go to the computer system preferences, security and privacy, general, as shown in the figure below, to see if there is "any source" marked in the figure below, if there is, just select any source, if not, open the terminal and perform method 2 operation.
- Method 2
Open a Mac terminal and enter the following command:
1.sudo rm -rf /System/Library/Extensions/vmmon.kext
Enter the administrator password according to the prompt;
2. sudo cp -pR /Applications/VMware\Fusion.app/Contents/Library/kexts/vmmon.kext /System/Library/Extensions/
3. sudo kextutil /System/Library/Extensions/vmmon.kext
If an error is reported in 3, you can try to execute the following command first:
sudo kextunload /System/Library/Extensions/vmmon.kext
if it doesn't appearFailed to unload com.vmware.kext.vmx86 - (libkern/kext) kext (kmod) start/stop routine failed, and then execute the 3 command,
if it appears, you can try to restart the machine first and then execute the method 1 step.
Wait for a while to choose the language, select English, click continue
Set time zone, keyboard, language can be default
INSTALLATION DEATINATION Select the installation location done
Select the installation option (I installed cui), then done
set the network on, done
and then look at the summary, begin installation
set the root password and create a user
to set the password, there are password policy requirements, not too simple, Must contain three of numbers, uppercase, lowercase and symbols
Create a user, check make this user administrator, done
Done
Finish configuration
when complete appears, click reboot
to restart, enter the user name and password you just set, and
start configuring static IP
settings after successful login - the network adapter
enters VMware Fusion through the Mac terminal vmnet8 directory
cd /Library/Preferences/VMware\ Fusion/vmnet8
View nat.conf content
cat nat.conf
Remember the data in the red box, you need to use it for the following configuration
View cat dhcpd.conf
cat dhcpd.conf
Note that range is the static ip address range that the virtual machine is allowed to choose, and the custom static ip address must be within this range
Log in to CentOS7 and
log in according to the user name and password you just set,
and then enter the network-scripts directory of the virtual machine
cd /etc/sysconfig/network-scripts
to find the file starting with ifcfg-en. In the above picture, mine is ifcfg-ens33
and edit the file through vi
vi ifcfg-ens33
add the following configuration
Note:
IPADDR should fill in the IP within the allowable range found above
DNS1 can be: 8.8.8.8 or 114.114.114.114
restart the network card
systemctl restart network
Check if you can access the Internet
ping www.baidu.com