Azure #
Because BurmillaOS community is small we do not publish images in Azure. However, you can still use old RancherOS image and simply upgrade to BurmillaOS
Launching RancherOS through the Azure Portal #
RancherOS has been published in Azure Marketplace, you can get it from here.
Using the new Azure Resource Management portal, click on Marketplace. Search for RancherOS. Click on Create.
Follow the steps to create a virtual machine.
In the Basics step, provide a name for the VM, use rancher as the user name and select the SSH public key option of authenticating. Add your ssh public key into the appropriate field. Select the Resource group that you want to add the VM to or create a new one. Select the location for your VM.
In the Size step, select a virtual machine that has at least 1GB of memory.
In the Settings step, you can use all the default settings to get RancherOS running.
Review your VM and buy it so that you can Create your VM.
After the VM has been provisioned, click on the VM to find the public IP address. SSH into your VM using the rancher username.
$ ssh rancher@<public_ip_of_vm> -p 22
Launching RancherOS with custom data #
Available as of RancherOS v1.5.4
Instance Metadata Service provides the ability for the VM to have access to its custom data. The binary data must be less than 64 KB and is provided to the VM in base64 encoded form. You can get more details from here
For example, you can add custom data through CLI:
# list images from marketplace
az vm image list --location westus --publisher Rancher --offer rancheros --sku os --all --output table
Architecture Offer Publisher Sku Urn Version
-------------- --------- ----------- ----- ----------------------------- ---------
x64 rancheros rancher os rancher:rancheros:os:1.5.1 1.5.1
x64 rancheros rancher os152 rancher:rancheros:os152:1.5.2 1.5.2
x64 rancheros rancher os153 rancher:rancheros:os153:1.5.3 1.5.3
x64 rancheros rancher os154 rancher:rancheros:os154:1.5.4 1.5.4
...
# accept the terms
az vm image accept-terms --urn rancher:rancheros:os154:1.5.4
# create the vm
AZURE_ROS_SSH_PUBLIC_KEY="xxxxxx"
az vm create --resource-group mygroup \
--name myvm \
--image rancher:rancheros:os154:1.5.4 \
--plan-name os152 \
--plan-product rancheros \
--plan-publisher rancher \
--custom-data ./custom_data.txt \
--admin-username rancher \
--size Standard_A1 \
--ssh-key-value "$AZURE_ROS_SSH_PUBLIC_KEY"
The custom_data.txt
can be the cloud-config format or a shell script, such as:
#cloud-config
runcmd:
- [ touch, /home/rancher/test1 ]
- echo "test" > /home/rancher/test2
#!/bin/sh
echo "aaa" > /home/rancher/aaa.txt