[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] xl create domu :unable to add disk devices
Please don't drop xen-devel from Cc, and don't top post. 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. > > > > 在 2019年2月26日,22:45,Roger Pau Monné <roger.pau@xxxxxxxxxx> 写道: > > > > On Tue, Feb 26, 2019 at 09:20:35PM +0800, 敏 wrote: > >>> 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. > > > >> 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 Xen-devel@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/mailman/listinfo/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |