From 037f6a9e8a27af0c391fb0af971b8f32bd5add18 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=B3=BB=E7=B5=B1=E7=AE=A1=E7=90=86=E5=93=A1?= Date: Fri, 6 Mar 2026 06:04:29 +0000 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=20Service=EF=BC=9AOpenWrt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Service%EF%BC%9AOpenWrt.md | 41 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 Service%EF%BC%9AOpenWrt.md diff --git a/Service%EF%BC%9AOpenWrt.md b/Service%EF%BC%9AOpenWrt.md new file mode 100644 index 0000000..b08a6e2 --- /dev/null +++ b/Service%EF%BC%9AOpenWrt.md @@ -0,0 +1,41 @@ +# 1. 下載映像檔壓縮檔 + +```bash +wget https://downloads.openwrt.org/releases/23.05.3/targets/x86/64/openwrt-23.05.3-x86-64-generic-ext4-combined.img.gz +``` + +# 2. 解壓縮映像檔 + +```bash +gzip -d openwrt-23.05.3-x86-64-generic-ext4-combined.img.gz +``` + +# 3. 將映像檔移到 ISO + +```bash +cp openwrt-23.05.3-x86-64-generic-ext4-combined.img /var/lib/vz/template/iso +``` + +# 4. 建立無硬碟的虛擬機,紀錄虛擬機編號 +# 5. 將映像檔指派到虛擬機 + +```bash +qm disk import 201 /var/lib/vz/template/iso/openwrt-23.05.3-x86-64-generic-ext4-combined.img local-lvm +``` + +# 6. 虛擬機選項: 開機順序全部取消 +# 7. 進入虛擬機,修改網路 + +```bash +vi /etc/config/network +``` + +```bash +service network restart +``` + +# 8. 嘗試連線OpenWRT + +Username: root + +Password: \ No newline at end of file