Re: [PATCH] lxc: Add virCgroupSetOwner()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Feb 14, 2014 at 01:42:25PM +0100, Stephan Sachse wrote:
> >> agetty[38]: /dev/tty1: cannot get controlling tty: Operation not permitted
> >> agetty[38]: /dev/tty1: cannot get controlling tty: Operation not permitted
> >> agetty[38]: /dev/tty1: cannot set process group: Inappropriate ioctl for device
> >
> > Is this really the reason why the login fails? Does getty not start or does the login fail?
> 
> yes, the getty is started
> 
> 100000   26665  0.0  0.0   6412   792 pts/0    Ss+  13:22   0:00
> /sbin/agetty --noclear tty1
> 100000   26667  0.0  0.0   6412   848 ?        Ss   13:22   0:00
> /sbin/agetty --noclear -s console 115200 38400 9600
> 
> and i can connect with "fedora1 console"
> 
>   virsh # console fedora1
>   Verbunden mit der Domain: fedora1
>   Escape-Zeichen ist ^]
> 
>   Fedora release 20 (Heisenbug)
>   Kernel 3.13.2-2.el6.x86_64 on an x86_64 (tty1)
> 
>   fedora1 login:
> 
> put the console is "crazy". wrong line breaks after hit enter. first
> two logins fails with wrong log entries. the password is displayed as
> login. the third  attemot works. then i have a mix of console and
> login promt. every 10 secons i hit enter i see a passwort promt. but i
> can still use the shell. but imo this is a other problem. there are
> messages about systemd --user can not connect the dbus socket in
> /run/user/0/dbus/user_bus_socket

I believe you might need a newer systemd or libvirt. Libvirt creates
/dev/ttyN from 1-> number of <console> elements in the XML, and also
makes /dev/console a symlink to /dev/ttyN.

If you see double logins this is a good sign that an agetty has been
started on both /dev/tty1 and /dev/console.

A month or so back we made libvirt set "container_ttys" to list
all /dev/ttyN devices except for /dev/tty1. systemd GIT will
honour this env var when deciding how to spawn agettys on the
/dev/ttyN devices.

That said unless you've done some custom config I'd not expect
an outdated systemd to launch anything on /dev/ttyN devices,
only /dev/console.

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 :|

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]