小编Flo*_*ine的帖子

在 Fedora 21 上默认使用 VirtualBox 提供程序

现在,每当我使用 vagrant 时,它都会尝试libvirt用作提供程序。我想默认使用 VirtualBox。

vagrant-libvirt 未安装。

这很麻烦,因为有些命令不起作用,例如vagrant status

[florian@localhost local]$ vagrant status
The provider 'libvirt' could not be found, but was requested to
back the machine 'foobar'. Please use a provider that exists.
[florian@localhost local]$ vagrant status --provider=virtualbox
An invalid option was specified. The help for this command
is available below.

Usage: vagrant status [name]
    -h, --help                       Print this help
Run Code Online (Sandbox Code Playgroud)

fedora virtualbox vagrant libvirt

12
推荐指数
1
解决办法
7895
查看次数

fakeroot cdebootstrap:取消共享失败:不允许操作

在 Debian 上,运行时:

$ fakeroot cdebootstrap stable /tmp/foo
Run Code Online (Sandbox Code Playgroud)

cdebootstrap 下载软件包,但是当它必须解压它们时,我收到此错误:

E: Failed to unshare: Operation not permitted
Run Code Online (Sandbox Code Playgroud)

如何以非 root 身份运行 cdebootstrap?

取消共享手册中的这一部分似乎相关,但我不确定如何:

EPERM (since Linux 3.9)
              CLONE_NEWUSER was specified in flags and the caller is in a
              chroot environment (i.e., the caller's root directory does not
              match the root directory of the mount namespace in which it
              resides).
Run Code Online (Sandbox Code Playgroud)

debootstrap fakeroot

5
推荐指数
1
解决办法
2043
查看次数

标签 统计

debootstrap ×1

fakeroot ×1

fedora ×1

libvirt ×1

vagrant ×1

virtualbox ×1