EBC azure

From eLinux.org
Revision as of 15:43, 6 October 2014 by Yoder (talk | contribs) (Selecting and Starting a New Instance)
Jump to: navigation, search

thumb‎ Embedded Linux Class by Mark A. Yoder


Here's how to set a virtual machine in Microsoft's azure cloud to compile a kernel.

Selecting and Starting a New Instance

AzureManager.png

  • Click on NEW on the bottom left of the page.

AzureVM.png

  • Select VIRTUAL MACHINE, QUICK CREATE and fill in the fields. The best machine you can get is 2 cores.
  • Click CREATE A VIRTUAL MACHINE on the bottom right.
  • Once you machine is running (it will take a few minutes), click on it.

AzureCreated.png

  • Click on DASHBOARD on the upper left above the cloud.

AzureIP.png

  • Scroll to the bottom until you see DNS NAME. Remember this name.

Connecting to Your Instance

Connecting More Easily

You have to type a lot to do a simple ssh. Here's how to save some typing.

$ sudo vi /etc/hosts

Add a line like:

54.165.3.13   ec2

where the number is your ec2 machine's IP address.

$ vi ~/.ssh/config

and add

Host ec2
  User ubuntu
  UserKnownHostsFile /dev/null
  StrictHostKeyChecking no
  IdentityFile ~/.ssh/KeyPair.pem

Now you can login with

$ ssh ec2

You can even copy to and from with

$ scp local_file ec2:remote_file


thumb‎ Embedded Linux Class by Mark A. Yoder