[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-API] Error when trying to start up a domU
Hi,1. Set the pv_kernel to the kernel (xen domU or any other that you are using, for example "/boot/vmlinuz-2.6-xen") file location on dom0 "<file>". 2. While setting the other_config->location for the vdi, you should be using either file://<file> or tap:aio://<file> {if the tap drivers are available). 3. Also, set the appropriate pv_args property with the vm (to specify the location of the root partition, in your case set it to "root=/dev/sda"). I hope that should get you going. Thanks, Saurabh. Richard Hartmann wrote: 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 _initDomainself._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 bootloaderif 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_startdominfo.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 _initDomainself._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 bootloaderif 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
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |