[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-users] BSD guest on Linux host



Hi,

I am running a Xen 3.0.2 on a Debian GNU/Linux system. The kernel version is 2.6.16. In attempting to create BSD guests (both FreeBSD and NetBSD) I recieve the following error:

Error: (22, 'Invalid argument')

Here is relevant data from my xend.log:

xend.log
****************************************************************************
[2006-05-28 15:06:26 xend.XendDomainInfo] DEBUG (XendDomainInfo:178) XendDomainInfo.create(['vm', ['name', 'FreeBSD'], ['memory', 2048], ['vcpus', 1], ['image', ['linux', ['kernel', '/var/tmp/kernel-current']]], ['device', ['vbd', ['uname', 'file:/var/tmp/mdroot-7.0'], ['dev', 'hda1'], ['mode', 'w']]]]) [2006-05-28 15:06:26 xend.XendDomainInfo] DEBUG (XendDomainInfo:284) parseConfig: config is ['vm', ['name', 'FreeBSD'], ['memory', 2048], ['vcpus', 1], ['image', ['linux', ['kernel', '/var/tmp/kernel-current']]], ['device', ['vbd', ['uname', 'file:/var/tmp/mdroot-7.0'], ['dev', 'hda1'], ['mode', 'w']]]] [2006-05-28 15:06:26 xend.XendDomainInfo] DEBUG (XendDomainInfo:380) parseConfig: result is {'ssidref': None, 'uuid': None, 'on_crash': None, 'on_reboot': None, 'image': ['linux', ['kernel', '/var/tmp/kernel-current']], 'on_poweroff': None, 'cpus': None, 'name': 'FreeBSD', 'backend': [], 'vcpus': 1, 'cpu_weight': None, 'vcpu_avail': None, 'memory': 2048, 'device': [('vbd', ['vbd', ['uname', 'file:/var/tmp/mdroot-7.0'], ['dev', 'hda1'], ['mode', 'w']])], 'bootloader': None, 'cpu': None, 'maxmem': None} [2006-05-28 15:06:26 xend.XendDomainInfo] DEBUG (XendDomainInfo:1164) XendDomainInfo.construct: None 0 [2006-05-28 15:06:26 xend.XendDomainInfo] DEBUG (XendDomainInfo:1196) XendDomainInfo.initDomain: 34 1.0 [2006-05-28 15:06:26 xend] DEBUG (balloon:126) Balloon: free 2561; need 2049; done. [2006-05-28 15:06:27 xend] INFO (image:135) buildDomain os=linux dom=34 vcpus=1
[2006-05-28 15:06:27 xend] DEBUG (image:173) dom            = 34
[2006-05-28 15:06:27 xend] DEBUG (image:174) image = /var/tmp/kernel-current
[2006-05-28 15:06:27 xend] DEBUG (image:175) store_evtchn   = 1
[2006-05-28 15:06:27 xend] DEBUG (image:176) console_evtchn = 2
[2006-05-28 15:06:27 xend] DEBUG (image:177) cmdline        =
[2006-05-28 15:06:27 xend] DEBUG (image:178) ramdisk        =
[2006-05-28 15:06:27 xend] DEBUG (image:179) vcpus          = 1
[2006-05-28 15:06:27 xend] DEBUG (image:180) features       =
[2006-05-28 15:06:27 xend.XendDomainInfo] ERROR (XendDomainInfo:190) Domain construction failed
Traceback (most recent call last):
File "/usr/lib/python2.3/site-packages/xen/xend/XendDomainInfo.py", line 183, in create
    vm.initDomain()
File "/usr/lib/python2.3/site-packages/xen/xend/XendDomainInfo.py", line 1225, in initDomain
    channel_details = self.image.createImage()
File "/usr/lib/python2.3/site-packages/xen/xend/image.py", line 118, in createImage return self.createDomain() File "/usr/lib/python2.3/site-packages/xen/xend/image.py", line 137, in createDomain
    result = self.buildDomain()
File "/usr/lib/python2.3/site-packages/xen/xend/image.py", line 188, in buildDomain
    features       = self.features)
error: (22, 'Invalid argument')
[2006-05-28 15:06:27 xend.XendDomainInfo] DEBUG (XendDomainInfo:1327) XendDomainInfo.destroy: domid=34 [2006-05-28 15:06:27 xend.XendDomainInfo] DEBUG (XendDomainInfo:1335) XendDomainInfo.destroyDomain(34)
[2006-05-28 15:06:28 xend] ERROR (xmlrpclib2:124) (22, 'Invalid argument')
Traceback (most recent call last):
File "/usr/lib/python2.3/site-packages/xen/util/xmlrpclib2.py", line 103, in _marshaled_dispatch
    response = self._dispatch(method, params)
  File "/usr/lib/python2.3/SimpleXMLRPCServer.py", line 407, in _dispatch
    return func(*params)
File "/usr/lib/python2.3/site-packages/xen/xend/server/XMLRPCServer.py", line 63, in domain_create
    info = XendDomain.instance().domain_create(config)
File "/usr/lib/python2.3/site-packages/xen/xend/XendDomain.py", line 227, in domain_create
    dominfo = XendDomainInfo.create(config)
File "/usr/lib/python2.3/site-packages/xen/xend/XendDomainInfo.py", line 183, in create
    vm.initDomain()
File "/usr/lib/python2.3/site-packages/xen/xend/XendDomainInfo.py", line 1225, in initDomain
    channel_details = self.image.createImage()
File "/usr/lib/python2.3/site-packages/xen/xend/image.py", line 118, in createImage
    return self.createDomain()
File "/usr/lib/python2.3/site-packages/xen/xend/image.py", line 137, in createDomain
    result = self.buildDomain()
File "/usr/lib/python2.3/site-packages/xen/xend/image.py", line 188, in buildDomain
    features       = self.features)
error: (22, 'Invalid argument')
****************************************************************************

The xend-debug log does not contain any information.

I'm not sure if this is relevant, but I notice that in the image sublist the type -- or what I assume is the type -- is 'linux'.

Here is the config file associated with the guest I'm trying to create:

fbsd7.cfg
****************************************************************************
# Kernel image file.
kernel = "/var/tmp/kernel-current"

# Initial memory allocation (in megabytes) for the new domain.
memory = 2048

# A name for your domain. All domains must have different names.
name = "FreeBSD"

disk = [ 'file:/var/tmp/mdroot-7.0,hda1,w' ]
****************************************************************************

The script always bombs out on line 188. As you can see, I'm not specifically assigning any features. Should I be?

All Linux guests are created without issue.

That's all I have ;) Thanks in advance to anybody who can provide me with assistance.

--
Sebastian Smith

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.