在虚拟机中安装
KDE Linux ships a regular bootable .iso image, available from the download page. You can install it in a virtual machine in largely the same way as any other Linux distribution — create a VM, attach the ISO, boot, run the installer, then reboot from the installed disk. There is only one requirement specific to KDE Linux:
Otherwise, the image will not boot. If it still refuses to boot, also disable Secure Boot in the VM’s UEFI settings.
各个虚拟机应用程序会将 UEFI 固件设置置于不同的地方——以下是几种常用的虚拟机应用程序的 UEFI 固件设置的位置:
Oracle VirtualBox
在设置向导中,请在设置虚拟机硬件时选中带有“启用 EFI”的复选框 (或在设置完毕后从终端运行 VBoxManage modifyvm "<vm-name>" --firmware efi ) 。
虚拟系统管理器 (virt-manager)
在设置向导的最后一页上,选中 在安装前自定义配置 复选框,然后在点击 *开始安装 *之前,将 概况 > 固件设置为 UEFI 。
QEMU
没有设置向导;您通过为 QEMU 指定 OVMF 固件来启用 UEFI。为 UEFI 变量存储创建可写副本并传递两个 pflash 驱动器:
cp /usr/share/edk2/x64/OVMF_VARS.4m.fd ./OVMF_VARS.4m.fd qemu-img create -f qcow2 kde-linux.qcow2 20G qemu-system-x86_64 -enable-kvm -m 4G -smp 4 \ -drive if=pflash,format=raw,readonly=on,file=/usr/share/edk2/x64/OVMF_CODE.4m.fd \ -drive if=pflash,format=raw,file=./OVMF_VARS.4m.fd \ -drive file=kde-linux.qcow2,if=virtio \ -cdrom kde-linux.iso
安装完成后,请从第二条命令中去掉 -cdrom 以后的内容,以从虚拟磁盘启动。OVMF 文件的位置依据宿主机的发行版而变化:Arch 的 edk2-ovmf软件包将此文件置于/usr/share/edk2/x64/中,而 Debian/Ubuntu 则使用 /usr/share/OVMF/。
XCP-ng
将虚拟机模板设置为Generic Linux UEFI。这是 UEFI 开关。
UTM (macOS)
Choose Emulate, not Virtualize — Apple’s Virtualization framework is incompatible with the KDE Linux image. UTM’s emulated Linux profile boots via UEFI by default; if it does not boot, check that UEFI Boot is enabled in the VM’s QEMU settings.
Post-install steps
If this KDE Linux VM will hold unimportant or ephemeral data, or if the VM itself is already snapshotted or backed up on your host system, consider turning off automatic snapshots.
文章作者:Nate Graham、Rudolf Psenicnik 和 Hadi Chokr,使用 CC-BY-4.0 许可证发布。