PVE 安装 OpenWrt

上传镜像文件

1
2
3
root@HomeLab:~/files# ls -l
total 1180164
-rw-r--r-- 1 root root 1208483840 Feb 25 22:11 openwrt-x86-64-generic-ext4-combined.img

挂载镜像文件至虚拟机

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# 挂载
root@HomeLab:~/files# qm importdisk 100 /root/files/openwrt-x86-64-generic-ext4-combined.img local-lvm
importing disk '/root/files/openwrt-x86-64-generic-ext4-combined.img' to VM 100 ...
Rounding up size to full physical extent <1.13 GiB
Logical volume "vm-100-disk-0" created.
transferred 0.0 B of 1.1 GiB (0.00%)
transferred 12.0 MiB of 1.1 GiB (1.04%)
transferred 24.0 MiB of 1.1 GiB (2.08%)
transferred 36.0 MiB of 1.1 GiB (3.12%)
transferred 47.9 MiB of 1.1 GiB (4.16%)
transferred 60.0 MiB of 1.1 GiB (5.21%)
···
transferred 1.1 GiB of 1.1 GiB (99.96%)
transferred 1.1 GiB of 1.1 GiB (100.00%)
transferred 1.1 GiB of 1.1 GiB (100.00%)
Successfully imported disk as 'unused0:local-lvm:vm-100-disk-0'

修改 IP

1
vim /etc/config/network