On 08.02.19 20:21, Amit Tomer wrote:
Hi,
Hi
Would try changes mentioned by you.
We managed to boot XEN with dom0 kernel on H3.
That's great.
But we see following , when we try to domU guest:
# xl create -c config.xl
Parsing config from config.xl
libxl: error: libxl_exec.c:118:libxl_report_child_exitstatus:
/etc/xen/scripts/block add [2417] exited with error status 1
libxl: error: libxl_device.c:1286:device_hotplug_child_death_cb:
script: File /home/amit_new/guest_domU/rootfs.img is read-only, and so
I willt
mount it read-write in a guest domain.
libxl: error: libxl_create.c:1318:domcreate_launch_dm: Domain 1:unable
to add disk devices
libxl: error: libxl_exec.c:118:libxl_report_child_exitstatus:
/etc/xen/scripts/block remove [2461] exited with error status 1
libxl: error: libxl_device.c:1286:device_hotplug_child_death_cb:
script: /etc/xen/scripts/block failed; error detected.
(XEN) mm.c:1401:d0v0 gnttab_mark_dirty not implemented yet
libxl: error: libxl_domain.c:1038:libxl__destroy_domid: Domain
1:Non-existant domain
libxl: error: libxl_domain.c:993:domain_destroy_callback: Domain
1:Unable to destroy guest
libxl: error: libxl_domain.c:920:domain_destroy_cb: Domain
1:Destruction of domain failed
where #cat config.xl
name = "guest-1"
kernel = "Image"
extra = "root=/dev/xvda rw xencons=tty console=hvc0"
memory = 256
vcpus = 1
disk = [ 'rootfs.img,raw,xvda,rw' ]
Any idea what is going wrong here ?
Looks like, something incorrect with you block device settings.
Maybe, enabling verbose output will provide more informative output:
xl -v -v -v create -c config.xl
I assume, your have the following option enabled in your Linux defconfig:
CONFIG_XEN_BLKDEV_BACKEND=y
Personally I have never tried to run guest domain with such disk option:
disk = [ 'rootfs.img,raw,xvda,rw' ]
So, can't say anything about it.
Do you have any storage device in your Dom0 (SD, eMMC, etc)? If yes, you
can put rootfs for your guest domain on it.
And then add the following to guest config file, taking care of changing
it according to actual partitions:
disk = [ 'phy:/dev/sda1,xvda1' ]
or
disk = [ 'phy:/dev/mmcblk1p1,xvda1' ]
This everything works for me.
-Thanks,
Amit
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel