Chapter 4 How to use cloud computing? Kai Liu, Qunying Huang, Jizhe Xia, Zhenlong Li,

40
K. Liu, Q. Huang, J. Xia, Z. Li, P. Lostritto, 2013. Chapter 4 How to use cloud computing?, In Spatial Cloud Computing: a practical approach, edited by C.Yang, Q. Huang, Z. Li, C. Xu, K. Liu, CRC Press: pp. 49-72. Chapter 4 How to use cloud computing? Kai Liu, Qunying Huang, Jizhe Xia, Zhenlong Li, and Peter Lostritto 1

description

Chapter 4 How to use cloud computing? Kai Liu, Qunying Huang, Jizhe Xia, Zhenlong Li, and Peter Lostritto. Learning Objectives. Get familiar with two popular cloud services Understand web application using a simple case Learn the basic steps to deploy the web application - PowerPoint PPT Presentation

Transcript of Chapter 4 How to use cloud computing? Kai Liu, Qunying Huang, Jizhe Xia, Zhenlong Li,

Page 1: Chapter 4 How to use cloud computing? Kai Liu,  Qunying  Huang,  Jizhe  Xia, Zhenlong Li,

K. Liu, Q. Huang, J. Xia, Z. Li, P. Lostritto, 2013. Chapter 4 How to use cloud computing?, In Spatial Cloud Computing: a practical approach, edited by C.Yang, Q. Huang, Z. Li, C. Xu, K. Liu, CRC Press: pp. 49-72.

Chapter 4 How to use cloud computing?

Kai Liu, Qunying Huang, Jizhe Xia, Zhenlong Li, and Peter Lostritto

1

Page 2: Chapter 4 How to use cloud computing? Kai Liu,  Qunying  Huang,  Jizhe  Xia, Zhenlong Li,

K. Liu, Q. Huang, J. Xia, Z. Li, P. Lostritto, 2013. Chapter 4 How to use cloud computing?, In Spatial Cloud Computing: a practical approach, edited by C.Yang, Q. Huang, Z. Li, C. Xu, K. Liu, CRC Press: pp. 49-72.

Learning Objectives

•Get familiar with two popular cloud services•Understand web application using a simple case•Learn the basic steps to deploy the web application onto cloud services

2

Page 3: Chapter 4 How to use cloud computing? Kai Liu,  Qunying  Huang,  Jizhe  Xia, Zhenlong Li,

K. Liu, Q. Huang, J. Xia, Z. Li, P. Lostritto, 2013. Chapter 4 How to use cloud computing?, In Spatial Cloud Computing: a practical approach, edited by C.Yang, Q. Huang, Z. Li, C. Xu, K. Liu, CRC Press: pp. 49-72.

Learning Materials

•Videos: o Chapter_4-Video_1.mp4o Chapter_4-Video_2.mp4

•Scripts, Files and others:o index.html

3

Page 4: Chapter 4 How to use cloud computing? Kai Liu,  Qunying  Huang,  Jizhe  Xia, Zhenlong Li,

K. Liu, Q. Huang, J. Xia, Z. Li, P. Lostritto, 2013. Chapter 4 How to use cloud computing?, In Spatial Cloud Computing: a practical approach, edited by C.Yang, Q. Huang, Z. Li, C. Xu, K. Liu, CRC Press: pp. 49-72.

Learning Modules

1. Introduction: popular cloud services

2. “Hello Cloud” web application

• General steps

• Special considerations

3. Deploy the “Hello Cloud” onto Cloud Services

• Amazon AWS

• Windows Azure

4. Conclusion and discussions

4

Page 5: Chapter 4 How to use cloud computing? Kai Liu,  Qunying  Huang,  Jizhe  Xia, Zhenlong Li,

K. Liu, Q. Huang, J. Xia, Z. Li, P. Lostritto, 2013. Chapter 4 How to use cloud computing?, In Spatial Cloud Computing: a practical approach, edited by C.Yang, Q. Huang, Z. Li, C. Xu, K. Liu, CRC Press: pp. 49-72.

Two Popular Cloud Computing Services

• Amazon AWS

• Since 2006

• Comprehensive platform which offers a list of cloud services such as

computing, storage, content delivery, database, deployment &

management, networking and other services (Varia and Mathew,

2012).

• URL: http://aws.amazon.com/

5

Page 6: Chapter 4 How to use cloud computing? Kai Liu,  Qunying  Huang,  Jizhe  Xia, Zhenlong Li,

K. Liu, Q. Huang, J. Xia, Z. Li, P. Lostritto, 2013. Chapter 4 How to use cloud computing?, In Spatial Cloud Computing: a practical approach, edited by C.Yang, Q. Huang, Z. Li, C. Xu, K. Liu, CRC Press: pp. 49-72.

Two Popular Cloud Computing Services

• Windows Azure

• Since 2008

• Microsoft cloud service which has four parts including Windows

Azure, SQL Azure, Windows Azure AppFabric, and Windows Azure

Marketplace (Chappell, 2010).

• URL: www.windowsazure.com

6

Page 7: Chapter 4 How to use cloud computing? Kai Liu,  Qunying  Huang,  Jizhe  Xia, Zhenlong Li,

K. Liu, Q. Huang, J. Xia, Z. Li, P. Lostritto, 2013. Chapter 4 How to use cloud computing?, In Spatial Cloud Computing: a practical approach, edited by C.Yang, Q. Huang, Z. Li, C. Xu, K. Liu, CRC Press: pp. 49-72.

Learning Modules

1. Introduction: popular cloud services

2. “Hello Cloud” web application

• General steps

• Special considerations

3. Deploy the “Hello Cloud” onto Cloud Services

• Amazon AWS

• Windows Azure

4. Conclusion and discussions

7

Page 8: Chapter 4 How to use cloud computing? Kai Liu,  Qunying  Huang,  Jizhe  Xia, Zhenlong Li,

K. Liu, Q. Huang, J. Xia, Z. Li, P. Lostritto, 2013. Chapter 4 How to use cloud computing?, In Spatial Cloud Computing: a practical approach, edited by C.Yang, Q. Huang, Z. Li, C. Xu, K. Liu, CRC Press: pp. 49-72.

“Hello Cloud” web application

Homepage of “Hello Cloud” website

8

Page 9: Chapter 4 How to use cloud computing? Kai Liu,  Qunying  Huang,  Jizhe  Xia, Zhenlong Li,

K. Liu, Q. Huang, J. Xia, Z. Li, P. Lostritto, 2013. Chapter 4 How to use cloud computing?, In Spatial Cloud Computing: a practical approach, edited by C.Yang, Q. Huang, Z. Li, C. Xu, K. Liu, CRC Press: pp. 49-72.

<!DOCTYPE html><html><body><h1>Hello Cloud</h1><ul><li><a href="http://aws.amazon.com/">Amazon AWS</a></li><li><a href="http://www.windowsazure.com/en-us/">Windows Azure</a></li><li><a href="http://incubator.apache.org/cloudstack/">Apache Cloudstack</a></li><li><a href="http://www.eucalyptus.com/">Eucalyptus Cloud</a></li><li><a href="http://www.nimbusproject.org/">Nimbus</a></li><li><a href="http://opennebula.org/">OpenNebula</a></li></ul></body></html>

HTML file contents

9

Page 10: Chapter 4 How to use cloud computing? Kai Liu,  Qunying  Huang,  Jizhe  Xia, Zhenlong Li,

K. Liu, Q. Huang, J. Xia, Z. Li, P. Lostritto, 2013. Chapter 4 How to use cloud computing?, In Spatial Cloud Computing: a practical approach, edited by C.Yang, Q. Huang, Z. Li, C. Xu, K. Liu, CRC Press: pp. 49-72.

Web application Containers

• Apache HTTP Server (httpd)

• Open Source HTTP server for modern operating systems including

Unix and Windows

• Apache Tomcat Server

• Open Source Software implementation of the Java Servlet and

JavaServer Pages (JSP)

• Microsoft Internet Information Services (IIS)

• Deployed by Microsoft for Microsoft Windows

10

Page 11: Chapter 4 How to use cloud computing? Kai Liu,  Qunying  Huang,  Jizhe  Xia, Zhenlong Li,

K. Liu, Q. Huang, J. Xia, Z. Li, P. Lostritto, 2013. Chapter 4 How to use cloud computing?, In Spatial Cloud Computing: a practical approach, edited by C.Yang, Q. Huang, Z. Li, C. Xu, K. Liu, CRC Press: pp. 49-72.

Learning Modules

1. Introduction: popular cloud services

2. “Hello Cloud” web application

• HTML page

• Web application context

3. Deploy the “Hello Cloud” onto Cloud Services

• Amazon AWS

• Windows Azure

4. Conclusion and discussions

11

Page 12: Chapter 4 How to use cloud computing? Kai Liu,  Qunying  Huang,  Jizhe  Xia, Zhenlong Li,

K. Liu, Q. Huang, J. Xia, Z. Li, P. Lostritto, 2013. Chapter 4 How to use cloud computing?, In Spatial Cloud Computing: a practical approach, edited by C.Yang, Q. Huang, Z. Li, C. Xu, K. Liu, CRC Press: pp. 49-72.

Deploy “Hello Cloud” onto AWS

12

2. Authorize network access

3. Launch an instance

4. Login to the instance

7. Deploy the application

8. Create a new AMI from the running instance

5. Install and configure web server

6. Transfer the “Hello World”files to the instance

1. Sign up for Amazon AWS

Video: Chapter_4-Video_1.mp4

Page 13: Chapter 4 How to use cloud computing? Kai Liu,  Qunying  Huang,  Jizhe  Xia, Zhenlong Li,

K. Liu, Q. Huang, J. Xia, Z. Li, P. Lostritto, 2013. Chapter 4 How to use cloud computing?, In Spatial Cloud Computing: a practical approach, edited by C.Yang, Q. Huang, Z. Li, C. Xu, K. Liu, CRC Press: pp. 49-72.

Step 1. Sign up for AWS

13

2. Authorize network access

3. Launch an instance

4. Login to the instance

7. Deploy the application

8. Create a new AMI from the running instance

5. Install and configure web server

6. Transfer the “Hello World”files to the instance

1. Sign up for Amazon AWS

Play Video(1)

Video: Chapter_4-Video_1.mp40:00 – 0:29

Page 14: Chapter 4 How to use cloud computing? Kai Liu,  Qunying  Huang,  Jizhe  Xia, Zhenlong Li,

K. Liu, Q. Huang, J. Xia, Z. Li, P. Lostritto, 2013. Chapter 4 How to use cloud computing?, In Spatial Cloud Computing: a practical approach, edited by C.Yang, Q. Huang, Z. Li, C. Xu, K. Liu, CRC Press: pp. 49-72.

Step 2. Authorize Network Access• There are two purposes in this step:

• Allowing users to access the instance with SSH (Secure Shell) or RDP (Remote Desktop)

• Accepting web traffic on specific port

14

2. Authorize network access

3. Launch an instance

4. Login to the instance

7. Deploy the application

8. Create a new AMI from the running instance

5. Install and configure web server

6. Transfer the “Hello World”files to the instance

1. Sign up for Amazon AWS

Video: Chapter_4-Video_1.mp40:30 – 1:18

Page 15: Chapter 4 How to use cloud computing? Kai Liu,  Qunying  Huang,  Jizhe  Xia, Zhenlong Li,

K. Liu, Q. Huang, J. Xia, Z. Li, P. Lostritto, 2013. Chapter 4 How to use cloud computing?, In Spatial Cloud Computing: a practical approach, edited by C.Yang, Q. Huang, Z. Li, C. Xu, K. Liu, CRC Press: pp. 49-72.

Interface of EC2 dashboard

15

2. Authorize network access

3. Launch an instance

4. Login to the instance

7. Deploy the application

8. Create a new AMI from the running instance

5. Install and configure web server

6. Transfer the “Hello World”files to the instance

1. Sign up for Amazon AWS

Page 16: Chapter 4 How to use cloud computing? Kai Liu,  Qunying  Huang,  Jizhe  Xia, Zhenlong Li,

K. Liu, Q. Huang, J. Xia, Z. Li, P. Lostritto, 2013. Chapter 4 How to use cloud computing?, In Spatial Cloud Computing: a practical approach, edited by C.Yang, Q. Huang, Z. Li, C. Xu, K. Liu, CRC Press: pp. 49-72.

Authorize Network Accessusing Security Groups

16

2. Authorize network access

3. Launch an instance

4. Login to the instance

7. Deploy the application

8. Create a new AMI from the running instance

5. Install and configure web server

6. Transfer the “Hello World”files to the instance

1. Sign up for Amazon AWS

1. Create "hellocloud" group;

2. Create a new rule for SSH;

3. Create a new rule for HTTP

Page 17: Chapter 4 How to use cloud computing? Kai Liu,  Qunying  Huang,  Jizhe  Xia, Zhenlong Li,

K. Liu, Q. Huang, J. Xia, Z. Li, P. Lostritto, 2013. Chapter 4 How to use cloud computing?, In Spatial Cloud Computing: a practical approach, edited by C.Yang, Q. Huang, Z. Li, C. Xu, K. Liu, CRC Press: pp. 49-72.

Step 3. Launch an Instance

Create Key Pair

17

2. Authorize network access

3. Launch an instance

4. Login to the instance

7. Deploy the application

8. Create a new AMI from the running instance

5. Install and configure web server

6. Transfer the “Hello World”files to the instance

1. Sign up for Amazon AWS

Video: Chapter_4-Video_1.mp41:18 – 4:17

Page 18: Chapter 4 How to use cloud computing? Kai Liu,  Qunying  Huang,  Jizhe  Xia, Zhenlong Li,

K. Liu, Q. Huang, J. Xia, Z. Li, P. Lostritto, 2013. Chapter 4 How to use cloud computing?, In Spatial Cloud Computing: a practical approach, edited by C.Yang, Q. Huang, Z. Li, C. Xu, K. Liu, CRC Press: pp. 49-72.

18

2. Authorize network access

3. Launch an instance

4. Login to the instance

7. Deploy the application

8. Create a new AMI from the running instance

5. Install and configure web server

6. Transfer the “Hello World”files to the instance

1. Sign up for Amazon AWS

Launching a new instance by searching and using AMI from AWS Marketplace

Page 19: Chapter 4 How to use cloud computing? Kai Liu,  Qunying  Huang,  Jizhe  Xia, Zhenlong Li,

K. Liu, Q. Huang, J. Xia, Z. Li, P. Lostritto, 2013. Chapter 4 How to use cloud computing?, In Spatial Cloud Computing: a practical approach, edited by C.Yang, Q. Huang, Z. Li, C. Xu, K. Liu, CRC Press: pp. 49-72.

Step 4. Login to the instance

ssh -i ssh-keypair.pem [email protected]

• Login to the instance from Linux or Mac OS Machine

19

2. Authorize network access

3. Launch an instance

4. Login to the instance

7. Deploy the application

8. Create a new AMI from the running instance

5. Install and configure web server

6. Transfer the “Hello World”files to the instance

1. Sign up for Amazon AWS

Video: Chapter_4-Video_1.mp44:17 – 6:49

Page 20: Chapter 4 How to use cloud computing? Kai Liu,  Qunying  Huang,  Jizhe  Xia, Zhenlong Li,

K. Liu, Q. Huang, J. Xia, Z. Li, P. Lostritto, 2013. Chapter 4 How to use cloud computing?, In Spatial Cloud Computing: a practical approach, edited by C.Yang, Q. Huang, Z. Li, C. Xu, K. Liu, CRC Press: pp. 49-72.

Convert Amazon Key Pair to Private Key

Login to the instance from Windows machine, using Putty: http://www.chiark.greenend.org.uk/~sgtatham/putty/

20

2. Authorize network access

3. Launch an instance

4. Login to the instance

7. Deploy the application

8. Create a new AMI from the running instance

5. Install and configure web server

6. Transfer the “Hello World”files to the instance

1. Sign up for Amazon AWS

Page 21: Chapter 4 How to use cloud computing? Kai Liu,  Qunying  Huang,  Jizhe  Xia, Zhenlong Li,

K. Liu, Q. Huang, J. Xia, Z. Li, P. Lostritto, 2013. Chapter 4 How to use cloud computing?, In Spatial Cloud Computing: a practical approach, edited by C.Yang, Q. Huang, Z. Li, C. Xu, K. Liu, CRC Press: pp. 49-72.

(b) Select private key

(a) Input Host Name

21

(c) Type root as login name

2. Authorize network access

3. Launch an instance

4. Login to the instance

7. Deploy the application

8. Create a new AMI from the running instance

5. Install and configure web server

6. Transfer the “Hello World”files to the instance

1. Sign up for Amazon AWS

Page 22: Chapter 4 How to use cloud computing? Kai Liu,  Qunying  Huang,  Jizhe  Xia, Zhenlong Li,

K. Liu, Q. Huang, J. Xia, Z. Li, P. Lostritto, 2013. Chapter 4 How to use cloud computing?, In Spatial Cloud Computing: a practical approach, edited by C.Yang, Q. Huang, Z. Li, C. Xu, K. Liu, CRC Press: pp. 49-72.

Step 5. Install and Configure the web server

$: yum install httpd$: service httpd start$: chkconfig httpd on

$: iptables -I INPUT -p tcp --dport 80 -j ACCEPT$: service iptables save

• Install httpd

• Enable port 80 in firewall

22

2. Authorize network access

3. Launch an instance

4. Login to the instance

7. Deploy the application

8. Create a new AMI from the running instance

5. Install and configure web server

6. Transfer the “Hello World”files to the instance

1. Sign up for Amazon AWS

Video: Chapter_4-Video_1.mp46:49 – 7:16

Page 23: Chapter 4 How to use cloud computing? Kai Liu,  Qunying  Huang,  Jizhe  Xia, Zhenlong Li,

K. Liu, Q. Huang, J. Xia, Z. Li, P. Lostritto, 2013. Chapter 4 How to use cloud computing?, In Spatial Cloud Computing: a practical approach, edited by C.Yang, Q. Huang, Z. Li, C. Xu, K. Liu, CRC Press: pp. 49-72.

Step 6. Transfer "Hello Cloud" file onto the instance

$: scp -i myfirstkey.pem index.html ubuntu@ ec2-54-235-3-170.compute-1.amazonaws.com:/root

• Transfer files from Linux or Mac OS Machine

23

2. Authorize network access

3. Launch an instance

4. Login to the instance

7. Deploy the application

8. Create a new AMI from the running instance

5. Install and configure web server

6. Transfer the “Hello World”files to the instance

1. Sign up for Amazon AWS

Video: Chapter_4-Video_1.mp47:16 -- 8:07

Page 24: Chapter 4 How to use cloud computing? Kai Liu,  Qunying  Huang,  Jizhe  Xia, Zhenlong Li,

K. Liu, Q. Huang, J. Xia, Z. Li, P. Lostritto, 2013. Chapter 4 How to use cloud computing?, In Spatial Cloud Computing: a practical approach, edited by C.Yang, Q. Huang, Z. Li, C. Xu, K. Liu, CRC Press: pp. 49-72.

WinSCP login

Transfer files from Windows machine, using WinSCP: http://winscp.net/eng/index.php

24

2. Authorize network access

3. Launch an instance

4. Login to the instance

7. Deploy the application

8. Create a new AMI from the running instance

5. Install and configure web server

6. Transfer the “Hello World”files to the instance

1. Sign up for Amazon AWS

Page 25: Chapter 4 How to use cloud computing? Kai Liu,  Qunying  Huang,  Jizhe  Xia, Zhenlong Li,

K. Liu, Q. Huang, J. Xia, Z. Li, P. Lostritto, 2013. Chapter 4 How to use cloud computing?, In Spatial Cloud Computing: a practical approach, edited by C.Yang, Q. Huang, Z. Li, C. Xu, K. Liu, CRC Press: pp. 49-72.

Transfer File using WinSCP

25

2. Authorize network access

3. Launch an instance

4. Login to the instance

7. Deploy the application

8. Create a new AMI from the running instance

5. Install and configure web server

6. Transfer the “Hello World”files to the instance

1. Sign up for Amazon AWS

Page 26: Chapter 4 How to use cloud computing? Kai Liu,  Qunying  Huang,  Jizhe  Xia, Zhenlong Li,

K. Liu, Q. Huang, J. Xia, Z. Li, P. Lostritto, 2013. Chapter 4 How to use cloud computing?, In Spatial Cloud Computing: a practical approach, edited by C.Yang, Q. Huang, Z. Li, C. Xu, K. Liu, CRC Press: pp. 49-72.

Step 7. Deploy the application

$:mv /etc/httpd/conf.d/welcome.conf /etc/httpd/conf.d/welcomebak.conf$:mv /root/index.html /var/www/html$:service httpd restart

26

2. Authorize network access

3. Launch an instance

4. Login to the instance

7. Deploy the application

8. Create a new AMI from the running instance

5. Install and configure web server

6. Transfer the “Hello World”files to the instance

1. Sign up for Amazon AWS

Video: Chapter_4-Video_1.mp48:07 – 9:59

Page 27: Chapter 4 How to use cloud computing? Kai Liu,  Qunying  Huang,  Jizhe  Xia, Zhenlong Li,

K. Liu, Q. Huang, J. Xia, Z. Li, P. Lostritto, 2013. Chapter 4 How to use cloud computing?, In Spatial Cloud Computing: a practical approach, edited by C.Yang, Q. Huang, Z. Li, C. Xu, K. Liu, CRC Press: pp. 49-72.

Step 8. Create an AMI from the running instance

27

2. Authorize network access

3. Launch an instance

4. Login to the instance

7. Deploy the application

8. Create a new AMI from the running instance

5. Install and configure web server

6. Transfer the “Hello World”files to the instance

1. Sign up for Amazon AWS

Video: Chapter_4-Video_1.mp410:00 – 13:58

Page 28: Chapter 4 How to use cloud computing? Kai Liu,  Qunying  Huang,  Jizhe  Xia, Zhenlong Li,

K. Liu, Q. Huang, J. Xia, Z. Li, P. Lostritto, 2013. Chapter 4 How to use cloud computing?, In Spatial Cloud Computing: a practical approach, edited by C.Yang, Q. Huang, Z. Li, C. Xu, K. Liu, CRC Press: pp. 49-72.

Deploy “Hello Cloud” onto Azure

28

2. Create a virtual machine

3. Authorize network access

4. Login to the virtual machine

7. Deploy the application

8. Capture an image of runninginstance

5. Turn on IIS

6. Transfer the “Hello World”Files to the instance

1. Sign up for Windows Azure

Click here to view the video demonstrating the steps.

Page 29: Chapter 4 How to use cloud computing? Kai Liu,  Qunying  Huang,  Jizhe  Xia, Zhenlong Li,

K. Liu, Q. Huang, J. Xia, Z. Li, P. Lostritto, 2013. Chapter 4 How to use cloud computing?, In Spatial Cloud Computing: a practical approach, edited by C.Yang, Q. Huang, Z. Li, C. Xu, K. Liu, CRC Press: pp. 49-72.

Step 1. Sign up for Windows Azure

29

2. Create a virtual machine

3. Authorize network access

4. Login to the virtual machine

7. Deploy the application

8. Capture an image of runninginstance

5. Turn on IIS

6. Transfer the “Hello World”Files to the instance

1. Sign up for Windows Azure

Video: Chapter_4-Video_2.mp40:00 – 0:49

Page 30: Chapter 4 How to use cloud computing? Kai Liu,  Qunying  Huang,  Jizhe  Xia, Zhenlong Li,

K. Liu, Q. Huang, J. Xia, Z. Li, P. Lostritto, 2013. Chapter 4 How to use cloud computing?, In Spatial Cloud Computing: a practical approach, edited by C.Yang, Q. Huang, Z. Li, C. Xu, K. Liu, CRC Press: pp. 49-72.

Step 2. Create a virtual machine

Launch Windows Virtual Machine

30

2. Create a virtual machine

3. Authorize network access

4. Login to the virtual machine

7. Deploy the application

8. Capture an image of runninginstance

5. Turn on IIS

6. Transfer the “Hello World”Files to the instance

1. Sign up for Windows Azure

Video: Chapter_4-Video_2.mp40:49 – 6:28

Page 31: Chapter 4 How to use cloud computing? Kai Liu,  Qunying  Huang,  Jizhe  Xia, Zhenlong Li,

K. Liu, Q. Huang, J. Xia, Z. Li, P. Lostritto, 2013. Chapter 4 How to use cloud computing?, In Spatial Cloud Computing: a practical approach, edited by C.Yang, Q. Huang, Z. Li, C. Xu, K. Liu, CRC Press: pp. 49-72.

Step 3. Authorize Network Access

31

2. Create a virtual machine

3. Authorize network access

4. Login to the virtual machine

7. Deploy the application

8. Capture an image of runninginstance

5. Turn on IIS

6. Transfer the “Hello World”Files to the instance

1. Sign up for Windows Azure

a) Add an endpoint;

b) Specify the details of the endpoint

Video: Chapter_4-Video_2.mp46:28 – 8:10

Page 32: Chapter 4 How to use cloud computing? Kai Liu,  Qunying  Huang,  Jizhe  Xia, Zhenlong Li,

K. Liu, Q. Huang, J. Xia, Z. Li, P. Lostritto, 2013. Chapter 4 How to use cloud computing?, In Spatial Cloud Computing: a practical approach, edited by C.Yang, Q. Huang, Z. Li, C. Xu, K. Liu, CRC Press: pp. 49-72.

Step 4. Login to the Virtual Machine

Windows Azure Cloud Management interface32

2. Create a virtual machine

3. Authorize network access

4. Login to the virtual machine

7. Deploy the application

8. Capture an image of runninginstance

5. Turn on IIS

6. Transfer the “Hello World”Files to the instance

1. Sign up for Windows Azure

Video: Chapter_4-Video_2.mp48:10 – 8:47

Page 33: Chapter 4 How to use cloud computing? Kai Liu,  Qunying  Huang,  Jizhe  Xia, Zhenlong Li,

K. Liu, Q. Huang, J. Xia, Z. Li, P. Lostritto, 2013. Chapter 4 How to use cloud computing?, In Spatial Cloud Computing: a practical approach, edited by C.Yang, Q. Huang, Z. Li, C. Xu, K. Liu, CRC Press: pp. 49-72.

Step 5. Turn on IIS

Turn on IIS in the virtual machine 33

2. Create a virtual machine

3. Authorize network access

4. Login to the virtual machine

7. Deploy the application

8. Capture an image of runninginstance

5. Turn on IIS

6. Transfer the “Hello World”Files to the instance

1. Sign up for Windows Azure

Video: Chapter_4-Video_2.mp48:47 – 11:53

Page 34: Chapter 4 How to use cloud computing? Kai Liu,  Qunying  Huang,  Jizhe  Xia, Zhenlong Li,

K. Liu, Q. Huang, J. Xia, Z. Li, P. Lostritto, 2013. Chapter 4 How to use cloud computing?, In Spatial Cloud Computing: a practical approach, edited by C.Yang, Q. Huang, Z. Li, C. Xu, K. Liu, CRC Press: pp. 49-72.

Step 6. Transfer “Hello Cloud” file onto Virtual Machine

Cloud consumers can simply copy and paste or drag and drop files between local computer and virtual machine.

34

2. Create a virtual machine

3. Authorize network access

4. Login to the virtual machine

7. Deploy the application

8. Capture an image of runninginstance

5. Turn on IIS

6. Transfer the “Hello World”Files to the instance

1. Sign up for Windows Azure

Video: Chapter_4-Video_2.mp411:53 – 13:52

Page 35: Chapter 4 How to use cloud computing? Kai Liu,  Qunying  Huang,  Jizhe  Xia, Zhenlong Li,

K. Liu, Q. Huang, J. Xia, Z. Li, P. Lostritto, 2013. Chapter 4 How to use cloud computing?, In Spatial Cloud Computing: a practical approach, edited by C.Yang, Q. Huang, Z. Li, C. Xu, K. Liu, CRC Press: pp. 49-72.

Step 7. Deploy the application

1) First, create a folder named hellocloud under "C:\inetpub\wwwroot" directory in the virtual machine

2) Then, copy the home page of "Hello Cloud" application to hellocloud folder.

35

2. Create a virtual machine

3. Authorize network access

4. Login to the virtual machine

7. Deploy the application

8. Capture an image of runninginstance

5. Turn on IIS

6. Transfer the “Hello World”Files to the instance

1. Sign up for Windows Azure

Page 36: Chapter 4 How to use cloud computing? Kai Liu,  Qunying  Huang,  Jizhe  Xia, Zhenlong Li,

K. Liu, Q. Huang, J. Xia, Z. Li, P. Lostritto, 2013. Chapter 4 How to use cloud computing?, In Spatial Cloud Computing: a practical approach, edited by C.Yang, Q. Huang, Z. Li, C. Xu, K. Liu, CRC Press: pp. 49-72.

Step 8. Capture an image of running virtual machine

1) Run sysprep in virtual machine2) Shut down the virtual machine in

Cloud Management Interface3) Click "Capture" button in the bottom

of Cloud Management Interface to capture the image.

36

2. Create a virtual machine

3. Authorize network access

4. Login to the virtual machine

7. Deploy the application

8. Capture an image of runninginstance

5. Turn on IIS

6. Transfer the “Hello World”Files to the instance

1. Sign up for Windows Azure

Video: Chapter_4-Video_2.mp413:52 - end

Page 37: Chapter 4 How to use cloud computing? Kai Liu,  Qunying  Huang,  Jizhe  Xia, Zhenlong Li,

K. Liu, Q. Huang, J. Xia, Z. Li, P. Lostritto, 2013. Chapter 4 How to use cloud computing?, In Spatial Cloud Computing: a practical approach, edited by C.Yang, Q. Huang, Z. Li, C. Xu, K. Liu, CRC Press: pp. 49-72.

Learning Modules

1. Introduction: popular cloud services

2. “Hello Cloud” web application

• HTML page

• Web application context

3. Deploy the “Hello Cloud” onto Cloud Services

• Amazon AWS

• Windows Azure

4. Conclusion and discussions

37

Page 38: Chapter 4 How to use cloud computing? Kai Liu,  Qunying  Huang,  Jizhe  Xia, Zhenlong Li,

K. Liu, Q. Huang, J. Xia, Z. Li, P. Lostritto, 2013. Chapter 4 How to use cloud computing?, In Spatial Cloud Computing: a practical approach, edited by C.Yang, Q. Huang, Z. Li, C. Xu, K. Liu, CRC Press: pp. 49-72.

General Steps to deploy a simple web application

38

Page 39: Chapter 4 How to use cloud computing? Kai Liu,  Qunying  Huang,  Jizhe  Xia, Zhenlong Li,

K. Liu, Q. Huang, J. Xia, Z. Li, P. Lostritto, 2013. Chapter 4 How to use cloud computing?, In Spatial Cloud Computing: a practical approach, edited by C.Yang, Q. Huang, Z. Li, C. Xu, K. Liu, CRC Press: pp. 49-72.

Discussion Questions1. What are the differences between terminating an instance

and stopping it on Amazon AWS? How to clean up an instance on AWS if you won't use the instance anymore?

2. What's the differences between shutting down a virtual machine and deleting it on Windows Azure?

3. What are the general steps of deploying a simple web applications onto EC2 and Windows Azure?

4. How to authorize network access in EC2 and Azure?5. What is the role of the "key pair" in EC2?6. What is "instance image" in cloud? Why is the relationship b

etween an instance and an image.

39

Page 40: Chapter 4 How to use cloud computing? Kai Liu,  Qunying  Huang,  Jizhe  Xia, Zhenlong Li,

K. Liu, Q. Huang, J. Xia, Z. Li, P. Lostritto, 2013. Chapter 4 How to use cloud computing?, In Spatial Cloud Computing: a practical approach, edited by C.Yang, Q. Huang, Z. Li, C. Xu, K. Liu, CRC Press: pp. 49-72.

References

• Chappell, David. "Introducing the windows azure platform." David Chappell & Associates White Paper (2010).

• Varia, J.and Mathew, S. 2012. Overview of Amazon Web Services. Available from: from: http://d36cz9buwru1tt.cloudfront.net/AWS_Overview.pdf[Accessed 23 January 2013].

40