出处:
https://blog.itwk.cc/post/pve_install_openwrt.html
工具准备
- WinSCP或者XFTP
- OpenWrt镜像(自行寻找)
- 安装好PVE的主机一台
安装教程
镜像上传
将下载好的OpenWrt
img镜像上传到 PVE主机中(这里使用XFTP工具)
选择SFTP 点击确定,选择刚刚添加的主机。点击连接
输入用户名及密码。登录后将img镜像拖拽到PVE主机中即可
创建虚拟机
以下教程中没有提到的地方自行配置即可,CPU MEM按需分配!
将镜像导入到OpenWrt虚拟机
打开PVE中的Shell控制台,如下图
执行如下命令 将bleach-xxx.img镜像附加到id为
999的这台虚拟机上,就是OpenWrt的虚拟机 存储位置为local
root@Home:~# qm importdisk 999 bleach-mini-20221231-openwrt-x86-64-generic-squashfs-combined-efi.img localimporting disk'bleach-mini-20221231-openwrt-x86-64-generic-squashfs-combined-efi.img'to VM999... Formatting'/var/lib/vz/images/999/vm-999-disk-0.raw',fmt=rawsize=1090813440preallocation=off transferred0.0B of1.0GiB(0.00%)transferred12.0MiB of1.0GiB(1.15%)transferred24.0MiB of1.0GiB(2.31%)transferred36.0MiB of1.0GiB(3.46%)transferred48.0MiB of1.0GiB(4.61%)transferred60.0MiB of1.0GiB(5.77%)transferred72.0MiB of1.0GiB(6.92%)transferred84.0MiB of1.0GiB(8.07%)transferred96.0MiB of1.0GiB(