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