从官方下载的openSUSE-Tumbleweed-NET-x86_64-Current.iso,只能用type1类型的虚拟机,使用type2类型的无法引导。

安装开始的时候,会说需要重新下载匹配软件资料库的内核,安装完之后需要重启,这时记得把DVD中挂载的ISO退出。

安装的时候选择了全盘加密。但这似乎不是一个好的选择。首先要输入两次密码,先解锁grub,再解锁跟目录。

虽然这个问题可以使用Avoiding having to enter the passphrase twice中提供的办法:

# dd bs=512 count=4 if=/dev/random of=/root/cryptlvm.keyfile iflag=fullblock
# chmod 000 /root/cryptlvm.keyfile
# cryptsetup -v luksAddKey /dev/sda3 /root/cryptlvm.keyfile

遗憾的是,系统内容加密导致虚拟机启动太慢。

openSUSE对于加密的指导

如果没有enhanced session,主机和宿机之间沟通不畅。

虽然代码开源在 https://github.com/Microsoft/linux-vm-tools,但是却是针对ArchLinux和Ubuntu的。 Arch的安装可以参考https://wiki.archlinux.org/title/Hyper-V#Enhanced_session_mode

好在可以使用zypper安装:zypper install hypver-v-enhanced-session

但是装上之后好像没有什么样,宿机控制菜单上的View->Enhanced Session还是灰的。

Hyper-V可以设置NAT,却没与默认的DHCP服务。通过Internet Connection Sharing,又老是提示我access denied。安装DnsProxy也没有作用。万般无奈,只好安装了VMWare WorkStation Player,其自带一个VMNet8,具有DHCP和DNS服务,可以将宿机来的请求转化为主机向外的请求。配置文件在C:\ProgramData\VMWare下,参考https://docs.vmware.com/en/VMware-Workstation-Pro/16.0/com.vmware.ws.using.doc/GUID-C2EC7B92-A499-4B47-95B6-0BFDDA28AC34.htmlhttps://communities.vmware.com/t5/VMware-Workstation-Pro/connect-to-guest-via-remote-ssh/td-p/1095457

Hyper-V的GPU Pass Through模式只在Windows Server支持,参考https://social.technet.microsoft.com/Forums/Windows/en-US/96a52f97-dc8c-48ae-8a99-2bfdbc05c526/gpu-pass-through-on-windows-10-hyperv,支持后可以采用以下命令开启:

Dismount-VMHostAssignableDevice -LocationPath gpu-device-location -force
Add-VMAssignableDevice -LocationPath gpu-device-location -VMName

VirtualBox

Snapd

Snapd用来安装vscode和sublime-merge还是挺方便。

也可以用来用来安装firefox/chromium

snap install firefox
snap install chromium

firefox或chromium安装完之后不能直接启动,显示错误“error: snap "code" has "install-snap" change in progress” ,说是gnome-3-38-2004没安装。等一会儿就好了。

wezterm

几个GPU加速的终端:alacritty, kitty, WezTerm,似乎只有wezterm能够在x2go使用。

其他

如果不取消secure boot,会遇到类似https://superuser.com/questions/1026190/hyper-v-vm-wont-boot-from-cd-error-unsigned-images-hash-is-not-allowed的错误。

安装basic_desktop桌面:sudo zypper install -t pattern basic_desktop

(本篇完)