Hi! It is possible to start domU''s with dependencies? I mean something like that: 1. start domU a 2. wait till domU a completely started 3. start domU b 4. wait till domU b completely started 5. start all other domU''s How to do it? Greetz PS: sorry for my english _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
2009/6/21 Christoph Kaminski <mangel@gmx.de>> Hi! > > It is possible to start domU''s with dependencies? > > I mean something like that: > > 1. start domU a > 2. wait till domU a completely started > 3. start domU b > 4. wait till domU b completely started > 5. start all other domU''s > > How to do it? > > Greetz > > PS: sorry for my english > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users >I haven''t tried it but i guess a bash script would solve your hands. -- antonis kouzoupis _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Hi, Cristoph I had same problem when I used HVM guest with active directory controller (win2k3). One problem thet there is no "XEN" way to check that booted OS is ready. I read this thread http://forums.novell.com/novell-product-support-forums/suse-linux-enterprise-server-sles/sles-virtualization/343455-how-change-order-automatic-start-virtual-machines-when-power.html You can solve this problem via changing /etc/init.d/xendomains script (Debian for example) You can add check - if config have name "win2k3_AD.cfg" - then wait untill it will response for network pings from Dom0. --- Thanks! Evgeniy Sudyr On Sun, Jun 21, 2009 at 11:11 AM, Christoph Kaminski<mangel@gmx.de> wrote:> Hi! > > It is possible to start domU''s with dependencies? > > I mean something like that: > > 1. start domU a > 2. wait till domU a completely started > 3. start domU b > 4. wait till domU b completely started > 5. start all other domU''s > > How to do it? > > Greetz > > PS: sorry for my english > > _______________________________________________ > 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 Sun, Jun 21, 2009 at 11:11 AM, Christoph Kaminski<mangel@gmx.de> wrote:> Hi!Hello there!> It is possible to start domU''s with dependencies?If by "dependencies" you mean a service in a domU that must be started before the other domU boots, e.g. a NFS server or a database, you could check from dom0 when this service is up so to boot the other machine. As previous folks told, there is no Xen way to do that, because Xen has nothing to do with userspace applications, so you have to use a script of your own, which would be highly dependable on the "dependencies" you have. Maybe if you could clarify the "dependencies" you need to resolve, someone could help :) -- Costas Drogos _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Costas Drogos schrieb:> > If by "dependencies" you mean a service in a domU that must be started > before the other domU boots, e.g. a NFS server or a database, you > could check from dom0 when this service is up so to boot the other > machine. > > As previous folks told, there is no Xen way to do that, because Xen > has nothing to do with userspace applications, so you have to use a > script of your own, which would be highly dependable on the > "dependencies" you have. > > Maybe if you could clarify the "dependencies" you need to resolve, > someone could help :) > >With dependencies mean the whole host completely started. start host a wait till all services started on host a start host b and so on... Greetz _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Christoph Kaminski wrote:> Costas Drogos schrieb: >> >> If by "dependencies" you mean a service in a domU that must be started >> before the other domU boots, e.g. a NFS server or a database, you >> could check from dom0 when this service is up so to boot the other >> machine. >> >> As previous folks told, there is no Xen way to do that, because Xen >> has nothing to do with userspace applications, so you have to use a >> script of your own, which would be highly dependable on the >> "dependencies" you have. >> >> Maybe if you could clarify the "dependencies" you need to resolve, >> someone could help :) >> >> > > With dependencies mean the whole host completely started. > > start host a > wait till all services started on host a > start host b > and so on... > > GreetzHi, Your only hope here is that your booted host tells the dom0 that it has started. One of the solution could be to setup ssh keys, so that your "host a" can log into your dom0, then do something like that in your /etc/rc.local: ssh dom0-ip ''touch /var/lib/script-name-of-your-choice/host-a-booted'' Then you could do a startup script like this: xm create host-a while [ ! -e /var/lib/script-name-of-your-choice/host-a-booted ] ; do sleep 5 done xm create host-b There might be 1000 other ways of doing this, but this one is easy to implement. Maybe you want to have some kind of limits in the while loop, and maybe some alerting to let you know if host-a never wrote the file. I hope that helps, this is just a 2 cents script helping written from top of my head as you seem to be turning in loops searching for a solution... Thomas _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users