WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-api

[Xen-API] Error when trying to start up a domU

To: xen-api@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-API] Error when trying to start up a domU
From: "Richard Hartmann" <richih.mailinglist@xxxxxxxxx>
Date: Tue, 10 Jul 2007 18:27:24 +0200
Delivery-date: Tue, 10 Jul 2007 09:25:06 -0700
Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=gT4c2NIUYJkBI71E7U9ECdVC8s3fN7jeg2ymVC9B0/uO8yw/bW4bp+Aj2Hp6dPDWPKrzmeAh1SJ/FBvHG5FiU8AXjZkeJ0JojO70V1+XkHc37JnYR80MewqaOQNx43eXHsDBk86sgxcg3WVHfoStZbYDj4BDtssOiz45K6guScc=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=daSY4LYPHBOHrzrSy0ClZ/gHneKS9biem0ezWBXchqlB0na6mCcGk7vvQrcrdivP3kkIaCB82bwHWjn6gtkaQ3VnRV4ZkASBFGnpfYbSgrSvY4s+8hMlweHscXar4eJwYGPAQFOd2HYoyaEUT5aAi+ki/t8TRiqJU855UfzRpNw=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-api-request@lists.xensource.com?subject=help>
List-id: Discussion of API issues surrounding Xen <xen-api.lists.xensource.com>
List-post: <mailto:xen-api@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-api>, <mailto:xen-api-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-api>, <mailto:xen-api-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-api-bounces@xxxxxxxxxxxxxxxxxxx
First of all, thanks to Tom for hands on and psychological support offlist :)

I have successfully created a local VDI, a VM and a VBD. I am stuck
with the following error:

xmlrpc failed! ErrorDescription: coercing to Unicode: need string or
buffer, NoneType found -> INTERNAL_ERROR


Detailed procedure log:

The constructors used to create the VDI was
(54b789c9-969a-dee5-32b7-94ea46c61b7b is the local one you can abuse
to access local files):

my %vdi_constructor2 = ( 'name_label' => 'generic label',
                       'name_description' => '',
                       'virtual_size' => '4194304000',
                       'SR' => '54b789c9-969a-dee5-32b7-94ea46c61b7b',
                       'other_config' => ('location' =>
'/root/test_image_070710_15'),
);

The VM constructor:

my %vm_constructor = ( 'name_label'       => '070710_15',
                      'name_description' => 'mein ding halt',
                      'user_version' => '123',
                      'is_a_template' => '0',
                      'auto_power_on' => '0',
                      'memory_static_max'  => '512000000',
                      'memory_static_min'  => '512000000',
                      'memory_dynamic_max' => '512000000',
                      'memory_dynamic_min' => '512000000',
                      'VCPUs_max'        => '1',
                      'VCPUs_at_startup' => '1',
);

my %vbd_constructor = ( 'VDI' => '844b162a-5a04-c4f9-8196-027de5826c95',
                       'VM'  => 'd4a27090-1205-76f4-06a3-89d23c677adf',
                       'device' => '/dev/sda',
                       'bootable' => '1',
);

This results in the following:

/var/lib/xend/domains/d4a27090-1205-76f4-06a3-89d23c677adf/config.sxp

(domain
   (vcpus_params ())
   (PV_args )
   (PV_bootloader )
   (name_description 'mein ding halt')
   (VCPUs_live 1)
   (actions_after_crash restart)
   (uuid d4a27090-1205-76f4-06a3-89d23c677adf)
   (PV_ramdisk )
   (name_label 070710_15)
   (VCPUs_at_startup 1)
   (HVM_boot_params ())
   (platform ())
   (PV_kernel )
   (memory_static_min 512000000)
   (HVM_boot_policy )
   (VCPUs_max 1)
   (memory_static_max 512000000)
   (actions_after_shutdown destroy)
   (memory_dynamic_max 512000000)
   (user_version 123)
   (is_a_template False)
   (memory_dynamic_min 512000000)
   (PV_bootloader_args )
   (other_config ())
   (actions_after_reboot restart)
   (on_crash restart)
   (uuid d4a27090-1205-76f4-06a3-89d23c677adf)
   (bootloader_args )
   (vcpus 1)
   (name 070710_15)
   (on_poweroff destroy)
   (on_reboot restart)
   (bootloader )
   (maxmem 488)
   (memory 488)
   (shadow_memory 0)
   (vcpu_avail 1)
   (cpu_weight 256)
   (cpu_cap 0)
   (features )
   (on_xend_start ignore)
   (on_xend_stop ignore)
   (image (linux (kernel )))
   (status 0)
   (device
       (vbd
           (uuid d40c4167-c578-4b7c-d5b4-f426460f6c2e)
           (bootable 1)
           (driver )
           (dev /dev/sda:disk)
           (uname /root/test_image_070710_15)
           (mode r)
           (VDI 844b162a-5a04-c4f9-8196-027de5826c95)
           (type Disk)
       )
   )
)


When trying to VM.start the machine with

VM.start, $session_ref, $vm_ref, 0

I get

xmlrpc failed! ErrorDescription: coercing to Unicode: need string or
buffer, NoneType found -> INTERNAL_ERROR

xend.log says

[2007-07-10 18:18:15 15751] DEBUG (__init__:1072) XendDomainInfo.constructDomain
[2007-07-10 18:18:15 15751] DEBUG (__init__:1072) Balloon: 6994876 KiB
free; need 2048; done.
[2007-07-10 18:18:15 15751] DEBUG (__init__:1072) Adding Domain: 8
[2007-07-10 18:18:15 15751] DEBUG (__init__:1072)
XendDomainInfo.initDomain: 8 256
[2007-07-10 18:18:15 15751] ERROR (__init__:1072) VM start failed
Traceback (most recent call last):
 File "//usr/lib/python/xen/xend/XendDomainInfo.py", line 396, in start
   XendTask.log_progress(31, 60, self._initDomain)
 File "//usr/lib/python/xen/xend/XendTask.py", line 209, in log_progress
   retval = func(*args, **kwds)
 File "//usr/lib/python/xen/xend/XendDomainInfo.py", line 1470, in _initDomain
   self._configureBootloader()
 File "//usr/lib/python/xen/xend/XendDomainInfo.py", line 1824, in
_configureBootloader
   bootloader_args, kernel, ramdisk, args)
 File "//usr/lib/python/xen/xend/XendBootloader.py", line 41, in bootloader
   if not os.access(disk, os.R_OK):
TypeError: coercing to Unicode: need string or buffer, NoneType found
[2007-07-10 18:18:15 15751] DEBUG (__init__:1072)
XendDomainInfo.destroy: domid=8
[2007-07-10 18:18:15 15751] DEBUG (__init__:1072)
XendDomainInfo.destroyDomain(8)
[2007-07-10 18:18:15 15751] ERROR (__init__:1072) Internal error
handling VM.start
Traceback (most recent call last):
 File "//usr/lib/python/xen/util/xmlrpclib2.py", line 131, in
_marshaled_dispatch
   response = self._dispatch(method, params)
 File "SimpleXMLRPCServer.py", line 406, in _dispatch
   return func(*params)
 File "//usr/lib/python/xen/xend/XendAPI.py", line 219, in f
   return func(self, *args, **kwargs)
 File "//usr/lib/python/xen/xend/XendAPI.py", line 254, in check_session
   return func(self, session, *args, **kwargs)
 File "//usr/lib/python/xen/xend/XendAPI.py", line 310, in <lambda>
   'VM', func, *args, **kwargs)
 File "//usr/lib/python/xen/xend/XendAPI.py", line 266, in _check_ref
   return func(api, session, ref, *args, **kwargs)
 File "//usr/lib/python/xen/xend/XendAPI.py", line 1681, in VM_start
   start_paused = start_paused)
 File "//usr/lib/python/xen/xend/XendTask.py", line 209, in log_progress
   retval = func(*args, **kwds)
 File "//usr/lib/python/xen/xend/XendAPI.py", line 447, in do_vm_func
   xendom.do_legacy_api_with_uuid(fn, vm_ref, *args, **kwargs)
 File "//usr/lib/python/xen/xend/XendDomain.py", line 700, in
do_legacy_api_with_uuid
   fn(dom, *args, **kwargs)
 File "//usr/lib/python/xen/xend/XendDomain.py", line 985, in domain_start
   dominfo.start(is_managed = True)
 File "//usr/lib/python/xen/xend/XendDomainInfo.py", line 396, in start
   XendTask.log_progress(31, 60, self._initDomain)
 File "//usr/lib/python/xen/xend/XendTask.py", line 209, in log_progress
   retval = func(*args, **kwds)
 File "//usr/lib/python/xen/xend/XendDomainInfo.py", line 1470, in _initDomain
   self._configureBootloader()
 File "//usr/lib/python/xen/xend/XendDomainInfo.py", line 1824, in
_configureBootloader
   bootloader_args, kernel, ramdisk, args)
 File "//usr/lib/python/xen/xend/XendBootloader.py", line 41, in bootloader
   if not os.access(disk, os.R_OK):
TypeError: coercing to Unicode: need string or buffer, NoneType found


I have no idea what else I could look at or try. Any help appreciated.


If you need more info, ask and I will happy to provide it :)
Richard

_______________________________________________
xen-api mailing list
xen-api@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-api

<Prev in Thread] Current Thread [Next in Thread>