Mailing List Archive

Unable to start HVM domU
Hi,

I'm trying to troubleshoot why i'm unable to launch a Xen HVM guest. I'm
encountering the following error, *map shared IO page returned error 3 *

/usr/lib64/xen/bin/qemu-dm -boot cd -m 2048M -vnc 127.0.0.1:0 -drive
file=/var/lib/xen/ol7-app-template2/ol7-app-template,if=virtio,cache=writeback,format=raw
-name ol7-app-template -d all
domid: 0
Warning: vlan 0 is not connected to host network
-videoram option does not work with cirrus vga device model. Videoram set
to 4M.
Watching device-model/0/logdirty/cmd
Watching device-model/0/command
Watching /local/domain/0/cpu
qemu_map_cache_init nr_buckets = 10000 size 4194304
shared page at pfn ac6670
map shared IO page returned error 3

[root@usdayt-app-735 ol7_trimble]# xl info
host : usdayt-app-735.trimblecorp.net
release : 4.9.127-32.el7.x86_64
version : #1 SMP Mon Sep 17 13:40:58 UTC 2018
machine : x86_64
nr_cpus : 8
max_cpu_id : 14
nr_nodes : 1
cores_per_socket : 8
threads_per_core : 1
cpu_mhz : 2200
hw_caps :
178bfbff:f7fa3223:2c100800:00000121:00000001:00000fbb:00000000:00000000
virt_caps : hvm
total_memory : 16383
free_memory : 7496
sharing_freed_memory : 0
sharing_used_memory : 0
outstanding_claims : 0
free_cpus : 0
xen_major : 4
xen_minor : 10
xen_extra : .3.12.g7842419a
xen_version : 4.10.3.12.g7842419a
xen_caps : xen-3.0-x86_64 xen-3.0-x86_32p hvm-3.0-x86_32
hvm-3.0-x86_32p hvm-3.0-x86_64
xen_scheduler : credit
xen_pagesize : 4096
platform_params : virt_start=0xffff800000000000
xen_changeset :
xen_commandline : placeholder dom0_mem=max:8192M cpuinfo
allowsuperpage dom0_max_vcpus=20 crashkernel=512M@64M loglvl=all
guest_loglvl=all nopti spectre_v2=off spec_store_bypass_disable=off l1tf=off
cc_compiler : gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-36)
cc_compile_by : mockbuild
cc_compile_domain : centos.org
cc_compile_date : Thu Mar 7 18:12:10 UTC 2019
build_id : ca5d385008404b31db4cecd833cebf1146b34ea8
xend_config_format : 4
Re: Unable to start HVM domU [ In reply to ]
Ryan Chewning schrieb:

> I'm trying to troubleshoot why i'm unable to launch a Xen HVM guest. I'm
> encountering the following error, *map shared IO page returned error 3 *
>
> /usr/lib64/xen/bin/qemu-dm -boot cd -m 2048M -vnc 127.0.0.1:0
> -drive
> file=/var/lib/xen/ol7-app-template2/ol7-app-template,if=virtio,cache=writeback,format=raw
> -name ol7-app-template -d all

You can not start a Xen guest by just starting the device model (qemu).
You have to use "xl create", which starts qemu among other initializations.

qemu emulates *some* devices, but para-virtualized devices, memory
management etc. are done by the hypervisor, which doesn't know that you
started qemu...

--
Manfred Härtel, DB3HM mailto:Manfred.Haertel@rz-online.de
http://rz-home.de/mhaertel

_______________________________________________
Xen-users mailing list
Xen-users@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-users
Re: Unable to start HVM domU [ In reply to ]
On Thu, Apr 4, 2019, 22:13 Manfred Haertel, DB3HM <
Manfred.Haertel@rz-online.de> wrote:

> Ryan Chewning schrieb:
>
> > I'm trying to troubleshoot why i'm unable to launch a Xen HVM guest. I'm
> > encountering the following error, *map shared IO page returned error 3 *
> >
> > /usr/lib64/xen/bin/qemu-dm -boot cd -m 2048M -vnc 127.0.0.1:0
> > -drive
> >
> file=/var/lib/xen/ol7-app-template2/ol7-app-template,if=virtio,cache=writeback,format=raw
>
> > -name ol7-app-template -d all
>
> You can not start a Xen guest by just starting the device model (qemu).
> You have to use "xl create", which starts qemu among other initializations.
>
> qemu emulates *some* devices, but para-virtualized devices, memory
> management etc. are done by the hypervisor, which doesn't know that you
> started qemu...
>
> --
> Manfred Härtel, DB3HM mailto:Manfred.Haertel@rz-online.de
> http://rz-home.de/mhaertel


Well that would explain why I'm getting this error message. To clarify this
a bit more. I'm using a seperate program called Packer to build VM
templates. Packer uses Qemu to build the VM according to their
documentation. https://www.packer.io/docs/builders/qemu.html I've not been
able to find any documentation of how to get Qemu to start a Xen domU
machine. Might anyone here have a good suggestion on how to do that?
Re: Unable to start HVM domU [ In reply to ]
have a look at the xen vm cfg files.
Create one by yourself, such that it fits your VM, put into /etc/xen
and try to start that vm with "xl create XyZ"

Am Freitag, den 05.04.2019, 11:34 -0400 schrieb Ryan Chewning:
> On Thu, Apr 4, 2019, 22:13 Manfred Haertel, DB3HM <
> Manfred.Haertel@rz-online.de> wrote:
> > Ryan Chewning schrieb:
> >
> >
> >
> > > I'm trying to troubleshoot why i'm unable to launch a Xen HVM
> > guest. I'm
> >
> > > encountering the following error, *map shared IO page returned
> > error 3 *
> >
> > >
> >
> > > /usr/lib64/xen/bin/qemu-dm -boot cd -m 2048M -vnc 127.0.0.1:0
> >
> > > -drive
> >
> > > file=/var/lib/xen/ol7-app-template2/ol7-app-
> > template,if=virtio,cache=writeback,format=raw
> >
> > > -name ol7-app-template -d all
> >
> >
> >
> > You can not start a Xen guest by just starting the device model
> > (qemu).
> >
> > You have to use "xl create", which starts qemu among other
> > initializations.
> >
> >
> >
> > qemu emulates *some* devices, but para-virtualized devices, memory
> >
> > management etc. are done by the hypervisor, which doesn't know that
> > you
> >
> > started qemu...
> >
> >
> >
> > _______________________________________________Xen-users mailing
> > listXen-users@lists.xenproject.org
> > https://lists.xenproject.org/mailman/listinfo/xen-users