xen-4.3 port to illumos based platform
Hi All,
i try to load PV guest by:
virt-install --debug --paravirt --name cos6x64 --ram 800 --network bridge --disk path=/dev/zvol/dsk/rpool/xen/cos01,driver=phy --location http://merlin.fit.vutbr.cz/mirrors/centos/6.5/os/x86_64/ --nographics
could you please help me try to debug issues with PV creation:
POST operation failed: xend_post: error from xen daemon: (xend.err "Error creating domain: (1, 'Internal error', 'panic: xc_dom_boot.c:197: xc_dom_boot_domU_map: failed to mmap domU pages 0x1000+0x1040 [mmap, errno=6 (No such device or address)]')")
i want try to find what i have to check/update: Xen sources OR illumos sources.
--
Best regards,
Igor Kozhukhov
Quoted 6 lines · Igor Kozhukhov
Hi All,
i try to load PV guest by:
virt-install --debug --paravirt --name cos6x64 --ram 800 --network bridge --disk path=/dev/zvol/dsk/rpool/xen/cos01,driver=phy --location http://merlin.fit.vutbr.cz/mirrors/centos/6.5/os/x86_64/ --nographics
Quoted 8 lines
could you please help me try to debug issues with PV creation:
POST operation failed:
xend_post: error from xen daemon: (xend.err "Error creating domain: (1, 'Internal error', 'panic:
xc_dom_boot.c:197:xc_dom_boot_domU_map: failed to mmap domU pages 0x1000+0x1040 [mmap, errno=6 (No such device or address)]')")i want try to find what i have to check/update: Xen sources OR illumos sources.
The error message comes from xc_dom_boot.c which is part of Xen. A call to xc_map_foreign_ranges has failed. This is abstracted out for different platforms via the xenctrlosdep.h interface.
Are you using xc_solaris.c or have you created a new xc_illumos.c? It is a pretty good bet that xc_solaris has bitrotten over the years. In either case my gut feeling is that the issue is either in that code or on the kernel side in the "privcmd" driver which it calls into.
BTW -- I'd strongly recommend that you switch to using the "xl" toolstack -- xend is obsolete and deprecated so using it for a new port is not recommended, it will obscure some of the error messages etc.
For the initial debugging phases I would also suggest to avoid higher level tools such as libvirt (again because they can obscure some of the lower level debugging) and to use the "xl create" interface directly. A simple config file would be something like:
name = "test"
kernel = "/path/to/vmlinuz"
extra = "console=hvc"
Where:
wget -O /path/to/vmlinuz http://merlin.fit.vutbr.cz/mirrors/centos/6.5/os/x86_64/isolinux/vmlinuz
is the kernel to use.
Launch with
xl -vvv create /path/to/cfg
and you'll get plenty of debug output.
Ian.
Hi Ian,
Quoted 16 lines · Ian Campbell
Quoted 6 lines · Igor Kozhukhov
Hi All,
i try to load PV guest by:
virt-install --debug --paravirt --name cos6x64 --ram 800 --network bridge --disk path=/dev/zvol/dsk/rpool/xen/cos01,driver=phy --location http://merlin.fit.vutbr.cz/mirrors/centos/6.5/os/x86_64/ --nographics
Quoted 8 lines
could you please help me try to debug issues with PV creation:
POST operation failed:
xend_post: error from xen daemon: (xend.err "Error creating domain: (1, 'Internal error', 'panic:
xc_dom_boot.c:197:xc_dom_boot_domU_map: failed to mmap domU pages 0x1000+0x1040 [mmap, errno=6 (No such device or address)]')")i want try to find what i have to check/update: Xen sources OR illumos sources.
Quoted 8 lines
The error message comes from
xc_dom_boot.cwhich is part of Xen. A call toxc_map_foreign_rangeshas failed. This is abstracted out for different platforms via thexenctrlosdep.hinterface.Are you using
xc_solaris.cor have you created a newxc_illumos.c? It is a pretty good bet thatxc_solarishas bitrotten over the years. In either case my gut feeling is that the issue is either in that code or on the kernel side in the "privcmd" driver which it calls into.
i'm using xc_solaris.c - because illumos based on solaris and has open API.
for now - i have found and fixed my problems: i'm able to load PV guests: dilos PV on dilos-xen-4.3-dom0, Linux ContOS 6.4 and Debian 7.0 64bits. I'll send info later with new ISO and instruction for testing.
'xl' now work well.
i'll work on provide my changes to Xen upstream.
Quoted 21 lines
BTW -- I'd strongly recommend that you switch to using the "xl" toolstack -- xend is obsolete and deprecated so using it for a new port is not recommended, it will obscure some of the error messages etc.
For the initial debugging phases I would also suggest to avoid higher level tools such as libvirt (again because they can obscure some of the lower level debugging) and to use the "xl create" interface directly. A simple config file would be something like:
name = "test"
kernel = "/path/to/vmlinuz"
extra = "console=hvc"
Where:wget -O /path/to/vmlinuz http://merlin.fit.vutbr.cz/mirrors/centos/6.5/os/x86_64/isolinux/vmlinuzis the kernel to use.
Launch with
xl -vvv create /path/to/cfg
and you'll get plenty of debug output.Ian.
Quoted 1 line · Igor Kozhukhov
i'm using
xc_solaris.c- because illumos based on solaris and has open API.
I suspect this was the case, thanks for confirming.
Quoted 1 line
for now - i have found and fixed my problems: i'm able to load PV guests: dilos PV on dilos-xen-4.3-dom0, Linux ContOS 6.4 and Debian 7.0 64bits.
Excellent!
Is Illumos usable as a domU on a Linux dom0 as well?
Quoted 3 lines
I'll send info later with new ISO and instruction for testing. 'xl' now work well.
i'll work on provide my changes to Xen upstream.
Thank you!
Ian.
Quoted 10 lines · Ian Campbell
Quoted 1 line · Igor Kozhukhov
i'm using
xc_solaris.c- because illumos based on solaris and has open API.I suspect this was the case, thanks for confirming.
Quoted 1 line
for now - i have found and fixed my problems: i'm able to load PV guests: dilos PV on dilos-xen-4.3-dom0, Linux ContOS 6.4 and Debian 7.0 64bits.
Excellent!
Is Illumos usable as a domU on a Linux dom0 as well?
i didn't test it by myself, but i have info about works with Xen-4.2 based on CentOS. i have tested dilos-xen-3.4-dom0 with Linux PV/HVM guests - work well, also Windows HVM work well too. i have updated libfsimage by ZFS from illumos and now we can use pygrub for illumos based VMs.
Quoted 3 lines
Quoted 3 lines
I'll send info later with new ISO and instruction for testing. 'xl' now work well.
i'll work on provide my changes to Xen upstream.
sent email with info about it - i hope on feedback about testing :)
Quoted 3 lines
Thank you!
Ian.
-Igor