Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/multithreading/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Vagrant 无法启动流浪lxc_Vagrant_Ubuntu 14.04_Lxc - Fatal编程技术网

Vagrant 无法启动流浪lxc

Vagrant 无法启动流浪lxc,vagrant,ubuntu-14.04,lxc,Vagrant,Ubuntu 14.04,Lxc,我正试图在Ubuntu 14.04上启动vagrant lxc。我使用的是最新的Vagrant下载(而不是Debian repos中的古老版本) 成功运行,如下所示: vagrant init fgrehm/precise64-lxc 我跑 处理所提到的sudo问题。 但是当我跑的时候 vagrant up --provider=lxc (带和不带sudo)容器未装载,吐出以下内容: > Bringing machine 'default' up with 'lxc' provider

我正试图在Ubuntu 14.04上启动vagrant lxc。我使用的是最新的Vagrant下载(而不是Debian repos中的古老版本)

成功运行,如下所示:

vagrant init fgrehm/precise64-lxc
我跑

处理所提到的sudo问题。 但是当我跑的时候

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\u default\u 1456156125505\u 47833.log):

知道我做错了什么吗? 谢谢,

进入
/home//.vagrant.d/box/fgrehm/precise64 lxc/../lxc/lxc config
文件和 点评:
lxc.pivotdir=lxc\u putold
do
vigrant up
再次启动,它应该可以工作

vagrant up --provider=lxc
> 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
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.