250 Commits
Author SHA1 Message Date
James Stringer 6f3adb6aaf Bump version to 0.1.9
App Sandbox 0.1.9

### Added

- Make NVIDIA Optical Flow and OptiX runtimes available to applications in Windows VMs on x64 Windows hosts.

### Fixed

- Improve NVIDIA CUDA and OpenCL compatibility, including fixes for GPU resource sharing and zero-copy video decoding in Windows VMs.
- Fix CUDA applications failing to find NVIDIA libraries in Linux VMs when launched over SSH or in background processes.
- Fix App Sandbox incorrectly reporting that Virtual Machine Platform is disabled on non-English Windows.
  Thanks to @Jornar69 for identifying the issue and testing the fix ([#155](https://github.com/jamesstringer90/appsandbox/issues/155), [#156](https://github.com/jamesstringer90/appsandbox/pull/156)).
- Fix removing VMs from the list after their folders have been manually deleted on Windows and macOS.
  Thanks to @arcol for reporting this ([#146](https://github.com/jamesstringer90/appsandbox/issues/146)).
v0.1.9
2026-09-21 19:27:13 -04:00
James Stringer 214d6b59b6 Fix removing VMs after their folders are deleted
Problem or feature
VMs could remain stuck in the list after their folders were manually deleted. Reported by @arcol in #146.

Suggested change
Allow Delete to remove these VMs from the list and saved configuration on Windows and macOS. Unavailable storage and permission errors still prevent deletion.

Testing
Verified with the Windows headless API: the old build failed with 0x80070002 after deleting the VM folder; the rebuilt app successfully removed the VM from the list and vms.cfg. Windows build passed. macOS was code-reviewed, not runtime-tested.

Fixes #146.
2026-09-21 19:15:18 -04:00
James Stringer 0b72dd4674 Allow deleting VMs whose folders are already missing
Remove the saved VM entry on Windows and macOS when its folder has already been deleted. Preserve errors for inaccessible storage and other deletion failures.

Verified through the Windows headless API: the previous build fails with 0x80070002; the rebuilt app removes the VM from the list and vms.cfg. macOS code reviewed; not runtime-tested.

Fixes #146.
2026-09-21 18:14:09 -04:00
James Stringer 9345260bed Fix Windows prerequisite detection on non-English systems
Request English DISM output so the existing feature-state parser works on localized Windows installations.

Fixes #155.
2026-09-21 17:35:09 -04:00
James Stringer 195b9383fc Improve NVIDIA CUDA, OpenCL and video decoding support
Improve NVIDIA compute and video compatibility in Windows VMs, and fix CUDA library discovery in Linux VMs.

Fix CUDA zero-copy video decoding and CUDA/OpenCL applications failing to share resources with Direct3D 11 because of mismatched GPU identities.
Make the host's NVIDIA Optical Flow and OptiX runtimes available to Windows applications through normal VM provisioning.
Correct NVIDIA library search order for CUDA in Linux VMs over SSH and in background processes.
Reduce duplicated NVIDIA adapter lookup, installation and build configuration while preserving existing VM compatibility.
The existing build, signing, packaging and P9 file-transfer paths remain in use. The file-list format is unchanged, so older agents continue receiving the existing OpenGL, Vulkan and DLSS shims.

Validation: full Windows x64 build, including the 32-bit OpenGL/Vulkan shim, and a fresh NVIDIA Windows VM created from a template. All 251 active-file checks passed before and after reboot. Functional checks produced 54 passes and two skips matching the host, covering CUDA/Direct3D/Vulkan sharing, NVDEC zero-copy, OpenCL, OpenGL, PyTorch training/checkpoints and video encoding/decoding. All 24 native API checks passed again after reboot. Vulkan DLSS was also confirmed working in DOOM Eternal.

Optical Flow and OptiX checks cover initialization/context creation; full workloads were not tested. The 32-bit shim was built and deployment-verified; the automated runtime suite is x64.
2026-09-21 17:28:03 -04:00
James Stringer 60a5be36e6 Deduplicate NVIDIA shim identity and build setup
Share adapter identity lookup, consolidate NVIDIA project settings, and reuse runtime installation helpers. Preserve resource paths, the agent file-list format, and released NVAPI export ordinals.
2026-09-21 17:10:04 -04:00
James Stringer 6e8fa70da3 Improve NVIDIA compute compatibility
Fix Windows CUDA and OpenCL adapter identity handling and provision NVIDIA Optical Flow and OptiX runtimes through the existing GPU copy path. Include the new shims in the existing build, signing and packaging pipeline.

Prioritize the Linux WSL library directory so CUDA loads from SSH sessions and background processes.
2026-09-20 21:35:49 -04:00
James Stringer 11299ff284 docs: restore guidance above the issue text box 2026-09-16 21:16:55 -04:00
James Stringer 756243e912 docs: use a plain issue template and disable blank issues 2026-09-16 21:06:10 -04:00
James Stringer ec1326d3de docs: add issue form with contribution guidance 2026-09-16 20:59:28 -04:00
James Stringer af241cdaf3 Bump version to 0.1.8
App Sandbox 0.1.8

### Added

- Choose a specific GPU when creating or editing a VM on Windows, with automatic fallback if that GPU becomes unavailable.
  Thanks to @TejasPersonal, @Mungr3ss and @JasonSTX for requesting this ([#109](https://github.com/jamesstringer90/appsandbox/issues/109)), and @trevmlt for documenting the multi-GPU problem and a workaround ([#110](https://github.com/jamesstringer90/appsandbox/issues/110)).

### Fixed

- Preserve VM MAC addresses across restarts on Windows and macOS, allowing router address reservations to keep working.
  Thanks to @kurokawaikki for identifying the changing MAC addresses ([#92](https://github.com/jamesstringer90/appsandbox/issues/92)).
- Keep automatic login enabled and prevent password expiry for newly created Windows VMs on Windows and macOS hosts.
  Thanks to @macg4dave for reporting unexpected login prompts ([#133](https://github.com/jamesstringer90/appsandbox/issues/133)).
- Fix network setup failures when starting multiple VMs at the same time on Windows.
- Reduce unexpected SSH port changes on Windows by retrying the saved port, with clearer failure messages.
- Fix missing network drivers in newly created Windows VMs on macOS.
  Thanks to @YiwenLu-yiwen for reporting the failed download and confirming the workaround ([#107](https://github.com/jamesstringer90/appsandbox/issues/107#issuecomment-5689676123)).
v0.1.8
2026-09-15 21:55:30 -04:00
James Stringer 122dfcd737 GPU selection and VM startup improvements
On Windows hosts, choose a GPU by name when creating or editing a VM through the UI or API. Identically named GPUs can be distinguished, and unavailable GPUs fall back to Default GPU.

Keep VM MAC addresses stable across restarts on Windows and macOS hosts, including existing VMs.

Fix shared-network creation races when starting multiple VMs at once on Windows.

Keep automatic login enabled and prevent account passwords expiring for newly created Windows VMs on Windows and macOS hosts.

Retry the saved SSH proxy port before choosing a replacement, and log bind failures on Windows.

Update Windows VM creation on macOS to download the ARM64 network driver from main.
2026-09-15 21:33:21 -04:00
James Stringer a69e2a3865 Download macOS NetKVM resources from main
Use the vendored ARM64 NetKVM bundle on main instead of the old win-on-mac branch.
2026-09-15 20:17:42 -04:00
James Stringer 29bb62de19 Retry saved SSH ports before selecting a replacement
Make up to five attempts to bind the saved port and log each failure. Cancel retries during shutdown and close the listener only once.
2026-09-15 20:17:42 -04:00
James Stringer 0ad1739c7e Keep Windows VM automatic login and passwords from expiring
Apply persistent automatic login and non-expiring passwords across Windows VM setup paths.
2026-09-15 20:17:41 -04:00
James Stringer d307a227d4 Prevent shared-network races during simultaneous VM starts
Serialize Windows shared-network lookup and creation so concurrently started VMs reuse the same network.
2026-09-15 20:17:41 -04:00
James Stringer 042559092b Preserve VM MAC addresses across restarts
Save and reuse each VM's MAC address on Windows and macOS hosts, including existing VMs that do not yet have one.
2026-09-15 20:17:41 -04:00
James Stringer 66ffaf6dcd Allow GPU selection when creating and editing VMs
Expose available GPUs in the UI and API, preserve the selected device, and fall back to Default GPU if it disappears.
2026-09-15 20:17:11 -04:00
James Stringer c654b940d0 Bump version to 0.1.7
App Sandbox 0.1.7

### Added

- NVIDIA DLSS support in compatible Vulkan games running in Windows VMs on x64 Windows hosts.
  Thanks to @darkjezza for reporting this ([#139](https://github.com/jamesstringer90/appsandbox/issues/139)).
- A dedicated VM settings dialog on Windows and macOS, and a clearer snapshot and branch manager on Windows.

### Fixed

- Corrected GPU and network information on macOS and removed unsupported network options.
v0.1.7
2026-09-14 22:49:27 -04:00
James Stringer dd2250875e VM settings and snapshots move out of inline table controls into dedicated dialogs, using the existing app styling and snapshot behavior.
VM settings and snapshots move out of inline table controls into dedicated dialogs, using the existing app styling and snapshot behavior.

Changed
Edit CPU and memory in a dedicated dialog on Windows and macOS hosts, with Save and Cancel. Windows hosts also support editing GPU and network settings.

Manage snapshots and branches in a tree dialog on Windows hosts, with creation, rename, and delete actions. The previous choice and new selection are marked with (current) and (selected).

Keep settings changes disabled while a VM is running or its disk is being built, and show an error if an edit fails.

Correctly show software rendering for Windows VMs on macOS hosts.

Show the actual NAT networking used on macOS hosts and hide unsupported network choices during VM creation.
2026-09-14 22:16:10 -04:00
James Stringer d49aa57d74 Fix GPU and network presentation on Mac hosts 2026-09-14 21:20:17 -04:00
James Stringer 16f28bf010 Move VM editing and snapshots into modals 2026-09-14 20:55:10 -04:00
James Stringer cc446a73f2 Fix Vulkan DLSS GPU identity matching 2026-09-14 19:21:42 -04:00
James Stringer 2373e24b7d Add default username and password details to README 2026-09-13 23:34:33 -04:00
James Stringer 3480763be3 Bump version to 0.1.6
App Sandbox 0.1.6

### Added

- Native NVIDIA OpenGL and Vulkan support in Windows VMs on x64 Windows hosts, including 32-bit games and applications.
  **Special thanks to @Poldino95 for figuring out why NVIDIA's native graphics drivers weren't working inside VMs and demonstrating working solutions. Their detailed research provided the foundation for these improvements.** ([#130](https://github.com/jamesstringer90/appsandbox/pull/130), [#131](https://github.com/jamesstringer90/appsandbox/pull/131))
  Thanks also to @N1qro for reporting Vulkan game launch failures ([#73](https://github.com/jamesstringer90/appsandbox/issues/73)).

- NVIDIA DLSS support in compatible 64-bit games running in Windows VMs on x64 Windows hosts.
  Thanks again to @Poldino95 for identifying what prevented DLSS from working and demonstrating the solution ([#129](https://github.com/jamesstringer90/appsandbox/pull/129)), and @Giraffe886 for raising this ([#98](https://github.com/jamesstringer90/appsandbox/issues/98)).

### Fixed

- Improved OpenGL and Vulkan support for Intel and AMD GPUs in Windows VMs by using their native graphics drivers, including supplying missing AMD driver files.
- Fixed Ubuntu 26.04.1 VMs getting stuck during installation.
  Thanks to @EzYDark for diagnosing the package compatibility problem and proposing a fix ([#120](https://github.com/jamesstringer90/appsandbox/pull/120)).
- Fixed Firefox failing to launch in newly created Ubuntu VMs.
  Thanks to @EzYDark for identifying the cause and proposing a fix ([#120](https://github.com/jamesstringer90/appsandbox/pull/120)).
- Fixed package update errors in newly created Ubuntu VMs caused by leftover installation-disc sources.
v0.1.6
2026-09-13 20:28:37 -04:00
James Stringer dc4b009c1f Enable NVIDIA DLSS in Windows VMs
Enabled NVIDIA DLSS in supported 64-bit games running in Windows VMs on x64 Windows hosts with compatible NVIDIA GPUs.
2026-09-13 20:02:34 -04:00
James Stringer 0d9069dd98 Use lowercase NVIDIA shim filenames 2026-09-13 19:37:21 -04:00
James Stringer 66095f03e7 Enable NVIDIA DLSS in Windows GPU VMs 2026-09-13 19:29:20 -04:00
James Stringer 62d7a0a002 Enable native OpenGL and Vulkan in Windows GPU VMs
Improves OpenGL and Vulkan support for Windows VMs on x64 Windows hosts.

NVIDIA GPUs now support native OpenGL and Vulkan, including 32-bit applications.

Fixed missing AMD OpenGL and Vulkan driver files in Windows VMs.

Intel and AMD VMs now use their native graphics runtimes by default instead of Mesa.

The NVIDIA components build, sign, and bundle through the existing release process and install through the existing guest-agent file transfer. Native runtime setup requires the updated guest agent; older agents retain their existing graphics setup.
2026-09-13 16:23:11 -04:00
James Stringer 975bfebc90 Make Ubuntu VM build less brittle against point releases of 26.04 LTS
Fixed Ubuntu 26.04.1 VMs getting stuck during installation.
Fixed Firefox failing to launch in newly created Ubuntu VMs.
Fixed apt update errors caused by leftover installation-media sources.
Verified installation, Firefox launch, and apt update on fresh Ubuntu 26.04 and 26.04.1 VMs on Windows hosts.
2026-09-13 15:13:57 -04:00
James Stringer 16f8a72cc0 Fix Ubuntu Firefox permissions and APT sources 2026-09-13 14:33:53 -04:00
James Stringer 6d2e10fd0b Fix Ubuntu ISO build dependency version selection 2026-09-13 13:14:44 -04:00
James Stringer 4b43155f47 Clarify native GPU shim and provisioning names 2026-09-12 20:39:40 -04:00
James Stringer 17f7ba07e9 Enable native OpenGL and Vulkan for Windows GPU VMs
Build and stage x64 and x86 NVIDIA shims through the existing solution and deploy them through P9 and the guest agent. Include active AMD runtime packages and prefer native OpenGL and Vulkan on NVIDIA, AMD, and Intel guests.
2026-09-12 19:26:06 -04:00
James Stringer abbbdae31f docs: clarify pull request suggestions and contributor credit 2026-09-11 18:14:54 -04:00
James Stringer 594d323ffe Bump version to 0.1.5
App Sandbox 0.1.5

### Added

- Choose where VM disks are stored when creating a sandbox on Windows or macOS, including on another drive. Requested in [#12](https://github.com/jamesstringer90/appsandbox/issues/12), [#24](https://github.com/jamesstringer90/appsandbox/issues/24), [#38](https://github.com/jamesstringer90/appsandbox/issues/38), [#68](https://github.com/jamesstringer90/appsandbox/issues/68), and [#71](https://github.com/jamesstringer90/appsandbox/issues/71).
- Automatic mouse capture for games and 3D applications in Windows and Ubuntu VMs.
- Keyboard shortcut capture and audio mute controls in the Windows VM viewer's title bar menu on macOS.

### Fixed

- Improved international keyboard input and fixed keyboard layout setup in newly created Ubuntu VMs. [#76](https://github.com/jamesstringer90/appsandbox/issues/76)
- Fixed host input methods intercepting typing and language-switching shortcuts when keyboard shortcut capture is enabled on Windows. [#116](https://github.com/jamesstringer90/appsandbox/issues/116)
- Fixed incorrect mouse positioning when changing display scaling inside Windows VMs. [#111](https://github.com/jamesstringer90/appsandbox/pull/111)
- Fixed distorted text cursors in the Windows viewer at high DPI scaling settings.
- Fixed copying text from Ubuntu Terminal to the host clipboard.
- Fixed NVIDIA driver-profile errors preventing games such as Counter-Strike 2 from starting. Addresses the NVIDIA profile error in [#73](https://github.com/jamesstringer90/appsandbox/issues/73).
- Fixed Windows installation images being incorrectly detected as English on non-English hosts. [#84](https://github.com/jamesstringer90/appsandbox/issues/84)
- Fixed NAT internet connectivity in Windows VMs with localized network adapter names. [#79](https://github.com/jamesstringer90/appsandbox/issues/79), [#84](https://github.com/jamesstringer90/appsandbox/issues/84)
- Fixed external networking failing after saving adapter names containing non-English characters. [#94](https://github.com/jamesstringer90/appsandbox/issues/94)
- Fixed saved NAT addresses being lost when VMs shut down.
- Fixed Windows VMs created from templates using the template's disk size instead of the size selected during creation.
- Fixed saved snapshots being modified when starting a VM after deleting a branch.
- Fixed snapshot controls remaining visible after all snapshots and branches were deleted.
- Fixed Windows installation getting stuck when the username matches the VM name. [#103](https://github.com/jamesstringer90/appsandbox/pull/103)
- Improved VM creation checks for invalid usernames and missing passwords.
- Fixed VM table columns shifting when switching operating systems in the creation window.
v0.1.5
2026-09-09 21:18:10 -04:00
James Stringer 6f8fefe948 VM storage options and fixes for input, networking, and setup
VM storage options and fixes for input, networking, and setup
2026-09-09 21:12:55 -04:00
James Stringer 9d6342f977 Fix viewer mouse capture and keyboard handling 2026-09-08 22:49:37 -04:00
James Stringer 26e0e96a78 Fix Mac builds and sandbox creation validation
Correct the Xcode file reference and CoreGraphics API call. Keep creation actions disabled for invalid configuration and use the v0.1.5 ARM64 guest resource ZIP.
2026-09-07 23:14:56 -04:00
James Stringer 046a7c0e8f Use updated Windows ARM64 payload for Mac VM creation 2026-09-07 21:41:27 -04:00
James Stringer 92c7a350f9 Remove redundant source comments 2026-09-07 20:58:47 -04:00
James Stringer a68665db2d Restore static NAT networking and preserve saved VM IPs 2026-09-07 20:20:41 -04:00
James Stringer fcdef6223c Configure NAT DHCP subnets and remove Windows agent IP setup 2026-09-07 17:44:17 -04:00
James Stringer d8b9be0c66 Fix HCN schema for DHCP network creation 2026-09-07 15:51:06 -04:00
James Stringer c737c292cf Use DHCP for Windows-host NAT networking 2026-09-07 15:44:22 -04:00
James Stringer 4e2493dfbe Fix international keyboard input and Linux clipboard copying 2026-09-07 14:27:27 -04:00
James Stringer 978f52b8f5 Fix VM setup, storage, snapshots, and viewer behavior 2026-09-07 13:02:28 -04:00
James Stringer 72c06267a5 Update VM support and features
Updated macOS and Windows 11 ARM VM support details, clarified GPU acceleration capabilities, and improved headless mode description.
2026-06-30 22:00:29 -04:00
James Stringer 2d9eae869a Bump version to 0.1.4
App Sandbox 0.1.4

- **Windows 11 (ARM64) VMs on macOS.** On an Apple Silicon Mac, App Sandbox can
  now create and run Windows 11 ARM guests -- previously a macOS host could only
  run macOS guests. The Windows guest gets its own display window, keyboard and
  mouse, sound, clipboard (including copying files to and from your Mac),
  one-click SSH, and networking, and is built from a Windows 11 ARM64 ISO you
  provide. It runs on a self-contained virtual-machine engine bundled with the
  app, and the guest agent and drivers are downloaded (code-signed) when you
  create the VM, so no test-signed components ship inside App Sandbox.

- **Non-ASCII usernames and passwords now work when creating a VM through the
  scriptable API.** Characters outside plain ASCII (for example Chinese) arrive
  from the API JSON-escaped; App Sandbox stored the escape sequences literally
  instead of decoding them, so a VM created via the API with such a credential
  would reject the login. They are now decoded correctly. (The desktop app was
  unaffected.)
- **The virtual display now recovers if it gets disabled in the guest.** The
  guest agent kept trying to restart the App Sandbox display driver -- which
  can't re-enable a disabled device -- so the picture never came back; it is now
  re-enabled and recovers.
- Various stability and bug fixes across the Windows and macOS components.

- **Windows VMs on macOS are not GPU-accelerated.**
- **x64 (emulated) apps in ARM Windows VMs don't get the OpenGL fix** -- the Mesa
  driver shipped on ARM is ARM64-only; native ARM64 apps get full GPU OpenGL.
  (carried over from 0.1.2)
- **ARM Linux (Ubuntu 26.04 LTS) guests do not work -- on ARM, Windows is the
  only working guest** (Ubuntu 26.04's arm64 kernel churns BPF JIT memory and
  never reaches the desktop). (carried over from 0.1.2)
v0.1.4
2026-06-30 20:57:07 -04:00
James Stringer 77e2b744d6 Windows 11 ARM64 guests on macOS hosts
## Summary

Adds support for running **Windows 11 ARM64 guests on macOS (Apple Silicon) hosts**.
Until now a macOS host ran only macOS guests (Virtualization.framework); this branch boots
Windows guests on a bundled **QEMU + Hypervisor.framework (HVF)** VMM, with an **ivshmem
shared-memory transport** carrying every guest channel — agent control, display (VDD), input,
audio, clipboard, SSH, and 9P — so **no guest networking is required**. The same headless
HTTP/JSON API and GUI now create Windows guests on a Mac, and Windows-on-Windows behaviour
is unchanged.

## How it works

- **Transport** (`tools/transport`): a single guest transport API with two backends — PC
  `AF_HYPERV` (unchanged) and Mac **ivshmem** — over an SPSC ring. `src/backend_mac` maps the
  ivshmem BAR and runs the host side of each channel; the launcher publishes the region
  directory and the guest reads its geometry at boot.
- **Guest driver** (`tools/ivshmem`): an in-house KMDF ivshmem BAR-mapping driver
  (**AppSandboxSHM**, `PCI\VEN_1AF4&DEV_1110`) — no third party — built through the same VS
  pipeline as VDD/VAD and MS-attestation-signed.
- **VMM**: a vendored **QEMU 11.0.1 fork** with `ivshmem-plain` (`vendor/qemu-ivshmem`),
  embedded self-contained in the app bundle (codesigned with the Hypervisor entitlement), with
  the LGPL source mirror for compliance. This is the bulk of the diff (vendored upstream).
- **Disk build / provisioning**: a from-scratch ISO→NTFS disk builder (`tools/iso-patch-mac`)
  applies the install image and stages the payload + answer file. `unattend.xml` / `setup.cmd`
  / `SetupComplete.cmd` are generated by the **shared** `tools/provision/win_provision.c` used
  by both the Windows backend and the Mac host — one generator, no platform fork.

## Guest payload

The Mac host **JIT-downloads** the signed Windows release zip (EV-signed agent EXEs +
**MS-attestation-signed** drivers, incl. AppSandboxSHM), caches it, and pulls the WHQL-signed
**NetKVM** virtio-net driver from a vendored zip (`vendor/virtio-win`). No test-signed Windows
binaries ship in the app bundle.

## Credentials

- The account credential is **obfuscated/hashed in the daemon** for all configs — the
  disk-applier child only ever receives the non-plaintext result, so the plaintext never
  crosses the process boundary. Win-on-Mac generates the base64 `unattend.xml` in-process;
  macOS guests get a salted PBKDF2-SHA512 ShadowHash + kcpassword computed in-process
  (`tools/provision/mac_account_hash.{h,m}`).
- **Non-ASCII (incl. CJK) credentials** are handled correctly: the unattend `<Password>` is
  encoded as true UTF-16LE and the headless SDK's JSON `\uXXXX` escapes are decoded. Verified
  with a 12-character mixed Chinese/English password (`ValidateCredentials` on Windows,
  `dscl -authonly` on macOS).

## Testing

- Full **2× Windows-11 concurrent lifecycle suite green** (4 GB / 4 cores / 64 GB each):
  create → disk build → boot-to-online → SSH key auto-deploy → display open/close →
  edit-while-stopped → shutdown/restart → delete; snapshots correctly return `501` on macOS.
- Guests reach agent-online with the attestation-signed drivers under Secure Boot.
- CJK password authenticated inside both Windows and macOS guests.

## Deploy note

The signed-payload URL points at the **v0.1.4 release** — that release must be published, or a
Windows-on-Mac create fails with "Signed Windows guest payload download failed".
2026-06-30 19:41:10 -04:00