From db096d6e76c33c9cc9f5081be2d634b40e7cbfd0 Mon Sep 17 00:00:00 2001 From: Sven Dowideit Date: Thu, 27 Apr 2017 14:06:44 -0700 Subject: [PATCH 1/4] DigitalOcean now has a rancheros image - show how to use it Signed-off-by: Sven Dowideit --- docs/_includes/os-sidebar.html | 3 ++- docs/os/running-rancheros/cloud/do/index.md | 14 +++++++++++++- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/docs/_includes/os-sidebar.html b/docs/_includes/os-sidebar.html index db88f0f5..982c9ad6 100644 --- a/docs/_includes/os-sidebar.html +++ b/docs/_includes/os-sidebar.html @@ -17,8 +17,9 @@
  • diff --git a/docs/os/running-rancheros/cloud/do/index.md b/docs/os/running-rancheros/cloud/do/index.md index be1a72d9..ac35a7b8 100644 --- a/docs/os/running-rancheros/cloud/do/index.md +++ b/docs/os/running-rancheros/cloud/do/index.md @@ -7,4 +7,16 @@ layout: os-default ## Running RancherOS on DigitalOcean --- -Running RancherOS on DigitalOcean is not yet supported. +Running RancherOS on DigitalOcean is not yet supported, but there is a `rancheros` image now available from the commandline tool, so you can run: + +``` +$ doctl.exe compute droplet create --image rancheros --region sfo1 --size 2gb --ssh-keys 0a:db:77:92:03:b5:b2:94:96:d0:92:6a:e1:da:cd:28 myrancherosvm +ID Name Public IPv4 Private IPv4 Public IPv6 Memory VCPUs Disk Region Image Status Tags +47145723 myrancherosvm 2048 2 40 sfo1 RacherOS v1.0.1-rc [UNSUPPORTED/BETA] new + +$ doctl.exe compute droplet list +47145723 myrancherosvm 107.170.203.111 10.134.26.83 2604:A880:0001:0020:0000:0000:2750:0001 2048 2 40 sfo1 RacherOS v1.0.1-rc [UNSUPPORTED/BETA] active + +ssh -i ~/.ssh/Sven.pem rancher@107.170.203.111 +``` + From cdc3a189ad01fcf68ff7f99e5a059b7f412dec79 Mon Sep 17 00:00:00 2001 From: Sven Dowideit Date: Thu, 27 Apr 2017 14:33:07 -0700 Subject: [PATCH 2/4] use the non-github files, they're actually easier to update Signed-off-by: Sven Dowideit --- scripts/hosting/rancheros.ipxe | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/hosting/rancheros.ipxe b/scripts/hosting/rancheros.ipxe index 521544fc..b4da73a2 100644 --- a/scripts/hosting/rancheros.ipxe +++ b/scripts/hosting/rancheros.ipxe @@ -1,6 +1,6 @@ #!ipxe dhcp -set base-url https://github.com/rancher/os/releases/download/latest +set base-url https://releases.rancher.com/os/latest kernel ${base-url}/vmlinuz printk.devkmsg=on rancher.state.dev=LABEL=RANCHER_STATE rancher.state.wait console=tty0 rancher.state.mdadm_scan console=ttyS1,115200n8 rancher.autologin=ttyS1 rancher.network.interfaces.eth*.dhcp=true initrd ${base-url}/initrd boot From 73f12a900416c503a30f30a406fd422097a45882 Mon Sep 17 00:00:00 2001 From: Sven Dowideit Date: Thu, 27 Apr 2017 14:51:06 -0700 Subject: [PATCH 3/4] Add the packet datasource, and make the repo rancheros.ipxe be generic, so we can use it for many different systems Signed-off-by: Sven Dowideit --- docs/os/running-rancheros/server/pxe/index.md | 8 ++++++-- scripts/hosting/rancheros.ipxe | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/docs/os/running-rancheros/server/pxe/index.md b/docs/os/running-rancheros/server/pxe/index.md index d5670e9f..89b3bd05 100644 --- a/docs/os/running-rancheros/server/pxe/index.md +++ b/docs/os/running-rancheros/server/pxe/index.md @@ -48,18 +48,22 @@ When this service is run, the `EXTRA_CMDLINE` will be set. ### cloud-init Datasources -Valid [datasources](https://github.com/rancher/os/blob/3338c4ac63597940bcde7e6005f1cc09287062a2/cmd/cloudinit/cloudinit.go#L378) for RancherOS. +Valid cloud-init datasources for RancherOS. | type | default | |---|---| | ec2 | DefaultAddress | | file | path | -| url | url | | cmdline | | | configdrive | | | digitalocean | DefaultAddress | +| ec2 | DefaultAddress | +| file | path | | gce | | +| packet | DefaultAddress | +| url | url | ### Cloud-Config When booting via iPXE, RancherOS can be configured using a [cloud-config file]({{site.baseurl}}/os/configuration/#cloud-config). + diff --git a/scripts/hosting/rancheros.ipxe b/scripts/hosting/rancheros.ipxe index b4da73a2..5a2405ce 100644 --- a/scripts/hosting/rancheros.ipxe +++ b/scripts/hosting/rancheros.ipxe @@ -1,6 +1,6 @@ #!ipxe dhcp set base-url https://releases.rancher.com/os/latest -kernel ${base-url}/vmlinuz printk.devkmsg=on rancher.state.dev=LABEL=RANCHER_STATE rancher.state.wait console=tty0 rancher.state.mdadm_scan console=ttyS1,115200n8 rancher.autologin=ttyS1 rancher.network.interfaces.eth*.dhcp=true +kernel ${base-url}/vmlinuz printk.devkmsg=on rancher.debug=true rancher.state.dev=LABEL=RANCHER_STATE rancher.state.wait console=tty0 rancher.state.mdadm_scan console=ttyS1,115200n8 rancher.autologin=ttyS1 rancher.network.interfaces.eth*.dhcp=true rancher.cloud_init.datasources=[configdrive,ec2,gce,packet,digitalocean] initrd ${base-url}/initrd boot From 922fa42205b861b94905ceccc279437834e1622a Mon Sep 17 00:00:00 2001 From: Sven Dowideit Date: Thu, 27 Apr 2017 15:49:00 -0700 Subject: [PATCH 4/4] gce is not experimental Signed-off-by: Sven Dowideit --- docs/os/running-rancheros/cloud/gce/index.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/docs/os/running-rancheros/cloud/gce/index.md b/docs/os/running-rancheros/cloud/gce/index.md index 4430e8f5..e27ee67d 100644 --- a/docs/os/running-rancheros/cloud/gce/index.md +++ b/docs/os/running-rancheros/cloud/gce/index.md @@ -6,8 +6,6 @@ layout: os-default ## Running RancherOS on Google Compute Engine (GCE) ---- -Note: The Google Compute Engine image is still experimental. There are known issues with the image, so please do not use it in production! - ### Adding the RancherOS Image into GCE RancherOS is available as an image in GCE, and can be easily run in Google Compute Engine (GCE). Let’s walk through how to upload GCE image.