[lxc-users] lxd: Can't write to /dev/console

Matt Willsher matt at monki.org.uk
Thu Feb 4 11:33:24 UTC 2016


Hi, 

I've create a container, using lxd, based on the ubuntu wily cloud image. In cloud-init I'm calling 

power_state:
  mode: reboot
  timeout: 30
  condition: True

But in the cloud-init logs in the container I get:

Feb  4 11:21:00 ubuntu [CLOUDINIT] util.py[DEBUG]: Failed forking and calling callback run_after_pid_gone#012Traceback (most recent call last):#012  File "/usr/lib/python3/dist-packages/cloudinit/util.py", line 285, in fork_cb#012    child_cb(*args, **kwargs)#012  File "/usr/lib/python3/dist-packages/cloudinit/config/cc_power_state_change.py", line 209, in run_after_pid_gone#012    time.sleep(.25)#012  File "/usr/lib/python3/dist-packages/cloudinit/signal_handler.py", line 62, in _handle_exit#012    console=True, stderr=False, log=LOG)#012  File "/usr/lib/python3/dist-packages/cloudinit/util.py", line 434, in multi_log#012    with open(conpath, 'w') as wfh:#012PermissionError: [Errno 13] Permission denied: '/dev/console'

Is there a way to make /dev/console writable? 

Thanks,
Matt


More information about the lxc-users mailing list