Skip to content

Failed to connect to bus: No such file or directory on systemd operations #7

@vonpupp

Description

@vonpupp

Hello,

I am having problems to use systemd, I suspect is related to dbus.

Here is my Vagrantfile:

Vagrant.configure("2") do |config|
  ENV['VAGRANT_DEFAULT_PROVIDER'] = 'docker'
  config.vm.provider "docker" do |d|
    d.image = "tknerr/baseimage-ubuntu:16.04"
    d.has_ssh = true
    d.create_args = [ "--privileged", "-v", "/sys/fs/cgroup:/sys/fs/cgroup:ro" ]
  end
  config.vm.synced_folder ".", "/vagrant"
end

When I ssh to the box I try to list the units of systemd and I get the following error:

$ vagrant ssh
Last login: Tue Jan 17 13:13:15 2017 from 172.17.0.1
vagrant@d6fa0552baf5:~$ sudo su
root@d6fa0552baf5:/home/vagrant# systemctl list-units
Failed to connect to bus: No such file or directory

Have you seen this issue? Any idea?

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions