92 Commits

Author SHA1 Message Date
Guilherme Rambo
5b4006330c Improve support for virtual machines stored outside the library (#830)
* Improve support for virtual machines stored outside the library

* Resolve VM identifier conflicts when opening from outside the library

* Improve UI for virtual machine UUID conflict resolution

* Moved sheet presentation code into generic helper

* Only mention Xcode and vbctl in conflict prompts when the corresponding features are enabled and in use for the affected VMs

* Add preference for disabling showing external virtual machines in the library
2026-11-30 14:36:32 -03:00
Guilherme Rambo
529712cdfd Implement vbctl for command-line access (#829) 2026-11-26 19:03:47 -03:00
Guilherme Rambo
8534c995fe Dedicated security settings tab, tunnel approval controls (#828) 2026-11-26 12:46:34 -03:00
Guilherme Rambo
68c48f8d53 Tunnel settings tweaks (#827)
* Add menu for quickly copying tunnels from other virtual machines, improve default selection for guest vs. host service depending on where the tunnel is being configured

* Count only tunnels that can be added in all tunnels menu option

* Add dedicated toolbar item for tunnel approval

* Fix service tunnels menu button sizing
2026-11-26 11:00:15 -03:00
Guilherme Rambo
4181d09e17 Guest<>host port and Unix socket forwarding (#824)
* Custom socket tunnels

* Improve tunnel configuration UI

* Tweak tunnel editing UI to be less confusing

* Create tunnel socket parent path if it doesn't already exist

* Security: Harden tunnel approval verification

* Security: harden tunnel approval UI against tampered strings, use only digest for validating approvals

* Security: refuse to start a TCP listener when something already answers at its address; replace existing socket when appropriate

* Fix newly added tunnel that replaces an existing listener being blocked by address in use

* Security: make tunnel status text from the other side safe to display

Status and failure text is chosen by the other side of a tunnel and shown
next to the tunnel in settings. Remove invisible, reordering and
line-breaking characters from it and limit its length.

Co-Authored-By: Claude Mythos 5.2 <noreply@anthropic.com>

* Security: require a trusted owner for every folder enclosing a tunnel socket

Each component of a listener's path, as written and as resolved through
links, has to belong to this account or to a system account. Set the
socket's permissions without following links.

Co-Authored-By: Claude Mythos 5.2 <noreply@anthropic.com>

* Security: check who owns a Unix socket tunnel destination

Apply the path ownership check to destinations, and require the service
that accepts the connection to run as this account or a system account.

Co-Authored-By: Claude Mythos 5.2 <noreply@anthropic.com>

* Security: give each tunnel its own share of a virtual machine's connections

Raise the limit to 64 connections per virtual machine with at most 32 for
one tunnel, so holding one tunnel's connections open can't starve the
others. Pause a listener that runs out of descriptors or memory instead
of stopping it for good.

Co-Authored-By: Claude Mythos 5.2 <noreply@anthropic.com>

* Security: keep the reason a tunnel failed on the host from the guest

The guest is only told that a tunnel isn't available on the host.

Co-Authored-By: Claude Mythos 5.2 <noreply@anthropic.com>

* Update service tunnels audit report with the status of F5 to F10

Notes what was fixed for each finding and what was left as is.

Co-Authored-By: Claude Mythos 5.2 <noreply@anthropic.com>

* Support managed preference restrictions on tunnels

* Remove audit file

* Tunnels UI tweaks

* Rewrite service tunnels documentation

---------

Co-authored-by: Claude Mythos 5.2 <noreply@anthropic.com>
2026-11-25 18:17:16 -03:00
Guilherme Rambo
aabca5342d Xcode app provisioning (#823)
* Automatic provisioning of Mac apps launched via Xcode

* Improve Xcode integration sheet UI

* Security: harden local debugging socket and Xcode tool usage

* Soften rule around Xcode MCP use and xcodebuild prohibition

* Security: harden App Store Connect API key storage and access

* Fix debugged app incorrectly detected as not provisioned due to wildcard matching in provisioning profile

* Add previews for provisioning and debugging UI elements

* Disambiguate virtual machine vs. host Mac in provisioning and signing team management UIs

* Make Xcode debugging setup accessible from the Guest menu

* Completely disable debugging socket when developer features disabled, fix socket dying on accept failure

* Add versioning to scheme bindings, refer to VirtualBuddy components by a stable symlinked location, store scheme URLs so that app can potentially migrate schemes in the future

* Delay showing provisioning sheet so that an app that's already provisioned for the VM doesn't trigger it
2026-11-24 17:46:23 -03:00
Guilherme Rambo
3522f6520c Xcode integration (#818)
* Implement Xcode integration for running and debugging a Mac app in a virtual machine

* Fix xcodeproj/xcworkspace not selectable in open panel

* Improve Xcode project setup UI

* Add dedicated Developer tab in settings and global toggle for developer features

* Improve developer settings UI

* Add managed preference for disabling developer features
2026-11-20 17:37:23 -03:00
Guilherme Rambo
ff855c2808 Allow shared folders and display configuration changes on live VM (#806)
* Implement live configuration updates for shared folders

* Allow display configuration changes on live VM

* Improve live VM settings UI
2026-11-04 13:31:55 -03:00
Guilherme Rambo
4b012d3c01 Guest appearance sync service (#803) 2026-11-03 13:54:41 -03:00
Guilherme Rambo
52d67be11c New force stop & close option (#798)
* New option to force-close VM window via menu item or by Option+clicking window close button

* Fix option+click window close button to force-close
2026-10-27 11:43:23 -03:00
Guilherme Rambo
6c153ad425 Modernize window workarounds (#787)
* Avoid excessive setting of window properties in EnvironmentValues extensions

* Disable workaround for FB18383725 in macOS 27 or later

* Always show title bar in VM session window
2026-10-13 10:44:16 -03:00
Guilherme Rambo
bac5b9a3ca Implement key combinations and UI for keyboard/mouse toggles (#782)
* Implement key combination holds for enabling/disabling keyboard or trackpad

* Improve keyboard/trackpad connection status HUD
2026-10-05 16:41:13 -03:00
Guilherme Rambo
cbbe051d4a Make VirtualBuddyGuest requirement more prominent in VM configuration UI, add guest connection state to VM window toolbar (#781) 2026-10-05 14:44:44 -03:00
Guilherme Rambo
2a7cf4151b New virtual machine state preservation system (#780)
* Fix HostingWindowController allowing repeated requests to close while waiting for confirmation

* New virtual machine state preservation system with automatic save on close/quit and safe restoration

* Use visible directories for saved state storage for easier debugging in Finder

* Hide state restoration controls for unsupported Linux VMs

* Add app-level preference for what happens by default when attempting to close a running VM

* Use a custom sheet for VM close confirmation

* Improve VM close choice sheet

* Harden session storage against path traversal, fix race conditions in state coordination
2026-10-05 12:51:43 -03:00
Guilherme Rambo
a20d94dbc5 Implement support for managed preferences (#765)
* Implement support for managed preferences; allow disabling shared folders with managed preferences

* Implement managed preferences for USB passthrough, bridged networking, guest app, and microphone input

* Implement unified UI component for informing user about managed preference restrictions
2026-09-14 17:15:41 -03:00
Guilherme Rambo
683739a7e7 Mouse/keyboard toggles in toolbar (#757)
* Add toggles to enable/disable mouse and keyboard input to virtual machine

* Filter additional mouse events, allow cursor updates even when mouse is disabled

* Hide input controls when VM not running
2026-09-10 09:24:50 -03:00
Guilherme Rambo
fefa28fe8c Handle boot deep-link for session that's already open but shut down (#758) 2026-08-28 18:49:46 -03:00
Guilherme Rambo
7ba3212f1d Fix boot deep link not working when VM window already open (#756)
* Fix virtual machine not booting up when opening boot deep link with session window already open (#755)

* Fix virtualbuddy://library library deep link not reopening the library window after it's closed
2026-08-28 08:49:30 -03:00
Guilherme Rambo
abcdcfffee Implement initial support for USB passthrough on macOS 27 (#752)
* Implement initial support for USB passthrough on macOS 27

* Add previews to USB UI, WIP improve manual entry form

* Improve manual USB entry UI

* Auto-submit manual USB entry after submitting valid vendor/product information

* Auto-validate manual USB entry after changing
2026-08-26 13:26:27 -03:00
Guilherme Rambo
d7d739441c Fix configure option disabled state not updating correctly (#727) 2026-08-03 10:03:56 -03:00
Guilherme Rambo
580510c24c Merge main with disk resize feature 2026-07-31 14:10:28 -03:00
Guilherme Rambo
5ba0261ef6 Fix VMController memory leak caused by it being retained in SwiftUI menus 2026-07-21 12:54:42 -03:00
Guilherme Rambo
638fa72ec0 Monitor host bridge network interface and reattach when availability changes (#716) (#717)
* WIP: Fix bridge network device reattachment

* Monitor network interface availability and restore virtual machine network attachment as availability changes

* Add Network menu item with options for changing bridged network interface and reconnecting network

* Move guest actions including new network options into 'Guest' item in main menu
2026-07-21 12:35:07 -03:00
Guilherme Rambo
f216d8ec52 Disable mouse events in VM view during installation 2026-06-12 12:54:25 -03:00
Gui Rambo
8bbbab496d Fix guest Menu Bar hidden behind window title bar by disabling safe area only in background view, using transparent title bar during non-running states 2026-06-10 15:34:53 -03:00
Gui Rambo
37f459436f Add picker in virtual machine configuration that allows copying the configuration from an existing virtual machine 2026-06-10 15:00:39 -03:00
Gui Rambo
7a6673c8ec Fix warning about isolated conformance in VirtualMachineControls 2026-06-09 17:37:22 -03:00
Guilherme Rambo
e19a74866c Liquid glass adoption (#677)
* Raise deployment target to macOS 14, bump version

* Integrate Liquid Glass compatibility components

* Fix onChange(of:) deprecation warnings

* Update project settings

* Improve styling of setup and configuration UI components

* Fix fatal error in VMSavedStatesController.preview

* Tweak session UI

* Do not use prominent button style in VM configuration sheet so it matches overall setup wizard style

* Fix incorrectly sized buttons in grouped lists
2026-05-22 09:47:01 -03:00
AP Fritts
c09ece74a5 Improve MAC address handling (#674)
* Detect MAC address conflict and resolve

* Do the check on VM boot, not when loading settings

* Refactor to include auto-boot

* Improve UI to show conflicts

* Self review

* Self review

* Refactor so startup flows reads better; clarify alert text
2026-05-12 13:12:19 -03:00
Guilherme Rambo
361685147c Merge pull request #642 from insidegui/max-vm-error 2026-02-24 07:17:37 -03:00
Guilherme Rambo
ba2164f6fc Use feature support from resolved restore image in post-install VM configuration 2026-02-02 17:16:50 -03:00
Guilherme Rambo
d25d1aee1b Improve error message when maximum VM limit is reached 2026-02-02 17:04:21 -03:00
Guilherme Rambo
4178d1b11e Use document window behavior when opening VM wizard 2025-06-27 19:19:35 -03:00
Guilherme Rambo
20c25136d5 Handle different library states in library view 2025-06-27 12:05:27 -03:00
Gui Rambo
661372a1a5 Workaround full screen crash in macOS 26 2025-06-25 17:47:48 -03:00
Guilherme Rambo
1efbf62b33 Wait for guest disk image to be ready before starting up vm, alert if disk image fails to generate 2025-06-19 13:44:28 -03:00
Guilherme Rambo
b30567a0ad Delete legacy screenshotting code, use blur hash background in VM session window, use blurred thumbnail image if available 2025-06-18 16:39:53 -03:00
Guilherme Rambo
eb73ffdacf Add import VM from other apps, support for UTM 2025-06-13 13:22:35 -03:00
Guilherme Rambo
290e46d2c9 Disable save state feature 2025-06-08 14:15:22 -03:00
Guilherme Rambo
a84a27dee9 Fix warnings 2025-06-04 17:56:01 -03:00
Guilherme Rambo
951801eccd Merge main 2025-06-04 10:08:15 -03:00
Guilherme Rambo
3fe1eff788 Add defaults flag to disable VM screenshots 2025-04-01 13:51:55 -03:00
Gui Rambo
996a3d71ce Always use view method for taking VM screenshot 2025-03-07 11:22:16 -03:00
Guilherme Rambo
ec6bfd5c1e Disable screenshotter in macOS 15.4 beta 2025-03-07 11:22:10 -03:00
Guilherme Rambo
cd363c76b8 Clone storage devices when saving VM state (#76) 2025-02-26 12:33:56 -03:00
Guilherme Rambo
720dbc7468 Implement save state confirmation if VM is not in APFS volume in preparation for disk cloning support 2025-02-26 09:38:41 -03:00
Gui Rambo
22420c69b9 Merge branch 'main' into catalogv2 2024-08-29 10:58:40 -03:00
Sameer Sundresh
08389de858 Bug fix: Confirm & stop the VM when the user closes the window if it is neither idle nor stopped. 2024-08-08 15:54:02 -06:00
Guilherme Rambo
e195a81fbe DFU mode UI 2024-08-07 12:24:04 -03:00
Guilherme Rambo
23cac9969a Adds option to start VM in DFU mode (debug builds or with debug flag only) 2024-08-07 11:20:10 -03:00