Connect to LXC instance via VNC?

2 replies
jason
2 posts

is it possible to run a GUI on an LXC antsle or is a KVM antsle required?  If I run virsh list, I only see instances running as KVM and I'm therefore confused as to how to obtain the vncdisplay port to try and connect to.

willStaff
64 posts

LXCs don’t have a graphical environment so you unfortunately can't connect to the LXC instance via VNC. You can see the LXC antlets listed out in virsh with this command however: `virsh -c lxc:/// list --all`

bobh
18 postsedited

You would need to run a VNC server in the LXC instance, something like tightvnc for example. The antMan GUI won't know about it though so you'd have to run a separate client on your PC to connect.

I do something similar, using xrdp in a Debian LXC so I can access a Linux desktop using the Windows remote desktop protocol.

You can also get a text console on an LXC by using "virsh -c lxc:/// console name-of-lxc". Use ctrl-] (control-right-bracket) to exit.

Log in to reply. New here? It takes a minute.