All of lore.kernel.org
 help / color / mirror / Atom feed
* 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
* 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

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.