RancherOS with xhyve on MacOS - mofm/xhyve GitHub Wiki

  1. Download latest vmlinuz on Rancheros GitHub from here

  2. Download latest initrd on Rancheros Github from here

  3. Download rancheros.iso from here

  4. Create disk image for install to disk:

$ mkfile 5g rancheros.img

  1. run rancheros_install.sh script and boot rancheros:

$ ./rancheros_install.sh

  1. login with user rancher

  2. create cloud-config.yml file and add ssh your public key:

$ vi cloud-config.yml

`#cloud-config`

`ssh_authorized_keys:`

`  - ssh-rsa AAA...`
  1. start rancheros installing:

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

  2. copy installed vmlinuz and initrd to host directory:

$ mount /dev/vda1 /mnt/

$ scp vmlinuz-v0.7.1-rancheros [email protected]:/Users/$USER/$WORKING_DIRECTORY

$ scp initrd-v0.7.1-rancheros [email protected]:/Users/$USER/$WORKING_DIRECTORY

and finally

  1. boot rancheros from disk

$ ./rancheros_boot.sh