Ignatia Suwarna
2005-Sep-21 00:37 UTC
[Xen-devel] Error creating domain - int argument required
I got this error message when trying to create a domain, from the Fedora Xen quick start docs. "Error: Error creating domain: int argument required" I found relevant information from the archive, but I can''t clearly point out what the solution was: http://lists.xensource.com/archives/html/xen-devel/2004-08/msg00282.html It seems like the problem is due to the fact that my system doesn''t have /dev/sda1. How do you get away with this? Any helps would be greatly appreciated. _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Ignatia Suwarna
2005-Sep-21 19:14 UTC
Re: [Xen-devel] Error creating domain - int argument required
Here is my domU config: kernel="/boot/vmlinuz-2.6.12-1.1447_FC4xenU" memory=64 name="rawhide" nics=1 disk=[''file:/root/fedora.img, sda1, w''] root="/dev/sda1" extra="rp selinux=0 3" I also started over with hda1, since there is /dev/hda1, but it gave the same error: Error creating domain, int required. Is this a known issue? Or something wrong with my config?? On 9/20/05, Ted Kaczmarek <tedkaz@optonline.net> wrote:> > On Tue, 2005-09-20 at 17:37 -0700, Ignatia Suwarna wrote: > > I got this error message when trying to create a domain, from the > > Fedora Xen quick start docs. > > "Error: Error creating domain: int argument required" > > > > I found relevant information from the archive, but I can''t clearly > > point out what the solution was: > > http://lists.xensource.com/archives/html/xen-devel/2004-08/msg00282.html > > > > It seems like the problem is due to the fact that my system doesn''t > > have /dev/sda1. How do you get away with this? > > > > Any helps would be greatly appreciated. > > > > _______________________________________________ > > Xen-devel mailing list > > Xen-devel@lists.xensource.com > > http://lists.xensource.com/xen-devel > > Post your domU config and version info for better responses. > > I really don''t think a real physical /dev/sda1 is required but I could > be wrong, both of my test boxes are scsi and do have sda1. I have used > designations from hda1 to sdd10 for my domU''s root, and it always works > as long as the fstab for that image matches. > > Regards, > Ted > > > > >_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
David F Barrera
2005-Sep-21 19:54 UTC
Re: [Xen-devel] Error creating domain - int argument required
On Wed, 2005-09-21 at 12:14 -0700, Ignatia Suwarna wrote:> Here is my domU config: > kernel="/boot/vmlinuz-2.6.12-1.1447_FC4xenU" > memory=64 > name="rawhide" > nics=1 > disk=[''file:/root/fedora.img, sda1, w''] > root="/dev/sda1" > extra="rp selinux=0 3" > > I also started over with hda1, since there is /dev/hda1, but it gave > the same error: > Error creating domain, int required. > > Is this a known issue? Or something wrong with my config??I think it is a bug. I am seeing this problem, too, using the latest hg pull, changeset 6987. I have opened up a bugzilla report on it, #246. http://bugzilla.xensource.com/bugzilla/show_bug.cgi?id=246 x335b:/tmp/xen # xm create -c vm1.cfg Using config file "vm1.cfg". Error: Error creating domain: int argument required x335b:/tmp/xen #> > > On 9/20/05, Ted Kaczmarek <tedkaz@optonline.net> wrote: > On Tue, 2005-09-20 at 17:37 -0700, Ignatia Suwarna wrote: > > I got this error message when trying to create a domain, > from the > > Fedora Xen quick start docs. > > "Error: Error creating domain: int argument required" > > > > I found relevant information from the archive, but I can''t > clearly > > point out what the solution was: > > http://lists.xensource.com/archives/html/xen- > devel/2004-08/msg00282.html > > > > It seems like the problem is due to the fact that my system > doesn''t > > have /dev/sda1. How do you get away with this? > > > > Any helps would be greatly appreciated. > > > > _______________________________________________ > > Xen-devel mailing list > > Xen-devel@lists.xensource.com > > http://lists.xensource.com/xen-devel > > Post your domU config and version info for better responses. > > I really don''t think a real physical /dev/sda1 is required but > I could > be wrong, both of my test boxes are scsi and do have sda1. I > have used > designations from hda1 to sdd10 for my domU''s root, and it > always works > as long as the fstab for that image matches. > > Regards, > Ted > > > > > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel-- Regards, David F Barrera Linux Technology Center Systems and Technology Group, IBM "The wisest men follow their own direction. " Euripides _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Ignatia Suwarna
2005-Sep-21 22:05 UTC
Re: [Xen-devel] Error creating domain - int argument required
Removing the spaces seems to work. Thankss a lot. I was wondering where can we get other packages for domainU? I''d like to try different guest OS-es. The host is running on Fedora Core 4. On 9/21/05, Ted Kaczmarek <tedkaz@optonline.net> wrote:> > On Wed, 2005-09-21 at 12:14 -0700, Ignatia Suwarna wrote: > > Here is my domU config: > > kernel="/boot/vmlinuz-2.6.12-1.1447_FC4xenU" > > memory=64 > > name="rawhide" > > nics=1 > > disk=[''file:/root/fedora.img, sda1, w''] > > root="/dev/sda1" > > extra="rp selinux=0 3" > > > > I also started over with hda1, since there is /dev/hda1, but it gave > > the same error: > > Error creating domain, int required. > > > > Is this a known issue? Or something wrong with my config?? > > Try removing the spaces between the brackets on your disk line. > Other than that everything flies with the configs I have. > > Regards, > Ted > >_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
David F Barrera
2005-Sep-21 22:21 UTC
Re: [Xen-devel] Error creating domain - int argument required
I removed the spaces, as suggested by Ted, but no difference. disk=[''phy:hda6,0306,w'',''phy:hda5,0305,w''] [root@thinkcentre-dom0 xen]# xm create -c vm1.cfg Using config file "vm1.cfg". Error: Error creating domain: int argument required On Wed, 2005-09-21 at 15:05 -0700, Ignatia Suwarna wrote:> Removing the spaces seems to work. Thankss a lot. > > I was wondering where can we get other packages for domainU? I''d like > to try different guest OS-es. The host is running on Fedora Core 4. > > > On 9/21/05, Ted Kaczmarek <tedkaz@optonline.net> wrote: > On Wed, 2005-09-21 at 12:14 -0700, Ignatia Suwarna wrote: > > Here is my domU config: > > kernel="/boot/vmlinuz- 2.6.12-1.1447_FC4xenU" > > memory=64 > > name="rawhide" > > nics=1 > > disk=[''file:/root/fedora.img, sda1, w''] > > root="/dev/sda1" > > extra="rp selinux=0 3" > > > > I also started over with hda1, since there is /dev/hda1, but > it gave > > the same error: > > Error creating domain, int required. > > > > Is this a known issue? Or something wrong with my config?? > > Try removing the spaces between the brackets on your disk > line. > Other than that everything flies with the configs I have. > > Regards, > Ted > > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel-- Regards, David F Barrera Linux Technology Center Systems and Technology Group, IBM "The wisest men follow their own direction. " Euripides _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Puthiyaparambil, Aravindh
2005-Sep-21 22:53 UTC
RE: [Xen-devel] Error creating domain - int argument required
You can find links to a few here. http://wiki.xensource.com/xenwiki/DistributionDownloads Cheers, Aravindh ________________________________ From: xen-devel-bounces@lists.xensource.com [mailto:xen-devel-bounces@lists.xensource.com] On Behalf Of Ignatia Suwarna Sent: Wednesday, September 21, 2005 6:05 PM To: xen-devel@lists.xensource.com Subject: Re: [Xen-devel] Error creating domain - int argument required Removing the spaces seems to work. Thankss a lot. I was wondering where can we get other packages for domainU? I''d like to try different guest OS-es. The host is running on Fedora Core 4. On 9/21/05, Ted Kaczmarek <tedkaz@optonline.net> wrote: On Wed, 2005-09-21 at 12:14 -0700, Ignatia Suwarna wrote:> Here is my domU config: > kernel="/boot/vmlinuz- 2.6.12-1.1447_FC4xenU" > memory=64 > name="rawhide" > nics=1 > disk=[''file:/root/fedora.img, sda1, w''] > root="/dev/sda1" > extra="rp selinux=0 3" > > I also started over with hda1, since there is /dev/hda1, but it gave > the same error: > Error creating domain, int required. > > Is this a known issue? Or something wrong with my config??Try removing the spaces between the brackets on your disk line. Other than that everything flies with the configs I have. Regards, Ted _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Ewan Mellor
2005-Sep-21 23:07 UTC
Re: [Xen-devel] Error creating domain - int argument required
On Wed, Sep 21, 2005 at 02:54:27PM -0500, David F Barrera wrote:> On Wed, 2005-09-21 at 12:14 -0700, Ignatia Suwarna wrote: > > Here is my domU config: > > kernel="/boot/vmlinuz-2.6.12-1.1447_FC4xenU" > > memory=64 > > name="rawhide" > > nics=1 > > disk=[''file:/root/fedora.img, sda1, w''] > > root="/dev/sda1" > > extra="rp selinux=0 3" > > > > I also started over with hda1, since there is /dev/hda1, but it gave > > the same error: > > Error creating domain, int required. > > > > Is this a known issue? Or something wrong with my config?? > > I think it is a bug. I am seeing this problem, too, using the latest hg > pull, changeset 6987. I have opened up a bugzilla report on it, #246. > > http://bugzilla.xensource.com/bugzilla/show_bug.cgi?id=246 > > x335b:/tmp/xen # xm create -c vm1.cfg > Using config file "vm1.cfg". > Error: Error creating domain: int argument required > x335b:/tmp/xen #Do you have anything useful in /var/log/xend-debug.log? Type errors like this usually appear there. Ewan. _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Kip Macy
2005-Sep-21 23:55 UTC
Re: [Xen-devel] Error creating domain - int argument required
I''m seeing this now as well. It may be a new regression. Next time a changeset is hit where this config works without any issues let me know - I''m not having much luck. -bash-3.00# xm create -f builddomain.cfg -c Using config file "builddomain.cfg". Error: Error creating domain: int argument required # unremarkable config that worked yesterday -bash-3.00# cat builddomain.cfg kernel = "vmlinuz" memory = 512 name = "test" vcpus = 4 vif = [ ''mac=aa:00:00:00:00:00, bridge=xen-br0'' ] #disk = [ ''file:newfs.00.vbd,hda,w'' ] disk = [ ''phy:loop2,hda1,w'' ] dhcp="dhcp" root = "/dev/hda1 ro" # the device is setup -bash-3.00# losetup /dev/loop2 /dev/loop2: [000c]:4383807 (newfs.01.vbd), offset 16384 # the device node name is readily available -bash-3.00# ls -l /dev/hda1 brw-rw-r-- 1 root root 3, 1 Sep 21 16:46 /dev/hda1 The backtrace from xend-debug.log: raceback (most recent call last): File "/usr/lib/python/xen/xend/server/SrvDomainDir.py", line 78, in op_create dominfo = self.xd.domain_create(config) File "/usr/lib/python/xen/xend/XendDomain.py", line 273, in domain_create dominfo = XendDomainInfo.create(self.dbmap.getPath(), config) File "/usr/lib/python/xen/xend/XendDomainInfo.py", line 146, in create vm.construct() File "/usr/lib/python/xen/xend/XendDomainInfo.py", line 719, in construct self.info[''bootloader''])) File "/usr/lib/python/xen/xend/image.py", line 158, in initDomain log.debug("initDomain: cpu=%d mem_kb=%d ssidref=%d dom=%d", cpu, mem_kb, ssidref, dom) File "/usr/lib/python2.3/logging/__init__.py", line 879, in debug apply(self._log, (DEBUG, msg, args), kwargs) File "/usr/lib/python2.3/logging/__init__.py", line 994, in _log self.handle(record) File "/usr/lib/python2.3/logging/__init__.py", line 1004, in handle self.callHandlers(record) File "/usr/lib/python2.3/logging/__init__.py", line 1037, in callHandlers hdlr.handle(record) File "/usr/lib/python2.3/logging/__init__.py", line 592, in handle self.emit(record) File "/usr/lib/python2.3/logging/handlers.py", line 102, in emit msg = "%s\n" % self.format(record) File "/usr/lib/python2.3/logging/__init__.py", line 567, in format return fmt.format(record) File "/usr/lib/python2.3/logging/__init__.py", line 362, in format record.message = record.getMessage() File "/usr/lib/python2.3/logging/__init__.py", line 233, in getMessage msg = msg % self.args TypeError: int argument required On 9/21/05, Ewan Mellor <ewan@xensource.com> wrote:> > On Wed, Sep 21, 2005 at 02:54:27PM -0500, David F Barrera wrote: > > > On Wed, 2005-09-21 at 12:14 -0700, Ignatia Suwarna wrote: > > > Here is my domU config: > > > kernel="/boot/vmlinuz-2.6.12-1.1447_FC4xenU" > > > memory=64 > > > name="rawhide" > > > nics=1 > > > disk=[''file:/root/fedora.img, sda1, w''] > > > root="/dev/sda1" > > > extra="rp selinux=0 3" > > > > > > I also started over with hda1, since there is /dev/hda1, but it gave > > > the same error: > > > Error creating domain, int required. > > > > > > Is this a known issue? Or something wrong with my config?? > > > > I think it is a bug. I am seeing this problem, too, using the latest hg > > pull, changeset 6987. I have opened up a bugzilla report on it, #246. > > > > http://bugzilla.xensource.com/bugzilla/show_bug.cgi?id=246 > > > > x335b:/tmp/xen # xm create -c vm1.cfg > > Using config file "vm1.cfg". > > Error: Error creating domain: int argument required > > x335b:/tmp/xen # > > Do you have anything useful in /var/log/xend-debug.log? Type errors like > this > usually appear there. > > Ewan. > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel >_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Kip Macy
2005-Sep-22 00:35 UTC
Re: [Xen-devel] Error creating domain - int argument required
I found the problem. Your changes to the parsing code earlier today made it less tolerant of unset values where you''re expecting a type. Adding cpu=-1 to the command line made the complaints go away. On line 221 in XendDomainInfo.py you may want to change result[''cpu''] = get_cfg(''cpu'', int) to result[''cpu''] = get_cfg(''cpu'') and then change the current behaviour for -1 to handle None. -Kip On 9/21/05, Ewan Mellor <ewan@xensource.com> wrote:> > On Wed, Sep 21, 2005 at 02:54:27PM -0500, David F Barrera wrote: > > > On Wed, 2005-09-21 at 12:14 -0700, Ignatia Suwarna wrote: > > > Here is my domU config: > > > kernel="/boot/vmlinuz-2.6.12-1.1447_FC4xenU" > > > memory=64 > > > name="rawhide" > > > nics=1 > > > disk=[''file:/root/fedora.img, sda1, w''] > > > root="/dev/sda1" > > > extra="rp selinux=0 3" > > > > > > I also started over with hda1, since there is /dev/hda1, but it gave > > > the same error: > > > Error creating domain, int required. > > > > > > Is this a known issue? Or something wrong with my config?? > > > > I think it is a bug. I am seeing this problem, too, using the latest hg > > pull, changeset 6987. I have opened up a bugzilla report on it, #246. > > > > http://bugzilla.xensource.com/bugzilla/show_bug.cgi?id=246 > > > > x335b:/tmp/xen # xm create -c vm1.cfg > > Using config file "vm1.cfg". > > Error: Error creating domain: int argument required > > x335b:/tmp/xen # > > Do you have anything useful in /var/log/xend-debug.log? Type errors like > this > usually appear there. > > Ewan. > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel >_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Li, Xin B
2005-Sep-22 09:54 UTC
RE: [Xen-devel] Error creating domain - int argument required
this patch fixes the bug that when "cpu" is not set in config file, control panel complains "Error creating domain - int argument required". Signed-off-by: Xin Li <xin.b.li@intel.com> -Xin diff -r a32ee93b3b33 tools/python/xen/xend/image.py --- a/tools/python/xen/xend/image.py Wed Sep 21 22:41:34 2005 +++ b/tools/python/xen/xend/image.py Thu Sep 22 17:46:05 2005 @@ -155,6 +155,8 @@ if dom <= 0: raise VmError(''Creating domain failed: name=%s'' % self.vm.getName()) + if cpu is None: + cpu = -1; log.debug("initDomain: cpu=%d mem_kb=%d ssidref=%d dom=%d", cpu, mem_kb, ssidref, dom) xc.domain_setcpuweight(dom, cpu_weight) xc.domain_setmaxmem(dom, mem_kb) ________________________________ From: xen-devel-bounces@lists.xensource.com [mailto:xen-devel-bounces@lists.xensource.com] On Behalf Of Kip Macy Sent: 2005年9月22日 8:36 To: Ewan Mellor Cc: David F Barrera; xen-devel; Ignatia Suwarna Subject: Re: [Xen-devel] Error creating domain - int argument required I found the problem. Your changes to the parsing code earlier today made it less tolerant of unset values where you''re expecting a type. Adding cpu=-1 to the command line made the complaints go away. On line 221 in XendDomainInfo.py you may want to change result[''cpu''] = get_cfg(''cpu'', int) to result[''cpu''] = get_cfg(''cpu'') and then change the current behaviour for -1 to handle None. -Kip On 9/21/05, Ewan Mellor <ewan@xensource.com> wrote: On Wed, Sep 21, 2005 at 02:54:27PM -0500, David F Barrera wrote: > On Wed, 2005-09-21 at 12:14 -0700, Ignatia Suwarna wrote: > > Here is my domU config: > > kernel="/boot/vmlinuz-2.6.12-1.1447_FC4xenU " > > memory=64 > > name="rawhide" > > nics=1 > > disk=[''file:/root/fedora.img, sda1, w''] > > root="/dev/sda1" > > extra="rp selinux=0 3" > > > > I also started over with hda1, since there is /dev/hda1, but it gave > > the same error: > > Error creating domain, int required. > > > > Is this a known issue? Or something wrong with my config?? > > I think it is a bug. I am seeing this problem, too, using the latest hg > pull, changeset 6987. I have opened up a bugzilla report on it, #246. > > http://bugzilla.xensource.com/bugzilla/show_bug.cgi?id=246 > > x335b:/tmp/xen # xm create -c vm1.cfg > Using config file "vm1.cfg". > Error: Error creating domain: int argument required > x335b:/tmp/xen # Do you have anything useful in /var/log/xend-debug.log? Type errors like this usually appear there. Ewan. _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Ewan Mellor
2005-Sep-22 10:09 UTC
Re: [Xen-devel] Error creating domain - int argument required
On Thu, Sep 22, 2005 at 05:54:14PM +0800, Li, Xin B wrote:> this patch fixes the bug that when "cpu" is not set in config file, > control panel complains "Error creating domain - int argument required". > Signed-off-by: Xin Li <xin.b.li@intel.com>Applied, thanks. Ewan. _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel