Lazy loaded image
pve系统安装openwrt和飞牛
Words 638Read Time 2 min
2025-10-19
2025-10-21
type
status
date
slug
summary
tags
category
icon
password
😀
在我的pve系统里开始安装openwrt
主要参考了这位博主的视频 https://www.bilibili.com/video/BV1e9qaY2E1i?t=572.0
首先下载镜像文件 下载地址:https://fw.koolcenter.com/iStoreOS/x86_64/ 然后去PVE系统上传
数据中心-pve-local(pve)-iso-上传
 
上传完去创建虚拟机
我是高版本,我在这里还勾选了一下开机自启动
notion image
不使用介质,因为要使用镜像来当做硬盘用
notion image
只改了机型选了Q35,没什么特殊情况一般都选Q35
notion image
删掉磁盘,因为要使用镜像来当做硬盘用
notion image
核心其实是线程,类别一定要选host
notion image
内存给个1g到2g就够用了
notion image
 
最后网络配置不需要动,直接完成
 
接下来要使用命令,101换成自己的编号,路径不要改,如果用了新版本的镜像,镜像的名字要改,最后的local是你的镜像上传位置,如果你的在local-lvm,就写local-lvm
qm importdisk 101 /var/lib/vz/template/iso/istoreos-22.03.7-2024120615-x86-64-squashfs-combined.img local
 
然后选中虚拟机-硬件,修改磁盘 ,设备改为SATA,完成
再去选项中修改引导顺序,只勾选sata,安装配置就完成了,可以启动虚拟机了
notion image
 
 
启动后查看ip,输入ip a,找到你的地址 比如192.168.10.236
notion image
在浏览器中打开ip,进入openwrt,密码是password
然后去修改网络-接口-lan-配置-常规设置
notion image
notion image
notion image
notion image
然后保存应用,强制应用,ok了
当需要使用这个网络的时候,就可以手动切换到这个网关了
切换时不用改ip地址,只修改网关地址
 
接下来要给openwrt安装openclash科学工具,
下载地址:GitHubGitHubAre-u-ok/x86 at main · AUK9527/Are-u-ok
下载好后去openwrt手动安装,在配置订阅里新增配置,更新启动
notion image
 
 
安装飞牛
notion image
notion image
这里我只有一块硬盘,我给500G
如果有不止一块硬盘,可以删除这里,然后用代码直通
RDM硬盘直通代码: ls -la /dev/disk/by-id/|grep -v dm|grep -v lvm|grep -v part qm set 101 --sata0 /dev/disk/by-id/ata-xxxx
给个2线程选择host,4g内存,网络保持默认,完成
去选项设置引导顺序,选择ide2拖到到第一启动项
启动飞牛,一路确定,记住ip 192.168.10.202
然后停止飞牛,去引导顺序,取消ide2勾选,去硬件中移除cd镜像,再次启动
上一篇
Debian手动安装腾讯云 COSFS 并挂载对象储存
下一篇
在Debian上设置静态IP(固定IP)