Web development by connecting hosts to virtual machines without network conditions
Sometimes, it is a headache for a host to be unable to connect to a virtual machine. Especially for web development, the following describes a simple method to achieve no network conditions, A web Development Method for connecting hosts to virtual machines.
First, make sure that there is a connection in your VM: VMware Virtual Ethernet Adapter for VMnet8. reinstall the VM if it does not exist.
1. Set the VMnet8 IP address. Click the following box and select "properties"
2. Set the IPV4 attribute and set the IP address to a static IP address.
3. Set the VM Network attribute and select the virtual machine for your development.
4. After setting, click "OK" to enable the Virtual Machine and set the Virtual Machine IP address.
My virtual machine is ubuntu's interface version. You can use the setup command to set the unbounded surface.
Select the MAC address:
Set an IPV4 static IP address. The IP network segment in this region must be consistent with the IP network segment set under your host:
OK. Now the whole task is finished, and you no longer need to worry about the development environment without a network.
Ssh evidence: