当前位置:首页 > 虚拟机 > 正文

虚拟机怎么连接远程服务器(如何连接虚拟机上的服务器)

Add remote access role to virtual machine
You can remotely control the virtual machine through the following steps:
1
Set the virtual machine network to bridge and change the virtual machine IP address Set it to an address that does not conflict with the same network segment as the local machine.
2
Add a password for the administrator account on Windows server 2008. Confirm. If you already have a password, there is no need to configure it.
3
Add a role through the server manager and install the terminal service component.
(1) Select "Terminal Server" and "TS Authorization" in the role service list.
(2) Terminal server authentication method: No network-level authentication required
(3) Set authorization mode: per device
(It will be slightly different here, determined by personal virtual machine configuration )
4
After the installation is complete, follow the prompts to restart the virtual machine. After the computer starts, the configuration will continue. Do not terminate the configuration process.
5
Configure TSRemoteApp Manager: Open Terminal Services under Management Tools—TSRemoteApp Manager, select Terminal Server Configuration on the right, and select "Allow users to start listed and unlisted programs on initial connection ".
6
Configure terminal service configuration: add user everyone and grant full control permissions.
7
Verification: Run the mstsc remote command on the local machine. Enter the account name and password for remote access.
How to connect to KVM virtual remotely
Install VNC
1. Install VNC server
(1) Install VNC on Linux system
yum-yinstallvnc-server
yum-yinstalltigervnc-server
(2) Set the password required for remote login
After entering vncserver, you will be prompted to enter the password
Note: This password is required for remote login. Password
(3) Configure vncserver
vi/etc/sysconfig/vncservers
Set the following configuration values
VNCSERVRES=10000:root (10000 is the desktop number and root is the user name )
VNCSERVERARGS[2]=geometry800x600–nolistentcp–localhost
(4) Configure the firewall to allow remote connection to the VNC server
vi/etc/sysconfig/iptables
–AINPUT–mstate– stateNEW–mtcp–ptcp–dport5901–jACCCEPT
(5) Restart VNC and firewall services
servicevncserverrestart
serviceiptablesrestart
2. Install VNC client
Install vncviewer on Linux
Install TigerVNC software on Windows
2. Create a KVM virtual machine
1. Create a Linux virtual machine
(1) Create a 7G image file through qemu-img
qemu-imgcreate–7G
(2) Create a Linux virtual machine
qemu-kvm–m1024––drivefile=;boot=on–bootd –nographic–vnc:2
Note: There is a space between -vnc and :2
Start TigerVNC on another machine, enter 192.168.0.123:5902 to connect to perform the installation operation and observe the installation progress
Note: 192.168.0.123 is the local IP, 5902 is the corresponding port number (5900+2)
2. Create a Windows virtual machine
(1) Make an image containing the virtio driver
Install UltraISO software
Download , ,
Extract into a folder
Use UltraISO to open , and copy virtio-win-0.1-30 to the corresponding path
Save the new file with the virtio driver folder added as a new ios file win7_
qemu-imgcreate–frawwin7_30G
qemu-kvm–m1024–cdromwin7_–drivefile=win7_,if=virtio,boot=on––bootd –nographic–vnc:3
Note: There is a space between -vnc and :3
Start TigerVNC on another machine and enter 192.168.0.123:5903 to connect to perform the installation operation and observe the installation progress.
Note: 192.168.0.123 is the local IP, 5903 is the corresponding port number (5900+3)
Three remote desktop virtualization connections
Start TigerVNC on another machine and enter 192.168. 0.123:593 Login to win7 virtual machine
How to connect VMware on win10 to VMware on the remote server
"Manage"-->"Share".

2. When entering the "Sharing Wizard Interface", it will prompt "ifyouchoosetosharethisVMyouwillgainsomefeaturesbutloseothers", just click "Next".

3 , enter the next interface, you can modify the name of the shared virtual machine, the path of the shared virtual machine, and the mode of VM sharing. The first mode is to relocate all files associated with the virtual machine, and the second mode creates a Newly cloned virtual machine. The default here is usually fine, click "Finsh".

4. Then open VMware and click "Connect to Remote Server".
< /p>

5. In the pop-up interface, fill in the "server name", "user name", "password", and click "Connect". Generally fill in the "server name" Just enter the IP address of the server. The username and password are of course the username and password of the server.

6. Click "Still Link" on the pop-up "Invalid Security Certificate" interface. That's it.

7. Then the "Whether to remember login information" interface will pop up. You can choose it yourself. Generally, choose "Don't Now (N)".

8. After connecting, you will see the "CPU Usage", "Memory Usage" and "Disk Usage" of VMware on the server.

9. Then you need to right-click the virtual machine you want to open in the virtual machine list below. Of course, you still select "windows7" ​​here, which was just set up on the server. Shared virtual machine. This is because Windows 7 has already been turned on. If not, click "Start" first.

10. Finally, you will find that the server has been successfully turned on. VMware on the computer enables the local computer to connect to VMware on the remote server.