linux - debian lxc 创建错误

标签 linux debian lxc

我最近刚安装了 Debian 8,我想创建一个基于 wheezy 的 linux contener。 但是当我启动命令时:

sudo lxc-create -n omvctr -t debian -- -r wheezy -a amd64

我获得了这个痕迹:

Generation complete.
update-rc.d: using dependency based boot sequencing
insserv: warning: current start runlevel(s) (empty) of script `checkroot.sh' overrides LSB defaults (S).
insserv: warning: current stop runlevel(s) (S) of script `checkroot.sh' overrides LSB defaults (empty).
update-rc.d: using dependency based boot sequencing
update-rc.d: error: umountfs Default-Start contains no runlevels, aborting.
update-rc.d: using dependency based boot sequencing
insserv: warning: current start runlevel(s) (empty) of script `hwclock.sh' overrides LSB defaults (S).
insserv: warning: current stop runlevel(s) (0 6 S) of script `hwclock.sh' overrides LSB defaults (0 6).
update-rc.d: using dependency based boot sequencing
update-rc.d: error: cannot find a LSB script for hwclockfirst.sh
Creating SSH2 RSA key; this may take some time ...
Creating SSH2 DSA key; this may take some time ...
Creating SSH2 ECDSA key; this may take some time ...
invoke-rc.d: policy-rc.d denied execution of restart.

问题是什么?

最佳答案

看起来您在 Debian LXC package 中遇到了(某种程度上的)错误, 讯息:

update-rc.d: error: cannot find a LSB script for hwclockfirst.sh

可能是这条线引起的:

chroot $rootfs /usr/sbin/update-rc.d -f hwclockfirst.sh disable

它试图禁用新容器内多个服务的自动启动,但 hwclockfirst.sh 服务不存在。如果脚本检查服务是否存在然后尝试禁用它会更清晰。

TL;DR:无需担心 :)

关于linux - debian lxc 创建错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30241499/

相关文章:

bash - 如何在 sudoers.d 文件中添加 DEBIAN_FRONTEND=noninteractive?

linux - 如何从命令行在 *nix 中将文件显示为 "selected"?

linux - Bash ARGS 帮助 - 获取随机错误

ruby-on-rails - 类 `_run_suites' 的未定义方法 `Minitest::Unit' (NameError)

docker/垃圾桶/sh : 1: : not found miniconda3

c++ - 在 Debian Jessie 上安装多个 g++ 工具链的最佳方法是什么

kubernetes - LXD 与生产集群 (Kubernetes) 中的经典 VM

ubuntu - 从本地模板 (tar.gz) 创建 LXC 容器

python - 如何使用 Python 读取文件功能?

linux - 2个命名空间之间的连接