网站首页 > 教程文章 正文
一、下载openwrt镜像
我下载的是:
openwrt-23.05.5-x86-generic-generic-ext4-combined.img
二、使用virt-install直接安装
virt-install --name openwrt \
--osinfo=rhel7.0 --ram 512 --vcpus 2 \
--disk path=/home/openwrt-23.05.5-x86-generic-generic-ext4-combined.img,bus=virtio,cache=writeback \
--network bridge=br0,model=virtio \
--graphics=vnc,password=123456,port=5966,listen=0.0.0.0 \
--noautoconsole --import --autostart
三、几点解释
--osinfo=rhel7.0 必须指定该参数,操作系统版本
--network bridge=br0,model=virtio 半虚拟化的模式,会导致在 openWRT 中网卡显示为半双工,实际不影响。另:bridge=br0是启用的桥接模式。
--import 标记该虚拟机为导入,而不是创建
--autostart 开机自动启动
四、最后
启动后调整IP地址以及安装语言包
/etc/config/network #修改路由管理ip配置
opkg update && opkg install luci-i18n-base-zh-cn #安装中文语言包
猜你喜欢
- 2025-05-27 超详细!虚拟机搭建 OpenWrt 软路由小白入门教程,一看就懂!
- 2025-05-27 从零开始学习OpenWrt:刷机 + 使用 + 编译教程
- 2025-05-27 网络设备之 篇一:LINKSYS 领势 WRT1900AC 无线路由器 刷中文&openwrt指南
- 2025-05-27 体验软路由,旧笔记本电脑搭建OpenWRT系统图文教程/保姆教程
- 2025-05-27 路由器万用刷机方法 (openwrt固件)
- 2025-05-27 软路由OpenWrt X86软路由安装
- 2025-05-27 路由器新手入门——OpenWRT基础设置篇
- 最近发表
- 标签列表
-
- location.href (44)
- document.ready (36)
- git checkout -b (34)
- 跃点数 (35)
- 阿里云镜像地址 (33)
- qt qmessagebox (36)
- mybatis plus page (35)
- vue @scroll (38)
- 堆栈区别 (33)
- 什么是容器 (33)
- sha1 md5 (33)
- navicat导出数据 (34)
- 阿里云acp考试 (33)
- 阿里云 nacos (34)
- redhat官网下载镜像 (36)
- srs服务器 (33)
- pico开发者 (33)
- https的端口号 (34)
- vscode更改主题 (35)
- 阿里云资源池 (34)
- os.path.join (33)
- redis aof rdb 区别 (33)
- 302跳转 (33)
- http method (35)
- js array splice (33)