Commit Graph

69 Commits

Author SHA1 Message Date
Guilherme Rambo
8534c995fe Dedicated security settings tab, tunnel approval controls (#828) 2026-11-26 12:46:34 -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
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
9af56efdf1 Guest metadata service & UI (#802)
* Add new guest system information service to collect up-to-date details about the guest that can be displayed offline in the host

* Tweak get info wording

* Update agents

* Add preview library item with guest system info

* Improve VM metadata overlays in library view

* Xcode update

* Improve VM get info UI
2026-11-03 12:51: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
90a7b0c0df Do not create communication channels for clipboard sharing when disabled (#779) 2026-10-02 18:47:36 -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
e686949edc New socket-based host<>guest communication transport (#763)
* New host<>guest transport/protocol implementation

* Implemented minimal legacy guest protocol to maintain clipboard functionality for guests that can't run the latest VirtualBuddyGuest app

* Fix missing dependency

* Change VMBridge Swift package to remote

* Disable VirtualBuddyGuest clipboard sharing support on legacy OSes, leave macOS 13 support for shared folder mount
2026-09-14 14:16:07 -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
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
Gui Rambo
d0d575b863 Move boot time updates to VMController, display appropriate message in provisioning configuration when context is forbidden 2026-06-10 15:25:36 -03:00
Gui Rambo
c0db084635 Keep track of firstBootDate and lastBootDate for non-recovery boots 2026-06-10 12:28:01 -03:00
Gui Rambo
4d8e9d7697 Materialize provisioning start options in VMInstance 2026-06-09 18:17:43 -03:00
Guilherme Rambo
4e51770a5a Confirm before quitting app if there are VMs booted 2025-06-24 12:25:03 -03:00
Guilherme Rambo
cfa5d2e7d7 Implement new desktop picture service to display desktop picture from guest as thumbnail 2025-06-18 18:37:39 -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
951801eccd Merge main 2025-06-04 10:08:15 -03:00
Gui Rambo
80e0eb27e0 Use latest screenshot from VM model when taking snapshot on macOS 15.4+ 2025-03-07 11:22:33 -03:00
Guilherme Rambo
53c4ec0c0d Migrate legacy save state when attempting to restore in new version 2025-02-26 12:51:15 -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
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
Guilherme Rambo
8ea2422edf Fixed a bunch of Swift 6 warnings 2024-08-01 12:50:50 -03:00
Guilherme Rambo
45bd6c600f Merged main 2024-07-29 13:34:16 -03:00
Alex Yakubchyk
d5aff4b943 Change snapshot name 2024-07-20 00:58:03 +03:00
Gui Rambo
29cfe93672 USB controller 2024-06-24 17:06:25 -03:00
Guilherme Rambo
49ff562ed3 Storing saved state package as part of the session options, bound picker selection to VMController 2024-03-29 14:21:38 -03:00
Guilherme Rambo
a20f78944b WIP: Saved state selection 2024-03-28 17:18:18 -03:00
Guilherme Rambo
a27923283f New progress UI for state save/restore 2024-03-26 20:18:41 -03:00
Guilherme Rambo
fad4e8e2e0 Refactored saved state package management into VBSavedStatePackage, storing screenshot and thumbnail with each state 2024-03-26 14:42:40 -03:00
Guilherme Rambo
6191fb8c99 Implemented ObjC-based VBDebugUtil for easy debug probing in dev builds 2024-03-26 10:50:41 -03:00
Guilherme Rambo
498f43b02e Improved logging in VMInstance/VMController, validating saved state before restoring it 2024-03-26 10:29:51 -03:00
Guilherme Rambo
16ad9427e3 Using VMLibraryController to manage saved state storage 2024-03-26 09:26:50 -03:00
Guilherme Rambo
3ae38386c4 Basic save/restore state 2024-03-25 20:07:58 -03:00
Guilherme Rambo
35325d03c2 Raise deployment target to macOS 13 2024-03-22 11:19:11 -03:00
James
bc230615c5 Do not treat VM as stopped after calling requestStop 2024-03-17 19:00:37 +11:00
Gui Rambo
c887fdce7a Improved guest<>host channel management, fixed several leaks 2023-10-25 12:58:05 -03:00
Gui Rambo
ed27eadff9 Moved spice agent requirement into VirtualMachineConfigurationHelper protocol (#242) 2023-10-23 17:20:10 -03:00
Felix Ritter
08dafb2c97 Enable copy-and-paste support between the host and a Linux guest 2023-10-05 13:44:36 +02:00
Gui Rambo
e75c53dc2b Disabled vestigial features that are not currently supported 2023-09-28 11:24:26 -03:00
Patrick Linnane
4cc1ab0abe Fix various typos 2023-07-23 08:41:11 -07:00
Gui Rambo
a66be818fe Using Mac keyboard device for Mac VMs, added entropy device 2023-06-29 08:52:25 -03:00
Gui Rambo
2cf1d88f3d Merged Sonoma branch 2023-06-28 23:25:03 -03:00
Gui Rambo
1a8e25994c Use VM layer for screenshotting instead of relying on SPI 2023-06-07 10:47:22 -03:00
Gui Rambo
556b63e5af Darwin notifications service, peer ping/pong 2023-03-08 16:14:22 -03:00
Gui Rambo
e945fc5bf2 Streaming typed messages with new serial protocol 2023-03-08 14:09:44 -03:00