[PTLsim-devel] Problem of creating ptlvm

Yan Luo
Sun Jul 22 18:31:28 EDT 2007


Hello,

I was able to boot the Xen kernel with PTLsim/X extensions, but not able to
create the sample virtual machine ptlsim. I can see "-ptlsim" in
/sys/hypervisor/properties/capabilities. "xm list" shows Domain-0 is running.
The following is the messages from /var/log/xen/xend.log after trying "xm create
ptlvm -c" .

[2007-07-22 14:51:10 xend.XendDomainInfo 2774] DEBUG (XendDomainInfo:190)
XendDomainInfo.create(['vm', ['name', 'ptlvm'], ['memory', 128], ['on_poweroff',
'destroy'], ['on_reboot', 'restart'], ['on_crash', 'destroy'], ['vcpus', 1],
['image', ['linux', ['kernel', '/lib/modules/2.6.20.3-mtyrel-64bit-xen/linux'],
['args', 'nousb noide root=/dev/hda1 xencons=ttyS console=ttyS0']]], ['device',
['vbd', ['uname', 'file:/project/ptlsim/ptlsim.img'], ['dev', 'hda1'], ['mode',
'r']]]])
[2007-07-22 14:51:10 xend.XendDomainInfo 2774] DEBUG (XendDomainInfo:296)
parseConfig: config is ['vm', ['name', 'ptlvm'], ['memory', 128],
['on_poweroff', 'destroy'], ['on_reboot', 'restart'], ['on_crash', 'destroy'],
['vcpus', 1], ['image', ['linux', ['kernel',
'/lib/modules/2.6.20.3-mtyrel-64bit-xen/linux'], ['args', 'nousb noide
root=/dev/hda1 xencons=ttyS console=ttyS0']]], ['device', ['vbd', ['uname',
'file:/project/ptlsim/ptlsim.img'], ['dev', 'hda1'], ['mode', 'r']]]]
[2007-07-22 14:51:10 xend.XendDomainInfo 2774] DEBUG (XendDomainInfo:397)
parseConfig: result is {'shadow_memory': None, 'start_time': None, 'uuid': None,
'on_crash': 'destroy', 'on_reboot': 'restart', 'localtime': None, 'image':
['linux', ['kernel', '/lib/modules/2.6.20.3-mtyrel-64bit-xen/linux'], ['args',
'nousb noide root=/dev/hda1 xencons=ttyS console=ttyS0']], 'on_poweroff':
'destroy', 'bootloader_args': None, 'cpus': None, 'name': 'ptlvm', 'backend':
[], 'vcpus': 1, 'cpu_weight': None, 'features': None, 'vcpu_avail': None,
'memory': 128, 'device': [('vbd', ['vbd', ['uname',
'file:/project/ptlsim/ptlsim.img'], ['dev', 'hda1'], ['mode', 'r']])],
'bootloader': None, 'cpu': None, 'maxmem': None}
[2007-07-22 14:51:10 xend.XendDomainInfo 2774] DEBUG (XendDomainInfo:1264)
XendDomainInfo.construct: None
[2007-07-22 14:51:10 xend.XendDomainInfo 2774] ERROR (XendDomainInfo:202) Domain
construction failed
Traceback (most recent call last):
  File "/usr/lib64/python2.4/site-packages/xen/xend/XendDomainInfo.py", line
194, in create
    vm.construct()
  File "/usr/lib64/python2.4/site-packages/xen/xend/XendDomainInfo.py", line
1268, in construct
    handle = uuid.fromString(self.info['uuid']))
Error: (22, 'Invalid argument')
[2007-07-22 14:51:10 xend.XendDomainInfo 2774] DEBUG (XendDomainInfo:1463)
XendDomainInfo.destroy: domid=None
[2007-07-22 14:51:10 xend 2774] ERROR (xmlrpclib2:184) (22, 'Invalid argument')
Traceback (most recent call last):
  File "/usr/lib64/python2.4/site-packages/xen/util/xmlrpclib2.py", line 162, in
_marshaled_dispatch
    response = self._dispatch(method, params)
  File "/usr/lib64/python2.4/SimpleXMLRPCServer.py", line 406, in _dispatch
    return func(*params)
  File "/usr/lib64/python2.4/site-packages/xen/xend/server/XMLRPCServer.py",
line 64, in domain_create
    info = XendDomain.instance().domain_create(config)
  File "/usr/lib64/python2.4/site-packages/xen/xend/XendDomain.py", line 228, in
domain_create
    dominfo = XendDomainInfo.create(config)
  File "/usr/lib64/python2.4/site-packages/xen/xend/XendDomainInfo.py", line
194, in create
    vm.construct()
  File "/usr/lib64/python2.4/site-packages/xen/xend/XendDomainInfo.py", line
1268, in construct
    handle = uuid.fromString(self.info['uuid']))
Error: (22, 'Invalid argument')

========== My ptlvm file =======
#  -*- mode: python; -*-
#
# PTLsim Xen configuration file
#
# Put this in /etc/xen/ptlvm and run "xm create ptlvm -c".
#

name = "ptlvm"
kernel = "/lib/modules/2.6.20.3-mtyrel-64bit-xen/linux"
ramdisk = "/lib/modules/2.6.20.3-mtyrel-64bit-xen/initrd"
builder='linux'
memory = 128
# Set this to 2 or more for SMP/SMT support
vcpus = 1
disk = [ 'file:/project/ptlsim/ptlsim.img,sda3,r' ]
extra = "nousb noide root=/dev/sda3 xencons=ttyS console=ttyS0"

# Networking options (if desired)
# vif = [ 'mac=00:16:3e:b6:e4:3c, ip=5.17.192.2, vifname=ptlvm0,
script=vif-route-ptlvm' ]

#
# Reboot behavior:
#
on_poweroff = 'destroy'
on_reboot   = 'restart'
on_crash    = 'destroy'
=================================

Thanks.

Yan



More information about the PTLsim-devel mailing list