Skip to content
86% off$349 $48.86code BF2026

Docs

Hermitbox docs29 pages

Hermitbox Linux: Rosetta, SSH, VS Code, console and KVM

Set up Rosetta for x86-64 programs in a Hermitbox Linux VM, find its IP, open SSH in Terminal, iTerm or VS Code, and use the serial console and nested KVM.

Updated 7 min read

On this page

This page covers what you do after a Linux VM boots in Hermitbox. You can run Intel (x86-64) Linux programs with Rosetta, find the VM's IP address, connect over SSH from Terminal, iTerm or VS Code, read the serial console, and turn on nested virtualization.

What each feature needs

FeatureRequirement
Rosetta for Intel programsApple silicon Mac with Rosetta for Linux installed; a one-time setup inside Linux (automatic for Ready in a Minute VMs)
IP address and SSHA running VM; an SSH server inside Linux
Open in VS CodeVS Code with its Remote-SSH extension
Serial consoleA serial console attached to the VM
Nested virtualization (KVM)A macOS 15 or later host on hardware that supports it

All of these controls are in the inspector on the right of the library window. If the inspector is hidden, choose View ▸ Show Inspector or press ⌃⌘I (Control-Command-I).

Run x86-64 Linux programs with Rosetta

Rosetta lets an arm64 Linux VM run Intel (x86-64) Linux binaries. It's on by default for new Linux VMs if Rosetta for Linux is already installed on the Mac.

Turn Rosetta on

  1. Select the VM in the library.
  2. In the inspector, open the Linux section.
  3. Turn on Rosetta for Intel programs.
  4. Shut down the VM and start it again. The change takes effect at the next start.

You can also turn it on when you create the VM. In the New VM assistant, on Name and Size, open Advanced and tick Run Intel (x86-64) Linux programs with Rosetta.

If the switch is disabled and the inspector says "Rosetta for Linux isn't installed on this Mac.", click Install Rosetta… to open Apple's installer. The switch becomes available once it finishes.

Set it up inside Linux

The switch only gives the VM access to Rosetta. Linux still has to mount it and register it as the handler for x86-64 programs.

  1. In the inspector's Linux section, open the Set Up in Linux disclosure.
  2. Pick your distribution in the Distribution menu: Debian/Ubuntu, Fedora or Other.
  3. Copy each step in order and run it in a Linux terminal: Mount Rosetta, Register it for x86-64 programs, then Mount it at every start.
  4. Run x86-64 programs as usual.

The last step keeps the setup in place after restarts. Without it, you'd repeat the mount every time the VM starts.

Hermitbox inspector Linux section with Rosetta for Intel programs on and Set Up in Linux open with copyable commands
Rosetta for Intel programs, with the setup commands for Linux.

Ready in a Minute VMs are set up automatically when Rosetta is on, so you can skip the Linux steps. See Linux ready in a minute.

Rosetta and Suspend

On some macOS versions, a VM with the Rosetta device can't be suspended. Suspend is then unavailable, and its tooltip says "Turn off Rosetta to suspend this VM on this version of macOS." Shut the VM down instead, or turn Rosetta off if you don't need it.

Find a Linux VM's IP address

Every VM is on Apple's NAT network ("Shared with this Mac (NAT)"). The VM reaches the internet, and your Mac reaches the VM directly at its IP address, so you don't need port forwarding.

Hermitbox inspector Connect section for a running Ubuntu Server VM with IP Address 192.168.64.15, SSH User and Open SSH
The IP address and SSH user of a running Linux VM.

To get the address:

  1. Start the VM.
  2. In the inspector, find the Connect section. It's always shown for Linux VMs.
  3. Read the IP Address row, or click Copy IP Address.

The row says "Waiting for an address…" until Linux has picked one up. Hermitbox reads the address from macOS's DHCP leases for the NAT network.

Other ways to get it:

  • Menu bar: click the Hermitbox icon, choose the VM, then Copy IP Address (running VMs only).
  • Command line: hermitbox ip NAME prints the address.
  • Shortcuts: the Get IP Address of Virtual Machine action.

The command-line tool must be installed first, from Settings ▸ Advanced ▸ Command line tool. See Automate Hermitbox for the CLI and Shortcuts.

Connect over SSH from Terminal, iTerm or VS Code

Make sure Linux runs an SSH server

  • Ready in a Minute VMs start with SSH ready. The user you set on Name and Size gets sudo, and Allow SSH with this Mac's key(s) adds your public keys from ~/.ssh.
  • VMs installed from an ISO need an SSH server inside Linux, and desktop installs often don't include one. On Debian or Ubuntu, install it with:
bash
sudo apt install openssh-server

This installs the OpenSSH server in the VM. Remove it later with sudo apt remove openssh-server.

Set the SSH user

The SSH User field in Connect defaults to your Mac's user name and is remembered per VM. Change it if your Linux account has a different name. It accepts letters, digits, ".", "_" and "-".

Open a session

  1. In the inspector, go to Connect.
  2. Click the Open SSH menu.
  3. Choose one:
    • Open in Terminal opens an SSH session in Terminal.
    • Open in iTerm does the same in iTerm. It's listed only when iTerm is installed.
    • Open in VS Code opens a Remote-SSH link, so VS Code connects to the VM as a remote host. This needs VS Code's Remote-SSH extension.
    • Copy SSH Command copies the command so you can paste it anywhere.

When a session uses a key, Hermitbox launches it with a one-time .command script in the temporary folder. The script deletes itself after it runs.

With the command-line tool installed, hermitbox ssh connects by VM name, so you don't need the IP:

bash
hermitbox ssh dev@ubuntu

This connects as user dev to the VM whose name starts with "ubuntu" (a unique prefix is enough). You can also use -l USER, and pass extra ssh options or a remote command after --.

Hermitbox doesn't store SSH passwords and doesn't forward your SSH agent into the VM. Authentication is left to ssh.

Use the serial console

The serial console shows boot messages and a login prompt without a display. Use it for server VMs with no desktop, or when the screen stays dark during boot.

Hermitbox Console window for Ubuntu Server 26.04 showing the Linux boot log, cloud-init and a login prompt
The serial console shows boot messages and a login prompt.
  1. Select the Linux VM.
  2. Click Console in the inspector, or choose Machine ▸ Show Console.
  3. If the window shows No Serial Console, click Attach Serial Console, then restart the VM.

If you see the login prompt but not the boot log, add console=hvc0 to the Linux kernel command line. On GRUB-based distributions this usually goes in GRUB_CMDLINE_LINUX in /etc/default/grub, after which you regenerate the GRUB config the way your distribution documents.

Console controls

ActionHow
Type into LinuxClick in the window and type
Paste into Linux⌘V (Command-V)
Find textFind in the toolbar, or ⌘F (Command-F)
Find next / previous⌘G (Command-G) / ⇧⌘G (Shift-Command-G)
Clear the windowClear
Save the outputSave Log… saves a file named "NAME Console.log"

The console keeps up to 1 million lines of scrollback.

A VM with a serial console attached can't be suspended. Suspend's tooltip says "Detach the serial console to suspend this VM." Shut the VM down instead, or detach the console if you no longer need it.

What the Hermitbox Agent will do (not yet released)

The Hermitbox Agent is a small helper that runs inside Linux. It is not in Hermitbox 1.0.0, the current release. We'll add setup steps here once it ships.

What it's designed to do:

  • Report the VM's IP address to Hermitbox.
  • Set the Linux clock after you resume a suspended VM.
  • Shut Linux down cleanly when you choose Shut Down.
  • Remount shared folders.

In 1.0.0, Hermitbox gets the IP address from macOS's DHCP leases, and Shut Down asks Linux to power off with a standard ACPI request.

Use nested virtualization (KVM) in Linux

Nested virtualization lets Linux run its own VMs with KVM, for example to test a hypervisor or run tools that need /dev/kvm.

The Nested Virtualization switch appears in the inspector only when all of these are true:

  • The VM is a Linux VM.
  • Your Mac runs macOS 15 or later.
  • Your Mac's hardware supports it (M3 or later).

If any of these is missing, the switch isn't shown.

To turn it on:

  1. Shut down the VM. The switch can't be changed while the VM runs.
  2. In the inspector, turn on Nested Virtualization.
  3. Start the VM. The change takes effect at the next start.

If the VM is suspended, Hermitbox asks before turning it on, because the saved state has to be discarded and unsaved work in the VM is lost. Shut down first to avoid that.

To check that it worked, run this inside Linux:

bash
ls -l /dev/kvm

This lists the KVM device. If the file exists, KVM is available.

Troubleshooting

The Rosetta switch is disabled. Rosetta for Linux isn't installed on the Mac. Click Install Rosetta… in the inspector.

x86-64 programs still won't run with Rosetta on. Either the VM hasn't restarted since you turned it on, or the Linux side isn't set up. Restart the VM, then run the steps under Set Up in Linux, including Mount it at every start.

The IP address stays on "Waiting for an address…". Linux hasn't picked up an address yet, or its network isn't set to use DHCP. Wait a few seconds after boot and check again. The CLI prints "No IP address yet." in the same situation.

SSH is refused or times out. For ISO installs, check that an SSH server is installed and running in Linux. Also check that SSH User matches your Linux account name.

Open in iTerm is missing. It only appears when iTerm is installed on the Mac.

Suspend is unavailable. An attached serial console, an inserted CD/DVD, or (on some macOS versions) the Rosetta or Linux clipboard device can block Suspend. The tooltip on Suspend says which one. Shut down instead, or remove that device.

The Nested Virtualization switch is missing. The VM must be Linux, and your Mac needs macOS 15 or later on hardware that supports it.

For every error message, see Troubleshooting.

Every app.
One purchase.