I am nearing the end of a project that moved our disparate services and hosts onto kvm virtualized servers. What I am now contemplating is setting up my desktop as a virtual host and using one of the guests as my primary workstation. However, I am not sure how this would work in practice. I am accustomed to working with virtual instances via ssh (a terminal window) and with my desktop system in a Gnome window manager. Is there a reference somewhere that outlines the mechanics of logging into a virtual guest's graphical desktop directly from the physical console of the kvm host system? -- *** E-Mail is NOT a SECURE channel *** James B. Byrne mailto:ByrneJB at Harte-Lyne.ca Harte & Lyne Limited http://www.harte-lyne.ca 9 Brockley Drive vox: +1 905 561 1241 Hamilton, Ontario fax: +1 905 561 0757 Canada L8E 3C3
On Tue, 2012-08-28 at 10:23 -0400, James B. Byrne wrote:> I am nearing the end of a project that moved our disparate services > and hosts onto kvm virtualized servers. What I am now contemplating > is setting up my desktop as a virtual host and using one of the guests > as my primary workstation. > > However, I am not sure how this would work in practice. I am > accustomed to working with virtual instances via ssh (a terminal > window) and with my desktop system in a Gnome window manager. Is > there a reference somewhere that outlines the mechanics of logging > into a virtual guest's graphical desktop directly from the physical > console of the kvm host system?CentOS 6 Manuals are not yet available but the upstream docs are here: https://access.redhat.com/knowledge/docs/Red_Hat_Enterprise_Linux/ You probably want to start here: (watch for line-wrap) https://access.redhat.com/knowledge/docs/en-US/Red_Hat_Enterprise_Linux/6/html/Virtualization_Host_Configuration_and_Guest_Installation_Guide/index.html To open a graphical console on your virtual desktop from the KVM host: (you'll probably do this when you create your VM anyway) ========================================================[Applications]->[System Tools]->[Virtual Machine Manager] Authenticate dialog opens Password for root: [your_root_password] Button: [Authenticate] VM Manager window opens First connection is highlighted (default is localhost (QEMU)) Virtual machines under connection are displayed Double-click desired VM Native console of VM opens>From here you can login, get info, pause, stop, start, go full-screen,etc. ======================================================== KVM uses VNC to connect to the guest machines' consoles and by default will automatically assign the next available VNC port, beginning with 5900. I would highly recommend manually configuring your first guest's display (Display VNC) with VNC port 5901 and let subsequent VM's get assigned automatically. Otherwise, there will be a conflict with "tigervnc-server-module" if you later wish to connect remotely to the physical server (KVM host). If auto-configured the first VM will get port 5900 which the Xorg VNC module expects to be reserved for the (physical) host's console port. The port on which the Xorg module listens cannot be changed easily. ./Cal
On Tue, Aug 28, 2012 at 9:23 AM, James B. Byrne <byrnejb at harte-lyne.ca> wrote:> I am nearing the end of a project that moved our disparate services > and hosts onto kvm virtualized servers. What I am now contemplating > is setting up my desktop as a virtual host and using one of the guests > as my primary workstation. > > However, I am not sure how this would work in practice. I am > accustomed to working with virtual instances via ssh (a terminal > window) and with my desktop system in a Gnome window manager. Is > there a reference somewhere that outlines the mechanics of logging > into a virtual guest's graphical desktop directly from the physical > console of the kvm host system?I like to use freenx to host the desktop and the NX client to display it. That should work regardless of whether the desktop is a VM or not and regardless of the OS or location of the display - and it wouldn't surprise me if it performs better than whatever the built-in KVM mechanism uses. Even if you normally work locally, you may find it handy to be able to pick up the display from elsewhere with everything still running and have good performance. -- Les Mikesell lesmikesell at gmail.com
On Tue, August 28, 2012 11:37, Akemi Yagi wrote:> > Also look into spice: > > http://wiki.centos.org/HowTos/Spice-libvirt >Actually, I posted my question after reading that very page. I did not want to start down some technically involved path if a simpler solution was already widely used. I also will take a look at FreeNX as others have suggested. Thank you all for the suggestions and references. -- *** E-Mail is NOT a SECURE channel *** James B. Byrne mailto:ByrneJB at Harte-Lyne.ca Harte & Lyne Limited http://www.harte-lyne.ca 9 Brockley Drive vox: +1 905 561 1241 Hamilton, Ontario fax: +1 905 561 0757 Canada L8E 3C3
-----Original Message----- From: centos-bounces at centos.org [mailto:centos-bounces at centos.org] On Behalf Of Les Mikesell Sent: Tuesday, August 28, 2012 5:12 PM To: CentOS mailing list Subject: Re: [CentOS] KVM as a desktop On Tue, Aug 28, 2012 at 9:23 AM, James B. Byrne <byrnejb at harte-lyne.ca> wrote:> I am nearing the end of a project that moved our disparate services > and hosts onto kvm virtualized servers. What I am now contemplating > is setting up my desktop as a virtual host and using one of the guests > as my primary workstation. > > However, I am not sure how this would work in practice. I am > accustomed to working with virtual instances via ssh (a terminal > window) and with my desktop system in a Gnome window manager. Is > there a reference somewhere that outlines the mechanics of logging > into a virtual guest's graphical desktop directly from the physical > console of the kvm host system?I like to use freenx to host the desktop and the NX client to display it. That should work regardless of whether the desktop is a VM or not and regardless of the OS or location of the display - and it wouldn't surprise me if it performs better than whatever the built-in KVM mechanism uses. Even if you normally work locally, you may find it handy to be able to pick up the display from elsewhere with everything still running and have good performance. -----Original Message----- Not sure if freeNX is the best way to go. How about x2go: http://www.x2go.org/ Or thinlink from http://www.cendio.com/ Hw ______________________________________________________________________ Dit bericht kan informatie bevatten die niet voor u is bestemd. Indien u niet de geadresseerde bent of dit bericht abusievelijk aan u is toegezonden, wordt u verzocht dat aan de afzender te melden en het bericht te verwijderen. De Staat aanvaardt geen aansprakelijkheid voor schade, van welke aard ook, die verband houdt met risico's verbonden aan het elektronisch verzenden van berichten. This message may contain information that is not intended for you. If you are not the addressee or if this message was sent to you by mistake, you are requested to inform the sender and delete the message. The State accepts no liability for damage of any kind resulting from the risks inherent in the electronic transmission of messages.
On 28.08.2012 15:23, James B. Byrne wrote:> I am nearing the end of a project that moved our disparate services > and hosts onto kvm virtualized servers. What I am now contemplating > is setting up my desktop as a virtual host and using one of the > guests > as my primary workstation. > > However, I am not sure how this would work in practice. I am > accustomed to working with virtual instances via ssh (a terminal > window) and with my desktop system in a Gnome window manager. Is > there a reference somewhere that outlines the mechanics of logging > into a virtual guest's graphical desktop directly from the physical > console of the kvm host system?Hi, You could use virt-manager/virt-viewer + SPICE, it shows a lot of promise and it works reasonably well, especially over low latency links, but ATM you could be better off with using NX or FreeRDP (for Windows) from within the guest. -- Sent from the Delta quadrant using Borg technology! Nux! www.nux.ro
On 08/28/2012 04:23 PM, James B. Byrne wrote:> I am nearing the end of a project that moved our disparate services > and hosts onto kvm virtualized servers. What I am now contemplating > is setting up my desktop as a virtual host and using one of the guests > as my primary workstation. > > However, I am not sure how this would work in practice. I am > accustomed to working with virtual instances via ssh (a terminal > window) and with my desktop system in a Gnome window manager. Is > there a reference somewhere that outlines the mechanics of logging > into a virtual guest's graphical desktop directly from the physical > console of the kvm host system? > >I'm not sure what your benefit is to not use your host but a VM running on it. You could consider to use XDMP. You still need a (local) X server (gdm), but then choose remote logon usign XDMCP. On the virtual machine use gdmsetup to allow remote access or use this link: http://www.centos.org/docs/5/html/5.1/Installation_Guide/s2-trouble-remotex.html
On Wed, August 29, 2012 10:38, Theo Band wrote:>> >> > I'm not sure what your benefit is to not use your host but a VM > running > on it. > You could consider to use XDMP. You still need a (local) X server > (gdm), but then choose remote logon usign XDMCP. > On the virtual machine use gdmsetup to allow remote access or use this > link: > > http://www.centos.org/docs/5/html/5.1/Installation_Guide/s2-trouble-remotex.html >Presently I build kvm hosts with a minimal install and add whatever packages are required to get kvm working and provide my customary administrative tools. The kvm guests get the user applications. I simply want to have a similar arrangement on my personal workstation so that my experiments do not become invisibly dependent upon something I have installed for my own use. Basically, I want to simply leave the host configuration alone once kvm is running and do my mucking about in a virtual machine. -- *** E-Mail is NOT a SECURE channel *** James B. Byrne mailto:ByrneJB at Harte-Lyne.ca Harte & Lyne Limited http://www.harte-lyne.ca 9 Brockley Drive vox: +1 905 561 1241 Hamilton, Ontario fax: +1 905 561 0757 Canada L8E 3C3