meetup - devcloud and cloudstack 4.2
DESCRIPTION
CloudStack Bay Area meetup : Hands on session using DevCloudTRANSCRIPT
Typical Dev Requirements
• CloudStack needs a cloud!!o Hypervisorso Networking infrao Storage
• Not everyone has access to such expensive hardware
What is DevCloud• All-in-one-box solution• Developed by Edison Su
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
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
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
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
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!!
Try Out• Build CloudStack on localmachine• Use many DevCloud VMs to use as Xen
hypervisors (change iface IPs)• Deploy using Advanced Zone