All of lore.kernel.org
 help / color / mirror / Atom feed
* problem about using xl create to start a domU
@ 2016-05-05  3:22 Shannon Zhao
  2016-05-05 10:33 ` Stefano Stabellini
  0 siblings, 1 reply; 7+ messages in thread
From: Shannon Zhao @ 2016-05-05  3:22 UTC (permalink / raw)
  To: xen-devel; +Cc: Julien Grall, Hangaohuai, Stefano Stabellini

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,
-- 
Shannon


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: problem about using xl create to start a domU
  2016-05-05  3:22 problem about using xl create to start a domU Shannon Zhao
@ 2016-05-05 10:33 ` Stefano Stabellini
  2016-05-05 10:36   ` Stefano Stabellini
  0 siblings, 1 reply; 7+ messages in thread
From: Stefano Stabellini @ 2016-05-05 10:33 UTC (permalink / raw)
  To: Shannon Zhao; +Cc: Julien Grall, Hangaohuai, Stefano Stabellini, xen-devel

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

On Thu, 5 May 2016, Shannon Zhao wrote:
> 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,
> -- 
> Shannon
> 

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: problem about using xl create to start a domU
  2016-05-05 10:33 ` Stefano Stabellini
@ 2016-05-05 10:36   ` Stefano Stabellini
  2016-05-06  2:33     ` Shannon Zhao
  0 siblings, 1 reply; 7+ messages in thread
From: Stefano Stabellini @ 2016-05-05 10:36 UTC (permalink / raw)
  To: Stefano Stabellini
  Cc: Hangaohuai, xen-devel, julien.grall, Stefano Stabellini,
	Shannon Zhao

CC'ing new Julien's email address.

On Thu, 5 May 2016, Stefano Stabellini wrote:
> It looks like something is wrong with xenstore. Is xenstored running?
> Can you do xenstore-ls in dom0?
> 
> On Thu, 5 May 2016, Shannon Zhao wrote:
> > 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,
> > -- 
> > Shannon
> > 
> 

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: problem about using xl create to start a domU
  2016-05-05 10:36   ` Stefano Stabellini
@ 2016-05-06  2:33     ` Shannon Zhao
  2016-05-06  8:51       ` Julien Grall
  0 siblings, 1 reply; 7+ messages in thread
From: Shannon Zhao @ 2016-05-06  2:33 UTC (permalink / raw)
  To: Stefano Stabellini, Stefano Stabellini
  Cc: Hangaohuai, julien.grall, xen-devel

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


On 2016/5/5 18:36, Stefano Stabellini wrote:
> CC'ing new Julien's email address.
> 
> On Thu, 5 May 2016, Stefano Stabellini wrote:
>> It looks like something is wrong with xenstore. Is xenstored running?
>> Can you do xenstore-ls in dom0?
>>
>> On Thu, 5 May 2016, Shannon Zhao wrote:
>>> 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,
>>> -- 
>>> Shannon
>>>
>>
> 
> .
> 

-- 
Shannon


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: problem about using xl create to start a domU
  2016-05-06  2:33     ` Shannon Zhao
@ 2016-05-06  8:51       ` Julien Grall
  2016-05-06  9:52         ` Shannon Zhao
  0 siblings, 1 reply; 7+ messages in thread
From: Julien Grall @ 2016-05-06  8:51 UTC (permalink / raw)
  To: Shannon Zhao, Stefano Stabellini, Stefano Stabellini
  Cc: Hangaohuai, xen-devel

Hi Shannon,

On 06/05/16 03:33, Shannon Zhao wrote:
> 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

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,

-- 
Julien Grall

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: problem about using xl create to start a domU
  2016-05-06  8:51       ` Julien Grall
@ 2016-05-06  9:52         ` Shannon Zhao
  2016-05-06 10:03           ` Stefano Stabellini
  0 siblings, 1 reply; 7+ messages in thread
From: Shannon Zhao @ 2016-05-06  9:52 UTC (permalink / raw)
  To: Julien Grall, Stefano Stabellini, Stefano Stabellini
  Cc: Hangaohuai, xen-devel



On 2016/5/6 16:51, Julien Grall wrote:
> Hi Shannon,
> 
> On 06/05/16 03:33, Shannon Zhao wrote:
>> 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
> 
> 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,
-- 
Shannon


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: problem about using xl create to start a domU
  2016-05-06  9:52         ` Shannon Zhao
@ 2016-05-06 10:03           ` Stefano Stabellini
  0 siblings, 0 replies; 7+ messages in thread
From: Stefano Stabellini @ 2016-05-06 10:03 UTC (permalink / raw)
  To: Shannon Zhao
  Cc: Stefano Stabellini, Julien Grall, Stefano Stabellini, Hangaohuai,
	xen-devel

On Fri, 6 May 2016, Shannon Zhao wrote:
> On 2016/5/6 16:51, Julien Grall wrote:
> > Hi Shannon,
> > 
> > On 06/05/16 03:33, Shannon Zhao wrote:
> >> 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
> > 
> > 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

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


> 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,
> -- 
> Shannon
> 

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2016-05-06 10:03 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-05-05  3:22 problem about using xl create to start a domU Shannon Zhao
2016-05-05 10:33 ` Stefano Stabellini
2016-05-05 10:36   ` Stefano Stabellini
2016-05-06  2:33     ` Shannon Zhao
2016-05-06  8:51       ` Julien Grall
2016-05-06  9:52         ` Shannon Zhao
2016-05-06 10:03           ` Stefano Stabellini

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.