KVM

AmigaOne X5000 platform specific issues related to Linux only.
User avatar
xeno74
Posts: 9319
Joined: Fri Mar 23, 2012 7:58 am

Re: KVM

Post by xeno74 »

xeno74 wrote: Mon Nov 07, 2022 8:48 am
caseycullen wrote: Mon Nov 07, 2022 5:20 am Nice! How is KVM-PR performance? I’ve been meaning to try it.
It’s not as fast as KVM HV. I haven’t tested it on the X5000 yet. It’s OK on the X1000.
PR-mode KVM is not supported on the X5000. Only KVM-HV is possible.
http://www.amigalinux.org
http://www.supertuxkart-amiga.de

Running Linux on AmigaONEs can require some tinkering.
User avatar
xeno74
Posts: 9319
Joined: Fri Mar 23, 2012 7:58 am

Re: KVM

Post by xeno74 »

Usually we use a VirtIO GPU for our QEMU machines. (-device virtio-gpu-pci)

There is another possibility.

The Bochs VGA.

QEMU argument: -device VGA,vgamem_mb=256


Please note: If you want to use a higher resolution then please delete the xorg conf file with the fbdev entry and login again.
http://www.amigalinux.org
http://www.supertuxkart-amiga.de

Running Linux on AmigaONEs can require some tinkering.
User avatar
xeno74
Posts: 9319
Joined: Fri Mar 23, 2012 7:58 am

Re: KVM

Post by xeno74 »

FYI because of QEMU/KVM HV e5500 PowerPC VMs: There are two VirtIO graphics controller available.

-device virtio-vga (The MATE PowerPC Remix 2017 and Void PPC work with this VGA controller)

-device virtio-gpu-pci (The MATE PowerPC Remix 2017 doesn't work with this controller. Void PPC works with this controller)

Image
http://www.amigalinux.org
http://www.supertuxkart-amiga.de

Running Linux on AmigaONEs can require some tinkering.
User avatar
xeno74
Posts: 9319
Joined: Fri Mar 23, 2012 7:58 am

Re: KVM

Post by xeno74 »

xeno74 wrote: Sun Mar 19, 2023 2:56 am Usually we use a VirtIO GPU for our QEMU machines. (-device virtio-gpu-pci)

There is another possibility.

The Bochs VGA.

QEMU argument: -device VGA,vgamem_mb=256


Please note: If you want to use a higher resolution then please delete the xorg conf file with the fbdev entry and login again.
The Bochs graphics card works great with macOS. :-)

Complete command for booting Void PPC in a virtual e5500 QEMU PPC machine on a macOS Intel host:

Code: Select all

qemu-system-ppc64 -M ppce500 -cpu e5500 -m 4096 -kernel /Users/christian/QEMU_VMs/linux-image-6.3-rc3-X1000_X5000/X5000_and_QEMU_e5500/uImage-6.3 -drive format=raw,file=/Users/christian/QEMU_VMs/void-live-powerpc-20230317.img,index=0,if=virtio -netdev user,id=mynet0 -device virtio-net-pci,netdev=mynet0 -append "rw root=/dev/vda" -device VGA,vgamem_mb=256 -usb -device usb-ehci,id=ehci -device usb-tablet -device virtio-keyboard-pci -smp 4
http://www.amigalinux.org
http://www.supertuxkart-amiga.de

Running Linux on AmigaONEs can require some tinkering.
User avatar
xeno74
Posts: 9319
Joined: Fri Mar 23, 2012 7:58 am

Re: KVM

Post by xeno74 »

If you have wrong colors in the virtual display then try -display sdl.
http://www.amigalinux.org
http://www.supertuxkart-amiga.de

Running Linux on AmigaONEs can require some tinkering.
User avatar
xeno74
Posts: 9319
Joined: Fri Mar 23, 2012 7:58 am

Re: KVM

Post by xeno74 »

QEMU command for booting the latest Void PPC in a virtual e5500 machine with KVM HV support:

Code: Select all

qemu-system-ppc64 -M ppce500 -cpu e5500 -m 1024 -kernel /home/amigaone/Downloads/linux-image-6.3-X1000_X5000/X5000_and_QEMU_e5500/uImage-6.3 -drive format=raw,file=/home/amigaone/Downloads/void-live-powerpc-20230317.img,index=0,if=virtio -netdev user,id=mynet0 -device virtio-net,netdev=mynet0 -append "rw root=/dev/vda" -device virtio-gpu-pci -device virtio-mouse-pci -device virtio-keyboard-pci -device pci-ohci,id=newusb -audiodev id=sndbe,driver=pa,server=/run/user/1000/pulse/native -device usb-audio,bus=newusb.0 -enable-kvm -smp 4 -fsdev local,security_model=passthrough,id=fsdev0,path=/home/amigaone/Music -device virtio-9p-pci,id=fs0,fsdev=fsdev0,mount_tag=hostshare -display gtk
http://www.amigalinux.org
http://www.supertuxkart-amiga.de

Running Linux on AmigaONEs can require some tinkering.
User avatar
xeno74
Posts: 9319
Joined: Fri Mar 23, 2012 7:58 am

Re: KVM

Post by xeno74 »

Adding an IDE drive:

Code: Select all

-drive id=disk,file=disk.qcow2,format=qcow2,if=none -device ahci,id=ahci -device ide-cf,drive=disk,bus=ahci.0
http://www.amigalinux.org
http://www.supertuxkart-amiga.de

Running Linux on AmigaONEs can require some tinkering.
User avatar
xeno74
Posts: 9319
Joined: Fri Mar 23, 2012 7:58 am

Re: KVM

Post by xeno74 »

Convert an img to a vmdk for VMware:

Code: Select all

qemu-img convert fienix_6.0.1-noboot-r1.img -O vmdk fienix_6.0.1-noboot-r1.vmdk
http://www.amigalinux.org
http://www.supertuxkart-amiga.de

Running Linux on AmigaONEs can require some tinkering.
Post Reply