1. Install the virtual machine
1.1 Open VNware, right click to run as management
Click the file in the upper left corner, and then create a new virtual machine. Typical recommended installation is recommended.
Click Next.
1.2 Install the virtual machine operating system
Choose to install later, usually after installing the virtual machine and then mounting the image.
Click Next.
1.3 Select system and version
Choose Linux operating system, Ubuntu 64 bit.
Click Next.
1.4 Naming the virtual machine and choosing a location
Name the virtual machine and create a file to store the virtual machine.
Click Next.
1.5 Set Disk Size
Choose the disk size and choose according to the performance of the host. Here, 20g is selected by default.
Click Next.
1.6 Improve the hardware
Click on custom hardware.
1.6.1 Processor
The processor cores are selected according to the performance of the host machine. Here, the total number of processor cores is 2, and all virtualization engines are selected.
1.6.2 New CD / DVD
Select the device status to connect at startup.
Mount the image file.
1.6.3 Firmware Type
Select the current virtual machine, right-click and choose Settings.
Select the option,
and the installation of this virtual machine is complete, you can install Ubuntu.
2. Install Ubuntu Desktop Edition
2.1 Turn on the virtual machine
Click to turn on the virtual machine.
Wait for the reading to be completed.
2.2 Choose language
Choose English as the language.
2.3 Select keyboard
The American keyboard is selected by default, and click Continue.
2.4 Installation method
Minimize the installation by default, click Continue.
2.5 Installation type
Ubuntu needs to be installed by default, click Install Now.
2.6 Rewrite disk
Click Continue.
2.7 Select time zone
Select Shanghai and click Continue.
2.8 Set common user password
Set the normal user name to bass and the password to 123 and
click Continue.
2.9 Installing Ubuntu
Wait for the installation to complete.
2.10 Restart the system
2.11 Enter the system
Press the Enter key.
Click on the user and enter the password 123.
2.12 Welcome screen
Click next.
Click next.
Click next.
Click done.
At this point, the Ubuntu installation is complete.
Since the desktop keeps popping out of no network, the method of inputting commands is used to configure the network below.
3. Network configuration
3.1 Edit virtual network editor
Select VMnet8 and change the subnet IP to the specific requirements of the problem. Here is 172.25.0.0 as an example.
Cancel the use of the local DHCP service to assign IP addresses to virtual machines.
Then click, NAT settings, write gateway.
The gateway uses 172.25.0.254 as an example.
3.2 Open a terminal window
hot key. trl+Alt+T.
3.3 Set root password, switch root user
sudo passwd root
su - root
3.4 Edit the file of network configuration
3.4.1 View the name of the network card and the dns of the host.
Enter the command in the prompt window, ipconfig/all
ip a The
network cable connection looks at the dns of the Ethernet, and the wifi connection looks at the dns of the wireless local area.
3.4.2 Enter file
3.4.3 Editing files
ens33 is the name of the network card.
dhcp4:no means that automatic IP address acquisition is not used.
Write the above ip address as 172.25.0.20.
172.25.0.20/20 means that the IP address is 172.25.0.20. The subnet mask is 255.255.255.0.
The gateway is 172.25.0.254.
dns is 192.168.43.1
3.4.4 Restart the network
netplan apply
3.4.5 Check whether it is successful
ping 172.25.0.20 the IP address of this machine
ping 172.25.0.254 gateway
ping qq.com extranet
Note: ctrl+c. Terminate the ping network.
At this point, the Ubuntu network configuration is successful.