Answer the question
In order to leave comments, you need to log in
How to output libvirt virtual machine consoles in virtual server console?
There is a virtual server based on libvirt under Debian, I would like to display the consoles of its virtual machines in the console of the server itself. To press Alt+F1 - get the console of the first virtual machine, Alt+F2 - the second one, Alt+f3 - the console of the virtual server :) How to do this, and is it possible?
I suppose that you need to run one X in the first console and register the vnc client connecting to VM1 in their autoload, in the second console - the second X with the vnc client connecting to VM2.
Or is it possible to do something different and more elegant?
And what will happen to the keyboard/mouse?
Answer the question
In order to leave comments, you need to log in
Set up vnc access for each virtual machine.
On each server console, open a vnc connection to the desired virtual machine.
In general, a strange need, especially if the server is not installed next to you with a connected monitor and other peripherals.
On a working machine, I would recommend simply setting up a connection to the libvirt server through virt-manager or any other graphical virtual machine management utility. In my opinion it will be much more convenient.
Suppose the server is in the north, but the admin is not :) There is a satellite channel there, there are the necessary disk images and a connection. In theory, you can remotely connect and steer it in almost any way, up to reinstalling the OS. But when there is no connection or you need a local non-specialist to come up and press Any Key, a problem may arise if the non-specialist sees only login: on a black background.
The problem of shutting down or restarting a frozen Winserver using the power button or from the keyboard, when it is not logged in, is also present :(
I explained the essence of the question "why is this necessary?" enough?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question