[libvirt-users] libvirt lxc /dev/null

Daniel P. Berrange berrange at redhat.com
Wed Feb 26 09:23:16 UTC 2014


On Tue, Feb 25, 2014 at 08:58:43PM +0000, Nerijus Baliunas wrote:
> Hello,
> 
> I created lxc container on F19 with virt-manager and it starts OK. The only
> problem is that sshd does not run complaining "/dev/null is not a character
> device".
> # ls -l /dev/null
> -rw-r--r-- 1 root root 0 2014-02-25 22:39 /dev/null
> 
> /sys/fs/cgroup/devices/machine/VM_NAME.libvirt-lxc/devices.list has "c 1:3
> rwm" line, but I cannot create /dev/null:
> # mknod /dev/nulll c 1 3
> mknod: `/dev/nulll': Operation not permitted

Libvirt will pre-populate the /dev filesystem with any permitted
devices, creation is denied by cgroups.

That you have a plain file for /dev/null suggests something in
your container has deleted the original character device and
replaced it by a plain file.

Regards,
Daniel
-- 
|: http://berrange.com      -o-    http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org              -o-             http://virt-manager.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org       -o-       http://live.gnome.org/gtk-vnc :|




More information about the libvirt-users mailing list