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

[Xen-users] Re: Error on xm create: VmError: (38, 'Function not implemen

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-users] Re: Error on xm create: VmError: (38, 'Function not implemented')
From: S. Ercan Yüzbasioglu <ercan.yuzbasioglu@xxxxxxxxx>
Date: Wed, 21 Jan 2009 15:38:14 +0100
Delivery-date: Wed, 21 Jan 2009 06:46:05 -0800
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=tLdXBdho7ENMrH7NHL2FSQurNYJKRdM87MHUIpVXQus=; b=jyPpt9yw/A32ZI5NFV0mMHesosgub1cjS9y37XdcX/k8magycCkkcJcQtQapwEHQ8M hCxxNbOsJ9kO42DBad4Ly7esL+StvjhkPZmyYW72kvk6aAg3jMpYra8yvD6DgC1Q+oTt DbaiOCx9niPxY1IakbW2RBySaVNXO+BMOKC+U=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=ZnIwesubhJFoxRri/Y2W7qi6uxL28PI/7TJ7n4kiGoRMYu4DZCEh0ggug7YsCB8idh UieJHEqnCowOUijsO27nzh4VdSM9Zvy1fsUgcILN8cMTxAOlT/mFo3cwGJ6AP7Pa0WPx VepbkqNVE3x0nm+Zw45EUFA+uqTHR7vFX5kYc=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <d71fa1da0901191652p21af1b36p38e211a89108412@xxxxxxxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <d71fa1da0901190834w4bbaaaeekda3004e3177c3f58@xxxxxxxxxxxxxx> <d71fa1da0901191652p21af1b36p38e211a89108412@xxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
A follow up for those who get similar errors:

I solved the issue by reinstalling xen. However on opensuse 11, there is an issue of incorrect paths after de- & reinstallation. You can read how I solved it, here:

http://ercandiyoki.wordpress.com/2009/01/21/function-not-implemented-bad-address-undefined-symbol-what-the-hell/

Bye


On Tue, Jan 20, 2009 at 1:52 AM, S. Ercan Yüzbasioglu <ercan.yuzbasioglu@xxxxxxxxx> wrote:
I rebooted the server, and the error changed to :

Error: (14, 'Bad address')

Same thing happens when I want to start another DomU which I had created using the virt-manager DomU creation interface. It had worked perfectly before..

Searching such an error in the mail archive didn't yield many results.. I suppose this is not a common problem. Can anyone shed a light to it maybe?

BTW: cpu arch is x86_64

new xend output:

...
[2009-01-20 01:22:46 6190] DEBUG (XendDomainInfo:89) XendDomainInfo.create(['vm', ['name', 'Fedora'], ['memory', 256], ['on_poweroff', 'destroy'], ['on_reboot', 'restart'], ['on_crash', 'destroy'], ['vcpus', 1], ['on_xend_start', 'ignore'], ['on_xend_stop', 'ignore'], ['uuid', 'c123b1db-ead2-e220-c201-59ea67513f25'], ['image', ['hvm', ['kernel', '/usr/lib/xen/boot/hvmloader'], ['device_model', '/usr/lib/xen/bin/qemu-dm'], ['pae', 1], ['vcpus', 1], ['boot', 'c'], ['fda', ''], ['fdb', ''], ['timer_mode', 0], ['localtime', 0], ['serial', 'pty'], ['stdvga', 0], ['isa', 0], ['nographic', 0], ['soundhw', ''], ['vnc', 1], ['vncunused', 1], ['display', ':1002.0'], ['xauthority', '/root/.xauth0F7rb5'], ['rtc_timeoffset', '0'], ['monitor', 0], ['acpi', 1], ['apic', 0], ['usb', 0], ['usbdevice', ''], ['keymap', ''], ['pci', []], ['hpet', 0], ['guest_os_type', 'default'], ['hap', 1], ['cpuid', []], ['cpuid_check', []]]], ['device', ['vbd', ['uname', 'file:/var/lib/xen/images/Fedora/disk0'], ['dev', 'hda'], ['mode', 'w']]], ['device', ['vbd', ['uname', 'file:/root/Desktop/Fedora-10-x86_64-DVD.iso'], ['dev', 'hdc:cdrom'], ['mode', 'r']]]])
[2009-01-20 01:22:46 6190] DEBUG (XendDomainInfo:2028) XendDomainInfo.constructDomain
[2009-01-20 01:22:46 6190] DEBUG (balloon:132) Balloon: 276500 KiB free; need 2048; done.
[2009-01-20 01:22:46 6190] DEBUG (XendDomain:447) Adding Domain: 8
[2009-01-20 01:22:46 6190] DEBUG (XendDomainInfo:2134) XendDomainInfo.initDomain: 8 256
[2009-01-20 01:22:46 6190] DEBUG (image:302) No VNC passwd configured for vfb access
[2009-01-20 01:22:46 6190] DEBUG (image:743) args: boot, val: c
[2009-01-20 01:22:46 6190] DEBUG (image:743) args: fda, val: None
[2009-01-20 01:22:46 6190] DEBUG (image:743) args: fdb, val: None
[2009-01-20 01:22:46 6190] DEBUG (image:743) args: soundhw, val: None
[2009-01-20 01:22:46 6190] DEBUG (image:743) args: localtime, val: 0
[2009-01-20 01:22:46 6190] DEBUG (image:743) args: serial, val: pty
[2009-01-20 01:22:46 6190] DEBUG (image:743) args: std-vga, val: 0
[2009-01-20 01:22:46 6190] DEBUG (image:743) args: isa, val: 0
[2009-01-20 01:22:46 6190] DEBUG (image:743) args: acpi, val: 1
[2009-01-20 01:22:46 6190] DEBUG (image:743) args: usb, val: 0
[2009-01-20 01:22:46 6190] DEBUG (image:743) args: usbdevice, val: None
[2009-01-20 01:22:46 6190] DEBUG (XendDomainInfo:2215) _initDomain:shadow_memory=0x0, memory_static_max=0x10000000, memory_static_min=0x0.
[2009-01-20 01:22:46 6190] DEBUG (balloon:132) Balloon: 275208 KiB free; need 274432; done.
[2009-01-20 01:22:46 6190] INFO (image:166) buildDomain os=hvm dom=8 vcpus=1
[2009-01-20 01:22:46 6190] DEBUG (image:795) domid          = 8
[2009-01-20 01:22:46 6190] DEBUG (image:796) image          = /usr/lib/xen/boot/hvmloader
[2009-01-20 01:22:46 6190] DEBUG (image:797) store_evtchn   = 2
[2009-01-20 01:22:46 6190] DEBUG (image:798) memsize        = 256
[2009-01-20 01:22:46 6190] DEBUG (image:799) vcpus          = 1
[2009-01-20 01:22:46 6190] DEBUG (image:800) acpi           = 1
[2009-01-20 01:22:46 6190] DEBUG (image:801) apic           = 0
[2009-01-20 01:22:46 6190] ERROR (XendDomainInfo:2269) XendDomainInfo.initDomain: exception occurred

Traceback (most recent call last):
  File "//usr/lib64/python/xen/xend/XendDomainInfo.py", line 2242, in _initDomain
    channel_details = self.image.createImage()
  File "//usr/lib64/python/xen/xend/image.py", line 149, in createImage
    return self.createDomain()
  File "//usr/lib64/python/xen/xend/image.py", line 168, in createDomain
    result = self.buildDomain()
  File "//usr/lib64/python/xen/xend/image.py", line 876, in buildDomain
    rc = HVMImageHandler.buildDomain(self)
  File "//usr/lib64/python/xen/xend/image.py", line 808, in buildDomain
    apic           = self.apic)
Error: (14, 'Bad address')
[2009-01-20 01:22:46 6190] ERROR (XendDomainInfo:445) VM start failed

Traceback (most recent call last):
  File "//usr/lib64/python/xen/xend/XendDomainInfo.py", line 425, in start
    XendTask.log_progress(31, 60, self._initDomain)
  File "//usr/lib64/python/xen/xend/XendTask.py", line 209, in log_progress
    retval = func(*args, **kwds)
  File "//usr/lib64/python/xen/xend/XendDomainInfo.py", line 2272, in _initDomain
    raise VmError(str(exn))
VmError: (14, 'Bad address')
[2009-01-20 01:22:46 6190] DEBUG (XendDomainInfo:2389) XendDomainInfo.destroy: domid=8
[2009-01-20 01:22:46 6190] DEBUG (XendDomainInfo:2406) XendDomainInfo.destroyDomain(8)
[2009-01-20 01:22:46 6190] DEBUG (XendDomainInfo:1939) Destroying device model
[2009-01-20 01:22:46 6190] DEBUG (XendDomainInfo:1946) Releasing devices
[2009-01-20 01:22:46 6190] ERROR (XendDomainInfo:94) Domain construction failed

Traceback (most recent call last):
  File "//usr/lib64/python/xen/xend/XendDomainInfo.py", line 92, in create
    vm.start()
  File "//usr/lib64/python/xen/xend/XendDomainInfo.py", line 425, in start
    XendTask.log_progress(31, 60, self._initDomain)
  File "//usr/lib64/python/xen/xend/XendTask.py", line 209, in log_progress
    retval = func(*args, **kwds)
  File "//usr/lib64/python/xen/xend/XendDomainInfo.py", line 2272, in _initDomain
    raise VmError(str(exn))
VmError: (14, 'Bad address')

-- output ends



On Mon, Jan 19, 2009 at 5:34 PM, S. Ercan Yüzbasioglu <ercan.yuzbasioglu@xxxxxxxxx> wrote:
Hi everyone,

I generated my own DomU guest using opensuse's yast dirinstall and stored it on a seperate iscsi target. I created it as a DomU on my Domain0 (2.6.25.16-0.1-xen kernel) successfully, using the following configuration:

name = "vm01-opensuse11-base-LAMP"
memory = 256
kernel = "/boot/vmlinuz-xen"
ramdisk = "/boot/initrd-xen"
root = "/dev/xvda1"
# iscsi disk: lun 0 is root partition with ext3fs, lun 1 is swap
disk = [
'phy:/dev/disk/by-path/ip-<ip-number-omitted>:3260-iscsi-iqn.2009-01.<qualifier-omitted>:vm01-opensuse10.3-lun-0,xvda1,w',
'phy:/dev/disk/by-path/ip-<ip-number-omitted>:3260-iscsi-iqn.2009-01.<qualifier-omitted>:vm01-opensuse10.3-lun-1,xvda2,w'
]
extra = "console=xvc0"

No problem so far. Then I migrated this DomU to my other Dom0, say host B, which has exactly the same xen kernel version. The guest images are available from this one too, following the same /dev path, and the same guest configuration file is copied to the same xen path (/etc/xen/vm). Both machines have identical xend-config.sxp and they have the same xen version, which is 3.2.0.

When I issue "xm migrate --live <id>" on host A, the DomU seems to be properly migrated. However, when the migration completes (when the DomU disappears on host A), the DomU goes into the paused state, which is not an expected behaviour. When I manually unpause it, although xm list says it's in blocked state, it hangs. I cannot get response from "xm console <id>". It cannot be shut down either, so I have to use xm destroy.

So for troubleshooting purposes, I tried to create the DomU directly on host B first, disregarding the migration part. I issued the "xm create vm01", just like I did on host A. Host B gave the following error:

"Error: (38, 'Function not implemented')"

I append the xend.log below, which didn't really tell me any clue.

Has anybody encountered such an error before? Any help is appreciated!

Cheers,
Ercan


xend.log output:

...

[2009-01-19 17:17:41 21486] DEBUG (XendDomainInfo:89) XendDomainInfo.create(['vm', ['name', 'vm01-opensuse11-base-LAMP'], ['memory', 256], ['vcpus', 1], ['on_xend_start', 'ignore'], ['on_xend_stop', 'ignore'], ['image', ['linux', ['kernel', '/boot/vmlinuz-xen'], ['ramdisk', '/boot/initrd-xen'], ['root', '/dev/xvda1'], ['args', 'console=xvc0']]], ['device', ['vbd', ['uname', 'phy:/dev/disk/by-path/ip-<ip-omitted>:3260-iscsi-iqn.2009-01.<name-omitted>:vm01-opensuse10.3-lun-0'], ['dev', 'xvda1'], ['mode', 'w']]], ['device', ['vbd', ['uname', 'phy:/dev/disk/by-path/ip-<ip-omitted>:3260-iscsi-iqn.2009-01.<name-omitted>:vm01-opensuse10.3-lun-1'], ['dev', 'xvda2'], ['mode', 'w']]]])
[2009-01-19 17:17:41 21486] DEBUG (XendDomainInfo:2028) XendDomainInfo.constructDomain
[2009-01-19 17:17:41 21486] DEBUG (balloon:132) Balloon: 264172 KiB free; need 2048; done.
[2009-01-19 17:17:41 21486] DEBUG (XendDomain:447) Adding Domain: 13
[2009-01-19 17:17:41 21486] DEBUG (XendDomainInfo:2134) XendDomainInfo.initDomain: 13 256
[2009-01-19 17:17:41 21486] DEBUG (XendDomainInfo:2215) _initDomain:shadow_memory=0x0, memory_static_max=0x10000000, memory_static_min=0x0.
[2009-01-19 17:17:41 21486] DEBUG (balloon:132) Balloon: 264164 KiB free; need 263168; done.
[2009-01-19 17:17:41 21486] INFO (image:166) buildDomain os=linux dom=13 vcpus=1
[2009-01-19 17:17:41 21486] DEBUG (image:631) domid          = 13
[2009-01-19 17:17:41 21486] DEBUG (image:632) memsize        = 256
[2009-01-19 17:17:41 21486] DEBUG (image:633) image          = /boot/vmlinuz-xen
[2009-01-19 17:17:41 21486] DEBUG (image:634) store_evtchn   = 1
[2009-01-19 17:17:41 21486] DEBUG (image:635) console_evtchn = 2
[2009-01-19 17:17:41 21486] DEBUG (image:636) cmdline        = root=/dev/xvda1 console=xvc0
[2009-01-19 17:17:41 21486] DEBUG (image:637) ramdisk        = /boot/initrd-xen
[2009-01-19 17:17:41 21486] DEBUG (image:638) vcpus          = 1
[2009-01-19 17:17:41 21486] DEBUG (image:639) features       =
[2009-01-19 17:17:42 21486] ERROR (XendDomainInfo:2269) XendDomainInfo.initDomain: exception occurred
Traceback (most recent call last):
  File "//usr/lib64/python/xen/xend/XendDomainInfo.py", line 2242, in _initDomain
    channel_details = self.image.createImage()
  File "//usr/lib64/python/xen/xend/image.py", line 149, in createImage
    return self.createDomain()
  File "//usr/lib64/python/xen/xend/image.py", line 168, in createDomain
    result = self.buildDomain()
  File "//usr/lib64/python/xen/xend/image.py", line 908, in buildDomain
    self.setCpuid()
  File "//usr/lib64/python/xen/xend/image.py", line 585, in setCpuid
    xc.domain_set_policy_cpuid(self.vm.getDomid())
Error: (38, 'Function not implemented')
[2009-01-19 17:17:42 21486] ERROR (XendDomainInfo:445) VM start failed
Traceback (most recent call last):
  File "//usr/lib64/python/xen/xend/XendDomainInfo.py", line 425, in start
    XendTask.log_progress(31, 60, self._initDomain)
  File "//usr/lib64/python/xen/xend/XendTask.py", line 209, in log_progress
    retval = func(*args, **kwds)
  File "//usr/lib64/python/xen/xend/XendDomainInfo.py", line 2272, in _initDomain
    raise VmError(str(exn))
VmError: (38, 'Function not implemented')
[2009-01-19 17:17:42 21486] DEBUG (XendDomainInfo:2389) XendDomainInfo.destroy: domid=13
[2009-01-19 17:17:42 21486] DEBUG (XendDomainInfo:2406) XendDomainInfo.destroyDomain(13)
[2009-01-19 17:17:42 21486] DEBUG (XendDomainInfo:1939) Destroying device model
[2009-01-19 17:17:42 21486] DEBUG (XendDomainInfo:1946) Releasing devices
[2009-01-19 17:17:42 21486] ERROR (XendDomainInfo:94) Domain construction failed
Traceback (most recent call last):
  File "//usr/lib64/python/xen/xend/XendDomainInfo.py", line 92, in create
    vm.start()
  File "//usr/lib64/python/xen/xend/XendDomainInfo.py", line 425, in start
    XendTask.log_progress(31, 60, self._initDomain)
  File "//usr/lib64/python/xen/xend/XendTask.py", line 209, in log_progress
    retval = func(*args, **kwds)
  File "//usr/lib64/python/xen/xend/XendDomainInfo.py", line 2272, in _initDomain
    raise VmError(str(exn))
VmError: (38, 'Function not implemented')

-- xend.log output ends!


_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users
<Prev in Thread] Current Thread [Next in Thread>