Hi, Anybody please tell me how to have a PV Linux with graphics? I succesfully created some PV Linux with debootstrap and xen-tools. But then all the images must be started with "xm create -c" command, and everything then is console, with no X Window. In short, I want to have PV Linux, but with X. How to do that? Thanks, H _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Thiago Camargo Martins Cordeiro
2009-Feb-25 05:24 UTC
Re: [Xen-users] Paravirtualized Linux with graphics (X Window)?
Hi, The new Xen Live CD v2.0 does that out of the box! http://wiki.xensource.com/xenwiki/LiveCD There is a pre-configured PV Ubuntu domU. But, what about using FreeNX to access your domUs graphical environment instead vfb via SDL or VNC? It''s much better! Att, Thiago 2009/2/25 NAHieu <nahieu@gmail.com>> Hi, > > Anybody please tell me how to have a PV Linux with graphics? > > I succesfully created some PV Linux with debootstrap and xen-tools. > But then all the images must be started with "xm create -c" command, > and everything then is console, with no X Window. > > In short, I want to have PV Linux, but with X. How to do that? > > Thanks, > H > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
NAHieu
2009-Feb-25 05:34 UTC
Re: [Xen-users] Paravirtualized Linux with graphics (X Window)?
On Wed, Feb 25, 2009 at 2:24 PM, Thiago Camargo Martins Cordeiro <thiagocmartinsc@gmail.com> wrote:> Hi, > > The new Xen Live CD v2.0 does that out of the box! > http://wiki.xensource.com/xenwiki/LiveCD > > There is a pre-configured PV Ubuntu domU.Excellent! But then would you mind explaining how to do that from scratch?> > But, what about using FreeNX to access your domUs graphical environment > instead vfb via SDL or VNC? It''s much better!That would be nice, but using standard SDL or VND works out-of-the box, without having to install FreeNX. I will try FreeNX though, after figuring out how to have X Window in PV Linux (?) Thanks, H> 2009/2/25 NAHieu <nahieu@gmail.com> >> >> Hi, >> >> Anybody please tell me how to have a PV Linux with graphics? >> >> I succesfully created some PV Linux with debootstrap and xen-tools. >> But then all the images must be started with "xm create -c" command, >> and everything then is console, with no X Window. >> >> In short, I want to have PV Linux, but with X. How to do that? >> >> Thanks, >> H >> >> _______________________________________________ >> Xen-users mailing list >> Xen-users@lists.xensource.com >> http://lists.xensource.com/xen-users > >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
NAHieu
2009-Feb-25 05:54 UTC
Re: [Xen-users] Paravirtualized Linux with graphics (X Window)?
On Wed, Feb 25, 2009 at 2:34 PM, NAHieu <nahieu@gmail.com> wrote:> On Wed, Feb 25, 2009 at 2:24 PM, Thiago Camargo Martins Cordeiro > <thiagocmartinsc@gmail.com> wrote: >> Hi, >> >> The new Xen Live CD v2.0 does that out of the box! >> http://wiki.xensource.com/xenwiki/LiveCD >> >> There is a pre-configured PV Ubuntu domU. > > Excellent! But then would you mind explaining how to do that from scratch?Actually talking about PV Linux here, I really mean Linux with PV kernel (2.6.18-xen) Thank you, H>> 2009/2/25 NAHieu <nahieu@gmail.com> >>> >>> Hi, >>> >>> Anybody please tell me how to have a PV Linux with graphics? >>> >>> I succesfully created some PV Linux with debootstrap and xen-tools. >>> But then all the images must be started with "xm create -c" command, >>> and everything then is console, with no X Window. >>> >>> In short, I want to have PV Linux, but with X. How to do that? >>> >>> Thanks, >>> H >>> >>> _______________________________________________ >>> Xen-users mailing list >>> Xen-users@lists.xensource.com >>> http://lists.xensource.com/xen-users >> >> >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Fajar A. Nugraha
2009-Feb-25 06:03 UTC
Re: [Xen-users] Paravirtualized Linux with graphics (X Window)?
On Wed, Feb 25, 2009 at 12:54 PM, NAHieu <nahieu@gmail.com> wrote:> Actually talking about PV Linux here, I really mean Linux with PV > kernel (2.6.18-xen) >Something like this on domU config vfb =[''type=vnc,vnclisten=0.0.0.0''] After starting the domU with "xm create", you can then find out where to connect to using # xm list -l rad | grep location (location 0.0.0.0:5904) (location 2) or # virsh vncdisplay rad :4 In my case domU name is rad. I can then connect with vnc using vncviewer dom_0_IP:4 Regards, Fajar _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Thiago Camargo Martins Cordeiro
2009-Feb-25 06:14 UTC
Re: [Xen-users] Paravirtualized Linux with graphics (X Window)?
The Xen Live CD does that from scratch! You just need to change three files, one in dom0 and another one in the domU. In dom0 /etc/xen/xend-confi.sxp configuration file: (vnc-listen ''0.0.0.0'') (vncpasswd ''#vncpassword2001'') In the dom0 in your domU configuration file, do: vfb = [ ''type=vnc,vncdisplay=10'' ] extra = ''console=tty0'' and in your domU /etc/X11/xorg.conf file, do: Section "Device" Identifier "Configured Video Device" Driver "fbdev" EndSection You be able to start X in your domU, using VNC or SDL I''m on Debian Lenny 5.0. Good luck! Thiago 2009/2/25 NAHieu <nahieu@gmail.com>> On Wed, Feb 25, 2009 at 2:24 PM, Thiago Camargo Martins Cordeiro > <thiagocmartinsc@gmail.com> wrote: > > Hi, > > > > The new Xen Live CD v2.0 does that out of the box! > > http://wiki.xensource.com/xenwiki/LiveCD > > > > There is a pre-configured PV Ubuntu domU. > > Excellent! But then would you mind explaining how to do that from scratch? > > > > > But, what about using FreeNX to access your domUs graphical environment > > instead vfb via SDL or VNC? It''s much better! > > That would be nice, but using standard SDL or VND works out-of-the > box, without having to install FreeNX. > > I will try FreeNX though, after figuring out how to have X Window in > PV Linux (?) > > Thanks, > H > > > > 2009/2/25 NAHieu <nahieu@gmail.com> > >> > >> Hi, > >> > >> Anybody please tell me how to have a PV Linux with graphics? > >> > >> I succesfully created some PV Linux with debootstrap and xen-tools. > >> But then all the images must be started with "xm create -c" command, > >> and everything then is console, with no X Window. > >> > >> In short, I want to have PV Linux, but with X. How to do that? > >> > >> Thanks, > >> H > >> > >> _______________________________________________ > >> Xen-users mailing list > >> Xen-users@lists.xensource.com > >> http://lists.xensource.com/xen-users > > > > >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
NAHieu
2009-Feb-25 06:46 UTC
Re: [Xen-users] Paravirtualized Linux with graphics (X Window)?
On Wed, Feb 25, 2009 at 3:03 PM, Fajar A. Nugraha <fajar@fajar.net> wrote:> On Wed, Feb 25, 2009 at 12:54 PM, NAHieu <nahieu@gmail.com> wrote: >> Actually talking about PV Linux here, I really mean Linux with PV >> kernel (2.6.18-xen) >> > > Something like this on domU config > > vfb =[''type=vnc,vnclisten=0.0.0.0''] >I think we can just vfb = [''type=vnc''] Then suppose that the VM''s name is "vm01", we can connect to it with comand: xm vncviewer vm01 That is more simple ,isnt it? However, when I tried these things, my VNC screen is just *black*. (Meanwhile, I can still connect to the console with "xm console vm01") How to fix this problem? Thanks, H _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
NAHieu
2009-Feb-25 06:48 UTC
Re: [Xen-users] Paravirtualized Linux with graphics (X Window)?
On Wed, Feb 25, 2009 at 3:14 PM, Thiago Camargo Martins Cordeiro <thiagocmartinsc@gmail.com> wrote:> The Xen Live CD does that from scratch! You just need to change three files, > one in dom0 and another one in the domU. > > In dom0 /etc/xen/xend-confi.sxp configuration file: > (vnc-listen ''0.0.0.0'') > (vncpasswd ''#vncpassword2001'') > > In the dom0 in your domU configuration file, do: > vfb = [ ''type=vnc,vncdisplay=10'' ]What is the meaning of the setting "vncdisplay=10"? Thanks, H> 2009/2/25 NAHieu <nahieu@gmail.com> >> >> On Wed, Feb 25, 2009 at 2:24 PM, Thiago Camargo Martins Cordeiro >> <thiagocmartinsc@gmail.com> wrote: >> > Hi, >> > >> > The new Xen Live CD v2.0 does that out of the box! >> > http://wiki.xensource.com/xenwiki/LiveCD >> > >> > There is a pre-configured PV Ubuntu domU. >> >> Excellent! But then would you mind explaining how to do that from scratch? >> >> > >> > But, what about using FreeNX to access your domUs graphical environment >> > instead vfb via SDL or VNC? It''s much better! >> >> That would be nice, but using standard SDL or VND works out-of-the >> box, without having to install FreeNX. >> >> I will try FreeNX though, after figuring out how to have X Window in >> PV Linux (?) >> >> Thanks, >> H >> >> >> > 2009/2/25 NAHieu <nahieu@gmail.com> >> >> >> >> Hi, >> >> >> >> Anybody please tell me how to have a PV Linux with graphics? >> >> >> >> I succesfully created some PV Linux with debootstrap and xen-tools. >> >> But then all the images must be started with "xm create -c" command, >> >> and everything then is console, with no X Window. >> >> >> >> In short, I want to have PV Linux, but with X. How to do that? >> >> >> >> Thanks, >> >> H >> >> >> >> _______________________________________________ >> >> Xen-users mailing list >> >> Xen-users@lists.xensource.com >> >> http://lists.xensource.com/xen-users >> > >> > > >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
NAHieu
2009-Feb-25 07:19 UTC
Re: [Xen-users] Paravirtualized Linux with graphics (X Window)?
On Wed, Feb 25, 2009 at 3:46 PM, NAHieu <nahieu@gmail.com> wrote:> On Wed, Feb 25, 2009 at 3:03 PM, Fajar A. Nugraha <fajar@fajar.net> wrote: >> On Wed, Feb 25, 2009 at 12:54 PM, NAHieu <nahieu@gmail.com> wrote: >>> Actually talking about PV Linux here, I really mean Linux with PV >>> kernel (2.6.18-xen) >>> >> >> Something like this on domU config >> >> vfb =[''type=vnc,vnclisten=0.0.0.0''] >> > > I think we can just > > vfb = [''type=vnc''] > > Then suppose that the VM''s name is "vm01", we can connect to it with comand: > > xm vncviewer vm01 > > That is more simple ,isnt it? > > However, when I tried these things, my VNC screen is just *black*. > > (Meanwhile, I can still connect to the console with "xm console vm01") > > How to fix this problem?I can confirm that my kernel (2.6.18-xen) has "XEN_FRAMEBUFFER=y" I think that should allow me to connect to VM using vnc, but why it doesnt work yet? Thanks, Hieu _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Thiago Camargo Martins Cordeiro
2009-Feb-25 07:19 UTC
Re: [Xen-users] Paravirtualized Linux with graphics (X Window)?
The VNC port of that domU will be 5910. 2009/2/25 NAHieu <nahieu@gmail.com>> On Wed, Feb 25, 2009 at 3:14 PM, Thiago Camargo Martins Cordeiro > <thiagocmartinsc@gmail.com> wrote: > > The Xen Live CD does that from scratch! You just need to change three > files, > > one in dom0 and another one in the domU. > > > > In dom0 /etc/xen/xend-confi.sxp configuration file: > > (vnc-listen ''0.0.0.0'') > > (vncpasswd ''#vncpassword2001'') > > > > In the dom0 in your domU configuration file, do: > > vfb = [ ''type=vnc,vncdisplay=10'' ] > > What is the meaning of the setting "vncdisplay=10"? > > Thanks, > H > > > > > > > 2009/2/25 NAHieu <nahieu@gmail.com> > >> > >> On Wed, Feb 25, 2009 at 2:24 PM, Thiago Camargo Martins Cordeiro > >> <thiagocmartinsc@gmail.com> wrote: > >> > Hi, > >> > > >> > The new Xen Live CD v2.0 does that out of the box! > >> > http://wiki.xensource.com/xenwiki/LiveCD > >> > > >> > There is a pre-configured PV Ubuntu domU. > >> > >> Excellent! But then would you mind explaining how to do that from > scratch? > >> > >> > > >> > But, what about using FreeNX to access your domUs graphical > environment > >> > instead vfb via SDL or VNC? It''s much better! > >> > >> That would be nice, but using standard SDL or VND works out-of-the > >> box, without having to install FreeNX. > >> > >> I will try FreeNX though, after figuring out how to have X Window in > >> PV Linux (?) > >> > >> Thanks, > >> H > >> > >> > >> > 2009/2/25 NAHieu <nahieu@gmail.com> > >> >> > >> >> Hi, > >> >> > >> >> Anybody please tell me how to have a PV Linux with graphics? > >> >> > >> >> I succesfully created some PV Linux with debootstrap and xen-tools. > >> >> But then all the images must be started with "xm create -c" command, > >> >> and everything then is console, with no X Window. > >> >> > >> >> In short, I want to have PV Linux, but with X. How to do that? > >> >> > >> >> Thanks, > >> >> H > >> >> > >> >> _______________________________________________ > >> >> Xen-users mailing list > >> >> Xen-users@lists.xensource.com > >> >> http://lists.xensource.com/xen-users > >> > > >> > > > > > >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Thiago Camargo Martins Cordeiro
2009-Feb-25 07:25 UTC
Re: [Xen-users] Paravirtualized Linux with graphics (X Window)?
Have you added the line: extra = ''console=tty0'' ..to domU.cfg file? If your xvc0 console is working, try to start X to see if you see it instead the black screen... Maybe it''s only a tty related problem... 2009/2/25 NAHieu <nahieu@gmail.com>> On Wed, Feb 25, 2009 at 3:03 PM, Fajar A. Nugraha <fajar@fajar.net> wrote: > > On Wed, Feb 25, 2009 at 12:54 PM, NAHieu <nahieu@gmail.com> wrote: > >> Actually talking about PV Linux here, I really mean Linux with PV > >> kernel (2.6.18-xen) > >> > > > > Something like this on domU config > > > > vfb =[''type=vnc,vnclisten=0.0.0.0''] > > > > I think we can just > > vfb = [''type=vnc''] > > Then suppose that the VM''s name is "vm01", we can connect to it with > comand: > > xm vncviewer vm01 > > That is more simple ,isnt it? > > However, when I tried these things, my VNC screen is just *black*. > > (Meanwhile, I can still connect to the console with "xm console vm01") > > How to fix this problem? > > Thanks, > H > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
NAHieu
2009-Feb-25 07:29 UTC
Re: [Xen-users] Paravirtualized Linux with graphics (X Window)?
On Wed, Feb 25, 2009 at 4:19 PM, Thiago Camargo Martins Cordeiro <thiagocmartinsc@gmail.com> wrote:> The VNC port of that domU will be 5910.Ah, but then that is not necessary to do so, as "xm vncviewer" command can find the correct session for you.>Have you added the line: >extra = ''console=tty0'' >..to domU.cfg file?Is that correct configuration? I cannot connect to console (xm console ....) with your configuration any more. My original configuration is: extra = ''xencons=tty'' And with this, "xm console ..." can connect me to the DomU''s console. So I keep it. Thanks, Hieu> > 2009/2/25 NAHieu <nahieu@gmail.com> >> >> On Wed, Feb 25, 2009 at 3:14 PM, Thiago Camargo Martins Cordeiro >> <thiagocmartinsc@gmail.com> wrote: >> > The Xen Live CD does that from scratch! You just need to change three >> > files, >> > one in dom0 and another one in the domU. >> > >> > In dom0 /etc/xen/xend-confi.sxp configuration file: >> > (vnc-listen ''0.0.0.0'') >> > (vncpasswd ''#vncpassword2001'') >> > >> > In the dom0 in your domU configuration file, do: >> > vfb = [ ''type=vnc,vncdisplay=10'' ] >> >> What is the meaning of the setting "vncdisplay=10"? >> >> Thanks, >> H >> >> >> >> >> >> > 2009/2/25 NAHieu <nahieu@gmail.com> >> >> >> >> On Wed, Feb 25, 2009 at 2:24 PM, Thiago Camargo Martins Cordeiro >> >> <thiagocmartinsc@gmail.com> wrote: >> >> > Hi, >> >> > >> >> > The new Xen Live CD v2.0 does that out of the box! >> >> > http://wiki.xensource.com/xenwiki/LiveCD >> >> > >> >> > There is a pre-configured PV Ubuntu domU. >> >> >> >> Excellent! But then would you mind explaining how to do that from >> >> scratch? >> >> >> >> > >> >> > But, what about using FreeNX to access your domUs graphical >> >> > environment >> >> > instead vfb via SDL or VNC? It''s much better! >> >> >> >> That would be nice, but using standard SDL or VND works out-of-the >> >> box, without having to install FreeNX. >> >> >> >> I will try FreeNX though, after figuring out how to have X Window in >> >> PV Linux (?) >> >> >> >> Thanks, >> >> H >> >> >> >> >> >> > 2009/2/25 NAHieu <nahieu@gmail.com> >> >> >> >> >> >> Hi, >> >> >> >> >> >> Anybody please tell me how to have a PV Linux with graphics? >> >> >> >> >> >> I succesfully created some PV Linux with debootstrap and xen-tools. >> >> >> But then all the images must be started with "xm create -c" command, >> >> >> and everything then is console, with no X Window. >> >> >> >> >> >> In short, I want to have PV Linux, but with X. How to do that? >> >> >> >> >> >> Thanks, >> >> >> H >> >> >> >> >> >> _______________________________________________ >> >> >> Xen-users mailing list >> >> >> Xen-users@lists.xensource.com >> >> >> http://lists.xensource.com/xen-users >> >> > >> >> > >> > >> > > >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Jeff Lane
2009-Feb-25 15:35 UTC
Re: [Xen-users] Paravirtualized Linux with graphics (X Window)?
This is a really silly question, on my part, but just to be sure the basics are covered: Are you sure your PV domU is actually running X? Is it booting into runlevel 5, or is it booting in to runlevel 3? Is X and the assorted windowmanager and displaymanager installed? Sometimes it''s the simple things that get you. On another note, however, provided that works, the VNC port mentioned above is good advice. By default, domain 1 uses port 5901, domain 2 uses 5902 and so forth. As far as I know, those ports are determined by the domain number, I''ve never actually seen the vncdisplay option before. Does that set the actual port number to 5910 or does that set the vnc capable display to 10 (e.g. vncviewer domUName:10) or are those the same thing? Another thing to consider... virt-viewer if available... usage is simple: virt-viewer domUname to connect to the domU and get a graphical console (again, provided that X is indeed running and not failing for some other reason) _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
NAHieu
2009-Feb-26 16:00 UTC
Re: [Xen-users] Paravirtualized Linux with graphics (X Window)?
On Thu, Feb 26, 2009 at 12:35 AM, Jeff Lane <sundowner225@gmail.com> wrote:> This is a really silly question, on my part, but just to be sure the > basics are covered: > > Are you sure your PV domU is actually running X? Is it booting into > runlevel 5, or is it booting in to runlevel 3? Is X and the assorted > windowmanager and displaymanager installed?Sorry but you confused me. I suppose that I only want to connect vnc to the framebuffer of the console, be it in graphic or console mode. And that is not about PV run X or not. Is that wrong understanding about the "vfb" option? _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
NAHieu
2009-Feb-27 03:46 UTC
Re: [Xen-users] Paravirtualized Linux with graphics (X Window)?
On Wed, Feb 25, 2009 at 4:25 PM, Thiago Camargo Martins Cordeiro <thiagocmartinsc@gmail.com> wrote:> Have you added the line: > extra = ''console=tty0'' > ..to domU.cfg file?Now I can confirm that "console=tty0" make vnc work! There is 1 problem: the vnc mouse has a dot cursor, together with a normal cursor. And they are not synchronized (there is a distance between them). I use "usbdevice=''tablet''", but that doesnt help. My guest run Ubuntu 8.04. I know there are some (complicated ways) to fix this for HVM, but this is PV, so can it be easier? Thanks, H _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Javier Guerra Giraldez
2009-Feb-27 04:09 UTC
Re: [Xen-users] Paravirtualized Linux with graphics (X Window)?
NAHieu wrote:> I use "usbdevice=''tablet''", but that doesnt help. My guest run Ubuntu 8.04.AFAIK, "usbdevice=''tablet''" doesn''t disable the PS2 mouse. if you installed the guest OS before adding this, it might still be using that. check your Xorg config. -- Javier _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
NAHieu
2009-Feb-27 05:33 UTC
Re: [Xen-users] Paravirtualized Linux with graphics (X Window)?
On Fri, Feb 27, 2009 at 1:09 PM, Javier Guerra Giraldez <javier@guerrag.com> wrote:> NAHieu wrote: >> I use "usbdevice=''tablet''", but that doesnt help. My guest run Ubuntu 8.04. > > AFAIK, "usbdevice=''tablet''" doesn''t disable the PS2 mouse. if you installed > the guest OS before adding this, it might still be using that. check your > Xorg config.How should I fix the Xorg config for this to work?? Thanks, H _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Jeff Lane
2009-Feb-27 15:46 UTC
Re: [Xen-users] Paravirtualized Linux with graphics (X Window)?
On Fri, Feb 27, 2009 at 12:33 AM, NAHieu <nahieu@gmail.com> wrote:> On Fri, Feb 27, 2009 at 1:09 PM, Javier Guerra Giraldez > <javier@guerrag.com> wrote: >> NAHieu wrote: >>> I use "usbdevice=''tablet''", but that doesnt help. My guest run Ubuntu 8.04.Try this... Log into your VM using your now working VNC and open a console. Use xset like this: xset m 0 0 Which should completely turn off mouse acceleration. You may have to move your mouse outside the domU window and back to get it to take effect, but that should sync the black dot and the mouse pointer in the domU VNC window. -- ------------------> Jeffrey Lane - W4KDH <------------------- www.jefflane.org Another cog in the great Corporate Wheel The internet has no government, no constitution, no laws, no rights, no police, no courts. Don''t talk about fairness or innocence, and don''t talk about what should be done. Instead, talk about what is being done and what will be done by the amorphous unreachable undefinable blob called "the internet user base." -Paul Vixie _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
John Haxby
2009-Feb-27 16:15 UTC
Re: [Xen-users] Paravirtualized Linux with graphics (X Window)?
Jeff Lane wrote:> On Fri, Feb 27, 2009 at 12:33 AM, NAHieu <nahieu@gmail.com> wrote: > >> On Fri, Feb 27, 2009 at 1:09 PM, Javier Guerra Giraldez >> <javier@guerrag.com> wrote: >> >>> NAHieu wrote: >>> >>>> I use "usbdevice=''tablet''", but that doesnt help. My guest run Ubuntu 8.04. >>>> > Try this... > > Log into your VM using your now working VNC and open a console. Use > xset like this: > > xset m 0 0 > > Which should completely turn off mouse acceleration. You may have to > move your mouse outside the domU window and back to get it to take > effect, but that should sync the black dot and the mouse pointer in > the domU VNC window. > >That''s part way towards a cure. To get something that works completely you''ll need a slightly different approach. What I''m describing is what I''ve done on a Fedora 8 system, but the same will apply for Ubuntu 8.04 I think. What you''re aiming to do is replace the X mouse pointer with something that understands the absolute coordinates that the VNC pointer really wants ... let''s cut to the chase. On my system I look at /proc/bus/input/devices and in there there''s a stanza like this: I: Bus=0001 Vendor=5853 Product=fffe Version=0000 N: Name="Xen Virtual Pointer" P: Phys=xenbus/device/vkbd/0 S: Sysfs=/class/input/input2 H: Handlers=mouse1 event2 js0 B: EV=f B: KEY=ff0000 0 0 0 0 0 0 0 0 B: REL=3 B: ABS=3 If you have a combined pointer and keyboard device you need something more complicated and probably a patch so I''ll assume that you have this (you probably do). Chances are that what you have is _exactly_ what I have, even down to the S: and H: lines. These lines refer to "input2" and "event2" and both tell us that the Xen Virtual Pointer is attached to the file /dev/input/event2. Armed with this you can now edit /etc/X11/xorg.conf. I forget what Ubuntu has in there, but there''s probably an InputDevice section that refers to a mouse, change it to look something like this: Section "InputDevice" Identifier "Mouse0" Driver "evdev" Option "Device" "/dev/input/event2" EndSection The identifier should be whatever you already have, the Driver and Option lines need to be changed to match mine (except that the /dev/input/event2 might need to be changed to match what shows up in /proc/bus/input/devices). When you''ve done that, restart X and, with a little luck, it will all work. If it doesn''t, check /var/log/Xorg.0.log. It will either tell you (eventually) that you''ve got some spelling mistake somewhere or that you''re missing the evdev driver. On Fedora that''s in an rpm called xorg-x11-drv-evdev, but you''ll have to go hunting with synaptic on Ubuntu. Hope that helps. jch _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Seemingly Similar Threads
- Re: My domU cpuinfo shows "cache seize: 16KB" ater upgrading to Xen-3.3.0... but in Xen-3.2 it has 2048KB!
- 1/2 OFF-TOPIC: How to use CLVM (on top AoE vblades) instead just plain LVM for Xen based VMs on Debian 5.0?
- Current 2.6.3x kernel and patches for Ubuntu 9.04?
- Xen and Enomaly
- Hyperic HQ Open Source & Hyperic HQ Enterprise