ProxmoxVE Configure Virtual Desktops

  1. Create a virtual machine

After the system is installed, since there is misalignment mouse, displays two mouse, the display mode to the default selection, install the driver spice-guest-tools-latest.exe

Commonly used software installation, system configuration, optimization, off

Change the virtual machine hardware through a web interface, the display mode is changed to spice

2, the virtual machine the final configuration as shown below:

0

3, the command line login host virtual machine resides

Execute the following command:

#cd / etc / PVE / Nodes / pve5 / QEMU-Server (host virtual machine is located)

#qm showcmd 100> /root/100.sh (100 represents the number of virtual machines)

# We 100.sh  

Modify the configuration script, find this line -spice

change into:

-spice 'port=61002,addr=0.0.0.0,seamless-migration=on,password=12345'

Note: The default configuration file is tls-port, we wanted to change port

password may be password authentication, disable-ticketing password authentication parameters can be removed

tls-ciphers = HIGH, sh generated in this parameter to be removed

When addr modify the virtual machine IP address, sh not execute successfully, but if revised to 0.0.0.0, virtviewer only through the host IP connection.

0

4, run the modified script

#/bin/sh 100.sh

0

After the script runs successfully, without any prompting, then start the virtual machine will automatically

Note: Be sure to start the virtual machine through the script, or you can not use port 61002

5, view the port situation

#netstat -anp | grep -v UNIX monitored to see if port 61002

0

#apt the install net-Tools (net installation tool)

0

Port normal:

0

6, spice client test

Renyiyitai the host within the network, the client software installed spice virt-viewer-x64-8.0

Connecting the virtual machine, ip is the host address , port 61002 (script may be addr = 0.0.0.0 virtual machine to IP)

0

Will be prompted to enter the password: 12345

0

login successful

0

7, thin client configuration

The thin clients to access the LAN connection protocol selected spice, fill out the "Connection name:", "server address (host address)", "spice service listening port (virtual machine configuration file set is 61002)," " password (virtual machine configuration file settings), etc., can be connected after confirmation.

8, modify the virtual machine configuration file virtual desktop feature

#vi / etc / PVE / Nodes / pve5 / QEMU-Server / 100.conf   pve5 to host the virtual machine resides

Add the following in the first line to:

args:  -spice 'port=61002,addr=0.0.0.0,seamless-migration=on,password=123456'

0

Remarks:

1) this method can quickly configure multiple virtual machines, the virtual machine does not need to be started and still be connected by SH;

2) as a plurality of virtual machines start on the same host computer, each virtual machine is configured with a different port number;

3) addr changed as a virtual machine IP, the virtual machine will not start.

9, increase sound equipment

Edit virtual machine configuration file, you can add the following:

# We /etc/pve/nodes/pve5/qemu-server/100.conf

args: -device intel-hda,id=sound5,bus=pci.0,addr=0x18 -device hda-micro,id=sound5-codec0,bus=sound5.0,cad=0 -device hda-duplex,id=sound5-codec1,bus=sound5.0,cad=1 -spice 'port=61002,addr=0.0.0.0,seamless-migration=on,password=123456'  

(Spice This content can be followed)

0

Restart the virtual machine, you can see the sound device, and if you can not make a sound, you can re-install spice-agent driver, update the sound card driver. In addition, virt-viewer-5.0 best 8.0 sound playback pause can not be the problem occurs on supported sound cards.


Guess you like

Origin blog.51cto.com/ksjacky/2430019