1. Environment and related software
1.1 system win10 system centos72 Home Edition, using software Xshell, vmware15, virtual machine.
2. realization
Since 2.1 is not convenient, remote management of the local terminal using the virtual machine server operating in a virtual machine. Such driving can be managed in a virtual machine in XShell
2.2 using commands such as ifconfig or ip a view ip virtual machine,
[linoxwong@CentOS-7-64 ~]$ ifconfig ens33: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 inet 192.168.235.129 netmask 255.255.255.0 broadcast 192.168.235.255 inet6 fe80::7739:9602:d64b:bc45 prefixlen 64 scopeid 0x20<link> ether 00:0c:29:9a:63:9b txqueuelen 1000 (Ethernet) RX packets 207271 bytes 307678779 (293.4 MiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 89761 bytes 5412462 (5.1 MiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536 inet 127.0.0.1 netmask 255.0.0.0 inet6 ::1 prefixlen 128 scopeid 0x10<host> loop txqueuelen 1000 (Local Loopback) RX packets 48 bytes 4080 (3.9 KiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 48 bytes 4080 (3.9 KiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 virbr0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500 inet 192.168.122.1 netmask 255.255.255.0 broadcast 192.168.122.255 ether 52:54:00:ee:0a:c6 txqueuelen 1000 (Ethernet) RX packets 0 bytes 0 (0.0 B) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 0 bytes 0 (0.0 B) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
As the code, I use the ifconfig command to get the three network information ens33: lo: virbr0: see your system with a network I use it to find ip ens33 in ens33
After 2.3 got ip, I will be able to xshell are connected, as the new session, the host write just get ip
After 2.4 point to determine, once the user input, after a password to log on, enter a user forgets a password with shots, and following are logged into the picture
3. Summary
After logging in using the terminal without having to operate in a virtual machine, so long as the virtual machine hanging on it. very convenient.