我试图在Ubuntu 14.04上启动vagrant-lxc。我使用最新的Vagrant下载(而不是Debian repos中的古代版本)。
vagrant plugin install vagrant-lxc
成功运行,以及:
vagrant init fgrehm/precise64-lxc
我跑了
sudo vagrant lxc sudoers
处理提到的问题here。 但是当我跑步时
vagrant up --provider=lxc
(无论是否有sudo)容器都没有加载,吐出来:
> Bringing machine 'default' up with 'lxc' provider...
==> default: Checking if box 'fgrehm/precise64-lxc' is up to date...
==> default: Setting up mount entries for shared folders...
default: /vagrant => /home/ubuntu
==> default: Starting container...
There was an error executing ["sudo", "/usr/local/bin/vagrant-lxc-wrapper", "lxc-start", "-d", "--name", "ubuntu_default_1456156125505_47833"]
For more information on the failure, enable detailed logging by
setting the environment variable VAGRANT_LOG to DEBUG
这是我得到的日志输出(来自/ var / log / lxc / ubuntu_default_1456156125505_47833.log):
lxc-start 1456158555.539 ERROR lxc_start - start.c:lxc_spawn:884 - failed initializing cgroup support
lxc-start 1456158555.568 ERROR lxc_start - start.c:__lxc_start:1121 - failed to spawn 'ubuntu_default_1456156125505_47833'
lxc-start 1456158555.568 ERROR lxc_start_ui - lxc_start.c:main:341 - The container failed to start.
lxc-start 1456158555.568 ERROR lxc_start_ui - lxc_start.c:main:343 - To get more details, run the container in foreground mode.
lxc-start 1456158555.568 ERROR lxc_start_ui - lxc_start.c:main:345 - Additional information can be obtained by setting the --logfile and --logpriority options.
任何想法我做错了什么? 谢谢,
答案 0 :(得分:0)
进入/home/<USERNAME>/.vagrant.d/boxes/fgrehm/precise64-lxc/.../lxc/lxc-config
文件和
评论出来:
lxc.pivotdir = lxc_putold
再次做vigrant up
它应该有效!