From: Shannon Zhao <zhaoshenglong@huawei.com>
To: Julien Grall <julien.grall@arm.com>,
Stefano Stabellini <sstabellini@kernel.org>,
Stefano Stabellini <stefano@aporeto.com>
Cc: Hangaohuai <hangaohuai@huawei.com>, xen-devel <xen-devel@lists.xen.org>
Subject: Re: problem about using xl create to start a domU
Date: Fri, 6 May 2016 17:52:05 +0800 [thread overview]
Message-ID: <572C6945.2030303@huawei.com> (raw)
In-Reply-To: <572C5B1B.7050600@arm.com>
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
next prev parent reply other threads:[~2016-05-06 9:52 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
2016-05-06 10:03 ` Stefano Stabellini
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=572C6945.2030303@huawei.com \
--to=zhaoshenglong@huawei.com \
--cc=hangaohuai@huawei.com \
--cc=julien.grall@arm.com \
--cc=sstabellini@kernel.org \
--cc=stefano@aporeto.com \
--cc=xen-devel@lists.xen.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.