Skip to content
This repository has been archived by the owner on Oct 11, 2023. It is now read-only.

Add RancherOS to Amazon AWS GovCloud #1330

Closed
msousley opened this issue Oct 18, 2016 · 9 comments
Closed

Add RancherOS to Amazon AWS GovCloud #1330

msousley opened this issue Oct 18, 2016 · 9 comments
Milestone

Comments

@msousley
Copy link

Would love to be able to use RancherOS from a community AMI in Amazon GovCloud.

Thanks!

@ibuildthecloud
Copy link
Contributor

Time to learn more about GovCloud....

@wtsidney2016
Copy link

I've found a need for RancherOS in AWS GovCloud.

@msousley
Copy link
Author

msousley commented Jan 6, 2017

If you don't mind building your own AMI, this is how we went about it in GovCloud while waiting for Rancher to have an official image (all steps to be completed in your GovCloud account):

1. Log into EC2 and create an Ubuntu ec2 instance with docker installed (this can be removed once you are done)
    2. In EC2 create a new 8GB encrypted volume (can be unencrypted, but why?)
2. Attach that volume to the Ubuntu instance created in step 1
3. Log into the Ubuntu instance 
4. ls /dev to find what drive the volume in step 2 was mounted as (usual /dev/xvdf)
5. run sudo fdisk /dev/xvdf and partition the drive
	a. n
	b. p
	c. 1
	d. <enter>
	e. <enter>
	f. w
6. Run this to create the image
	a. docker run --privileged -it -v /home:/home -v /opt:/opt rancher/os:<version tag> -d /dev/xvdf -t amazon-ebs-hvm -c $(pwd)/cloud-config.yml
	b. If cloud-config.yml is missing, create one that looks like this:
		#cloud-config
		rancher:
			cloud_init:
				datasources:
					- ec2
7. Once done, go back into EC2 and un-attach volume
8. Create a snapshot of the volume
9. Create an AMI from snapshot
10. You are now ready to deploy RancherOS instances!!

@wtsidney2016
Copy link

Was able to create my own AMI - worked like a charm - Thank You.

Noticed there is a RancherOS in the GovCloud community AMI's:
ami-6caa100d, owned by 287102419086.

Anyone have any information about this AMI?

@msousley
Copy link
Author

Glad it worked for you. I'm not sure who made that one, wasn't us.

@SvenDowideit
Copy link
Contributor

I've been working on it ;) and yup, that's RancherOS v0.7.1 uploaded by me

@SvenDowideit
Copy link
Contributor

mmm, GovCloud doesn't have ECS does it? (so I can remove that image..?)

@wtsidney2016
Copy link

wtsidney2016 commented Feb 15, 2017 via email

@SvenDowideit
Copy link
Contributor

and released, so closing :)

@SvenDowideit SvenDowideit added this to the v0.8.0 milestone Feb 15, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants