xl create domu :unable to add disk devices
Quoted 1 line
I am trying to create domainu(xen on FVP-Base-ReVC-2xAEMv8A)but there is a issue
losetup /dev/loop0 /root/domU/rootfs.img
I run the command xl create domu.cfg
the domu.cfg:
kernel = "/root/domU/zImage
memory = "128"
name = "domU"
vcpus = 1
disk = [ 'phy:/dev/loop0,xvda,w' ]
extra = "root=/dev/xvda rw console="
libxl:error:libxl_exec.c:118:libxl_report_child_exitstatus:/etc/xen/scripts/block add[1985] exited with error status 127 libxl:error:libxl_creat.c:1298:domcreat_launch_dm:Domain6:unable to add disk devices
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
Quoted 10 lines · On Tue, Feb 26, 2019 at 09:20:35PM +0800, 敏 wrote:
Quoted 1 line
I am trying to create domainu(xen on FVP-Base-ReVC-2xAEMv8A)but there is a issue
losetup
/dev/loop0/root/domU/rootfs.img
I run the command xl create domu.cfg
the domu.cfg:kernel = "
/root/domU/zImage
memory = "128"
name = "domU"
vcpus = 1
disk = [ 'phy:/dev/loop0,xvda,w' ]
You could just use:
disk = [ 'format=raw, vdev=xvda, access=rw, target=/root/domU/rootfs.img' ]
And let the hotplug script map the image to a loop device.
Quoted 4 lines
extra = "root=/dev/xvda rw console="
libxl:error:libxl_exec.c:118:libxl_report_child_exitstatus:/etc/xen/scripts/block add[1985] exited with error status 127 libxl:error:libxl_creat.c:1298:domcreat_launch_dm:Domain6:unable to add disk devices
Can you provide the output when you run xl -vvv create domu.cfg?
Thanks, Roger.
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
A message that is not in the archive (sent off-list or not yet received): [email protected]
Please don't drop xen-devel from Cc, and don't top post.
Quoted 7 lines · On Tue, Feb 26, 2019 at 11:38:11PM +0800, 敏 wrote:
Sorry, I don’t understand that you said
And let the hotplug script map the image to a loop device.
what I need to do?
Change this line from your config file:
disk = [ 'phy:/dev/loop0,xvda,w' ]
For this one:
disk = [ 'format=raw, vdev=xvda, access=rw, target=/root/domU/rootfs.img' ]
And then you won't have to call losetup before starting the domain.
Quoted 22 lines
Quoted 22 lines · 在 2019年2月26日,22:45,Roger Pau Monné <[email protected]> 写道:
Quoted 10 lines · On Tue, Feb 26, 2019 at 09:20:35PM +0800, 敏 wrote:
Quoted 1 line
I am trying to create domainu(xen on FVP-Base-ReVC-2xAEMv8A)but there is a issue
losetup
/dev/loop0/root/domU/rootfs.img
I run the command xl create domu.cfg
the domu.cfg:kernel = "
/root/domU/zImage
memory = "128"
name = "domU"
vcpus = 1
disk = [ 'phy:/dev/loop0,xvda,w' ]You could just use:
disk = [ 'format=raw, vdev=xvda, access=rw, target=/root/domU/rootfs.img' ]
And let the hotplug script map the image to a loop device.
Quoted 10 lines
Quoted 8 lines
Quoted 4 lines
extra = "root=/dev/xvda rw console="
libxl:error:libxl_exec.c:118:libxl_report_child_exitstatus:/etc/xen/scripts/block add[1985] exited with error status 127 libxl:error:libxl_creat.c:1298:domcreat_launch_dm:Domain6:unable to add disk devices
Can you provide the output when you run
xl -vvv create domu.cfg?Thanks, Roger.
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel