Skip to content

Installing Ubuntu Desktop 26.04 LTS

This guide explains how to install and configure Ubuntu Desktop 26.04 LTS as a virtual desktop in IsardVDI. It includes the initial setup and optimization of the operating system for the virtual machine.

Parameter Value
vCPUs 4
Memory (GB) 6
Disk size (GB) 100
Networks Default, Wireguard VPN
Boot CD/DVD
Videos Default during installation; changed to Virtio afterwards
Operating system template Ubuntu 24.10 (non-LTS)

Operating system template

Until a specific template for Ubuntu 26.04 exists, use the Ubuntu 24.10 (non-LTS) template. Selecting the "Ubuntu 24.10 LTS" variant causes a kernel error during boot.

2. Creating the VM in IsardVDI

  1. Upload the Ubuntu Desktop 26.04 LTS ISO to Media (see Media).

  2. In Media, find the ISO and click Create new desktop.

  3. In the Operating system template field, choose Ubuntu 24.10 (not the LTS variant).
  4. Configure the parameters given in the previous table (vCPUs, memory, disk and networks) and check that Boot is CD/DVD.
  5. Click Create desktop and start the VM.

3. Installing Ubuntu

Once the virtual machine boots from the ISO, follow the Ubuntu graphical installer. The guide is provided in two formats: a compact version without images and a step-by-step version with screenshots.

  1. Select the language.
  2. No Do not modify anything on the Accessibility screen.
  3. Select the keyboard layout.
  4. Keep Use wired connection checked.
  5. Click Install Ubuntu.
  6. Installation type: Normal.
  7. Select Extended selection to include more standard software.
  8. Enable downloading updates during installation and third-party drivers.
  9. Disk type: Erase disk and install Ubuntu (clean installation).
  10. Select No encryption.
  11. Create the system user and password.
  12. Configure the time zone.
  13. Click Install.
  14. Review the summary and confirm the installation.
  15. Wait for the process to finish and restart when prompted.
  1. Select the language.

  2. No Do not modify anything on the Accessibility screen.

  3. Select the keyboard layout.

  4. Keep Use wired connection checked.

  5. Click Install Ubuntu.

  6. Installation type: Normal.

  7. Select Extended selection.

  8. Enable downloading updates during installation and third-party drivers.

  9. Disk type: Erase disk and install Ubuntu.

  10. Select No encryption.

  11. Create the system user and password.

  12. Configure the time zone.

  13. Click Install.

  14. Review the summary and confirm the installation.

  15. Wait for the process to finish. When it is complete, the installer will ask you to remove the installation media.

Power off before continuing

When the installer asks you to remove the media, power off the VM from IsardVDI before proceeding to the next step.

4. Modifying the Desktop XML

In IsardVDI, edit the desktop XML and add the following <driver> attribute inside the <disk> element:

<driver name="qemu" type="qcow2" cache="unsafe" discard="unmap"/>

This enables discard=unmap (required for TRIM to take effect on the storage) and cache=unsafe (faster for desktops that do not need persistence after a host failure).

Roles with access to the XML

Editing the desktop XML is only available to the administrator role.

5. Shut down and change boot to hard disk

  1. Shut down the VM with Stop. If it gets stuck shutting down, click Force stop.
  2. In the desktop edit form in IsardVDI:
    • Remove the CD/DVD media.
    • Change Boot from CD/DVD to Hard Disk.
    • Click Save changes.
  3. Start the VM again.

6. First boot — initial configuration

After the first boot from the disk, Ubuntu will display the welcome assistant.

Go through the assistant with the following options:

  1. Location services: do not enable.

  2. Share data with Canonical: do not share.

  3. Complete the rest of the GNOME welcome assistant with the default options.


7. Post-installation configuration

7.1 Configuration via terminal

System update and package installation

sudo apt update
sudo apt upgrade -y
sudo apt install -y vim gedit vlc net-tools htop curl wget \
    spice-vdagent qemu-guest-agent mesa-utils xrdp openssh-server \
    nmap traceroute tree
sudo systemctl enable --now xrdp

About RDP

The Ubuntu RDP service (xrdp) is used, not the IsardVDI one.

Optimize /etc/fstab

Add the noatime,discard options to all ext4 partitions to reduce disk writes and enable real-time TRIM:

# /etc/fstab — example
UUID=xxxxx-xxxxx-xxxxxx /    ext4    defaults,noatime,discard,errors=remount-ro 0 1

Reduce log storage

Edit /etc/systemd/journald.conf (or a file inside /etc/systemd/journald.conf.d/) and set:

[Journal]
SystemMaxUse=20M
SystemKeepFree=4G

Remove Snap Firefox and add the official Mozilla repository

Snap slows down application start-up and keeps its own background update service. Remove it completely and install Firefox from the official Mozilla repository:

sudo snap remove --purge firefox firmware-updater desktop-security-center prompting-client
sudo snap remove --purge thunderbird snap-store snapd-desktop-integration
sudo snap remove --purge gnome-46-2404 gtk-common-themes mesa-2404 core24 bare

sudo systemctl stop snapd.socket snapd.service

sudo apt-get purge -y snapd
sudo rm -rf /var/cache/snapd /root/snap /var/snap ~/snap /snap

sudo su
printf 'Package: snapd\nPin: release a=*\nPin-Priority: -10\n' \
    > /etc/apt/preferences.d/no-snap
exit

Once Snap is removed, add the Mozilla APT repository and give it priority over Ubuntu's firefox package (which is only a Snap wrapper):

sudo install -d -m 0755 /etc/apt/keyrings

wget -q https://packages.mozilla.org/apt/repo-signing-key.gpg -O- \
    | sudo tee /etc/apt/keyrings/packages.mozilla.org.asc > /dev/null

echo "deb [signed-by=/etc/apt/keyrings/packages.mozilla.org.asc] https://packages.mozilla.org/apt mozilla main" \
    | sudo tee /etc/apt/sources.list.d/mozilla.list

sudo tee /etc/apt/preferences.d/mozilla > /dev/null <<EOF
Package: *
Pin: origin packages.mozilla.org
Pin-Priority: 1000

Package: firefox*
Pin: release o=Ubuntu
Pin-Priority: -1
EOF

sudo apt update

Install Firefox with APT and configure it in English

sudo systemctl unmask packagekit.service
sudo systemctl unmask packagekit-offline-update.service

sudo systemctl enable --now packagekit.service

sudo apt install firefox

apt-cache policy firefox
which firefox

apt-cache search firefox-l10n | grep en
sudo apt install firefox-l10n-en-gb

sudo apt update

With apt-cache policy firefox, check that the installed version comes from packages.mozilla.org and that which firefox returns /usr/bin/firefox.

Disable swap and switch to periodic TRIM

sudo systemctl enable --now fstrim.timer

sudo systemctl mask swap.img.swap

sudo sed -i.bak '/\bswap\b/ s/^\([^#]\)/#\1/' /etc/fstab

sudo rm -f /swap.img

sudo su
swapoff -a
echo 'vm.swappiness=0' > /etc/sysctl.d/99-isard-swap.conf
exit

sysctl --system
sudo systemctl restart systemd-sysctl.service
sudo systemctl status systemd-sysctl.service
  • fstrim.timer runs TRIM periodically instead of on every write.
  • Swap makes no sense on a virtual desktop with enough memory: mask the unit, comment out the line in /etc/fstab and delete the /swap.img file.

Disable automatic updates and their notifications

Order of steps

This section masks packagekit.service. It must be executed after installing Firefox with APT.

# Remove update-manager and notifiers
sudo apt purge -y update-manager update-notifier*

# Avoid development upgrades
echo 'Unattended-Upgrade::DevRelease "false";' | \
    sudo tee /etc/apt/apt.conf.d/50unattended-upgrades

# Block release upgrade
echo -e "[DEFAULT]\nPrompt=never" | \
    sudo tee /etc/update-manager/release-upgrades

# Disable APT automatic updates
sudo tee /etc/apt/apt.conf.d/20auto-upgrades > /dev/null <<'EOF'
APT::Periodic::Update-Package-Lists "0";
APT::Periodic::Unattended-Upgrade "0";
EOF

# Disable update services
sudo systemctl disable --now \
    unattended-upgrades.service \
    apt-daily.timer \
    apt-daily-upgrade.timer \
    apt-daily.service \
    apt-daily-upgrade.service \
    fwupd-refresh.timer \
    ModemManager.service \
    packagekit.service \
    motd-news.timer 2>/dev/null

# Block them completely
sudo systemctl mask \
    unattended-upgrades.service \
    apt-daily.timer \
    apt-daily-upgrade.timer \
    fwupd-refresh.timer \
    ModemManager.service \
    packagekit.service \
    motd-news.timer 2>/dev/null

Disable auto-login

sudo sed -i 's/^AutomaticLoginEnable=.*/AutomaticLoginEnable=false/' /etc/gdm3/custom.conf
sudo systemctl restart gdm3

Network configuration

Simplify the Netplan configuration so that both interfaces obtain an IP via DHCP. NetworkManager generates one file per connection at /etc/netplan/90-NM-<uuid>.yaml:

# /etc/netplan/90-NM-<uuid>.yaml — Default network
network:
  version: 2
  ethernets:
    enp1s0:
      renderer: NetworkManager
      match: {}
      dhcp4: true
      dhcp6: true
      networkmanager:
        uuid: "cac41fbe-bc18-3d87-bba7-af2af7f8ffab"
        name: "Default"
        passthrough:
          connection.timestamp: "1785144878"
          proxy._: ""
# /etc/netplan/90-NM-<uuid>.yaml — WireguardVPN network
network:
  version: 2
  ethernets:
    enp2s0:
      renderer: NetworkManager
      match: {}
      dhcp4: true
      dhcp6: true
      networkmanager:
        uuid: "fa0c4873-aedb-346b-b49e-c1b228fb7f62"
        name: "WireguardVPN"
        passthrough:
          connection.autoconnect-priority: "-999"
          connection.timestamp: "1785144878"
          proxy._: ""

Example values

The uuid and timestamp are specific to each installation: you must respect those generated by NetworkManager on the VM and modify only the rest of the configuration.

Default configuration generated by the installer
# /etc/netplan/<file>.yaml
network:
  ethernets:
    enp1s0:
      dhcp4: true
      dhcp6: true
      match:
        macaddress: 52:54:00:51:61:bd
      set-name: enp1s0
  version: 2

7.2 Modifications via GUI

Wallpaper and profile picture

To apply your own wallpaper and profile picture:

  1. Copy the desired image to the VM's file system (for example, by dragging it to a folder).
  2. For the wallpaper: right-click the image and choose Set as desktop background.
  3. For the profile picture: go to Settings → System → Users and edit the user's image.

Remove screen lock

Go to Settings → Privacy → Screen and disable automatic locking.

Balanced power mode

Go to Settings → Power and select the balanced mode.

Configure remote desktop access

  1. Go to Settings → System → Remote Desktop and disable desktop sharing.

  2. Go to Remote Login, enable it and specify the user and password.

Credential match

The credentials configured here must match the credentials that IsardVDI has defined in the virtual desktop edit. Otherwise, the RDP client will not be able to log in automatically.

8. Change the video to Virtio

  1. Stop the virtual machine.
  2. In the desktop edit form in IsardVDI, change Videos from Default to Virtio and click Save changes.

Permission to choose Virtio

By default, the Virtio video can only be chosen by the administrator role. To offer it to other roles, grant the permission from the administration panel, in Domains → Resources, Videos section (see Resources).

Why change it?

virtio-gpu is more modern than qxl and better suited for RDP connections. In this scenario (without virgl on the host), it does not provide 3D acceleration, but it does improve overall integration and 2D rendering / scanout.

What changes with virtio

lspci -nn | grep -iE 'vga|display|3d'
# 00:01.0 VGA compatible controller [0300]: Red Hat, Inc. Virtio 1.0 GPU [1af4:1050]

ls /sys/class/drm/
# card1  card1-Virtual-1  renderD128  version
  • Kernel driver: virtio_gpu (replaces qxl).
  • renderD128 appears (DRI3 render node) — this did not exist with QXL.

Why there is still no 3D acceleration

dmesg | grep -iE 'virtio_gpu|virgl'
# [drm] features: -virgl +edid -resource_blob -host_visible

The line -virgl indicates that the host does not have virgl enabled: virtio-gpu operates only in 2D / scanout mode. Rendering is still done by the CPU (llvmpipe).

9. GNOME / GTK Optimizations

Apply as user, not as root

The commands gsettings and the files from ~/.config/gtk-*/settings.ini are applied within the user session, not with sudo.

9.1 Disable GNOME Shell animations

gsettings set org.gnome.desktop.interface enable-animations false

This change has the biggest impact on performance. Each animation forces Mutter to redraw the screen multiple times. In this environment, every frame is rendered by the CPU.

9.2 Disable GTK3 and GTK4 animations

mkdir -p ~/.config/gtk-3.0 ~/.config/gtk-4.0

cat > ~/.config/gtk-3.0/settings.ini <<'EOF'
[Settings]
gtk-enable-animations=0
EOF

cat > ~/.config/gtk-4.0/settings.ini <<'EOF'
[Settings]
gtk-enable-animations=0
EOF

The enable-animations GNOME setting does not always affect the internal animations of GTK widgets (such as popovers, scrolling, or tab transitions). These files cover these animations at the application level.

9.3 Disable screen locking

gsettings set org.gnome.desktop.screensaver lock-enabled false
gsettings set org.gnome.desktop.screensaver idle-activation-enabled false
  • lock-enabled=false: The screensaver does not request a password, even if enabled.
  • idle-activation-enabled=false: The screensaver does not activate due to inactivity.

9.4 Disable suspension on inactivity

gsettings set org.gnome.desktop.session idle-delay 0
gsettings set org.gnome.settings-daemon.plugins.power sleep-inactive-ac-type nothing
gsettings set org.gnome.settings-daemon.plugins.power sleep-inactive-battery-type nothing
gsettings set org.gnome.settings-daemon.plugins.power sleep-inactive-ac-timeout 0
gsettings set org.gnome.settings-daemon.plugins.power sleep-inactive-battery-timeout 0
  • idle-delay=0: The session is never marked as inactive.
  • sleep-inactive-*-type=nothing: No action is performed, even if the session is marked as inactive.
  • This applies to both ac and battery in case the virtual machine exposes a virtual battery.

9.5 Force software rendering (llvmpipe)

echo 'LIBGL_ALWAYS_SOFTWARE=1' | sudo tee -a /etc/environment

This setting is redundant with qxl, but it serves as a safety net in case the video driver changes in the future.

9.6 State verification

export DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/$(id -u)/bus

gsettings get org.gnome.desktop.interface enable-animations          # false
gsettings get org.gnome.desktop.screensaver lock-enabled             # false
gsettings get org.gnome.desktop.screensaver idle-activation-enabled  # false
gsettings get org.gnome.desktop.session idle-delay                   # uint32 0
gsettings get org.gnome.settings-daemon.plugins.power sleep-inactive-ac-type       # 'nothing'
gsettings get org.gnome.settings-daemon.plugins.power sleep-inactive-battery-type  # 'nothing'

cat ~/.config/gtk-3.0/settings.ini
cat ~/.config/gtk-4.0/settings.ini

glxinfo -B | grep -E 'renderer|OpenGL'
# It must show: llvmpipe (LLVM ...)

grep ext4 /etc/fstab
Notes on software rendering

glxinfo must show OpenGL renderer string: llvmpipe (LLVM …).

  • If virgl or Virtio-GPU Venus appears, the host has virgl active with real acceleration, and these settings do not apply as is.
  • direct rendering: Yes can be misleading: it indicates that Mesa accesses the render node without going through the X server, but the device remains llvmpipe (CPU).////////////////////////////////////////////////////////////

10. Template preparation

Final step

These commands are executed immediately before permanently shutting down the machine to convert it into a template. If the desktop is started again afterwards, they must be repeated.

10.1 Clear the machine identifier

Clearing /etc/machine-id prevents all desktops derived from the template from sharing the same identifier:

sudo truncate -s 0 /etc/machine-id
sudo rm -f /var/lib/dbus/machine-id

10.2 Clear the command history

# Clear the persistent history
echo "" | sudo tee .bash_history
sudo su
history -c
exit
history -c