Skip to content

Instantly share code, notes, and snippets.

@dbrosy
Last active April 22, 2019 23:53
Show Gist options
  • Save dbrosy/bb34dde5906e25b35f7b04ff86070b8c to your computer and use it in GitHub Desktop.
Save dbrosy/bb34dde5906e25b35f7b04ff86070b8c to your computer and use it in GitHub Desktop.

Installing RancherOS on VMware Workstation

Requirements

Component Setting
Guest OS Other 4.x kernal 64-bit
Storage 20GB
CPU 2
Memory 2GB
Remove USB, Printer, Sound Card

Set password

sudo /bin/bash
passwd rancher

create cloud-config.yml


#cloud-config

hostname: rancher

rancher:
  console: ubuntu
  network:
    interfaces:
      eth*:
       dhcp: false
      eth0:
       address: 192.168.113.201/24
       gateway: 192.168.113.2
    dns:
     nameservers:
      - 1.1.1.1

ssh_authorized_keys:
  - ssh-rsa AAA...

replace above "ssh-rsa AAA..." with own key

Install to hard disk

sudo ros install -c cloud-config.yml -d /dev/sda

Useful commands

Switch Console
sudo ros console switch ubuntu
Show RancherOS Version
sudo ros os version
List RancherOS Versions
sudo ros os list
Upgrade RancherOS
sudo ros os upgrade
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment