Use xshell or securecrt to remotely set the network option of the system virtual machine installed in the virtual machine, and select Host-onlyAdapter to set the ip address of the virtualbox virtual network card.
Remote Installation to the system installed in the virtual machine through xshell or secure crt
Set the virtual machine network option and select Host-only Adapter.
Set local network
Set the ip address of the virtualbox Virtual NIC
4. specify the ip address in centos
5. edit the ip address of centos,It must be in the same network segment as the virtualbox Virtual NIC ip address in windows.
6. ping the virtual machine on windows to check whether the ping is successful.
7. use xshell connection, select SSH for session, and enter the virtual host IP address
8. if the VM Nic is set to nat mode, the VM can access the Internet and access the website through a browser.
9. others
CentOS configuration:
1. before fire prevention is disabled
Service iptables stop
Chkconfig iptables off
2. start the ssh service
Service sshd start