Last time I was writing a post, I was facing all sorts of weird issues with the console. Lines would break in the middle of the screen, entering commands would sometimes leave me without a prompt, etc. Weird stuff.

Today, I figured out what I had probably forgotten since I was last doing this. Don’t use the incus console <instance> command if you want to interact with the system. It just does weird stuff like what I described above. It’s not entirely unusable and, of course, the console command can be used to launch a GUI (e.g. incus console <instance> --type vga). My suspicion is that just running console doesn’t run the init files for the shell (e.g. .bashrc).

Instead, use the command incus exec <instance> -- su --login <user>. That runs the shell as I’m used to on my desktop.

It’s amazing how much you forget in less than a year.

incus  linux