Troubleshooting

Common problems and fixes. If yours isn't here, please open an issue.

Where to look#

What Where
A machine's details swiftvm info <machine>
A Linux guest's console output logs/console.log in the machine's package
Guest tools in a Linux guest systemctl status swiftvm-agent in the guest
What a setup script printed /var/log/swiftvm-setup.log in the guest
Guest tools in a macOS guest sudo launchctl print system/com.swiftvm.agent in the guest
Guest tools in a Windows guest Get-Service SwiftVMAgent in the guest's PowerShell

Messages about a machine show in its window. When the window is closed, they are at the top of the panel, and the menu bar item turns into a warning sign until you have read them.

swiftvm says SwiftVM isn't running#

The command drives the running app. Open SwiftVM first.

A machine is listed as Not Available#

The machine is on a disk that isn't connected, or its package can't be read. Point at it in the panel to see which, and where SwiftVM expects it.

  • Connect the disk. The machine is back in the list by itself.
  • If it says that this Mac doesn't let SwiftVM look at it, allow SwiftVM under System Settings → Privacy & Security → Files and Folders, then open the panel again.
  • If you moved the package to another disk by hand, open it from the Finder.
  • Remove from List, in the machine's …, takes it out of SwiftVM without touching its files.

A macOS guest won't shut down#

Without the guest tools, macOS asks on its own screen before it shuts down. Confirm in the machine's window, or install the guest tools to shut down without the question. Force Stop always works, but the guest loses what it hasn't saved.

A desktop didn't install#

A desktop is installed by a setup script. SwiftVM shows the script and step that failed, often during a download.

  • Read what the script printed: /var/log/swiftvm-setup.log in the guest.
  • Run it again: sudo systemctl start swiftvm-setup in the guest. Scripts that were through before it are not run again.
  • A machine that is still at a text login after a long while may have no internet. Check with swiftvm info <machine>, which shows the step the script is at.

A suspended machine won't resume#

  • Your Mac is locked. macOS won't read saved memory while the screen is locked. Unlock and start the machine again.
  • A disk image is gone. The machine expects the images it was suspended with. Put the image back, or choose Discard Saved State, eject the missing image in the machine's settings, and start fresh.
  • An older Debian 13 machine. Machines made from Debian's genericcloud image can't resume. In the guest, run sudo apt install linux-image-arm64, remove linux-image-cloud-arm64, and restart. New machines are fine.

ssh <machine> doesn't work#

  • Plain ssh needs Add machines to ~/.ssh/config turned on in Settings. swiftvm ssh <machine> works without it.
  • The machine must be running and have an address. Check with swiftvm ip <machine>.
  • A guest installed from a disc may have no SSH server or no key of yours. Install one in the guest, and set User in the SSH pane of the machine's settings.
  • If only a Linux guest's network is down, try swiftvm ssh <machine> --vsock.

A machine has an unexpected address#

A machine created while others were running gets a temporary address. It takes its own fixed address once every machine has been stopped and one is started again.

The virtual network couldn't be created#

Another app may be using the same address range, or SwiftVM was force-quit while a machine was running, which leaves the range blocked for a while. SwiftVM moves to the next free range by itself; the machines get new addresses.

Shared folders don't show up in a Linux guest#

Guests that SwiftVM didn't set up don't mount shared folders by themselves. Install the guest tools, or mount them by hand.

The clipboard isn't shared#

  • Check Share Clipboard in the machine's settings.
  • macOS and Windows guests need the guest tools.
  • A Linux guest needs a desktop with spice-vdagent running. Shut down the guest before changing Share Clipboard.
  • Only text is shared. The macOS and Windows guest tools limit it to about 250 kB.

swiftvm exec or swiftvm control doesn't work#

  • The guest tools don't answer. Commands and file copies require the guest tools. swiftvm control works without them, from the screen's pixels, and says so in its look. swiftvm wait <machine> waits for them. Follow the installation steps for your guest.
  • The guest tools are too old. Install them again to update them.
  • Automation is turned off. Turn on Allow Automation in the machine's settings.
  • A macOS guest doesn't tell what is on its screen. Run swiftvm control <machine> allow --password <password> to grant permission.
  • A command hangs in a macOS guest. macOS may be asking whether it may read a protected folder. swiftvm control <machine> look --all shows the question, and swiftvm control <machine> click Allow answers it.
  • Nobody is logged in. What is on the screen by its parts belongs to whoever is logged in there. Until then, swiftvm control reads it from the pixels.

The USB button is missing#

Physical USB devices work with macOS and Linux guests, and need a build with a provisioning profile. Releases have one; builds you make yourself may not. See Building.

A USB device isn't listed#

macOS decides which app uses a device. Open Virtual Machine Accessories in the menu bar and set the device to SwiftVM. See USB devices.

A snapshot can't be taken#

A running machine can't be snapshotted while it has a USB device or a writable disk image attached, or while your Mac is locked. Detach or eject it, or shut the machine down first. A suspended machine also cannot be snapshotted with a writable disk image attached.

The guest doesn't see its bigger disk#

Growing a disk only makes the hardware bigger. See what the guest has to do.

The guest's clock is wrong after resuming#

The guest tools synchronize the clock after resuming and reconnecting. Without them, the guest relies on its own time synchronization, which may need a network connection.

A download started over#

A download can resume while its partial file and resume data are available. If macOS removes the temporary file, or the server no longer accepts the resume request, the download starts over.

Reporting a bug#

Include your macOS version, the SwiftVM version, the guest system, steps to reproduce, and the output of swiftvm info <machine>. For Linux guests, add the relevant lines of logs/console.log.

Edit this page on GitHub