How to view GUI of desktop version of ubuntu 22.04 in LXD


I installed “ubuntu/jammy/desktop” Virtual Machine in my LXD and the instance has been started. Now how do I view the Graphical User Interface of that Ubuntu 22.04 Virtual machine?
The last virtual machine is the one I want to view.

Thank you.

lxc console ubuntu-desktop-22-04-vm --type vga

Thank you for your reply @stgraber , it worked for me. However I had to install
sudo apt-get install virt-viewer
before viewing the desktop.

Some more clarifications needed:

  1. It automatically logs in to a account called “ubuntu”. But after it gets locked due to inactivity, I couldn’t login back since I don’t know what is the default password for “ubuntu” account.
  2. I’m not understanding how I’m able to ping and get the response, but the connection status icon doesn’t display on the top right corner and it shows “unmanaged network” which means it has not connected to internet.
  3. Also why I can’t find “Ubuntu Software center” and “Firefox” which comes with Ubuntu by default?

Thank you