meetup - devcloud and cloudstack 4.2

9
DevCloud – Setup and Demo CloudStack Meetup Oct, 2013 Amogh Vasekar [email protected]

Upload: amoghvk

Post on 21-Jun-2015

68 views

Category:

Engineering


2 download

DESCRIPTION

CloudStack Bay Area meetup : Hands on session using DevCloud

TRANSCRIPT

Page 1: Meetup - DevCloud and CloudStack 4.2

DevCloud – Setup and

DemoCloudStack Meetup Oct, 2013

Amogh [email protected]

Page 2: Meetup - DevCloud and CloudStack 4.2

Typical Dev Requirements

• CloudStack needs a cloud!!o Hypervisorso Networking infrao Storage

• Not everyone has access to such expensive hardware

Page 3: Meetup - DevCloud and CloudStack 4.2

What is DevCloud• All-in-one-box solution• Developed by Edison Su

Page 4: Meetup - DevCloud and CloudStack 4.2

Whats on the disk• VirtualBox• DevCloud2

o DevCloud2_421 : With 4.2.1 branch already checked out and mvn artifacts downloaded [!!!!! IMPORT TAKES TIME!!!!]

o DevCloud2_Demo : With the cloud already set-up with system VMs etc.

• Commands.txt : Useful commands to copy

Page 5: Meetup - DevCloud and CloudStack 4.2

VirtualBox• Windows

1. Skip2. Right click and select "Edit host-

only network", then uncheck "Enable server" in the "DHCP server" tab

3. Disable Firewall : Administrative Tools > Windows Firewall with Advanced Security. Click on the "Windows Firewall Properties" (central panel, possibly quite small print) and for each of the profiles (Domain, Private, Public) click on the Protected Network Connections "Customize..." button and uncheck the "Virtual Box Host only Network”

4. Enable PAE5. Match “Host Only” network

• *nix1. Enable “Host-Only” network

via File -> Preferences -> Network -> "Add host only network”

2. Right click and select "Edit host-only network", then uncheck "Enable server" in the "DHCP server" tab

3. Skip4. Enable PAE5. Skip

Page 6: Meetup - DevCloud and CloudStack 4.2

Use Cases• Build and develop in DevCloud as isolated

environment (we shall do this)• Build on localhost, deploy on DevCloud• Use DevCloud as Xen hypervisors

Page 7: Meetup - DevCloud and CloudStack 4.2

Basic Build• Username/password = root/password• Set maven debug options• Build

o Add –DskipTests=true to ” clean install “ command for faster build

• Deploy database• Start WebServer

Page 8: Meetup - DevCloud and CloudStack 4.2

DevCloud• From host machine : http://192.168.56.10:8080/client• admin/password• Set “host” IP to 192.168.56.10 (56.1 when MS is

outside DevCloud)• Restart Management Server• Deploy using Marvin in another shell

o pip install requestso cd tools/devcloudo python ../marvin/marvin/deployDataCenter.py -i devcloud.cfg

• #Restart Management Server (kill systemvms if any)• Start instance – ALL DONE!!

Page 9: Meetup - DevCloud and CloudStack 4.2

Try Out• Build CloudStack on localmachine• Use many DevCloud VMs to use as Xen

hypervisors (change iface IPs)• Deploy using Advanced Zone