Hi all, I''m doing some tweaks and modifications to the initscripts that are included in my Xen packages for EL6. We''ve just stumbled across a problem that I''m not sure is xen related or not. If you have a running system, and you manually create a DomU such as: # xl create /etc/xen/domu.cfg Then attempt to create that DomU again, you end up with something like: # xl create vm.cfg Parsing config from vm.cfg libxl: error: libxl_create.c:526:libxl__domain_make: cannot change hotplug execution option once set, please shutdown all guests before changing it libxl: error: libxl_create.c:646:initiate_domain_create: cannot make domain: -3 You then end up with an entry in ''xl list'' that starts with (null) and nothing is easily able to destroy it. My feelings are that xl shouldn''t try to create a DomU that already exists - at the very least not leave a partially configured DomU. This is on Xen 4.2.2. Thoughts? -- Steven Haigh Email: netwiz@crc.id.au Web: https://www.crc.id.au Phone: (03) 9001 6090 - 0412 935 897 Fax: (03) 8338 0299
On Sat, Apr 27, 2013 at 05:15:33AM +0100, Steven Haigh wrote:> Hi all, > > I''m doing some tweaks and modifications to the initscripts that are > included in my Xen packages for EL6. We''ve just stumbled across a > problem that I''m not sure is xen related or not. > > If you have a running system, and you manually create a DomU such as: > # xl create /etc/xen/domu.cfg > > Then attempt to create that DomU again, you end up with something like: > # xl create vm.cfg > Parsing config from vm.cfg > libxl: error: libxl_create.c:526:libxl__domain_make: cannot change > hotplug execution option once set, please shutdown all guests before > changing it > libxl: error: libxl_create.c:646:initiate_domain_create: cannot make > domain: -3 > > You then end up with an entry in ''xl list'' that starts with (null) and > nothing is easily able to destroy it. > > My feelings are that xl shouldn''t try to create a DomU that already > exists - at the very least not leave a partially configured DomU. >Yes, xl will check if a domain with that name exists. I saw similar error message when I mixed xend and xl. But I didn''t look into that because I knew I was doing something terribly wrong. Did you use xend and xl at the same time as well? Wei.
On 28/04/2013 12:27 AM, Wei Liu wrote:> On Sat, Apr 27, 2013 at 05:15:33AM +0100, Steven Haigh wrote: >> Hi all, >> >> I''m doing some tweaks and modifications to the initscripts that are >> included in my Xen packages for EL6. We''ve just stumbled across a >> problem that I''m not sure is xen related or not. >> >> If you have a running system, and you manually create a DomU such as: >> # xl create /etc/xen/domu.cfg >> >> Then attempt to create that DomU again, you end up with something like: >> # xl create vm.cfg >> Parsing config from vm.cfg >> libxl: error: libxl_create.c:526:libxl__domain_make: cannot change >> hotplug execution option once set, please shutdown all guests before >> changing it >> libxl: error: libxl_create.c:646:initiate_domain_create: cannot make >> domain: -3 >> >> You then end up with an entry in ''xl list'' that starts with (null) and >> nothing is easily able to destroy it. >> >> My feelings are that xl shouldn''t try to create a DomU that already >> exists - at the very least not leave a partially configured DomU. >> > > Yes, xl will check if a domain with that name exists. > > I saw similar error message when I mixed xend and xl. But I didn''t look > into that because I knew I was doing something terribly wrong. Did you > use xend and xl at the same time as well?Ahhh of course - this would actually make sense - as our tests were checking the initscript worked with both xend running, and not running (ie the initscript auto-detecting if it should use xm or xl). In testing this, xend was started and stopped multiple times while starting and stopping DomUs. Its probably safe to ignore this... -- Steven Haigh Email: netwiz@crc.id.au Web: https://www.crc.id.au Phone: (03) 9001 6090 - 0412 935 897 Fax: (03) 8338 0299