Hi! I''m using fedora 7 as host and guest for xen. I used virt-manager tool to create my guests. When I try to use virsh to set my guest to autostart a get: error: Failed to mark domain guestA as autostarted Googling I found that I could put the a file that has the guest name at /etc/xen/auto/ but I do not have any file with the guest name in /etc/xen I generated the XML dump. Can I convert the dump to another format to use in /etc/xen/auto or any other solution? Thanks in advance. Regards, -- Augusto Castelan Carlson _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Augusto Castelan Carlson wrote:> Hi! > > I''m using fedora 7 as host and guest for xen. > > I used virt-manager tool to create my guests. When I try to use virsh > to set my guest to autostart a get: error: Failed to mark domain > guestA as autostarted > > Googling I found that I could put the a file that has the guest name > at /etc/xen/auto/ > but I do not have any file with the guest name in /etc/xen > > I generated the XML dump. Can I convert the dump to another format to > use in /etc/xen/auto or any other solution? > > Thanks in advance. > > Regards, >Nahhh, just make a symlink from /etc/xen to /etc/xen/auto. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Augusto Castelan Carlson
2007-Aug-23 19:36 UTC
Re: [Xen-users] guest autostart on host boot
Hi! On 8/23/07, Nico Kadel-Garcia <nkadel@gmail.com> wrote:> > > Nahhh, just make a symlink from /etc/xen to /etc/xen/auto. >I have read about the symlink from /etc/xen to /etc/xen/auto, but when I create my guest using virt-manager (fedora 7) it does not create the guest''s config file at /etc/xen/ Any suggestion? Thanks! Regards, -- Augusto Castelan Carlson _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Augusto Castelan Carlson wrote:> Hi! > > On 8/23/07, Nico Kadel-Garcia <nkadel@gmail.com> wrote: > >> Nahhh, just make a symlink from /etc/xen to /etc/xen/auto. >> >> > > I have read about the symlink from /etc/xen to /etc/xen/auto, but when > I create my guest using virt-manager (fedora 7) it does not create the > guest''s config file at /etc/xen/ > > Any suggestion? >That''s news to me. Where does it put it? Can you do a "find /etc -name [domain]" to locate it? _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
hi, Nico Kadel-Garcia schrieb:>> I have read about the symlink from /etc/xen to /etc/xen/auto, but when >> I create my guest using virt-manager (fedora 7) it does not create the >> guest''s config file at /etc/xen/ >> >> Any suggestion? >> > That''s news to me. Where does it put it? Can you do a "find /etc -name > [domain]" to locate it?that doesn''t make any sense to me. First, most distributions have also a Xen Script /etc/init.d/xendomains that starts the DomUs automatically. Second, i don''t now the virt-manager, but create a config file and start DomUs are two things. cu denny -- Stoppt den Überwachungswahn - Stoppt den Schäuble Katalog: http://www.nopsis.de _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Augusto Castelan Carlson
2007-Aug-24 21:04 UTC
Re: [Xen-users] guest autostart on host boot
> > I have read about the symlink from /etc/xen to /etc/xen/auto, but when > > I create my guest using virt-manager (fedora 7) it does not create the > > guest''s config file at /etc/xen/ > > > > Any suggestion? > > > That''s news to me. Where does it put it? Can you do a "find /etc -name > [domain]" to locate it? >I did it, but looking some places after a google search, I found someone saying that virt-manager does not create this file in /etc/xen. Instead, it is created at /var/lib/xend/domains/<guest-uid-number>/config.sxp I have made symlink to that file. When I shutdown/reboot the host, and guests are online, they are saved. When turning on the host or after rebooting, guests become online too. But if guests are down, they continue down after reboot. Is this correct? Can I say that autostart is working? Thanks! Regards, -- Augusto Castelan Carlson _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Augusto Castelan Carlson
2007-Aug-24 21:08 UTC
Re: [Xen-users] guest autostart on host boot
> that doesn''t make any sense to me. First, most distributions have also a > Xen Script /etc/init.d/xendomains that starts the DomUs automatically. > Second, i don''t now the virt-manager, but create a config file and start > DomUs are two things.I have xendomains enabled. So when guests are online and host is reboot/shutdown, they will become online after rebooting/power on. If they are offline, they will not start after a reboot? Thanks! Regards, -- Augusto Castelan Carlson _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
hi, Augusto Castelan Carlson schrieb:> rebooting, guests become online too. But if guests are down, they > continue down after reboot. Is this correct? Can I say that autostart > is working?ah, ok, please ignore my first mail. :-) If the guest is running and the Dom0 would be restarted, or shutting down, then you are right, the VMs are saved and restored after starting the Dom0 again. But for starting the guest after a reboot, while the guest was not running at this time, please check, if the link exists to xen/auto/<link to guest config> and if you have a special init starting script for that. cu denny -- Stoppt den Überwachungswahn - Stoppt den Schäuble Katalog: http://www.nopsis.de _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Denny Schierz wrote:> hi, > > Nico Kadel-Garcia schrieb: > >>> I have read about the symlink from /etc/xen to /etc/xen/auto, but when >>> I create my guest using virt-manager (fedora 7) it does not create the >>> guest''s config file at /etc/xen/ >>> >>> Any suggestion? >>> >>> >> That''s news to me. Where does it put it? Can you do a "find /etc -name >> [domain]" to locate it? >> > > that doesn''t make any sense to me. First, most distributions have also a > Xen Script /etc/init.d/xendomains that starts the DomUs automatically. > Second, i don''t now the virt-manager, but create a config file and start > DomUs are two things. > > cu denny >Virt-manager, in earlier releases, creates a file for a new DomU called, say, "DOMAIN", in /etc/xen/DOMAIN. It''s easy to miss those files among the other scripts and configuration files in /etc/xen, especially if you''ve been experimenting and doing lots of them, which is why I suggested a "find" command to look around for it. But checking the Xen init scripts is another good idea. I''ve heard rumors of RedHat wanting to make the Xen configuration information database driven: this would allow tools like virt-manager to more correctly guess what domains exist but are turned off. But I dunno: if the authors of virt-manager can''t be bothered to write a tool to actually scan for config files and list them as well...... _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users