6 linux systemd not-root-user user-mode-linux
我想创建一个 rootfs 以与 UML 内核一起使用并且能够使用互联网。我正在使用febootstrap
包:bash
, coreutils
, net-tools
, iputils
。使用后febootstrap-supermin-helper
我得到了我的rootfs
但是当尝试用 UML 启动它时我得到这些错误:
[ 4.340000] systemd[1]: systemd-logind.service holdoff time over, scheduling restart.
[ 4.340000] systemd[1]: dbus.service start request repeated too quickly, refusing to start.
[ 4.340000] systemd-logind[638]: Failed to get system D-Bus connection: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
[ 4.340000] systemd-logind[638]: Failed to fully start up daemon: Connection refused
Run Code Online (Sandbox Code Playgroud)
我想知道哪些包是必需的rootfs
,除了febootstrap
.
小智 0
也许您可以尝试使用 PRoot ( http://proot.me ) 作为 UML 的替代方案。两者都基于 ptrace(2),尽管 PRoot 不需要任何设置即可从访客系统获取互联网访问权限:
host$ proot -R ./fedora-18-x86_64/ bash
guest$ wget http://google.fr
...
Run Code Online (Sandbox Code Playgroud)
其中“./fedora-18-x86_64/”是从http://download.openvz.org/template/precreated/下载的rootfs的内容