Skip to content

Latest commit

 

History

History
151 lines (124 loc) · 7.2 KB

virtual-machines.md

File metadata and controls

151 lines (124 loc) · 7.2 KB

Desktop test virtual machines

The local libvirt connection is qemu:///system. Open GDS Test entries from the host application launcher, or run these commands from the repository:

just vm            # Show status and active snapshots of all test VMs
just vm fedora
just vm ubuntu
just vm cachyos
just vm noctalia
just vm freebsd

These commands start a stopped guest and open its SPICE console in Virt Viewer. The console provides keyboard and mouse access to the actual desktop. Choose GNOME or Plasma at the Fedora login screen to test both environments.

Guest Desktop Resources Address
fedora-dev Fedora 44, GNOME + KDE 8 vCPUs, 16 GiB RAM DHCP; use just vm / virsh domifaddr
ubuntu-dev Ubuntu 26.04.1 LTS, GNOME 8 vCPUs, 8 GiB RAM, 80 GiB disk 192.168.122.120
cachyos-dev CachyOS rolling, KDE Plasma 8 vCPUs, 8 GiB RAM, 80 GiB disk 192.168.122.121
arch-noctalia Arch Linux, Umbriel + Noctalia 8 vCPUs, 8 GiB RAM DHCP (192.168.122.63)
freebsd-dev FreeBSD 15.1, KDE Plasma 6 Wayland 8 vCPUs, 8 GiB RAM, 80 GiB disk DHCP

Guests use UEFI, virtio storage/network, and virtio graphics with SPICE. SPICE OpenGL is disabled because the host's NVIDIA display path does not import its display buffers; Mesa software Vulkan handles application rendering for functional desktop testing (not GPU benchmark measurement). All four guests log in automatically as atlas on the desktop (Fedora preserves its existing desktop login), accept the host's Ed25519 key over SSH with password authentication disabled, and allow passwordless sudo (NOPASSWD: ALL) for automated package testing. Local desktop/sudo credentials are stored only on this host in ~/.local/share/gds-vms/credentials (mode 0600). FreeBSD also uses the atlas desktop account, key-only SSH and passwordless sudo.

FreeBSD uses fullscreen KWin Wayland nested in the guest's scfb Xorg session. SDDM starts it automatically. Plasma needs the plasma6-kactivitymanagerd package to load its wallpaper and panel. After restoring the original FreeBSD clean-base snapshot, run just e2e-prepare freebsd and log in again to load the desktop shell. Files connects to KWin over Wayland and uses Mesa software Vulkan. This setup covers application behavior under KWin. Direct DRM session startup and GPU acceleration are outside its coverage. The guest mounts fdescfs on /dev/fd with rdlnk for the embedded terminal's working directory.

Important

arch-noctalia runs on a libvirt external disk snapshot (clean-base). Start and manage it with just vm noctalia or virsh rather than legacy standalone QEMU launch scripts that point directly at the base .qcow2 image.

Shared clipboard

On the Linux guests, use the GDS Test launcher or just vm console for bidirectional text copying. On a Wayland host, the launcher explicitly uses native GTK Wayland support. The existing Virtual Machine Manager console on this workstation did not reliably transfer clipboard contents through the host's X11/Wayland bridge. Both guest spice-vdagentd and desktop-session spice-vdagent must be running.

Copy text with Ctrl+C. In a guest terminal, paste with Ctrl+Shift+V. When recovering an interrupted SPICE clipboard connection, restart the guest's session agent with systemctl --user restart spice-vdagent and reconnect the console. Copy the text again after reconnecting.

Ubuntu still uses GNOME's default idle lock. Unlock the desktop before testing clipboard sharing; do not rely on the shared clipboard to enter the lock-screen password. If clipboard transfer remains stuck after unlocking, close Virt Viewer and reopen it with just vm ubuntu, then copy the text again.

The host needs virt-viewer. On this NixOS workstation it is retained at ~/.local/share/gds-vms/virt-viewer with nix build nixpkgs#virt-viewer --out-link ~/.local/share/gds-vms/virt-viewer.

Clean test baselines (clean-base)

All five guests have an offline libvirt external disk snapshot named clean-base containing a clean desktop with sshd, qemu-guest-agent, and ~/Downloads, and no pre-installed gds* / xdg-desktop-portal-gds packages or GDS user configuration, cache, or desktop overrides.

Before running a packaging or installer regression test, revert a guest (or all guests) to the clean baseline:

just vm                 # List state, IP, and active snapshot for all test VMs
just vm ubuntu reset    # Revert ubuntu-dev back to clean-base
just vm all reset       # Revert all guests back to clean-base

Terminal access and packages

just vm ubuntu ssh
just vm cachyos ssh
just vm fedora ssh
just vm noctalia ssh
just vm ubuntu ssh 'cat /etc/os-release'
just vm ubuntu copy target/deb/ubuntu-resolute/gds-files_*.deb
just vm cachyos copy target/arch/arch-latest/gds-files-*.pkg.tar.zst
just vm noctalia copy target/arch/arch-latest/gds-files-*.pkg.tar.zst
just vm fedora copy target/rpm/fedora-44/x86_64/gds-files-*.rpm
just vm ubuntu stop
just vm cachyos start

copy uploads files into the desktop user's ~/Downloads directory (symlinked on fedora-dev to the localized Downloads folder). If SSH is requested immediately after starting a guest, wait for boot to finish and retry.

Build native packages on the host, then install them inside the corresponding guest (using minimal dependency flags when verifying that optional helpers are not pulled in). Build Ubuntu packages with just deb ubuntu resolute; the existing ubuntu-noble packages can also be used for a compatibility smoke test on 26.04. Build Arch packages with just arch and Fedora packages with just rpm 44.

# Ubuntu guest (minimal dependencies without Recommends)
sudo apt install --no-install-recommends ./Downloads/gds-files_*.deb

# CachyOS / Arch guest
sudo pacman -U ./Downloads/gds-files-*.pkg.tar.zst

# Fedora guest (without weak dependencies)
sudo dnf install --setopt=install_weak_deps=False ./Downloads/gds-files-*.rpm

# Run from a terminal in the guest desktop session
gds-files --enable-logs

Test clipboard, portals, file operations, and the embedded terminal inside the guest's own Wayland session. Create test files on its own filesystem so that permissions and trash semantics match the distribution. Installing GDS Portal and changing the desktop's portal routing are separate, opt-in test steps.

Disks and installation media are in the libvirt default and iso pools. Download/setup files and private credentials are under ~/.local/share/gds-vms/; they are outside the repository. The VMs do not start automatically with the host.

Image sources: Ubuntu LTS, Ubuntu cloud image, and CachyOS desktop media. Ubuntu was provisioned from the official cloud image with Ubuntu's GNOME desktop packages; CachyOS was installed from its signed repositories using the official live environment. Both downloaded images were checked against their published SHA-256 checksums. FreeBSD was provisioned from the official 15.1 amd64 cloud image after checking its published SHA-256 checksum.