Skip to contentSkip to conversation

Error creating domain - int argument required

DISCUSSION Ignatia Suwarna 4 participants 8 messages Sep 21, 2005 – Sep 22, 2005 2 messages not in the archive

lore
Share & tools
lore
#0 lore raw

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
[email protected]
http://lists.xensource.com/xen-devel

A message that is not in the archive (sent off-list or not yet received): [email protected]

#2 lore raw

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??

Quoted 22 lines · Ted Kaczmarek
Quoted 11 lines · Ignatia Suwarna

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?

Quoted 6 lines

Any helps would be greatly appreciated.

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

Post your domU config and version info for better responses.

Quoted 12 lines

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
[email protected]
http://lists.xensource.com/xen-devel

#3 lore raw
Quoted 9 lines · Ignatia Suwarna

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"

Quoted 5 lines

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 #

Quoted 47 lines · Ted Kaczmarek

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
> [email protected]
> 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
[email protected]
http://lists.xensource.com/xen-devel

Signature · 8 lines
Regards,

David F Barrera
Linux Technology Center
Systems and Technology Group, IBM

"The wisest men follow their own direction. "
                                                        Euripides
#4 lore raw
Quoted 19 lines · David F Barrera
Quoted 9 lines · Ignatia Suwarna

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"

Quoted 5 lines

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.

Quoted 6 lines

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.

#5 lore raw

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

Quoted 33 lines · Ewan Mellor
Quoted 19 lines · David F Barrera
Quoted 9 lines · Ignatia Suwarna

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"

Quoted 5 lines

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.

Quoted 6 lines

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.

Quoted 7 lines

Ewan.

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#6 lore raw
In reply to Ewan Mellor

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

Quoted 33 lines · Ewan Mellor
Quoted 19 lines · David F Barrera
Quoted 9 lines · Ignatia Suwarna

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"

Quoted 5 lines

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.

Quoted 6 lines

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.

Quoted 7 lines

Ewan.

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

A message that is not in the archive (sent off-list or not yet received): [email protected]

#8 lore raw

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.

Quoted 15 lines · Ted Kaczmarek
Quoted 13 lines · Ignatia Suwarna

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.

Quoted 9 lines
Quoted 1 line

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
[email protected]
http://lists.xensource.com/xen-devel

#9 lore raw

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

Quoted 36 lines · Ignatia Suwarna

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 <[email protected]> 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
[email protected]
http://lists.xensource.com/xen-devel

Signature · 8 lines
Regards,

David F Barrera
Linux Technology Center
Systems and Technology Group, IBM

"The wisest men follow their own direction. "
                                                        Euripides