Today's whim, install a virtual machine Ubuntu intends to learn something, encountered some problems, at the same time with the help of Baidu's power to solve, the following is the process of configuration.
I. Installation VirtualBox
Do not know from which version, the installation of virtual box without the installation of virtual network card steps, from Baidu did not find a more appropriate answer to explain why. Always think that is the implementation of the virtual machine permissions issues, resulting in the installation of the time did not go to install the Virtual network card that step, and then configure the administrator permissions to run, also reinstall several times, found not the issue of this permission. I finally found the configured portal on the main interface of VirtualBox. Manually configure a virtual network card to disallow DHCP.
After saving, you can see that the NIC is enabled in the computer's network Center.
Two. Configure the virtual machine network
I am installing the Ubuntu Server17.10 version here, and the process of installing a Linux virtual machine is no longer a sticker demo. Select the virtual machine you want to set, click on the VirtualBox Home page Settings button, go to the following Settings page, select the virtual network card we configured just now, connect to select the host only (here I mainly want to configure the static IP, other ways on the network also has the relevant configuration method, no longer stated).
Three. Configure Ubuntu server static IP
1. Start Ubuntu, after configuring the virtual machine NIC, the boot page will have the following start blocking prompt before the static IP is configured. Online I went to Baidu, also did not find why there will be this hint, translation to see is a lack of network configuration of a check. About 1 minutes or so, this check will go into the login page after a timeout.
2. Enable the network settings, the virtual machine runs the page, ensure that the network is enabled state.
3. Configure static IP
To view the available network cards, my local is enp0s3.
Ubuntu server 17.10 static IP settings on the network said the pit is indeed a lot of people stepped on, according to the configuration of Ubuntu, the previous method configuration is not, after all, this year Ubuntu update very fast, the amount of change is also a lot, words do not say, direct:
sudo vi/etc/netplan/01-netcfg.yaml
Configure the following command to allow the configuration to take effect, the static IP is configured
Netplan Apply
Three. Network Connectivity test
Virtual machine ping My Computer ping does not work, but my Computer ping the virtual machine can ping, at this time WINDOWS10 firewall needs to open icmpv4-in this rule. Here I have opened the following:
Welcome to Reprint Learning and "lazy", shoot bricks.
Ubuntu Server17.10 Configuring static IP