Hi, Is there a way to specify the domain ID in either the config file or on the command line when doing a ''xm create''? Or maybe a way to make the domain ID "stick" so it doesn''t change? I am using xen 3.0.2. Thanks for your time. --Marc _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On 10/4/06, msmith@edtech.mcc.edu <msmith@edtech.mcc.edu> wrote:> Is there a way to specify the domain ID in either the config file or on > the command line when doing a ''xm create''? Or maybe a way to make the > domain ID "stick" so it doesn''t change?Not that I know of. You can set the domain name yourself. What do you want to do with that? Henning _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On 10/4/06, Henning Sprang <henning_sprang@gmx.de> wrote:> Not that I know of. You can set the domain name yourself. > What do you want to do with that?Oops, right after sending I got an idea (but cannot check it) in the vmexample2 example config file, a value for vmid is set. But I am not sure if it''s really used as internal domain id later, or jaut to be appended to the domain name, so you can get a domain named "webserver63" by running something like xm create -v vmexample2 vmid=63 after setting the non-changing part of the name to "webserver". Henning _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
> On 10/4/06, Henning Sprang <henning_sprang@gmx.de> wrote: >> Not that I know of. You can set the domain name yourself. >> What do you want to do with that? >My only true reason for wanting a static domain ID is when I have to connect to a domain via VNC -- the display number is the domain ID. If I reboot, power off, etc. I have to SSH in and look at what the new domain ID is so I can use VNC.> Oops, right after sending I got an idea (but cannot check it) in the > vmexample2 example config file, a value for vmid is set. But I am not > sure if it''s really used as internal domain id later, or jaut to be > appended to the domain name, so you can get a domain named > "webserver63" by running something like > xm create -v vmexample2 vmid=63 > after setting the non-changing part of the name to "webserver". >I''ve read about that too, but from what I understood that does not affect the domain ID. From /etc/xen/xmexample2: # The vmid is purely a script variable, and has no effect on the the domain # id assigned to the new domain. So I take it this is not possible -- I wonder if this feature will ever be added? Maybe there is a reason for always assigning a new domain ID? --Marc> Henning > > _______________________________________________ > 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
On 10/4/06, msmith@edtech.mcc.edu <msmith@edtech.mcc.edu> wrote:> My only true reason for wanting a static domain ID is when I have to > connect to a domain via VNC -- the display number is the domain ID. If I > reboot, power off, etc. I have to SSH in and look at what the new domain > ID is so I can use VNC.Using VNC for HVM Domains? Isn''t that shaky anyway, and better solved by running a vnc server on the machine you want login to itself? Then you could just use the hostname. Henning _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
> On 10/4/06, msmith@edtech.mcc.edu <msmith@edtech.mcc.edu> wrote: >> My only true reason for wanting a static domain ID is when I have to >> connect to a domain via VNC -- the display number is the domain ID. If I >> reboot, power off, etc. I have to SSH in and look at what the new domain >> ID is so I can use VNC. > > Using VNC for HVM Domains? Isn''t that shaky anyway, and better solved > by running a vnc server on the machine you want login to itself? Then > you could just use the hostname. >Its actually not too bad; the mouse doesn''t work quite right in Windows and the resolution is strange on a text console. Yes, it does work better using VNC installed in the guest OS. Yet, its nice to be able to jump into a "physical console" of a VM if VNC/RDP/SSH/whatever isn''t working. I am coming from VMware ESX, so there are a few creature comforts I''m trying to regain with Xen. =) Thanks for your help. --Marc> Henning > > _______________________________________________ > 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
On 10/4/06, msmith@edtech.mcc.edu <msmith@edtech.mcc.edu> wrote:> > > On 10/4/06, Henning Sprang <henning_sprang@gmx.de> wrote: > >> Not that I know of. You can set the domain name yourself. > >> What do you want to do with that? > > > > My only true reason for wanting a static domain ID is when I have to > connect to a domain via VNC -- the display number is the domain ID. If I > reboot, power off, etc. I have to SSH in and look at what the new domain > ID is so I can use VNC. > >You can specify your own display number for vnc if you do not want it to tie to the doamin ID... when you start vncserver just append the following command :(display number) e.g vncserver :2 -depth 24 -geometry 1024x768 This will start vncserver on display number 2 always with the depth and resolution set as well. Hope this helps. -- 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@lists.xensource.com http://lists.xensource.com/xen-users
On 10/4/06, Benet Leong <benetleong@gmail.com> wrote:> You can specify your own display number for vnc if you do not want it to tie > to the doamin ID... when you start vncserver just append the following > command :(display number) e.g > > vncserver :2 -depth 24 -geometry 1024x768Do 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 _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On 4 Oct 2006, at 16:25, Henning Sprang wrote:> Using VNC for HVM Domains? Isn''t that shaky anyway, and better solved > by running a vnc server on the machine you want login to itself? Then > you could just use the hostname.Using VNC for these domains can be a little ropy, but it''s the only way I know to perform a Windows XP installation or to troubleshoot bootup issues with Windows. And with Xen and Windows being a little shaky to get going in the first place, it would be nice to have a way of fixing a VNC port for a specific VM. Also, because the first id is 1, this can be a problem if you use VNC on Dom0 for some other purpose. This could also be fixed by being able to specify a VNC port for a guest. -- Wayne Pascoe (gpg --keyserver www.co.uk.pgp.net --recv-keys 79A7C870) There are no stupid questions, only stupid people. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On 10/5/06, Henning Sprang <henning_sprang@gmx.de> 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.1with 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: http://www.debian.org/doc/debian-policy/ch-opersys.html#s-sysvinit -- 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@lists.xensource.com http://lists.xensource.com/xen-users
> On 10/5/06, Henning Sprang <henning_sprang@gmx.de> wrote: > vncserver :2 > -depth 24 -geometry 1024x768 > > Do you know how to apply this to the vncserver automatically started > when hvm domains start? >No, I think that would make it more confusing for me -- "domain ID 8 is on VNC display number 3." I was just wondering if it were possible to keep the domain IDs static. Not the end of the world. =)> 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). >Yeah, its not even worth the extra hassle for me. I was just kind of curious. Thanks for your help.> Henning > > ---------------------------------------------- > > Well, for my current setup where I have my DomU OS installed on Debian > 3.1with 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: > http://www.debian.org/doc/debian-policy/ch-opersys.html#s-sysvinit > > -- > 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@lists.xensource.com http://lists.xensource.com/xen-users