WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

Re: [Xen-users] Re: graphically accessing pv guest

To: Melody Bliss <melodybliss@xxxxxxxxx>
Subject: Re: [Xen-users] Re: graphically accessing pv guest
From: Ted Brenner <griztown@xxxxxxxxx>
Date: Tue, 1 Mar 2011 22:26:36 -0600
Cc: xen-users@xxxxxxxxxxxxxxxxxxx, "Fajar A. Nugraha" <list@xxxxxxxxx>
Delivery-date: Tue, 01 Mar 2011 20:28:16 -0800
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=w1i9x1RtzbplmuuoGEj/n+bYPOV6ph9+GWCIBWDjYp0=; b=nU3Yi2sJtxCpew6pJZqlVDr7Eaw40fLH96+sjYQS7Qxpk02fkaljFPtWCuDuVaaH+3 aPqDQUOevwnqs8AjSsZXb/hVr6M6GhkDtpt2Kygf5i8kp4+W4Mh7KoOb5GCLiENFzD9+ sEE+9YKiod+jQYt1s9CAvMqHbVS9hskmGmRek=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=TDDUd61LCWGx+I5ig3gFcrJcai7t6/S2/RVNWsxuz61uoOjC0NKhqOKMfGGqLokRlB GC1nhdTWJDq86Ye5OiW3w4iZye5kn9OqIz3Jr1BcfuR+iBKQiB3Xu3stVGJk2dOMlS8y JEmTHn8KGc35P1yD5tvBqBuuwjKtDBnosXSa4=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <AANLkTik7GxsqffWa-4kMzX9b_nafk174okim=tj+25rO@xxxxxxxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <AANLkTimuu16Oj9WNbsKToZiVyDbg9Kzc9DpDY5Mpahrp@xxxxxxxxxxxxxx> <AANLkTikqBRK4yA8ShMgyJak7q=WSrbo_pFV5xGYCvVY1@xxxxxxxxxxxxxx> <AANLkTi=6N8F9_qtEWbP2_h6-gj_+PYyeBBgyAxwBuDAM@xxxxxxxxxxxxxx> <AANLkTindEkCGuXjjUac-0rBkFkO4=or+Sx3A1CZd3QTA@xxxxxxxxxxxxxx> <AANLkTik7GxsqffWa-4kMzX9b_nafk174okim=tj+25rO@xxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Yeah, I can connect via rdesktop.  I'm running gnome, this is an ubuntu maverick guest.  Where would I find what my display is set to? 

Thanks for the help!

On Tue, Mar 1, 2011 at 9:30 PM, Melody Bliss <melodybliss@xxxxxxxxx> wrote:
That's an X Windows error (Can't open display). What is your DISPLAY
set to? Are you running an X Server?

Mel

On Tue, Mar 1, 2011 at 6:51 PM, Ted Brenner <griztown@xxxxxxxxx> wrote:
> So I made these changes but now I get the following error after typing in
> #xm vncviewer domainID
>
> invoking  vncviewer 0.0.0.0:1
> No protocol specified
> Error: Can't open display: :0.0
>
> I'm currently listening on 0.0.0.0 but I've also tried 127.0.0.1 with the
> same affect.  What would cause this error?
>
> On Sun, Feb 27, 2011 at 10:27 PM, Fajar A. Nugraha <list@xxxxxxxxx> wrote:
>>
>> On Mon, Feb 28, 2011 at 10:15 AM, Ted Brenner <griztown@xxxxxxxxx> wrote:
>> > Is it possible that in Xen 4.0+, the 'xenfb.video' should be added to
>> > the
>> > kernel line of the /boot/grub/menu.lst file?
>> >
>> > On Sun, Feb 27, 2011 at 10:49 AM, Ted Brenner <griztown@xxxxxxxxx>
>> > wrote:
>> >>
>> >> Hi all,
>> >>
>> >> I'm trying to expand the screen resolution of my guest when using vnc.
>> >> It
>> >> appears I need to use the extra variable in my guest config file and
>> >> xenfb.
>> >> I pass it in like this:
>> >>
>> >> extra = 'xenfb.video=8,1024,768'
>> >>
>> >> I can see this being passed to the kernel when it boots but it doesn't
>> >> change the vnc screen resolution.
>>
>> Thanks for pointing out that parameter.
>>
>> There are three parts answer to your question.
>>
>> The first part, being how to pass a parameter to kernel. That would
>> depend on how you boot domU:
>> - If you use pygrub/pv-grub, then the correct way to pass it would be
>> to edit domU's grub config file (or some other config file that is
>> used to generate it, like /etc/default/grub).
>> - If you use pygrub, you might be able to use "args" to add it without
>> editing domU's grub config file
>> - If you use "kernel" and "ramdisk", then the right way to add it is
>> on "extra" line (which should already contain things like "root=")
>> You can check with "cat /proc/cmdline" inside domU to see if the
>> parameter is correctly passed to domU kernel.
>>
>> The second part is where to put the parameter:
>> - If xen vfb support is compiled built-in in domU kernel, then the
>> only place to pass it is on domU kernel command line, using one oh the
>> three options mentioned above
>> - If xen vfb support is built as a module, you can pass it on domU
>> kernel command line, or by simply creating a .conf file on
>> /etc/modprobe.d (recommended)
>>
>> The third part is what's the correct module name, and what parameter
>> to pass. In Ubuntu maverick, the module name is xen-fbfront.
>> $ modinfo xen-fbfront
>> filename:
>> /lib/modules/2.6.35-25-generic/kernel/drivers/video/xen-fbfront.ko
>> alias:          xen:vfb
>> license:        GPL
>> description:    Xen virtual framebuffer device frontend
>> srcversion:     0EB34742ACF8D2559403034
>> depends:        fb_sys_fops,syscopyarea,sysfillrect,sysimgblt
>> vermagic:       2.6.35-25-generic SMP mod_unload modversions
>> parm:           video:Video memory size in MB, width, height in pixels
>> (default 2,800,600) (array of int)
>>
>>
>> So considering all three parts, if you use Ubuntu maverick and want to
>> use 1280x1024, you can just create a file like this:
>> $ cat /etc/modprobe.d/xen-fbfront.conf
>> options xen-fbfront video=32,1280,1024
>>
>> A "depmod -a" and "update-initramfs -u" might be needed afterwards.
>> After reboot, it should correctly use 1280x1024 resolution.
>>
>> I still say you should use things like NX/xrdp/vnc server inside domU
>> though (my favorite is xrdp). It's smooth, easy to install (apt-get
>> install xrdp), can allow you to choose different resolution without
>> having to reboot (just specify the desired resolution and color depth
>> when you connect), and allows you to have multiple GUI session to the
>> client (using idfferent user-resolution-depth combination)
>>
>> --
>> Fajar
>
>
>
> --
> Ted Brenner
>
> _______________________________________________
> Xen-users mailing list
> Xen-users@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-users
>



--
Melody Bliss
Usenix, SAGE and LOPSA Charter Member
Patron Member of the NRA



--
Ted Brenner
_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users