From 8e339ca3e9f1a11a76bee906030e4ef6a5c092e1 Mon Sep 17 00:00:00 2001 From: Jeffery Date: Fri, 16 May 2025 07:26:42 +0000 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20=E7=9F=A5=E8=AD=98?= =?UTF-8?q?=E5=BA=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- %E7%9F%A5%E8%AD%98%E5%BA%AB.md | 47 +++++++++++++++++++++++++++++++++- 1 file changed, 46 insertions(+), 1 deletion(-) diff --git a/%E7%9F%A5%E8%AD%98%E5%BA%AB.md b/%E7%9F%A5%E8%AD%98%E5%BA%AB.md index 4806249..72b8075 100644 --- a/%E7%9F%A5%E8%AD%98%E5%BA%AB.md +++ b/%E7%9F%A5%E8%AD%98%E5%BA%AB.md @@ -1,6 +1,51 @@ +# OpenWRT + +## 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: + # 相關參考紀錄 - [Proxmox VE 初始化硬碟分割區與配置ZFS儲存區(Raidz)](https://www.albert-yu.com/blog/proxmox-ve-%E5%88%9D%E5%A7%8B%E5%8C%96%E7%A1%AC%E7%A2%9F%E5%88%86%E5%89%B2%E5%8D%80%E8%88%87%E9%85%8D%E7%BD%AEzfs%E5%84%B2%E5%AD%98%E5%8D%80raidz/) - [Pimox - Proxmox V7 for the Raspberry Pi](https://github.com/pimox/pimox7) - [Installing Mikrotik RouterOS on Proxmox VE easily](https://www.apalrd.net/posts/2023/tip_routeros/) -- [Linux VM Templates in Proxmox on EASY MODE using Prebuilt Cloud Init Images!](https://www.apalrd.net/posts/2023/pve_cloud/) \ No newline at end of file +- [Linux VM Templates in Proxmox on EASY MODE using Prebuilt Cloud Init Images!](https://www.apalrd.net/posts/2023/pve_cloud/) +- [Proxmox PVE上安裝Openwrt的幾個重點:VM or LXC?哪個鏡像?網卡直通?一鍵安裝?](https://upsangel.com/openwrt/how-to-install-openwrt-on-proxmox/) \ No newline at end of file