Virtual Machines
A virtual machine is a computer that runs in a window on your Mac. SwiftVM supports macOS, Linux, and Windows 11 for Arm.
The panel#
Click SwiftVM's item in the menu bar to open the panel. It lists every machine, running ones first, with what each is doing and where to reach it.
| In the panel | What it does |
|---|---|
| The button on a machine | Start, resume, or suspend it |
| Open Window | Show the machine's display |
| … on a machine, or right-click | Everything else: power, settings, snapshots, SSH, delete |
| + | New virtual machine (Cmd+N) |
| … at the top | Sort by date or name, show one kind of system, templates, check for updates |
| Settings… | App settings (Cmd+,) |
SwiftVM is in the Dock only while one of its windows is open.
Creating#
Choose New Virtual Machine and select a Type. Use Advanced to adjust hardware, storage location, and account settings. You can also drop an installer disc (ISO), a macOS restore image (IPSW), or an existing machine package onto the window.
- Linux guests: from a ready-made image, or from an installer disc.
- macOS guests: the latest macOS, or your own restore image.
- Windows guests: Windows 11 for Arm, downloaded or from an ISO.
- Templates: a machine you set up before and saved.
SwiftVM recommends processors, memory, and disk size for your Mac and guest. You can change them before creating the machine. On APFS, disks use space as the guest writes data.
Location, under Hardware, is the folder the machine is kept in. See Where machines are kept.
Power#
| Action | What it does |
|---|---|
| Start | Boots the machine |
| Shut Down | Asks the guest to shut down cleanly |
| Restart | Shuts down, then starts again |
| Suspend | Saves the machine's memory to disk and frees your Mac's. Resume continues where it was |
| Pause | Freezes the machine in memory. It still uses your Mac's memory |
| Force Stop | Cuts the power. The guest loses what it hasn't saved |
| Discard Saved State | Throws away a suspended machine's memory, to start it fresh |
A macOS guest without the guest tools asks on its screen before it shuts down. See macOS guests.
Host battery#
On a MacBook, Windows 11 and Linux guests running on QEMU show the Mac's
battery percentage and charging state in their own battery indicator, also
in full screen. Linux uses QEMU when created with Graphics Acceleration
(swiftvm create … --gpu). No guest tools are needed. Changes are passed on
within a few seconds of macOS reporting them.
A plugged-in Mac that has paused charging is reported as plugged in, not charging. Macs without an internal battery do not report one; UPS and accessory batteries are not shared. The guest's battery-saving and low-battery actions follow its own power settings. Battery health and time remaining are not passed through.
macOS guests and Linux guests on Apple's Virtualization framework do not support this: that framework has no public virtual battery device. A custom QEMU build needs SwiftVM's battery patch. If a machine was suspended with an older version, shut it down and start it again to discover the battery.
The machine's window#
The window shows the guest's display, which resizes with the window. Its toolbar has:
- Power: the actions above, and everything else in the machine's menu.
- Network: the cable, the machine's addresses, and port forwarding.
- Shared Folders: folders the guest can use.
- Disc and Disk Images: images plugged in as USB drives.
- USB Devices: your Mac's USB devices.
- Sound and Microphone.
- Settings: the machine's settings.
Shortcuts such as Cmd+Tab and Cmd+Space go to the guest while its window
has focus. Turn off Send System Shortcuts to the Guest in the machine's
settings to keep them for your Mac.
Keyboard shortcuts#
These work while one of SwiftVM's windows is in front.
| Action | Shortcut |
|---|---|
| New virtual machine | Cmd+N |
| Settings | Cmd+, |
| Start or resume | Cmd+R |
| Suspend | Cmd+Opt+S |
| Take snapshot | Cmd+Shift+S |
| Duplicate | Cmd+D |
| Copy SSH command | Cmd+Shift+C |
| Open in Terminal | Cmd+Shift+T |
Duplicating#
Duplicate copies a machine that is shut down. The copy is a machine of its own, with a new name, address, and SSH name.
- On APFS, the copy shares unchanged disk blocks with the original, making duplication fast and saving space.
- Forwarded ports, writable disk images, and USB devices the original takes by itself stay with the original. Snapshots aren't copied.
To make machine after machine from one that is set up, save it as a template: the template stays as it was, whatever happens to the machine afterwards.
Where machines are kept#
A machine is one package on disk, and you choose where: on your Mac, or on an external disk.
| To | Do this |
|---|---|
| Create a machine somewhere else | Advanced → Hardware → Location → Choose… in the New Virtual Machine form, or swiftvm create … --location <folder> |
| Move a machine | Location → Move… in the machine's settings, or swiftvm move <machine> <folder> |
| Change where new machines go | Settings → Storage → New Virtual Machines → Change |
Moving needs the machine shut down.
- On the same disk, a move doesn't need to copy the machine's files.
- To another disk the machine is copied, and the original is removed once the copy is complete and written to that disk. The panel shows how far it is. Cancel in the machine's settings, or quitting SwiftVM, calls it off and leaves the machine where it was.
- The disk still only takes up what the guest has written.
External disks#
- A machine whose disk isn't connected stays in the panel, under Not Available. It is back as soon as you connect the disk.
- A duplicate is made next to the original and shares disk space on APFS.
- A package you move in the Finder is found again, as long as it stays on the same disk. Moved to another disk by hand, open it from the Finder to add it again.
- Remove from List, in the … of a machine that isn't available, takes it out of SwiftVM. Its files stay where they are.
- Disks that aren't APFS work, but duplicates, templates, and snapshots are full copies there, and the disk of a Quick Create Linux machine takes up its whole size.
Deleting#
Delete… moves a machine that is shut down, with its disks and snapshots, to the Trash.
Deleting or trashing a machine's .swiftvm package in the Finder also removes
it from SwiftVM automatically, without restarting the app. A machine that is
running or busy stays listed until it stops or finishes its work. Disconnecting
an external disk does not delete its machines from the list.
Delete All Virtual Machines…, in the … at the top of the menu bar panel, deletes every machine that is shut down at once, after asking. Machines that are running or busy stay as they are.
To skip the Trash, turn on Delete virtual machines immediately in
Settings. Deleted machines are then removed for good, which frees their space
right away. This also applies to swiftvm delete.
Quitting#
Quitting SwiftVM while machines are running asks what to do with them:
- Suspend and Quit saves their state. They continue where they were the next time you start them. If saving fails, SwiftVM force-stops that machine.
- Shut Down and Quit turns them off. Machines without the guest tools are stopped at once; guests that do not finish shutting down are force-stopped after a timeout. Force-stopped machines lose unsaved work.
Quitting while a machine is being created cancels it. The download can resume the next time you create that system, while its partial file is still available.