Skip to contentSkip to conversation

problem about using xl create to start a domU

DISCUSSION Shannon Zhao 4 participants 7 messages May 5, 2016 – May 6, 2016

lore
Share & tools
lore
#0 lore raw

Hi,

I'm going to create a domU for XEN on ARM64. I'm following [1] to cross compile the xen tools and [2] to create domU. One thing different is that I'm using Build_AEMv8A-AEMv8A fastmodel.

After executing "/etc/init.d/xencommons start", xl list shows:

Name ID Mem VCPUs State Time(s)
Domain-0 0 256 2 r----- 27.3

Then I execute "losetup /dev/loop0 domU.img" and xl create domU.cfg, it prints below logs:
Parsing config from domU.cfg
libxl: error: libxl_device.c:1033:device_backend_callback: unable to add device with path /local/domain/0/backend/vbd/1/51712
libxl: error: libxl_create.c:1252:domcreate_launch_dm: unable to add disk devices
libxl: error: libxl_device.c:1033:device_backend_callback: unable to remove device with path /local/domain/0/backend/vbd/1/51712
libxl: error: libxl.c:1636:devices_destroy_cb: libxl__devices_destroy failed for 1
libxl: error: libxl.c:1564:libxl__destroy_domid: non-existant domain 1
libxl: error: libxl.c:1523:domain_destroy_callback: unable to destroy guest with domid 1
libxl: error: libxl.c:1452:domain_destroy_cb: destruction of domain 1 failed

Is there anything I missed?

[1]http://wiki.xenproject.org/wiki/Xen_ARM_with_Virtualization_Extensions/CrossCompiling [2]https://wiki.linaro.org/LEG/Engineering/Virtualization/Xen_on_ARMv8_Foundation

Thanks,

Signature · 7 lines
Shannon


_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
#1 lore raw

It looks like something is wrong with xenstore. Is xenstored running? Can you do xenstore-ls in dom0?

Quoted 27 lines · Shannon Zhao

Hi,

I'm going to create a domU for XEN on ARM64. I'm following [1] to cross compile the xen tools and [2] to create domU. One thing different is that I'm using Build_AEMv8A-AEMv8A fastmodel.

After executing "/etc/init.d/xencommons start", xl list shows:

Name ID Mem VCPUs State Time(s)
Domain-0 0 256 2 r----- 27.3

Then I execute "losetup /dev/loop0 domU.img" and xl create domU.cfg, it prints below logs:
Parsing config from domU.cfg
libxl: error: libxl_device.c:1033:device_backend_callback: unable to add device with path /local/domain/0/backend/vbd/1/51712
libxl: error: libxl_create.c:1252:domcreate_launch_dm: unable to add disk devices
libxl: error: libxl_device.c:1033:device_backend_callback: unable to remove device with path /local/domain/0/backend/vbd/1/51712
libxl: error: libxl.c:1636:devices_destroy_cb: libxl__devices_destroy failed for 1
libxl: error: libxl.c:1564:libxl__destroy_domid: non-existant domain 1
libxl: error: libxl.c:1523:domain_destroy_callback: unable to destroy guest with domid 1
libxl: error: libxl.c:1452:domain_destroy_cb: destruction of domain 1 failed

Quoted 9 lines

Is there anything I missed?

[1]http://wiki.xenproject.org/wiki/Xen_ARM_with_Virtualization_Extensions/CrossCompiling [2]https://wiki.linaro.org/LEG/Engineering/Virtualization/Xen_on_ARMv8_Foundation

Thanks,

Signature · 1 line
Shannon

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

#2 lore raw

CC'ing new Julien's email address.

Quoted 41 lines · Stefano Stabellini

It looks like something is wrong with xenstore. Is xenstored running? Can you do xenstore-ls in dom0?

Quoted 36 lines · Shannon Zhao

Hi,

I'm going to create a domU for XEN on ARM64. I'm following [1] to cross compile the xen tools and [2] to create domU. One thing different is that I'm using Build_AEMv8A-AEMv8A fastmodel.

After executing "/etc/init.d/xencommons start", xl list shows:

Name ID Mem VCPUs State Time(s)
Domain-0 0 256 2 r----- 27.3

Then I execute "losetup /dev/loop0 domU.img" and xl create domU.cfg, it prints below logs:
Parsing config from domU.cfg
libxl: error: libxl_device.c:1033:device_backend_callback: unable to add device with path /local/domain/0/backend/vbd/1/51712
libxl: error: libxl_create.c:1252:domcreate_launch_dm: unable to add disk devices
libxl: error: libxl_device.c:1033:device_backend_callback: unable to remove device with path /local/domain/0/backend/vbd/1/51712
libxl: error: libxl.c:1636:devices_destroy_cb: libxl__devices_destroy failed for 1
libxl: error: libxl.c:1564:libxl__destroy_domid: non-existant domain 1
libxl: error: libxl.c:1523:domain_destroy_callback: unable to destroy guest with domid 1
libxl: error: libxl.c:1452:domain_destroy_cb: destruction of domain 1 failed

Is there anything I missed?

[1]http://wiki.xenproject.org/wiki/Xen_ARM_with_Virtualization_Extensions/CrossCompiling [2]https://wiki.linaro.org/LEG/Engineering/Virtualization/Xen_on_ARMv8_Foundation

Thanks,

Signature · 1 line
Shannon

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

#3 lore raw

Below is the output of xenstore-ls:

root@genericarmv8:/home# xenstore-ls -f
/tool = ""
/tool/xenstored = ""
/local = ""
/local/domain = ""
/local/domain/0 = ""
/local/domain/0/domid = "0"
/local/domain/0/name = "Domain-0"
/vm = ""
/libxl = ""

"ps -ef" prints:

root 1050 1 0 Jul10 ? 00:00:00
/usr/local/sbin/xenstored --pid-file /var/run/xenstored.pid

root 1135 1 0 Jul10 ? 00:00:00
/usr/local/sbin/xenconsoled --pid-file=/var/run/xenconsoled.pid

Quoted 47 lines · Stefano Stabellini

CC'ing new Julien's email address.

Quoted 41 lines · Stefano Stabellini

It looks like something is wrong with xenstore. Is xenstored running? Can you do xenstore-ls in dom0?

Quoted 36 lines · Shannon Zhao

Hi,

I'm going to create a domU for XEN on ARM64. I'm following [1] to cross compile the xen tools and [2] to create domU. One thing different is that I'm using Build_AEMv8A-AEMv8A fastmodel.

After executing "/etc/init.d/xencommons start", xl list shows:

Name ID Mem VCPUs State Time(s)
Domain-0 0 256 2 r----- 27.3

Then I execute "losetup /dev/loop0 domU.img" and xl create domU.cfg, it prints below logs:
Parsing config from domU.cfg
libxl: error: libxl_device.c:1033:device_backend_callback: unable to add device with path /local/domain/0/backend/vbd/1/51712
libxl: error: libxl_create.c:1252:domcreate_launch_dm: unable to add disk devices
libxl: error: libxl_device.c:1033:device_backend_callback: unable to remove device with path /local/domain/0/backend/vbd/1/51712
libxl: error: libxl.c:1636:devices_destroy_cb: libxl__devices_destroy failed for 1
libxl: error: libxl.c:1564:libxl__destroy_domid: non-existant domain 1
libxl: error: libxl.c:1523:domain_destroy_callback: unable to destroy guest with domid 1
libxl: error: libxl.c:1452:domain_destroy_cb: destruction of domain 1 failed

Is there anything I missed?

[1]http://wiki.xenproject.org/wiki/Xen_ARM_with_Virtualization_Extensions/CrossCompiling [2]https://wiki.linaro.org/LEG/Engineering/Virtualization/Xen_on_ARMv8_Foundation

Thanks,

Signature · 1 line
Shannon

.

Signature · 7 lines
Shannon


_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
#4 lore raw

Hi Shannon,

Quoted 13 lines · Shannon Zhao

Below is the output of xenstore-ls:

root@genericarmv8:/home# xenstore-ls -f
/tool = ""
/tool/xenstored = ""
/local = ""
/local/domain = ""
/local/domain/0 = ""
/local/domain/0/domid = "0"
/local/domain/0/name = "Domain-0"
/vm = ""
/libxl = ""
Quoted 7 lines

"ps -ef" prints:

root 1050 1 0 Jul10 ? 00:00:00
/usr/local/sbin/xenstored --pid-file /var/run/xenstored.pid

root 1135 1 0 Jul10 ? 00:00:00
/usr/local/sbin/xenconsoled --pid-file=/var/run/xenconsoled.pid

This looks good to me. To double check, have you enabled CONFIG_BLKDEV_BACKEND?

I would recommend you to avoid module when using the model.

Regards,

Signature · 6 lines
Julien Grall

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
#5 lore raw
Quoted 18 lines · Julien Grall

Hi Shannon,

Quoted 15 lines · Shannon Zhao

Below is the output of xenstore-ls:

root@genericarmv8:/home# xenstore-ls -f
/tool = ""
/tool/xenstored = ""
/local = ""
/local/domain = ""
/local/domain/0 = ""
/local/domain/0/domid = "0"
/local/domain/0/name = "Domain-0"
/vm = ""
/libxl = ""

"ps -ef" prints:

Quoted 9 lines
Quoted 5 lines

root 1050 1 0 Jul10 ? 00:00:00
/usr/local/sbin/xenstored --pid-file /var/run/xenstored.pid

root 1135 1 0 Jul10 ? 00:00:00
/usr/local/sbin/xenconsoled --pid-file=/var/run/xenconsoled.pid

This looks good to me. To double check, have you enabled CONFIG_BLKDEV_BACKEND?

Maybe that's the problem. Just now I tried to use ramdisk instead of disk. It can create the domU.

kernel = "/home/Image"
ramdisk="/home/guestfs.cpio.gz"
name = "guest"
memory = 512
vcpus = 1
extra = "console=hvc0 root=/dev/ram ro"

And I checked that the CONFIG_XEN_BLKDEV_BACKEND is n. Then I select it.

root@genericarmv8:~# zcat /proc/config.gz | grep BLKDEV
CONFIG_XEN_BLKDEV_FRONTEND=y
CONFIG_XEN_BLKDEV_BACKEND=y

But when I create the domU with disk, it still failed:

root@genericarmv8:/home# xl create domU.cfg
Parsing config from domU.cfg
/etc/xen/scripts/xen-hotplug-common.sh: line 23:
/var/log/xen/xen-hotplug.log: No such file or directory
libxl: error: libxl_exec.c:118:libxl_report_child_exitstatus:
/etc/xen/scripts/block add [1239] exited with error status 1
libxl: error: libxl_create.c:1252:domcreate_launch_dm: unable to add
disk devices
/etc/xen/scripts/xen-hotplug-common.sh: line 23:
/var/log/xen/xen-hotplug.log: No such file or directory
libxl: error: libxl_exec.c:118:libxl_report_child_exitstatus:
/etc/xen/scripts/block remove [1245] exited with error status 1
libxl: error: libxl.c:1564:libxl__destroy_domid: non-existant domain 1
libxl: error: libxl.c:1523:domain_destroy_callback: unable to destroy
guest with domid 1
libxl: error: libxl.c:1452:domain_destroy_cb: destruction of domain 1 failed
root@genericarmv8:/home# cat domU.cfg
kernel = "/home/Image"
name = "guest"
memory = 512
vcpus = 1
extra = "console=hvc0 root=/dev/xvda ro"
disk = [ 'phy:/dev/loop0,xvda,w' ]

Thanks,

Signature · 7 lines
Shannon


_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
#6 lore raw
Quoted 44 lines · Shannon Zhao
Quoted 18 lines · Julien Grall

Hi Shannon,

Quoted 15 lines · Shannon Zhao

Below is the output of xenstore-ls:

root@genericarmv8:/home# xenstore-ls -f
/tool = ""
/tool/xenstored = ""
/local = ""
/local/domain = ""
/local/domain/0 = ""
/local/domain/0/domid = "0"
/local/domain/0/name = "Domain-0"
/vm = ""
/libxl = ""

"ps -ef" prints:

Quoted 9 lines
Quoted 5 lines

root 1050 1 0 Jul10 ? 00:00:00
/usr/local/sbin/xenstored --pid-file /var/run/xenstored.pid

root 1135 1 0 Jul10 ? 00:00:00
/usr/local/sbin/xenconsoled --pid-file=/var/run/xenconsoled.pid

This looks good to me. To double check, have you enabled CONFIG_BLKDEV_BACKEND?

Maybe that's the problem. Just now I tried to use ramdisk instead of disk. It can create the domU.

kernel = "/home/Image"
ramdisk="/home/guestfs.cpio.gz"
name = "guest"
memory = 512
vcpus = 1
extra = "console=hvc0 root=/dev/ram ro"

And I checked that the CONFIG_XEN_BLKDEV_BACKEND is n. Then I select it.

root@genericarmv8:~# zcat /proc/config.gz | grep BLKDEV
CONFIG_XEN_BLKDEV_FRONTEND=y
CONFIG_XEN_BLKDEV_BACKEND=y
Quoted 6 lines

But when I create the domU with disk, it still failed:

root@genericarmv8:/home# xl create domU.cfg
Parsing config from domU.cfg
/etc/xen/scripts/xen-hotplug-common.sh: line 23:
/var/log/xen/xen-hotplug.log: No such file or directory

It looks like /var/log/xen doesn't exist in your system.

Quoted 21 lines

libxl: error: libxl_exec.c:118:libxl_report_child_exitstatus:
/etc/xen/scripts/block add [1239] exited with error status 1
libxl: error: libxl_create.c:1252:domcreate_launch_dm: unable to add disk devices
/etc/xen/scripts/xen-hotplug-common.sh: line 23:
/var/log/xen/xen-hotplug.log: No such file or directory
libxl: error: libxl_exec.c:118:libxl_report_child_exitstatus:
/etc/xen/scripts/block remove [1245] exited with error status 1
libxl: error: libxl.c:1564:libxl__destroy_domid: non-existant domain 1
libxl: error: libxl.c:1523:domain_destroy_callback: unable to destroy guest with domid 1
libxl: error: libxl.c:1452:domain_destroy_cb: destruction of domain 1 failed

root@genericarmv8:/home# cat domU.cfg
kernel = "/home/Image"
name = "guest"
memory = 512
vcpus = 1
extra = "console=hvc0 root=/dev/xvda ro"
disk = [ 'phy:/dev/loop0,xvda,w' ]
Quoted 4 lines

Thanks,

Signature · 1 line
Shannon

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel