
准备工作
一、PVE安装:
安装pve很简单,这里就不说了 启动PVE,进入WebUI
二、进入PVE后基础设置:
1、PVE换源(如已做过请忽略): (1)国内清华源速度较快(南方可选择中科大较快) 将自带的源文件sources.list备份
cp /etc/apt/sources.list /etc/apt/sources.list_bak
JavaScript
编辑sources.list
nano /etc/apt/sources.list
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm main contrib non-free non-free-firmware
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm-updates main contrib non-free non-free-firmware
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm-backports main contrib non-free non-free-firmware
deb https://mirrors.tuna.tsinghua.edu.cn/debian-security bookworm-security main contrib non-free non-free-firmware
JavaScript
(2)编辑pve企业源:
nano /etc/apt/sources.list.d/pve-enterprise.list
JavaScript
将其中原有的proxmox句首加# 注释掉,变为:
#deb https://enterprise.proxmox.com/debian/pve bullseye pve-enterprise
deb https://mirrors.tuna.tsinghua.edu.cn/proxmox/debian bullseye pve-no-subscription
JavaScript
ctrl+x y 回车保存退出
(3)修复源401错误
nano /etc/apt/sources.list.d/ceph.list
JavaScript
将其中原有的proxmox句首加# 注释掉,变为:
#deb http://download.proxmox.com/debian/ceph-quincy bookworm no-subscription
deb https://mirrors.ustc.edu.cn/proxmox/debian/ceph-quincy bookworm no-subscription
JavaScript
ctrl+x y 回车保存退出
更新
apt update && apt dist-upgrade -y
JavaScript
2、LXC更换为清华源:
cp /usr/share/perl5/PVE/APLInfo.pm /usr/share/perl5/PVE/APLInfo.pm_back
JavaScript
更换为清华源:
sed -i 's|http://download.proxmox.com|https://mirrors.tuna.tsinghua.edu.cn/proxmox|g' /usr/share/perl5/PVE/APLInfo.pm
JavaScript
重启reboot
3、编辑grub、添加设备黑名单
(1)nano /etc/default/grub
添加以下:
GRUB_CMDLINE_LINUX_DEFAULT="quiet intel_iommu=on
JavaScript
ctrl+x,y,回车保存退出
(2)更新grub:update-grub
(3)nano /etc/modprobe.d/pve-blacklist.conf
blacklist nvidiafb
blacklist i915
blacklist snd_hda_intel
JavaScript
- 引用文章
ctrl+x,y,回车保存退出
(4)更新initramfs:update-initramfs -u -k all
(5)重启:reboot
(6)使用gangqizai大佬的项目的igd.rom和gop.rom 详情见https://github.com/gangqizai/igd
- 把这两个rom文件拷贝到 /use/share/kvm/
- 因为使用两个rom文件,conf配置文件中,一个rom文件加在显卡,另一个加在声卡,大家注意一下。
三、安装虚拟机建立及环境设置
创建win11虚拟机 名称:自定义 光驱挂载:Win安装ISO镜像 系统中显卡:无 机型:i440fx BIOS:OVMF EFI分区:UEFI(OVMF)需要 TPM设备:Win11需要 磁盘:SCSI 大小100G(按需设置,或硬盘直通) CPU:host 核心数量4(如N100共4核,按需设置) 内存:4G及以上(核显直通建议) 网络:virtIO(半虚拟化或网卡直通)网卡 点击确定
1.配置虚拟机conf文件,添加ROM和VBIOS文件指向
nano /etc/pve/qemu-server/101.conf
JavaScript
找到以下两处,并添加
args: -set device.hostpci0.addr=02.0 -set device.hostpci0.x-igd-gms=0x2 -set device.hostpci0.x-igd-opregion=on
hostpci0: 0000:00:02.0,legacy-igd=1,romfile=igd.rom
hostpci1: 0000:00:1f.3,romfile=IntelGopDriver.rom
JavaScript
ctrl+x,y,回车保存退出
2.安装win11系统
首先安装virtIO驱动,然后安装amd驱动,不要重启电脑。打开远程桌面并测试能正常登录
🤗 结束
win11相关
硬件直通
nano /etc/modules 粘贴以下:
vfio
vfio_iommu_type1
vfio_pci
vfio_virqfd
JavaScript
然后再更新:update-initramfs -u -k all
win11激活
kms容器docker安装::docker run -d -p 1688:1688 –restart=always –name vlmcsd mikolatero/vlmcsd CMD以管理员身份依次输入以下命令
slmgr.vbs -ipk W269N-WFGWX-YVC9B-4J6C9-T83GX
slmgr.vbs -skms 主机地址
slmgr.vbs -ato
slmgr.vbs -dlv
win11自动登陆设置.打开运行窗口输入 control userpasswords2 回车 恢复步骤如下:
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\PasswordLess\Device];
其原始值是2,改为0即可。

Just starting out on 87lucky but so far it is quite a smooth experience! I find that its platform overall has some cool promotions that are worth investigating! See what’s in store yourself. 87lucky
Needed to download something and stumbled upon yes555download. Quick and easy to use! If you’re after a hassle-free download experience, this is it. yes555download
Thought I’d give aaa999bet a try and I’m not disappointed. They have a good selection of games. Seems pretty solid. Might stick around for a while! aaa999bet