V
V
Vitaly2021-04-21 12:49:15
linux
Vitaly, 2021-04-21 12:49:15

Lock VNC port behind KVM VM?

How can I fix the VNC port for a specific virtual machine so that after rebooting the server and restarting the virtual machines, the port numbering is preserved?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sand, 2021-04-21
@vitalysokolov

virsh edit --domain "имя виртуалки"
the xml config of the virtual machine opens, there is a graphics section with settings for vnc

H
hint000, 2021-04-21
@hint000

if without libvirt, then simply
qemu-system-x86_64 ... -vnc 77 ...
with this parameter the VNC port 5977 will be assigned to this VM

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question