xl创建:无法检索域配置错误

问题描述 投票:0回答:1

我第一次使用Xen,使用Alpine Linux作为Dom0。

我正在按照Alpine Linux guide在Xen中设置PV访客,并且收到以下错误:

alpine-xen:~# xl create -f /etc/xen/a1.cfg  -c
libxl: error: libxl_mem.c:202:libxl_set_memory_target: unable to retrieve domain configuration: No such file or directory
failed to free memory for the domain

我无法在线找到有关此错误的任何详细信息。有人可以帮我这个忙吗?

下面是我对xl listxl info的输出:

alpine-xen:~# xl list
Name                                        ID   Mem VCPUs      State   Time(s)
Domain-0                                     0 64622    24     r-----      10.8
alpine-xen:~# xl info
host                   : alpine-xen
release                : 4.19.80-0-vanilla
version                : #1-Alpine SMP Fri Oct 18 11:27:53 UTC 2019
machine                : x86_64
nr_cpus                : 24
max_cpu_id             : 31
nr_nodes               : 1
cores_per_socket       : 12
threads_per_core       : 2
cpu_mhz                : 3835.933
hw_caps                : 178bf3ff:f6d8320b:2e500800:244037ff:0000000f:219c91a9:00400004:00000500
virt_caps              : pv hvm
total_memory           : 65466
free_memory            : 128
sharing_freed_memory   : 0
sharing_used_memory    : 0
outstanding_claims     : 0
free_cpus              : 0
xen_major              : 4
xen_minor              : 12
xen_extra              : .1
xen_version            : 4.12.1
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          : credit2
xen_pagesize           : 4096
platform_params        : virt_start=0xffff800000000000
xen_changeset          :
xen_commandline        : placeholder no-real-mode edd=off
cc_compiler            : gcc (Alpine 8.3.0) 8.3.0
cc_compile_by          : buildozer
cc_compile_domain      : [unknown]
cc_compile_date        : Tue Aug 13 14:24:26 UTC 2019
build_id               : f004ef86de8db93d5fbbb90e9b5fa21a70823d67
xend_config_format     : 4
xen
1个回答
0
投票

似乎您忘记了引导时限制dom0的内存。根据我们的硬件,dom0需要256M至2048M。

您需要在这两个文件中进行设置:

/ boot / extlinux.conf

...
LABEL xen-vanilla
  MENU LABEL Xen + Linux vanilla
  COM32 mboot.c32
  APPEND xen.gz dom0_mem=256M --- vmlinuz-vanilla root=...
...

/ etc / update-extlinux.conf

...
xen_opts=dom0_mem=256M
...
© www.soinside.com 2019 - 2024. All rights reserved.