Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

[Z cloud] Create Your First Smartmachine In 10min

1,370 views

Published on

  • Be the first to comment

  • Be the first to like this

[Z cloud] Create Your First Smartmachine In 10min

  1. 1. Z Cloud Create your first SmartMachine in 10 minutes! with   Joyent Cloud-API
  2. 2. Sign up first! <ul><li>https://my.z-cloud.jp/ </li></ul>
  3. 3. And create your <ul><li>Username and Password </li></ul>
  4. 4. Then set up your localhost <ul><li># npm install smartdc -g </li></ul><ul><li># ssh-keygen -t rsa -b 2048 -f ~/.ssh/ id_rsa </li></ul><ul><li>Install node module “smartdc” and generate ssh key. </li></ul>
  5. 5. Finally create a machine <ul><li># sdc-setup https://api.z-cloud.jp </li></ul><ul><li>Username (login): (zman) zman </li></ul><ul><li>Password: </li></ul><ul><li>SSH public key: (/home/zman/.ssh/id_rsa.pub) [Enter] </li></ul><ul><li>snip.. </li></ul><ul><li># export SDC_CLI_URL =https//api.z-cloud.jp </li></ul><ul><li># export SDC_CLI_ACCOUNT =zman </li></ul><ul><li># export SDC_CLI_KEY_ID =zcloud </li></ul><ul><li># export SDC_CLI_IDENTITY =/home/zman/.ssh/id_rsa </li></ul><ul><li>And… </li></ul>
  6. 6. Finally create a machine <ul><li># sdc-createmachine -- dataset sdc:sdc:smartos64:1.4.7 </li></ul><ul><li>--name my-first-sm </li></ul><ul><li>snip.. </li></ul><ul><li>“ ips”:[ “210.xxx.xxx.xxx” </li></ul><ul><li>] </li></ul><ul><li>snip.. </li></ul><ul><li># ssh root@210. xxx.xxx.xxx </li></ul><ul><li>[root@my-first-sm] # </li></ul><ul><li>Now you logged into your first SmartMachine! </li></ul>
  7. 7. End <ul><li>Joyent / node-smartdc </li></ul><ul><li>https://github.com/joyent/node-smartdc.git </li></ul><ul><li>Joyent Cloud API </li></ul><ul><li>https://api.z-cloud.jp/ </li></ul><ul><li>Z Cloud – Manage Portal *Please sign up here! </li></ul><ul><li>https://my.z-cloud.jp/ </li></ul>

×