I''m running xen-3.2.0_16718_18-0.3 on SLES10SP2. I have a few domUs that I''m trying to adjust their behavior when xend starts. I do this: #xm list -l server01 > server01.conf #vi server01.conf Change this: (on_xend_start ignore) To: (on_xend_start start) Save and exit vi. Then: #xm new -F server01.conf If I then do: #xm list -l server01 The setting is still set to ignore. Any suggestions or thoughts on why it''s not updating? I have definitely done this same process on other domUs without trouble. Thanks, James _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Tue, 2009-05-26 at 12:28 -0400, James Pifer wrote:> I''m running xen-3.2.0_16718_18-0.3 on SLES10SP2. I have a few domUs that > I''m trying to adjust their behavior when xend starts. I do this: > > #xm list -l server01 > server01.conf > #vi server01.conf > > Change this: > (on_xend_start ignore) > > To: > (on_xend_start start) > > Save and exit vi. > Then: > #xm new -F server01.conf > > If I then do: > #xm list -l server01 > > The setting is still set to ignore. Any suggestions or thoughts on why > it''s not updating? I have definitely done this same process on other > domUs without trouble. ><bump> Has anyone seen this problem before? Thanks, James _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Fajar A. Nugraha
2009-May-28 04:53 UTC
Re: [Xen-users] Can''t update xenstore for a few domUs
On Wed, May 27, 2009 at 6:24 PM, James Pifer <jep@obrien-pifer.com> wrote:>> #xm list -l server01 > server01.conf >> #vi server01.conf>> Save and exit vi. >> Then: >> #xm new -F server01.confDid you do "xm delete" before "xm new"? _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Thu, 2009-05-28 at 11:53 +0700, Fajar A. Nugraha wrote:> On Wed, May 27, 2009 at 6:24 PM, James Pifer <jep@obrien-pifer.com> wrote: > >> #xm list -l server01 > server01.conf > >> #vi server01.conf > > >> Save and exit vi. > >> Then: > >> #xm new -F server01.conf > > Did you do "xm delete" before "xm new"? >So the process would be: #xm list -l server01 > server01.conf #vi server01.conf (save and exit vi) xm delete server01 xm new -F server01.conf That correct? Thanks, James _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Thu, 2009-05-28 at 11:53 +0700, Fajar A. Nugraha wrote:> On Wed, May 27, 2009 at 6:24 PM, James Pifer <jep@obrien-pifer.com> wrote: > >> #xm list -l server01 > server01.conf > >> #vi server01.conf > > >> Save and exit vi. > >> Then: > >> #xm new -F server01.conf > > Did you do "xm delete" before "xm new"?I can''t xm delete as the domu is running. What exactly is xm delete supposed to accomplish? I just want to update the xenstore settings for startup and shutdown for the domu. Thanks, James _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Fajar A. Nugraha
2009-May-28 16:58 UTC
Re: [Xen-users] Can''t update xenstore for a few domUs
On Thu, May 28, 2009 at 11:02 PM, James Pifer <jep@obrien-pifer.com> wrote:> I can''t xm delete as the domu is running. What exactly is xm delete > supposed to accomplish? I just want to update the xenstore settings for > startup and shutdown for the domu.Older versions of xen and libvirtd (like the one in RHEL5) stores its configuration by default as files on /etc/xen. This means that changes only need to go to config file. To get domains to autostart, you can place a symlink to its config in /etc/xen/auto as there''s a special service (xendomains) that autostart domUs whose config is in that directory. Newer version (like the one you have) uses xend to manage domU configuration. It''s created by "xm new" and modified by commands like "xm" or "virsh" that can change (most) configuration online. The problem is I''m not aware of any command that can change "on_xend_start" and "on_xend_stop". The "clean" way to change it is to delete domU config using "xm delete" (which requires domU to be shutdown) and create it again with "xm new". It might not have xendomains service anymore (at least opensolaris doesn''t). The config is actually stored on /var/lib/xend/domains, but I recommend you don''t edit it manually. Last time I tried the changes there are only picked up when xend is (re)started, which in your case should also shut down domU :P Better do it the "clean" way. If your distro is like RHEL (in that it has xendomains service and also support xend-managed domains), you could choose any method (/etc/xen or xend-managed) to store domU config when creating domUs manually. Personally I prefer /etc/xen method as it''s more manageable. Hopefully others can help you more. -- Fajar _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
> Older versions of xen and libvirtd (like the one in RHEL5) stores its > configuration by default as files on /etc/xen. This means that changes > only need to go to config file. To get domains to autostart, you can > place a symlink to its config in /etc/xen/auto as there''s a special > service (xendomains) that autostart domUs whose config is in that > directory. > > Newer version (like the one you have) uses xend to manage domU > configuration. It''s created by "xm new" and modified by commands like > "xm" or "virsh" that can change (most) configuration online. The > problem is I''m not aware of any command that can change > "on_xend_start" and "on_xend_stop". The "clean" way to change it is to > delete domU config using "xm delete" (which requires domU to be > shutdown) and create it again with "xm new". It might not have > xendomains service anymore (at least opensolaris doesn''t). > > The config is actually stored on /var/lib/xend/domains, but I > recommend you don''t edit it manually. Last time I tried the changes > there are only picked up when xend is (re)started, which in your case > should also shut down domU :P Better do it the "clean" way. > > If your distro is like RHEL (in that it has xendomains service and > also support xend-managed domains), you could choose any method > (/etc/xen or xend-managed) to store domU config when creating domUs > manually. Personally I prefer /etc/xen method as it''s more manageable. > > Hopefully others can help you more. >Thanks for the info. I''m running SLES10SP2. The strange thing is that I''m positive that I have changed those settings on other domu''s using xm commands. I''ll have to play around with it some more. James _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users