I recently installed the 32 bit lxc container on a 64 bit Ubuntu 12.04 system.
When I run the command sudo lxc-start -n my32bitbox I am greeted with a login prompt. I
enter the default login and password which is: login= ubuntu ; password= ubuntu; but I am still unable to log on to the container. How can I resolve this issue?
Asked
Active
Viewed 4.0k times
12
5 Answers
16
login to container
lxc exec <container-name> -- sudo --login --user <username>
get the shell prompt of the container
lxc exec <container-name> -- sudo /bin/bash
captainchhala
- 261
2
lxc exec <container> passwd
set your passwd exit out (ctrl-a q)
then
lxc console <container>
thistleknot
- 123
2
You can also use ssh command to login to LXC-container:
ssh lxcuser@container_ip_address
To find out the LXC IP-address you can use this:
ssh ubuntu@`sudo lxc-info -iH -n CN`
where CN is the container name and 'ubuntu' is the user acc in the LXC.
OpenITeX
- 123