to re-create the issue,
1 clean install of impish
# probably need sudo or be root for the following
2 boot into impish and install all updates
3 apt get install "lxc lxcfs lxc-utils lxc-templates lxctl"
4 lxc-create -n test -t ubuntu
5 lxc-start test
6 lxc-console -n test
# the above command FAILS to get a response, HOWEVER:-
7 lxc-console -t 0 -n test
# WORKS, only tty0 works in the container

==============================================================
THE CAUSE OF THE ISSUE!!
==============================================================

Previous to impish there are systemctl services to tend to all tty[1-4] and the 
console (tty0)
eg, on Focal Fossa, in the container :-
systemctl | grep tty # gives
  dev-lxc-tty1.mount                   loaded active mounted   /dev/lxc/tty1    
                                      
  dev-lxc-tty2.mount                   loaded active mounted   /dev/lxc/tty2    
                                      
  dev-lxc-tty3.mount                   loaded active mounted   /dev/lxc/tty3    
                                      
  dev-lxc-tty4.mount                   loaded active mounted   /dev/lxc/tty4    
                                      
  console-getty.service                loaded active running   Console Getty    
                                      
  container-getty@0.service            loaded active running   Container Getty 
on /dev/pts/0                          
  container-getty@1.service            loaded active running   Container Getty 
on /dev/pts/1                          
  container-getty@2.service            loaded active running   Container Getty 
on /dev/pts/2                          
  container-getty@3.service            loaded active running   Container Getty 
on /dev/pts/3                          
  system-container\x2dgetty.slice      loaded active active    
system-container\x2dgetty.slice                        
  system-getty.slice                   loaded active active    
system-getty.slice                                     
  getty.target                         loaded active active    Login Prompts    
                                      

================================================================================
In impish, in the container,

systemctl | grep tty # gives
  dev-lxc-tty1.mount                  loaded active mounted   /dev/lxc/tty1
  dev-lxc-tty2.mount                  loaded active mounted   /dev/lxc/tty2
  dev-lxc-tty3.mount                  loaded active mounted   /dev/lxc/tty3
  dev-lxc-tty4.mount                  loaded active mounted   /dev/lxc/tty4
  console-getty.service               loaded active running   Console Getty
  system-getty.slice                  loaded active active    system-getty.slice
  getty.target                        loaded active active    Login Prompts

===============================================================================

As can be seen, there are no daemons started for any of the tty[1-4]
consoles apart from console getty service.

The command lxc-console doesn't seem to default to tty0, so it picks a
console that doesn't have a daemon to service it.  Specifying tty0 (-t
0) makes it work.  This seems to be a regression from the original,
Focal Fossa as well as Hirsute Hippo

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1947811

Title:
  cgroups broken in impish

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/lxcfs/+bug/1947811/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to