How to use shell to log on to a VM in a single-host environment
Source: Internet
Author: User
How to use shell to log on to the VM-Linux Enterprise Application-Linux server application in a standalone environment is described below. Due to learning needs, I installed a Linux virtual machine in my dormitory computer. However, as there is no network environment in the dormitory, I found that I could not use Putty to log on to my VM. Each time I can only operate on a virtual machine, I often need to switch in/out, and it is inconvenient to transfer files to the virtual machine without shell. So I decided to find a solution. After exploration, I succeeded.
First, when the system of the virtual machine is disabled, modify the NIC type of the virtual machine to Host-only, and my previous type to Bridged. Start the Linux system and you will find a red cross on the NIC icon at the bottom right of the Virtual Machine. Because the Windows host is not connected to the network, the virtual machine shows no connection status. Click the icon and select connected. The Red Cross disappears. After the system is started, run the ifconfig command to check whether the system has assigned an address for your Nic. If not, restart the system.
The IP address assigned to me by the system is 192.168.218.128, which is used to log on with Putty. Success.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.