[libvirt-users] virt-login-shell: Security model none cannot be entered

Hello! I am currently experimenting a bit with some of the LXC support under libvirt, and in trying to utilize the tool virt-login-shell, I encounter the following error: [james@lxchost ~]$ virt-login-shell libvirt: error : argument unsupported: Security model none cannot be entered Though it should be apparent from the lack of error, the domain is most definitely running. [root@lxchost ~]# virsh -c lxc:/// list Id Name State ---------------------------------------------------- 4909 james running Config information: [root@lxchost ~]# grep -vE '^(#|$)' /etc/libvirt/virt-login-shell.conf allowed_users = [ "*" ] OS information: [root@lxchost ~]# cat /etc/os-release NAME="CentOS Linux" VERSION="7 (Core)" ID="centos" ID_LIKE="rhel fedora" VERSION_ID="7" PRETTY_NAME="CentOS Linux 7 (Core)" ANSI_COLOR="0;31" CPE_NAME="cpe:/o:centos:centos:7" HOME_URL="https://www.centos.org/" BUG_REPORT_URL="https://bugs.centos.org/" Am I simply missing something here? Any tips or pointers are greatly appreciated!

On Tue, Jul 12, 2016 at 11:25:11AM -0400, james@lottspot.com wrote:
Hello!
I am currently experimenting a bit with some of the LXC support under libvirt, and in trying to utilize the tool virt-login-shell, I encounter the following error:
[james@lxchost ~]$ virt-login-shell libvirt: error : argument unsupported: Security model none cannot be entered
Opps, we're not treating "none" as being a no-op.
Am I simply missing something here? Any tips or pointers are greatly appreciated!
No, you're not missing anything, you simply found a bug in libvirt. I've copied you on a patch which will fix it. 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 :|

Wow, you guys work fast :) Thanks Daniel! On July 13, 2016 6:19:19 AM EDT, "Daniel P. Berrange" <berrange@redhat.com> wrote:
On Tue, Jul 12, 2016 at 11:25:11AM -0400, james@lottspot.com wrote:
Hello!
I am currently experimenting a bit with some of the LXC support under libvirt, and in trying to utilize the tool virt-login-shell, I encounter the following error:
[james@lxchost ~]$ virt-login-shell libvirt: error : argument unsupported: Security model none cannot be entered
Opps, we're not treating "none" as being a no-op.
Am I simply missing something here? Any tips or pointers are greatly appreciated!
No, you're not missing anything, you simply found a bug in libvirt. I've copied you on a patch which will fix it.
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 :|
-- Sent from my Android device with K-9 Mail. Please excuse my brevity.
participants (3)
-
Daniel P. Berrange
-
James Lott
-
james@lottspot.com