PVE LXC容器转换为模板后如何还原
PVE LXC容器转换为模板后如何还原

只需要将conf文件进行如下的修改。从#原版模板模式 转变成以下的内容。
#http%3A//192.168.50.205%3A9000/#!/1/docker/containers
#arch: amd64
#cores: 4
#features: fuse=1,mount=nfs;cifs,nesting=1
#hostname: TestEnv
#memory: 5012
#net0: name=eth0,bridge=vmbr0,firewall=1,gw=192.168.50.1,hwaddr=2A:AB:EE:25:9E:B7,ip=192.168.50.205/24,type=veth
#net1: name=veth10,bridge=vmbr0,hwaddr=16:88:DC:62:9D:6C,ip=192.168.10.99/24,type=veth
#ostype: debian
#rootfs: truenas:212/vm-212-disk-0.raw,size=20G
#swap: 5012
#template: 1
arch: amd64
cores: 4
features: fuse=1,mount=nfs;cifs,nesting=1
hostname: TestEnv
memory: 5012
net0: name=eth0,bridge=vmbr0,firewall=1,gw=192.168.50.1,hwaddr=2A:AB:EE:25:9E:B7,ip=192.168.50.205/24,type=veth
net1: name=veth10,bridge=vmbr1,hwaddr=16:88:DC:62:9D:6C,ip=192.168.10.99/24,type=veth
onboot: 4
ostype: debian
rootfs: truenas:212/vm-212-disk-0.raw,size=20G
startup: order=3
swap: 5012
lxc.cgroup2.devices.allow: c 226:0 rwm
lxc.cgroup2.devices.allow: c 226:128 rwm
lxc.cgroup2.devices.allow: c 29:0 rwm
lxc.mount.entry: /dev/dri dev/dri none bind,optional,create=dir
lxc.mount.entry: /dev/fb0 dev/fb0 none bind,optional,create=file
lxc.apparmor.profile: unconfined
lxc.cap.drop:
问题完美解决
本文链接:
/archives/1693394567759
版权声明:
本站所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来自
思考题Scotee!
喜欢就支持一下吧