gpt4 book ai didi

lxc - proxmox lxc 容器无法启动

转载 作者:行者123 更新时间:2023-12-04 04:36:40 25 4
gpt4 key购买 nike

当我尝试运行我的 lxc容器,我得到:

lxc-start: 100: lxccontainer.c: wait_on_daemonized_start: 751 No such file or directory - Failed to receive the container state
lxc-start: 100: tools/lxc_start.c: main: 371 The container failed to start.
lxc-start: 100: tools/lxc_start.c: main: 373 To get more details, run the container in foreground mode.
lxc-start: 100: tools/lxc_start.c: main: 375 Additional information can be obtained by setting the --logfile and --logpriority options.

我的 lxc配置:
#WEBSERVER
arch: amd64
cores: 1
hostname: poseidon
memory: 2048
net0: name=eth0,bridge=vmbr0,gw=192.168.0.1,hwaddr=66:79:16:C7:C3:51,ip=192.168.0.12/24,type=veth
onboot: 1
ostype: debian
#rootfs: local-zfs:subvol-100-disk-1,size=30G
rootfs: local-zfs:subvol-100-disk-1,size=30G
searchdomain: 192.168.0.1
swap: 512

root@cronos:/etc/pve/lxc# pvesm list local-zfs --
local-zfs:subvol-100-disk-1 subvol 32212254720 100
local-zfs:subvol-101-disk-1 subvol 8589934592 101
local-zfs:vm-102-disk-1 raw 161061273600 102
local-zfs:vm-103-disk-1 raw 34359738368 103

root@cronos:/etc/pve/lxc# zfs list
NAME USED AVAIL REFER MOUNTPOINT
rpool 30.6G 3.48T 104K /rpool
rpool/ROOT 4.17G 3.48T 96K /rpool/ROOT
rpool/ROOT/pve-1 4.17G 3.48T 4.17G /
rpool/data 17.9G 3.48T 96K /rpool/data
rpool/data/subvol-100-disk-1 4.87G 25.1G 4.87G /rpool/data/subvol-100-disk-1
rpool/data/subvol-101-disk-1 859M 7.16G 859M /rpool/data/subvol-101-disk-1
rpool/data/vm-102-disk-1 5.68G 3.48T 5.68G -
rpool/data/vm-103-disk-1 6.47G 3.48T 6.47G -
rpool/swap 8.50G 3.49T 3.99G -

这种情况发生在我的 zpool 之后。消失了,我重新导入它。

最佳答案

这是 AppArmor 在扩展建议更新中的问题。我通过将此行插入 /etc/apt/sources.list 来解决此问题:
deb http://download.proxmox.com/debian/pve stretch pve-no-subscription
请记住,这不是生产服务器的最佳解决方案。 Proxmox states :

It can be used for testing and non-production use. It is not recommended to run on production servers, as these packages are not always heavily tested and validated.

关于lxc - proxmox lxc 容器无法启动,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48274158/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com