Clone
4
2.7 OpenWrt
jsc-wiki edited this page 2026-10-14 06:27:29 +00:00

OpenWrt

第2章 網路與儲存 · 來源:JSC 知識庫

簡介

在 Proxmox VE 以官方映像檔建立 OpenWrt 虛擬機,作為路由器使用。

步驟

1. 下載映像檔壓縮檔

wget https://downloads.openwrt.org/releases/23.05.3/targets/x86/64/openwrt-23.05.3-x86-64-generic-ext4-combined.img.gz

2. 解壓縮映像檔

gzip -d openwrt-23.05.3-x86-64-generic-ext4-combined.img.gz

3. 將映像檔移到 ISO

cp openwrt-23.05.3-x86-64-generic-ext4-combined.img /var/lib/vz/template/iso

4. 建立無硬碟的虛擬機,紀錄虛擬機編號

5. 將映像檔指派到虛擬機

qm disk import 201 /var/lib/vz/template/iso/openwrt-23.05.3-x86-64-generic-ext4-combined.img local-lvm

6. 虛擬機選項: 開機順序全部取消

7. 進入虛擬機,修改網路

vi /etc/config/network
service network restart

8. 嘗試連線OpenWRT

Username: root

Password:


← 2.6 OpenSSH · 本章目錄 · 全書目錄 · 2.8 DiskStation Manager →