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

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

To: "Richard Hartmann" <richih.mailinglist@xxxxxxxxx>
Subject: Re: [Xen-API] Error when trying to start up a domU
From: Stefan Berger <stefanb@xxxxxxxxxx>
Date: Tue, 10 Jul 2007 13:22:34 -0400
Cc: xen-api-bounces@xxxxxxxxxxxxxxxxxxx, xen-api@xxxxxxxxxxxxxxxxxxx
Delivery-date: Tue, 10 Jul 2007 10:20:29 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <2d460de70707100927u57c49130g5d884d7e7a1ff035@xxxxxxxxxxxxxx>
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

xen-api-bounces@xxxxxxxxxxxxxxxxxxx wrote on 07/10/2007 12:27:24 PM:

> 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',
> );



Does this VM start without the VDI/VBD? Can you give it a ramdisk to start? I would say you have to give it more parameters.

I remember having had similar problem until I specified action_after_shutdown, actions_after_crash, actions_after_reboot and actions_after_suspend.  You should give the first 3 a value of '0' and the last one a "destroy" (might be a bug in the API...). Set PV_bootloader to "", give it a PV_kernel (the one domain-0 booted with for example including the whole path, i.e. /boot/vmlinuz-2.6.18) and PV_ramdisk (also the one that domain-0 booted with).  I set PV_args to "". Once that works - I hope it does - try to add VBD and VDI...

  Stefan  



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