【虚拟机出现错误kvm: unable to map backing store for guest RAM: Cannot allocate memory的解决方法】

虚拟机出现以下错误的解决方法:

generating cloud-init ISO
WARN: no efidisk configured! Using temporary efivars disk.
kvm: unable to map backing store for guest RAM: Cannot allocate memory
TASK ERROR: start failed: QEMU exited with code 1

错误原因:

是由于大页内存被缩了

解决方法

进入宿主机系统手动执行sysctl -p,然后就能开机了

cat /proc/meminfo|grep Huge 可以看到大页内存剩余多少

虚拟机出现以下错误的解决方法:

TASK ERROR: activating LV ‘local-hdd/vm-103-cloudinit’ failed: Activation of logical volume local-hdd/vm-103-cloudinit is prohibited while logical volume local-hdd/local-hdd_tmeta is active.

错误原因:

由于lvm初始化的有问题,开机后需要重新初始化

解决方法:

lvchange -an /dev/mapper/local–hdd-local–hdd_tmeta
lvchange -an /dev/mapper/local–hdd-local–hdd_tdata
lvchange -ay /dev/local-hdd/local-hdd

输入这三行命令,就能开机

你可能感兴趣的:(随便记记,linux)