Log in with ssh to the flexVDI host where the guest is running. If This steps can be used to connect to the graphical console of one Guest when you are performing a manteinance, and flexVDI Manager or flexVDI agent is stopped.
Get host IP
If you have more than one host, and you don't know where it is on which one the Guest machine is running, you will have to log in each host with ssh, and run:
Code Block |
---|
# virsh dominfo MYGUEST |
until you find the host where the guest called MYGUEST is running.Then, perform the following actions:
Get the spice console port for the Guest:
Once logged in to the right Host, run:
Code Block |
---|
# virsh domdisplay MYGUEST
spice://localhost:5902 |
In this example, it is running in port 5902
Set the spice password of the guest
...
:
Log in with ssh to the flexVDI host where the guest is running, and set a spice password of MYPASSWORD, makingit valid for 300000 seconds
Code Block |
---|
# virsh qemu-monitor-command MYGUEST --hmp set_password spice MYPASSWORD # virsh qemu-monitor-command MYGUEST --hmp expire_password spice +300000 |
...
Connect to the
...
spice console
...
In this example, it is running in port 5902
Now you can connect with
Code Block |
---|
$ flexvdi-client spice://HOST_IP:HOST_PORT?password=MYPASSWORD For instance $ flexvdi-client spice://10.0.0.100:5902?password=MYPASSWORD |
Alternatively, you can use a different spice client, like remote-viewer. You will be prompted for the spice URI (spice://10.0.0.100:5902) and spice password (MYPASSWORD)