Ubuntu Core on SUSE - hpaluch/hpaluch.github.io GitHub Wiki
Ubuntu Core on SUSE
WARNING!
Ubuntu requires mandatory "store account" - even for testing - once you boot image for the 1st time there will appear:
==================... Profile setup ==================... Enter an email address from your account in the store. Email address: If you do not have an account, visit https://login.ubuntu.com to create one.
Therefore I abandoned evaluation of this product. Sorry...
I was curios what is Ubuntu Core for so I visited these 2 pages to try it:
- download page: https://ubuntu.com/core/docs/supported-platforms
- guide: https://ubuntu.com/core/docs/testing-with-qemu
However SUSE LEAP has no /usr/share/OVMF/OVMF_CODE.secboot.fd
nor /usr/share/OVMF/OVMF_VARS.ms.fd
On SUSE we need to install this most close package:
sudo zypper in qemu-ovmf-x86_64
- now put image to some read-write directory
- additionally copy to that directory:
cp /usr/share/qemu/ovmf-x86_64-smm-code.bin . cp /usr/share/qemu/ovmf-x86_64-smm-vars.bin .
- at least
-vars.bin
must be read-write because UEFI modify its (it is like non-volatile memory)
Before running QEMU you should be sure that you can access /dev/kvm
device
(normally group kvm
required). If you want to setup only "on demand" access
you can:
- as root run
gpasswd kvm
to set Group(!) password forkvm
group access - as normal user than use
newgrp kvm
and specify above password to getkvm
group access - use command
groups
to verify that you are really now inkvm
group
Here is final QEMU command I tried:
qemu-system-x86_64 \
-enable-kvm \
-smp 1 \
-m 2048 \
-machine q35 \
-cpu host \
-global ICH9-LPC.disable_s3=1 \
-net nic,model=virtio \
-net user,hostfwd=tcp::8022-:22,hostfwd=tcp::8090-:80 \
-drive file=ovmf-x86_64-smm-code.bin,if=pflash,format=raw,unit=0,readonly=on \
-drive file=ovmf-x86_64-smm-vars.bin,if=pflash,format=raw,unit=1 \
-drive file=ubuntu-core-24-amd64.img,if=none,format=raw,id=disk1 \
-device virtio-blk-pci,drive=disk1,bootindex=1 \
-serial mon:stdio