Skip to content

Instantly share code, notes, and snippets.

@brbsix
Created September 5, 2015 23:16
Show Gist options
  • Save brbsix/34b3847d37716332781a to your computer and use it in GitHub Desktop.
Save brbsix/34b3847d37716332781a to your computer and use it in GitHub Desktop.
Connecting to a CoreOS VirtualBox guest

Connecting to a CoreOS VirtualBox guest

For future reference, here are the steps to add a SSH key to a CoreOS guest machine's authorized_keys:

1. download configuration generator script

wget https://raw.github.com/coreos/scripts/master/contrib/create-basic-configdrive

2. mark script as executable

chmod +x create-basic-configdrive

3. generate the config-drive ISO

./create-basic-configdrive -H HOSTNAME -S ~/.ssh/YOURKEY.pub

4. add an optical drive to the CoreOS VM then insert HOSTNAME.iso disk

5. boot up CoreOS VM then press Enter a few times (as necessary) until the machine's IP address is displayed

NOTE: if IP address is not displayed then adjust the machine's network settings as required

6. connect via ssh from the host machine

ssh core@IP

References:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment