[Pkg-xen-devel] xm create -c vm01.cfg, Error: (22, 'Invalid argument')

Bob Tanner tanner at real-time.com
Tue Oct 24 23:26:24 CEST 2006


# xm create -c vm01.cfg
Error: Cannot open config file "vm01.cfg"
www:/var/log/xen# xm create -c /etc/xen/auto/vm01.cfg
Using config file "/etc/xen/auto/vm01.cfg".
Error: (22, 'Invalid argument')

# xm log
[2006-10-24 16:16:30 xend.util.security 29229] INFO (__init__:1072) Resource 
label file not found.
[2006-10-24 16:16:30 xend.util.security 29229] INFO (__init__:1072) Resource 
label file not found.
[2006-10-24 16:18:19 xend.util.security 29274] INFO (__init__:1072) Resource 
label file not found.
[2006-10-24 16:18:19 xend.util.security 29274] INFO (__init__:1072) Resource 
label file not found.

# xm dry-run /etc/xen/auto/vm01.cfg
Using config file "/etc/xen/auto/vm01.cfg".
Checking domain:
   vm01: PERMITTED
Checking resources:
   file:/var/xen/domains/vm01/disk.img: PERMITTED
   file:/var/xen/domains/vm01/swap.img: PERMITTED
Dry Run: PASSED

# dpkg -l | grep xen
ii  linux-image-2.6.17-2-xen-amd64      2.6.17-9               Linux 2.6.17 
image on AMD64
ii  linux-modules-2.6.17-2-xen-amd64    2.6.17-9               Linux 2.6.17 
modules on AMD64
ii  xen-docs-3.0-unstable               3.0-unstable+hg11561-1 documentation 
for XEN, a Virtual Machine Mon
ii  xen-hypervisor-3.0-unstable-1-amd64 3.0-unstable+hg11561-1 The Xen 
Hypervisor on AMD64
ii  xen-ioemu-3.0-unstable              3.0-unstable+hg11561-1 XEN 
administrative tools
ii  xen-linux-system-2.6.17-2-xen-amd64 2.6.17-9               XEN system with 
Linux 2.6.17 image on AMD64
ii  xen-tools                           2.6-1                  Tools to manage 
debian XEN virtual servers
ii  xen-utils-3.0-unstable-1            3.0-unstable+hg11561-1 XEN 
administrative tools
ii  xen-utils-common                    3.0+hg11624-2          XEN 
administrative tools - common files

# cat /etc/xen/auto/vm01.cfg
kernel  = '/boot/xen-3.0-unstable-1-amd64.gz'
ramdisk = '/boot/initrd.img-2.6.17-2-xen-amd64'
memory  = '128'
root    = '/dev/sda1 ro'
disk    = 
[ 'file:/var/xen/domains/vm01/disk.img,sda1,w', 'file:/var/xen/domains/vm01/swap.img,sda2,w' ]
name    = 'vm01'
vif  = [ 'ip=i65.165.42.253' ]
on_poweroff = 'destroy'
on_reboot   = 'restart'
on_crash    = 'restart'

Doing some pdb, the command that returns this exception is coing from

/usr/lib/xen-3.0-unstable-1/lib/python/xen/xm/main.py:1327

    # strip off prog name and subcmd
    args = argv[2:]
    if cmd:
        try:
            rc = cmd(args) # <-- exception

Any other info needed to help debug this problem?

-- 
Bob Tanner <tanner at real-time.com>          | Phone : (952)943-8700
http://www.real-time.com, Minnesota, Linux | Fax   : (952)943-8500
Key fingerprint = AB15 0BDF BCDE 4369 5B42  1973 7CF1 A709 2CC1 B288
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/pkg-xen-devel/attachments/20061024/f2833353/attachment.pgp


More information about the Pkg-xen-devel mailing list