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] Specify domain ID?

To: "Henning Sprang" <henning_sprang@xxxxxx>
Subject: Re: [Xen-users] Specify domain ID?
From: "Benet Leong" <benetleong@xxxxxxxxx>
Date: Thu, 5 Oct 2006 15:07:19 +0800
Cc: "msmith@xxxxxxxxxxxxxx" <msmith@xxxxxxxxxxxxxx>, xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Thu, 05 Oct 2006 00:08:28 -0700
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=ciWqJHtjxoBotZFF86JsH4g/OPeeS5a0LHud+4h/jISv21qD2vi+gdW5Gaq2+rYiATLWNqG/DBPX51vKjaabChifUnKxfL4Ci9OQKe3by6VnAkiv8x4pjS1aQ9QJYjfrs2/HWhmboi8r4n8b818OyeScle/a9ruLvGmVLN87nTY=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <5bb00b3f0610040954p7e5329a9t4ac72a4882a5b595@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/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <60983.10.100.230.117.1159972279.squirrel@xxxxxxxxxxxxxxx> <5bb00b3f0610040749q26969693s5c0ae6f5b11e95f4@xxxxxxxxxxxxxx> <5bb00b3f0610040753s2584f3f3p8ac8c9c5dca41e53@xxxxxxxxxxxxxx> <40982.10.100.230.117.1159974254.squirrel@xxxxxxxxxxxxxxx> <af69c3c60610040938s2e16d2m42979760c33bf34b@xxxxxxxxxxxxxx> <5bb00b3f0610040954p7e5329a9t4ac72a4882a5b595@xxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
On 10/5/06, Henning Sprang <henning_sprang@xxxxxx> wrote:
> vncserver :2 -depth 24 -geometry 1024x768

Do you know how to apply this to the vncserver automatically started
when hvm domains start?

I imagine it should be possible, but it's likely that it's not just a
config option but requires understanding the python code of xm and the
other xen-utils (which I don't at the moment).

Henning
 
----------------------------------------------
 
Well, for my current setup where I have my DomU OS installed on Debian 3.1 with XFCE windows package and VNCserver; what I did was to create a startup script and just add it to boot as you would normally do for a Linux box.So, when my domain boot-up; vncserver will automatically start.
 
Here's the general step (if you're interested):
1. In you DomU OS, create a file call vncserver in /etc/init.d
      # vi /etc/init.d/vncserver
 
2. Your script to start VNC would somehow look like this. This is a general script... you should modify it to suit your own preference. :)
 
#!/bin/sh
#
# Start/stops the vnc service.
#

test -x /usr/bin/realvncserver || exit 0
case "$1" in
        start)
                echo -n "Starting vnc server."
                export USER='root'
                su -c "/usr/bin/vncserver :1 -geometry 1024x768 depth 24"
                ;;
        stop)
                su -c "/usr/bin/vncserver -kill :1"
                ;;
        restart|force-reload)
                $0 stop
                sleep 1
                $0 start
                ;;
        *)
                echo "Usage: /etc/init.d/vncserver {start|stop|restart|force-reload}"
                exit 1
                ;;
esac
exit 0

 
3. Save the script and make it executable.
      # chmod +x /etc/init.d/vncserver
 
4. Add it to boot at startup.
      # update-rc.d vncserver defaults

And you're done...
 
Hope this helps. Cheers~!
 
Reference:

--
Best regards,
Benet Leong.
On the WWW :http://www.benetleong.com
Strong mind have wills, feeble ones have only wishes.
_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users