Also, I realized the container configuration file was missing any allocated
console resources, so I addressed that issue...

 

lxc.tty = 4

 

Now I get the same issue a number of people have experienced...

 

[root@test 0]# lxc-console -n 0

 

Type <Ctrl+a q> to exit the console

 

I never get a prompt to login, no response at all.  Even after I hit return
a few times.

 

So I am still stumped.

 

Thanks for any help, appreciated.

 

From: Schorschi [mailto:schors...@dc.rr.com] 
Sent: Wednesday, July 18, 2012 17:02
To: 'Lxc-users@lists.sourceforge.net'
Subject: Stumped, lxc-console returns console denied

 

Created a container called 'test', including root file system for container,
created configuration file, setup fstab in container, as well as bridge for
container to use, but something is still not quite right, I can stop and
start the container with no issue, but I can't seem to get a console to the
container?  I even can create a container and control it via virsh a-la
libvirt but still can't get a console to the container.

 

Example...

 

# lxc-console -n test

lxc-console: console denied by 'test'

 

I am using lxc 0.8.0-rc2 on Fedora 17.

 

I suspect I don't have the virtual console resources set up quite right, but
I am not sure exactly how validate the configuration for virtual consoles.
I changed the /etc/sysconfig/init file for the container from
ACTIVE_CONSOLES=/dev/tty[1-6] to ACTIVE_CONSOLES=/dev/tty[1-4], but that
applies to virtual consoles shared between the host and container on the
real console, no?  Not a console setup my lxc-console.sh?

 

I have not enabled SELinux in the container nor iptables/ip6tables in the
container, so doubt that is an issue, the root file system is just the
Fedora 17 core RPM, and OpenSSH.  Open SSH was installed via chroot of
container root file system using yum of course.

 

Any help appreciated.

 

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Lxc-users mailing list
Lxc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lxc-users

Reply via email to