songys 发布的文章

将img文件(2022101-Ipv4-Bypass-5.15-x86-64-generic-squashfs-combined-efi.img)解压出来,使用VBoxManage.exe进行转换,cmd语句如下:

D:\vbox\openwrt>"C:\Program Files\Oracle\VirtualBox\VBoxManage.exe" convertfromraw -format VDI 2022101-Ipv4-Bypass-5.15-x86-64-generic-squashfs-combined-efi.img 2022101-Ipv4-Bypass-5.15-x86-64-generic-squashfs-combined-efi.vdi

新建虚拟机使用转换出来的vdi虚拟硬盘文件,首次启动前先扩大虚拟磁盘空间,否则磁盘空间满,配置文件修改后重启会恢复默认值。

KVM安装完所有驱动后还是有未知设备。
参考微软文章
Hyper-V integration components update for Windows virtual machines (microsoft.com)

https://support.microsoft.com/en-us/topic/hyper-v-integration-components-update-for-windows-virtual-machines-8a74ffad-576e-d5a0-5a2f-d6fb2594f990

下载对应版本补丁,然后用cmd管理员方式执行,然后重启即可。
dism /online /Add-Package /PackagePath:C:\Users\neo\Desktop\windows6.x-hypervintegrationservices-x64.cab

1、win+r输入secpol.msc然后Ctrl+Shift+Enter;再或者在“控制面板”中–》“系统安全”–》“管理工具”–》找到“本地安全策略”–》右击“已管理员身份运行”
2、在secpol(本地安全策略)中–》本地策略–》安全选项–》找到“用户帐户控制:以管理员批准模式运行所有管理员”–》双击–》选择“已禁用”
3、关机重启,这个时候,无论是从哪进去的cmd,或者bat运行的脚本,都默认已管理员权限运行。