7
Z Cloud Create your first SmartMachine in 10 minutes! with Joyent Cloud-API

[Z cloud] Create Your First Smartmachine In 10min

Embed Size (px)

Citation preview

Page 1: [Z cloud] Create Your First Smartmachine In 10min

Z Cloud

Create your first SmartMachine in 10 minutes!

with Joyent Cloud-API

Page 2: [Z cloud] Create Your First Smartmachine In 10min

Sign up first!

https://my.z-cloud.jp/

Page 3: [Z cloud] Create Your First Smartmachine In 10min

And create your

Username and Password

Page 4: [Z cloud] Create Your First Smartmachine In 10min

Then set up your localhost

# npm install smartdc -g# ssh-keygen -t rsa -b 2048 -f ~/.ssh/id_rsa

Install node module “smartdc” and generate ssh key.

Page 5: [Z cloud] Create Your First Smartmachine In 10min

Finally create a machine

# sdc-setup https://api.z-cloud.jpUsername (login): (zman) zmanPassword:SSH public key: (/home/zman/.ssh/id_rsa.pub) [Enter]snip..

# export SDC_CLI_URL=https//api.z-cloud.jp# export SDC_CLI_ACCOUNT=zman# export SDC_CLI_KEY_ID=zcloud# export SDC_CLI_IDENTITY=/home/zman/.ssh/id_rsa

And…

Page 6: [Z cloud] Create Your First Smartmachine In 10min

Finally create a machine

# sdc-createmachine --dataset sdc:sdc:smartos64:1.4.7 \--name my-first-smsnip..“ips”:[

“210.xxx.xxx.xxx”]snip..# ssh root@210. xxx.xxx.xxx[root@my-first-sm] #

Now you logged into your first SmartMachine!

Page 7: [Z cloud] Create Your First Smartmachine In 10min

End

Joyent / node-smartdchttps://github.com/joyent/node-smartdc.git

Joyent Cloud APIhttps://api.z-cloud.jp/

Z Cloud – Manage Portal *Please sign up here!

https://my.z-cloud.jp/