timedatectl fails inside container

Bug #1477130 reported by god
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
systemd (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

lxc-attach -n mycont -- timedatectl
Failed to create bus connection: No such file or directory

while on the host timedatectl works just fine.

lxc Version: 1.1.2-0ubuntu3 on ubuntu 15.04 x86_64

Revision history for this message
Stéphane Graber (stgraber) wrote :

Seems to work fine here:

root@ubuntu:~# timedatectl
      Local time: Mon 2015-11-09 18:33:40 UTC
  Universal time: Mon 2015-11-09 18:33:40 UTC
        RTC time: n/a
       Time zone: Etc/UTC (UTC, +0000)
 Network time on: yes
NTP synchronized: yes
 RTC in local TZ: no

That's with a 15.10 container on a 14.04 host.

I suspect this was actually a systemd issue where the daemon side of this wasn't starting somehow.

affects: lxc (Ubuntu) → systemd (Ubuntu)
Changed in systemd (Ubuntu):
status: New → Fix Released
Revision history for this message
Martin Pitt (pitti) wrote :

Presumably you don't have dbus installed in your container.

Revision history for this message
Neil Hooey (nhooey) wrote :

I have the same issue, with dbus installed.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.