OpenBSD Amsterdam Logo
553 VMs deployed 🐡

Finishing touches

Known issues

There are currently a couple of known issues.

Connecting to your VM

Your VM is a clean install of OpenBSD 7.1-release + errata. You can ssh into it:

vm03$ ssh username@XXX.XXX.XXX.XXX
OpenBSD 7.1 (GENERIC) #443: Mon Apr 11 17:55:15 MDT 2022

Get the password from ~/.ssh/authorized_keys and switch to root.

vm03$ awk '{print$NF}' .ssh/authorized_keys
vm03$ su -

Add your username to /etc/doas.conf:

vm03# echo 'permit username' > /etc/doas.conf
vm03# echo 'permit nopass keepenv root as root' >> /etc/doas.conf

All errate should be applied, but you can check 7.1 errata and apply available patches.

vm03# syspatch
Relinking to create unique kernel... done; reboot to load the new kernel
Errata can be reviewed under /var/syspatch
vm03# reboot
Connection to XXX.XXX.XXX.XXX closed by remote host.

Preventing password logins to your VM with ssh. (optional)

vm03# rcctl set sshd flags -o PasswordAuthentication=no
vm03# rcctl restart sshd

Connect to the console

To get connected to the console you need to have access to the host your VM is running on. The same username and public SSH key, as provided for the VM, are used to create a local user on the host.

All SSH fingerprints (SSHFP) records of all the hosts are added to DNS. You can verify the SSH fingerprint by adding “-o VerifyHostKeyDNS=yes” to the ssh command.

$ ssh -o VerifyHostKeyDNS=yes
The authenticity of host '[]' can't be established.
ED25519 key fingerprint is SHA256:Wi1k5YbFY+o0y4ygaRmsI9+S/0k5FB3OvgKCvtaHS/k.
Matching host key fingerprint found in DNS.
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes

You can also use mosh to connect to the host. We added a short write-up on how to use mosh on your own VM.

When this is done you can use vmctl(8) to manage your VM.
The options you have are:

server10$ vmctl console vm
server10$ vmctl start [-c] id
server10$ vmctl stop [-fw] id

-f Forcefully stop the VM without attempting a graceful shutdown.
-w Wait until the VM has been terminated.
-c Automatically connect to the VM console.

Note: id can also be your VM name.