本帖最后由 maojindao 于 2023-2-12 21:03 编辑
背景知识
VMWare虚拟机安装配置OpenWRT旁路由 https://www.right.com.cn/forum/thread-8263460-1-1.html
Openwrt安装文件获取+上传
https://www.right.com.cn/forum/f ... light=openwrt%2Bx86
我使用的是20221216这个链接的openwrt-x86-64-generic-squashfs-combined.img.gz文件,该文件为Legacy引导的X86-64镜像文件。(使用20230206链接的相应文件时,pve提示无法引导。如果遇到该问题,可以换其他版本文件)。
scp -l 40960 ./openwrt-x86-64-generic-squashfs-combined.img.gz root@pveip:/
ssh root@pveip
cd /
(apt install gzip)
gunzip ./openwrt-x86-64-generic-squashfs-combined.img.gz
md5sum ./openwrt-x86-64-generic-squashfs-combined.img
(md5sum命令输出为 52497c8bf72676f52c40d1500642d423 openwrt-x86-64-generic-squashfs-combined.img,记得对比文件检验值,确认下载文件的完整性)
pve虚拟机创建及设置
创建一个虚拟机,一路默认。
设置
“硬件>硬盘>分离>删除"
添加openwrt img disk
ssh root@pveip
cd /
qm importdisk vm_id ./openwrt-x86-64-generic-squashfs-combined.img local-lvm
启用openwrt img disk
"硬件>硬盘>编辑>启用>模拟ssd>OK”
修改openwrt img disk大小
"硬件>硬盘>disk action>resize>2G>OK"
修改系统引导
"选项>引导顺序>只保留scsi0并勾选>OK”
启动系统并修改旁路由
点击“控制台”,点击“启动”
剩下的请参考“VMWare虚拟机安装配置OpenWRT旁路由 https://www.right.com.cn/forum/thread-8263460-1-1.html”设置。
请不要胡乱输入以及粘贴、复制等方式灌水
请尊重作者、并共同维护网站的正常阅读,否则账户将会被限制发帖、回帖,站内短信以及阅读权限等都会受到影响,谢谢。
具体限制方式:https://www.right.com.cn/forum/thread-8307840-1-1.html
|