On s390x: ioctl(KVM_CREATE_VM) failed: 22 Invalid argument
This document (7020138) is provided subject to the disclaimer at the end of this document.
The following error is shown in the /var/log/libvirt/qemu/ logs:
<date> <time>: starting up libvirt version: 2.0.0, qemu version: 2.6.1 (SUSE Linux Enterprise 12), hostname: host.foo.com
LC_ALL=C PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin QEMU_AUDIO_DRV=none /usr/bin/qemu-system-s390x
-name guest=sles12sp2,debug-threads=on ....
char device redirected to /dev/pts/3 (label charconsole0)
ioctl(KVM_CREATE_VM) failed: 22 Invalid argument
Host kernel setup problem detected. Please verify:
- for kernels supporting the switch_amode or user_mode parameters, whether
user space is running in primary address space
- for kernels supporting the vm.allocate_pgste sysctl, whether it is enabled
failed to initialize KVM: Invalid argument
<date> <time>: shutting down
Please install the recommended update.
The /etc/sysctl.d/50-allow-kvm-on-s390x includes the correct value but the file was missing it's .conf ending so it wasn't used.
This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.
- Document ID:7020138
- Creation Date: 31-May-2017
- Modified Date:03-Mar-2020
- SUSE Linux Enterprise Server
For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com