HowTo: deploy a FreeBSD native cloud VM to Microsoft Azure

This tutorial covers the steps necessary to deploy a FreeBSD root VM to Microsoft Azure cloud (https://azure.microsoft.com).

Prerequisites:
- valid Microsoft account
- willingness to spend money in a pay-per-use model

1. You need to login/register to https://portal.azure.com with your Microsoft account.

2. Considering the hints following in this paragraph, create a VM within the possible specs. Make sure to choose a proper amount of vCPU's etcetera for your scenario.
For the OS image choose a FreeBSD image (provided by the FreeBSD Foundation) with your preferred version ( 13.2-RELEASE is known working).
In case you cannot select your desired FreeBSD image during VM creation, please try to find one in Azure marketplace (https://azuremarketplace.microsoft.com, e.g. https://azuremarketplace.microsoft....hefreebsdfoundation.freebsd-13_2?tab=Overview) and start from there.
Make sure to open at least port 22 (for SSH access) during creation.
Currently only password-based access via a non-root user (how to obtain root will be covered later, since PermitRootLogin via SSH defaults to No) is known working.

3. Once the VM has been created wait a bit for it to boot and then log in via SSH using your previously configured user.

4. Obtain root by using sudo passwd followed by su -.
Note: if su fails, resort to sudo csh

Please let me know if you experience problems, I will do my best to help.
 
Update: As alternative, AWS provides instances that allow 1 login with the generated RSA key.
You have to setup password based SSH access immediately.
 
Back
Top