Request an invite
Docs menu

Create a FreeBSD machine

FreeBSD 15.1 runs without a guest agent, so you reach it with ssh and its window.

Create the machine

  1. Choose File > New Machine.
  2. Select FreeBSD 15.1, then click Continue.
  3. Enter a name. Your public keys from ~/.ssh are already selected under Public Keys.
  4. Click Create, then start the machine.

To create and start it in Terminal:

sh
osmates vm create bsd --image freebsd-15.1 --ssh-key ~/.ssh/id_ed25519.pub
osmates vm start bsd

The first machine downloads the 595 MB image and checks FreeBSD's signed checksums. The first start upgrades FreeBSD's base packages when it's online, and restarts once if any changed.

Sign in

The machine has an account with your Mac's user name and your SSH keys, and no password. Add --user at creation for another name.

  1. Find the address on the bound to line of the console log:

    sh
    osmates vm logs bsd | grep 'bound to'
    
  2. Run ssh with your account and that address.

ssh doesn't accept root. Your account is in the wheel group, so su makes you root without a password. At the console in the machine's window, root signs in without a password, as in FreeBSD's image.

Grow the disk

FreeBSD doesn't grow its file system when the disk grows. After the machine starts with its bigger disk, run this as root:

sh
service growfs onestart

Limits

FreeBSD runs on the OSMates engine. Sound, snapshots, suspend, and clones work as on other machines. Without a guest agent, these don't:

  • osmates vm exec, osmates vm copy, and the clipboard
  • osmates ssh
  • Shared folders and port forwards
  • Language, region, and keyboard settings. The machine uses the US layout and UTC.

A clone keeps its source's host name and SSH host keys. After a resume or a revert to a snapshot with memory, the clock shows the saved time. To set it, run service ntpdate onestart as root.

Report a problem with this page