lxc-OpenWrt
pct create 117 \ #序号不能与现有重复
local:vztmpl/openwrt-armvirt-64-generic-rootfs.tar.gz \ #对应上图1及文件名
--rootfs local:0.5 \ #分配硬盘空间 单位G
--ostype unmanaged \
--hostname OpenWrt \ #名称
--arch arm64 \ #架构
--cores 4 \ #核心数
--memory 256 \ #分配内存 单位M
--swap 0 \
-net0 bridge=vmbr0,name=eth0
lxc-attach 117
#进入ssh/etc/pve/lxc/117.conf
#编辑117换成创建例3的CT ID
添加开启wifi
lxc.net.1.type: phys
lxc.net.1.link: wlan0
lxc.net.1.flags: up
lxc.net.1.name: wlan0
版权申明
本文系作者 @5240 原创发布在我的回忆录-5240站点。未经许可,禁止转载。
评论