Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

For troubleshooting, you may omit --daemon  which will run the containers as an actual program where you can see the container booting up.

Logging In

Default template (so far in my own fresh install of Ubuntu 14.04) has no accounts on the base OS. For initial setup and emergencies, while on the base OS, use base OS root to get into container root (no password required),

Code Block
languagebash
sudo lxc-attach -n my-container

Strangely, going on my paid for server (where I installed minimal virtual machine with same Linux 14.04) resulted in ending message saying default account was created. In which case, you can load a console...

Console

Replicate loading console,

...

Make to change the password for the default user or delete the default user when you create your own accounts.

Simulate Terminal

There is another way of getting in (good for initial setup without default accounts or emergencies),

Code Block
languagebash
sudo lxc-attach -n my-container # Takes you right to root after a fresh install.

lxc-attach is used to execute an arbitrary command inside a container that is already running from outside the container. Because nothing was specified, you end up running bash inside of the container.

Container Management Key Commands

...