* Error creating domain - int argument required
@ 2005-09-21 0:37 Ignatia Suwarna
[not found] ` <1127263786.23958.170.camel@pluto.linsolutions.com>
0 siblings, 1 reply; 11+ messages in thread
From: Ignatia Suwarna @ 2005-09-21 0:37 UTC (permalink / raw)
To: xen-devel
[-- Attachment #1.1: Type: text/plain, Size: 494 bytes --]
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.
[-- Attachment #1.2: Type: text/html, Size: 755 bytes --]
[-- Attachment #2: Type: text/plain, Size: 138 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel
^ permalink raw reply [flat|nested] 11+ messages in thread[parent not found: <1127263786.23958.170.camel@pluto.linsolutions.com>]
* Re: Error creating domain - int argument required [not found] ` <1127263786.23958.170.camel@pluto.linsolutions.com> @ 2005-09-21 19:14 ` Ignatia Suwarna 2005-09-21 19:54 ` David F Barrera [not found] ` <1127331144.23958.213.camel@pluto.linsolutions.com> 0 siblings, 2 replies; 11+ messages in thread From: Ignatia Suwarna @ 2005-09-21 19:14 UTC (permalink / raw) To: Xen-devel [-- Attachment #1.1: Type: text/plain, Size: 1578 bytes --] 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 > > > > > [-- Attachment #1.2: Type: text/html, Size: 2330 bytes --] [-- Attachment #2: Type: text/plain, Size: 138 bytes --] _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Error creating domain - int argument required 2005-09-21 19:14 ` Ignatia Suwarna @ 2005-09-21 19:54 ` David F Barrera 2005-09-21 23:07 ` Ewan Mellor [not found] ` <1127331144.23958.213.camel@pluto.linsolutions.com> 1 sibling, 1 reply; 11+ messages in thread From: David F Barrera @ 2005-09-21 19:54 UTC (permalink / raw) To: Ignatia Suwarna; +Cc: xen-devel 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 ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Error creating domain - int argument required 2005-09-21 19:54 ` David F Barrera @ 2005-09-21 23:07 ` Ewan Mellor 2005-09-21 23:55 ` Kip Macy 2005-09-22 0:35 ` Kip Macy 0 siblings, 2 replies; 11+ messages in thread From: Ewan Mellor @ 2005-09-21 23:07 UTC (permalink / raw) To: David F Barrera; +Cc: xen-devel, Ignatia Suwarna 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. ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Error creating domain - int argument required 2005-09-21 23:07 ` Ewan Mellor @ 2005-09-21 23:55 ` Kip Macy 2005-09-22 0:35 ` Kip Macy 1 sibling, 0 replies; 11+ messages in thread From: Kip Macy @ 2005-09-21 23:55 UTC (permalink / raw) To: Ewan Mellor; +Cc: David F Barrera, xen-devel, Ignatia Suwarna [-- Attachment #1.1: Type: text/plain, Size: 3761 bytes --] 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 > [-- Attachment #1.2: Type: text/html, Size: 5212 bytes --] [-- Attachment #2: Type: text/plain, Size: 138 bytes --] _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Error creating domain - int argument required 2005-09-21 23:07 ` Ewan Mellor 2005-09-21 23:55 ` Kip Macy @ 2005-09-22 0:35 ` Kip Macy 1 sibling, 0 replies; 11+ messages in thread From: Kip Macy @ 2005-09-22 0:35 UTC (permalink / raw) To: Ewan Mellor; +Cc: David F Barrera, xen-devel, Ignatia Suwarna [-- Attachment #1.1: Type: text/plain, Size: 1724 bytes --] 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 > [-- Attachment #1.2: Type: text/html, Size: 2711 bytes --] [-- Attachment #2: Type: text/plain, Size: 138 bytes --] _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel ^ permalink raw reply [flat|nested] 11+ messages in thread
[parent not found: <1127331144.23958.213.camel@pluto.linsolutions.com>]
* Re: Error creating domain - int argument required [not found] ` <1127331144.23958.213.camel@pluto.linsolutions.com> @ 2005-09-21 22:05 ` Ignatia Suwarna 2005-09-21 22:21 ` David F Barrera 0 siblings, 1 reply; 11+ messages in thread From: Ignatia Suwarna @ 2005-09-21 22:05 UTC (permalink / raw) To: xen-devel [-- Attachment #1.1: Type: text/plain, Size: 907 bytes --] 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 > > [-- Attachment #1.2: Type: text/html, Size: 1329 bytes --] [-- Attachment #2: Type: text/plain, Size: 138 bytes --] _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Error creating domain - int argument required 2005-09-21 22:05 ` Ignatia Suwarna @ 2005-09-21 22:21 ` David F Barrera 0 siblings, 0 replies; 11+ messages in thread From: David F Barrera @ 2005-09-21 22:21 UTC (permalink / raw) To: Ignatia Suwarna; +Cc: xen-devel 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 ^ permalink raw reply [flat|nested] 11+ messages in thread
* RE: Error creating domain - int argument required
@ 2005-09-21 22:53 Puthiyaparambil, Aravindh
0 siblings, 0 replies; 11+ messages in thread
From: Puthiyaparambil, Aravindh @ 2005-09-21 22:53 UTC (permalink / raw)
To: Ignatia Suwarna, xen-devel
[-- Attachment #1.1: Type: text/plain, Size: 1337 bytes --]
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
[-- Attachment #1.2: Type: text/html, Size: 5704 bytes --]
[-- Attachment #2: Type: text/plain, Size: 138 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel
^ permalink raw reply [flat|nested] 11+ messages in thread* RE: Error creating domain - int argument required
@ 2005-09-22 9:54 Li, Xin B
2005-09-22 10:09 ` Ewan Mellor
0 siblings, 1 reply; 11+ messages in thread
From: Li, Xin B @ 2005-09-22 9:54 UTC (permalink / raw)
To: Keir Fraser
Cc: Kip Macy, David F Barrera, xen-devel, Ewan Mellor,
Ignatia Suwarna
[-- Attachment #1.1: Type: text/plain, Size: 2850 bytes --]
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
[-- Attachment #1.2: Type: text/html, Size: 5544 bytes --]
[-- Attachment #2: fix_cpu.patch --]
[-- Type: application/octet-stream, Size: 562 bytes --]
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)
[-- Attachment #3: Type: text/plain, Size: 138 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel
^ permalink raw reply [flat|nested] 11+ messages in thread* Re: Error creating domain - int argument required 2005-09-22 9:54 Li, Xin B @ 2005-09-22 10:09 ` Ewan Mellor 0 siblings, 0 replies; 11+ messages in thread From: Ewan Mellor @ 2005-09-22 10:09 UTC (permalink / raw) To: xen-devel 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. ^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2005-09-22 10:09 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-09-21 0:37 Error creating domain - int argument required Ignatia Suwarna
[not found] ` <1127263786.23958.170.camel@pluto.linsolutions.com>
2005-09-21 19:14 ` Ignatia Suwarna
2005-09-21 19:54 ` David F Barrera
2005-09-21 23:07 ` Ewan Mellor
2005-09-21 23:55 ` Kip Macy
2005-09-22 0:35 ` Kip Macy
[not found] ` <1127331144.23958.213.camel@pluto.linsolutions.com>
2005-09-21 22:05 ` Ignatia Suwarna
2005-09-21 22:21 ` David F Barrera
-- strict thread matches above, loose matches on Subject: below --
2005-09-21 22:53 Puthiyaparambil, Aravindh
2005-09-22 9:54 Li, Xin B
2005-09-22 10:09 ` Ewan Mellor
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.