No description
  • Python 69.4%
  • Shell 19.9%
  • Dockerfile 8.7%
  • PowerShell 2%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
JuanDelPueblo 5fdfca6f72 Default to GTK display and share ~/Public over virtiofs
The SPICE/egl-headless path refreshes on QEMU's fixed 30 ms timer and
reads every frame back for SPICE compression, which caps the guest at
~33 fps and tears. QEMU's GTK display paces updates to the host
monitor's refresh rate and reports it through the virtio-gpu EDID, so
Windows can select 120/240 Hz. Make it the default; NEPTUNE_DISPLAY=spice
keeps the old path.

Share ~/Public with the guest over virtiofs when it exists
(NEPTUNE_SHARE_DIR overrides it; an empty value disables sharing).
virtiofsd runs without MKNOD/DAC_READ_SEARCH and with file handles
disabled, since rootless Podman provides neither.

Pass the documented NEPTUNE_* overrides into the container; podman run
does not inherit the host environment, so they previously had no effect.
2026-11-07 10:59:10 -04:00
docs Initial import of Neptune Windows 11 runner 2026-09-25 15:09:52 -04:00
neptune_win11 Default to GTK display and share ~/Public over virtiofs 2026-11-07 10:59:10 -04:00
patches Initial import of Neptune Windows 11 runner 2026-09-25 15:09:52 -04:00
tests Default to GTK display and share ~/Public over virtiofs 2026-11-07 10:59:10 -04:00
unattended Initial import of Neptune Windows 11 runner 2026-09-25 15:09:52 -04:00
.containerignore Initial import of Neptune Windows 11 runner 2026-09-25 15:09:52 -04:00
.gitattributes Initial import of Neptune Windows 11 runner 2026-09-25 15:09:52 -04:00
.gitignore Initial import of Neptune Windows 11 runner 2026-09-25 15:09:52 -04:00
Containerfile Default to GTK display and share ~/Public over virtiofs 2026-11-07 10:59:10 -04:00
neptune-win11 Default to GTK display and share ~/Public over virtiofs 2026-11-07 10:59:10 -04:00
README.md Default to GTK display and share ~/Public over virtiofs 2026-11-07 10:59:10 -04:00

neptune-win11

neptune-win11 creates a GPU-accelerated Windows 11 virtual machine on Linux without PCI GPU passthrough.

Supply a Windows 11 ISO and it creates a VM, installs Windows 11 Pro unattended, installs the guest graphics driver, and verifies that setup finished. No interaction with Windows Setup is required. When the installer shuts down, you have a persistent Windows VM ready to boot with the experimental Neptune graphics stack.

QEMU, DXVK, virglrenderer, firmware, guest tools, and the viewer stay inside a rootless Podman container. The Windows ISO is the only installation media you provide.

This is experimental software. It has reached the Windows desktop on AMD and NVIDIA hosts under Wayland, but expect rough edges.

Credit to the contributors behind UTM QEMU, UTM virglrenderer, and osy/dxvk, and to neuromaniacMD's Linux KVM report for documenting the AMD/RADV setup and Linux SPICE/GBM fix.

Requirements

  • Linux x86-64 with KVM available to your user
  • Podman 5 or newer with a rootless OCI runtime such as crun
  • A Vulkan-capable GPU and accessible DRM render node
  • NVIDIA Container Toolkit on NVIDIA hosts
  • A Windows 11 x86-64 ISO

Need an ISO? The Massgrave Windows 11 download page lists official Microsoft download links. An x64 consumer ISO is the simplest choice; the installer selects Windows 11 Pro from it.

Install the host packages for your distribution. A working GPU driver must already be installed.

Arch Linux

# AMD
sudo pacman -S --needed podman crun mesa vulkan-radeon

# NVIDIA
sudo pacman -S --needed podman crun nvidia-container-toolkit

Debian and Ubuntu

sudo apt update
sudo apt install podman crun

# AMD
sudo apt install mesa-vulkan-drivers

# NVIDIA
sudo apt install nvidia-container-toolkit

Use a distribution release or package source that provides Podman 5 or newer. The NVIDIA package requires NVIDIA's apt repository.

Fedora

sudo dnf install podman crun

# AMD
sudo dnf install mesa-vulkan-drivers

# NVIDIA
sudo dnf install nvidia-container-toolkit

The NVIDIA package requires NVIDIA's RPM repository.

The project does not invoke your host package manager or modify /etc.

Install and run

Build the container and check that KVM and Vulkan work inside it:

./neptune-win11 build
./neptune-win11 container-doctor

Prepare the unattended media and install Windows 11 Pro:

./neptune-win11 prepare /path/to/windows-11.iso
./neptune-win11 install /path/to/windows-11.iso

Installation progress is reported every 30 seconds. The process normally reboots Windows several times and finishes by shutting down the VM.

Start the accelerated VM:

./neptune-win11 start

Use another terminal to check its state or request a clean shutdown:

./neptune-win11 status
./neptune-win11 stop

To remove the VM and start over, run ./neptune-win11 clean. It shows the container, image, and state directory, then requires you to type clean in a terminal. This permanently deletes the Windows disk, TPM state, generated media, logs, the named Podman container, and the named image. It leaves the Windows ISO you supplied and Podman's shared build cache and base images alone. Set the same NEPTUNE_STATE_DIR, NEPTUNE_CONTAINER_NAME, and NEPTUNE_IMAGE overrides used to create the VM when cleaning it.

Data and configuration

VM data is stored in $XDG_DATA_HOME/neptune-win11, or ~/.local/share/neptune-win11 when XDG_DATA_HOME is unset. Set NEPTUNE_STATE_DIR to use another location.

The default Windows login is:

  • Username: neptune
  • Password: password

Change the password after the first boot if the VM is accessible to untrusted users. The installer creates a dynamically allocated 128 GB qcow2 disk in the state directory.

Useful overrides:

Variable Default Purpose
NEPTUNE_CPUS 8 VM virtual CPU count
NEPTUNE_RAM 8G VM memory
NEPTUNE_DISPLAY gtk Display for start: gtk (local window that follows the host monitor's refresh rate) or spice (remote-viewer, fixed ~33 Hz refresh)
NEPTUNE_SHARE_DIR ~/Public if it exists Host folder shared with Windows over virtiofs during start; set it empty to disable sharing
NEPTUNE_SHARE_TAG folder name virtiofs tag for the shared folder
NEPTUNE_PROGRESS_INTERVAL 30 Install heartbeat interval in seconds
NEPTUNE_IMAGE localhost/neptune-win11:dev Container image name

The latest installation framebuffer is written to logs/install-progress.ppm under the state directory. Automatic viewer reconnection is not currently implemented.

Source revisions

Component Revision
DXVK 404240fdacf47470b02c76d6e684639a95dc7387
virglrenderer 111a6d89a466f35dad9ed5fd05623aa9edc1db6d
QEMU b795d6de88fc52cb6ff061e0e034be51d8e9c474

Viewer startup and recovery notes are in docs/ui-navigation.md.