Mac installation VM virtual machine

1. Required documents

  1. VMware Fusion Pro
  2. CentOS-7-x86_64-Minimal-2003.iso

Two, download

Go to the vm official website to download the vm installation package

insert image description here

Install after the download is complete

3. Installation

As shown below,double clickInstall the package and install
insert image description here

it Drag the downloaded centos here
insert image description here
insert image description here
insert image description here
insert image description here
insert image description here
insert image description 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.

insert image description here

  • 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.

insert image description here
Wait for a while to choose the language, select English, click continue
insert image description here

insert image description hereSet time zone, keyboard, language can be default

insert image description here
INSTALLATION DEATINATION Select the installation location done
insert image description here
Select the installation option (I installed cui), then done
insert image description here
set the network on, done
insert image description here
and then look at the summary, begin installation insert image description here
set the root password and create a user
insert image description here
to set the password, there are password policy requirements, not too simple, Must contain three of numbers, uppercase, lowercase and symbols
insert image description here

Create a user, check make this user administrator, done
insert image description here
insert image description here
Done
Finish configuration
insert image description here
when complete appears, click reboot
insert image description here
to restart, enter the user name and password you just set, and
insert image description here
start configuring static IP
insert image description here
insert image description here
settings after successful login - the network adapter
insert image description here
insert image description here
enters VMware Fusion through the Mac terminal vmnet8 directory
cd /Library/Preferences/VMware\ Fusion/vmnet8
insert image description here
View nat.conf content
cat nat.conf
Remember the data in the red box, you need to use it for the following configuration
insert image description here
View cat dhcpd.conf
cat dhcpd.conf
insert image description here
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
insert image description here
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
insert image description here
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
insert image description here
restart the network card

systemctl restart network

Check if you can access the Internet

ping www.baidu.com

Guess you like

Origin blog.csdn.net/weixin_41907283/article/details/129322015