Raul Saura
2006-Apr-08 18:16 UTC
[Fedora-xen] Gnome desktop in domU? (aka xorg and startx problems in domU)
Denis, You can not run X on a DomU as the guest has no video hardware available, but you can do the following: run "Xvnc :0" on DomU, this will start an X server that uses a pseudo-frame buffer as video-hardware and serves that framebuffer via vnc protocol. now run "gnome-session" on DomU to start the whole gnome desktop infraestructure on the guest OS (as gdm will do) Now, from dom0 that is the only one with a physical screen attached at, launch vncviewer and connect to domU-ip-address:0, this will show the remote virtual desktop. hope this helps. Raul. ---------- Forwarded message ---------- From: Denis Forveille <denis.forveille@gmail.com> To: fedora-xen@redhat.com Date: Fri, 07 Apr 2006 21:09:33 -0400 Subject: [Fedora-xen] Gnome desktop in domU? (aka xorg and startx problems in domU) I''m experimenting with xen on FC5 (as domU and dom0). The idea is to have a machine running dom0 with 4 guests, one of the guest would be my workstation/desktop (with gnome running), the others guests would be application/file/utilities servers. I would like to perform something like: - logon to the domU via ssh, from dom0 for example (I also have tried it with "xm console domU" from dom0, the result is the same) - run "startx" : that should bring the standard logon screen - after login, use the gnome desktop as from a standard standalone workstation But this does not work: startx does not start (first because the xorg.confis not created. I''ve tried to run "X -configuration" to create xorg.conf, but the command fails also to create the xorg.conf file) BTW, on dom0 "startx" and the gnome desktop run perfectly Q: - Is it possible to configure X and run "startx" in a domU (I''ve read somewhere on the net that this is not possible...). If so how to do it? - What is the best way to get a full gnome desktop workstation that would run in domU like a standalone workstation? I''ve tried the "vnc" solution, it works great but have limitations (at least for me). and would greatly prefer what I described previsoulsy: (I don''t know how to get the logon screen with vnc, the screen resolution can not be easily choosen/changed, the desktop to be somewhat "slower" than the "local" desktop) Thanks in advance for any advice or pointer. (I''m not really a newbee with linux, but I''m far from an expert...) --
Denis Forveille
2006-Apr-09 19:59 UTC
Re: [Fedora-xen] Gnome desktop in domU? (aka xorg and startx problems in domU)
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type"> </head> <body bgcolor="#ffffff" text="#000000"> <font size="-1"><font face="Verdana">Thanks to all for your answers.<br> <br> So, it seems that I''ll not be able to get the topology I describe in my first post.. and I''m stucked with vnc. <br> Now I have two choices, either:<br> - run my gnome desktop from dom0 and use vnc to start a "remote" gnome-session in domU, which I really don''t want. I agree that dom0 should be as slim as possible and should only run the necessary modules (and definitively not play the role of a gnome development workstation!!)<br> - buy another PC, install FC5 and vncviewer then start a remote gnome session to my xen/domU server. That sounds silly, if I buy another PC, then I''ll perform my development works on that PC, and not start a remote gnome X desktopto the domU server...<br> <br> Anyway, I hope that soon, we''ll be able to run a gnome X desktop in domU (At least be able to assign all the required resources -video card etc..- to ONE of the domU in the xen domain space)<br> <br> (I hope that i configured thunderbird correctly to send this message in plain text...)<br> </font></font><br> Raul Saura wrote: <blockquote cite="midffa285df0604081116w5c7f8f10i377d6dc560cfdfe1@mail.gmail.com" type="cite"> <div>Denis,</div> <div> </div> <div>You can not run X on a DomU as the guest has no video hardware available, but you can do the following:</div> <div> </div> <div>run "Xvnc :0" on DomU, this will start an X server that uses a pseudo-frame buffer as video-hardware and serves that framebuffer via vnc protocol.</div> <div>now run "gnome-session" on DomU to start the whole gnome desktop infraestructure on the guest OS (as gdm will do)</div> <div> </div> <div>Now, from dom0 that is the only one with a physical screen attached at, launch vncviewer and connect to domU-ip-address:0, this will show the remote virtual desktop.</div> <div> </div> <div>hope this helps.</div> <div> </div> <div>Raul.</div> <div> </div> <div> </div> <div>---------- Forwarded message ----------<br> From: Denis Forveille <<a href="mailto:denis.forveille@gmail.com">denis.forveille@gmail.com</a>><br> To: <a href="mailto:fedora-xen@redhat.com">fedora-xen@redhat.com</a> <br> Date: Fri, 07 Apr 2006 21:09:33 -0400<br> Subject: [Fedora-xen] Gnome desktop in domU? (aka xorg and startx problems in domU)<br> <font size="-1"><font face="Verdana">I''m experimenting with xen on FC5 (as domU and dom0). <br> </font></font><font size="-1"><font face="Verdana"><br> The idea is to have a machine running dom0 with 4 guests, one of the guest would be my workstation/desktop (with gnome running), the others guests would be application/file/utilities servers. <br> </font></font><br> <font size="-1"><font face="Verdana">I would like to perform something like:<br> - logon to the domU via ssh, from dom0 for example (</font></font><font size="-1"><font face="Verdana">I also have tried it with "xm console domU" from dom0, the result is the same) </font></font><br> <font size="-1"><font face="Verdana">- run "startx" : that should bring the standard logon screen<br> - after login, use the gnome desktop as from a standard standalone workstation<br> <br> But this does not work: startx does not start (first because the xorg.conf is not created. I''ve tried to run "X -configuration" to create xorg.conf, but the command fails also to create the xorg.conf file)<br> BTW, on dom0 "startx" and the gnome desktop run perfectly <br> <br> Q: <br> - Is it possible to configure X and run "startx" in a domU (I''ve read somewhere on the net that this is not possible...). If so how to do it?<br> </font></font><font size="-1"><font face="Verdana">- What is the best way to get a full gnome desktop workstation that would run in domU like a standalone workstation?<br> </font></font><font size="-1"><font face="Verdana"><br> I''ve tried the "vnc" solution, it works great but have limitations (at least for me). and would greatly prefer what I described previsoulsy: <br> (I don''t know how to get the logon screen with vnc, the screen resolution can not be easily choosen/changed, the desktop to be somewhat "slower" than the "local" desktop)<br> <br> Thanks in advance for any advice or pointer. <br> <br> (</font></font><font size="-1"><font face="Verdana">I''m not really a newbee with linux, but I''m far from an expert...</font></font>)<br> <br> --<br> </div> </blockquote> </body> </html>