我可以使用 tar 命令恢复备份,但我缺少原始 Proxmox 服务器的 .conf 文件。我在 Debian 10 服务器上恢复备份。
我可以动态创建 .conf 文件而不从原始 Proxmox 服务器复制它吗?如果答案是肯定的,我该如何避免像以下这样的陷阱(在我尝试使用从 Proxmox 复制并适应本地 Debian 主机的 .conf 文件启动容器后发生):
lxc-start 100 20210515073414.296 ERROR utils - utils.c:safe_mount:1179 - No such file or directory - Failed to mount "/dev/pts/5" onto "/dev/console"
lxc-start 100 20210515073414.296 ERROR conf - conf.c:lxc_setup_dev_console:1767 - Failed to mount "/dev/pts/5" on "/dev/console"
lxc-start 100 20210515073414.296 ERROR conf - conf.c:lxc_setup:3649 - Failed to setup console
lxc-start 100 20210515073414.296 ERROR start - start.c:do_start:1275 - Failed to setup container "100"
lxc-start 100 20210515073414.297 ERROR sync - sync.c:__sync_wait:62 - An error occurred in another process (expected sequence number 5)
lxc-start 100 20210515073414.297 ERROR start - start.c:__lxc_start:1951 - Failed to spawn container "100"
lxc-start 100 20210515073414.332 ERROR lxc_start - tools/lxc_start.c:main:330 - The container failed to start
如果我尝试以特权方式启动容器,我会收到以下日志:
lxc-start 100 20210515080033.778 INFO lsm - lsm/lsm.c:lsm_init:50 - LSM security driver AppArmor
lxc-start 100 20210515080033.779 DEBUG terminal - terminal.c:lxc_terminal_peer_default:714 - Using terminal "/dev/tty" as proxy
lxc-start 100 20210515080033.779 DEBUG terminal - terminal.c:lxc_terminal_signal_init:192 - Created signal fd 9
lxc-start 100 20210515080033.779 DEBUG terminal - terminal.c:lxc_terminal_winsz:90 - Set window size to 175 columns and 51 rows
lxc-start 100 20210515080033.780 INFO start - start.c:lxc_init:904 - Container "100" is initialized
lxc-start 100 20210515080033.781 ERROR start - start.c:lxc_spawn:1693 - Operation not permitted - Failed to clone a new set of namespaces
lxc-start 100 20210515080033.781 DEBUG network - network.c:lxc_delete_network_unpriv:2362 - Cannot not guarantee safe deletion of network devices. Manual cleanup maybe needed
lxc-start 100 20210515080033.781 DEBUG network - network.c:lxc_delete_network:3178 - Failed to delete network devices
lxc-start 100 20210515080033.781 ERROR start - start.c:__lxc_start:1951 - Failed to spawn container "100"
lxc-start 100 20210515080033.782 ERROR lxc_start - tools/lxc_start.c:main:330 - The container failed to start
lxc-start 100 20210515080033.782 ERROR lxc_start - tools/lxc_start.c:main:336 - Additional information can be obtained by setting the --logfile and --logpriority options