On 5/17/20 8:57 PM, Valentin Vidić wrote:
Hi, I'm trying to install a s390x VM using qemu: $ qemu-system-s390x -machine s390-ccw-virtio -nographic \ --cdrom debian-10.4.0-s390x-netinst.iso \ -kernel boot/linux_vm -initrd boot/root.bin -append init=/bin/sh but it doesn't seem to work - there is no network, cdrom or disk. Should this work or is this usecase not supported?
I'd recommend to try virt-install, see http://kvmonz.blogspot.com/p/knowledge-use-virt-install-for-kvm.html. virt-install will set up the VM in a proper way.
You will need to invoke virt-install with --arch=s390x if your running on an x86 box and make sure you have the qemu-system-s390x package installed.
Chance for success will probably increase with the currency of the QEMU used.
The invocation you've reported above doesn't instantiate a virtio disk and network interface (which are the only device types supported for s390x. Similary virtual CD/DVD must be on virtio-scsi for s390x. Again, virt-install and virsh are your friends here.
-- Kind Regards, Viktor