apt install squashfs-tools
/var/lib/vz/template/cache/
unsquashfs openwrt-x86-64-generic-squashfs-rootfs-by-Xiaochenzhetengriji.img
cd /var/lib/vz/template/cache/squashfs-root
tar zcf /var/lib/vz/template/cache/OpenWRT-x86-64-generic-rootfs.tar.gz ./*
pct create 200 local:vztmpl/OpenWRT-x86-64-generic-rootfs.tar.gz --rootfs local-lvm:1 --ostype unmanaged --hostname openwrt --arch amd64 --cores 4 --memory 256 --swap 0 -net0 bridge=vmbr0,name=eth0
/etc/pve/lxc
features: keyctl=1,mknod=1,nesting=1
lxc.apparmor.profile: unconfined
lxc.include: /usr/share/lxc/config/openwrt.common.conf
lxc.cgroup2.devices.allow: a
lxc.cap.drop:
lxc.mount.auto: proc:mixed sys:ro cgroup:mixed
lxc.mount.entry: /dev/net/tun dev/net/tun none bind,create=file
vi /etc/config/network
vi /etc/config/uhttpd
- 最新
- 最热
只看作者