SlideShare a Scribd company logo
Virtualize Planet

    Getting Started, writing VMware APPs
                           for novice programmers




                             Sponsored by




www.virtualizeplanet.com                            Author: Ricky El-Qasem: 2011
Breaking the magicians code




                      11/23/2012   2
No Programmers Allowed

 I’m not a programmer
 I do not speak in
  Fortran or C++
 The point of this
  session is that its for
  novices like me




                            www.virtualizeplanet.com   11/23/2012   3
A word from the sponsors

All apps mentioned in this presentation are not the
products of Canopy Cloud. Ricky developed these
apps before joining Canopy.
                                                      Canopy Private Cloud

                                                        Solutions Catalogue: Vertical &
                                                            Horizontal Workloads



                                                        Management & Orchestration
                                                         vCloud Director - vSphere
                                        Canopy
                                       Appstore




                                                         Canopy Cloud Infrastructure
                                                           Vblock - Best-of-Breed




                           www.virtualizeplanet.com   11/23/2012                          4
My Apps

 VPsnapper = where it all started
 Resource Pool Scheduler
 vDisk Waste Finder
 vSphere Plug-in Wizard = Best Free Tools VMworld
  2011
 vDisk Informer




                            www.virtualizeplanet.com   11/23/2012   5
Different APIs

 COM API
 Web server API = SDK
 PowerCLI
 Etc etc




                         www.virtualizeplanet.com   11/23/2012   6
What you need before you begin

 .Net IDE = Visual Studio .Net
or
 Java IDE = Netbeans




                             www.virtualizeplanet.com   11/23/2012   7
So how did I do it?

 VPsnapper

 I needed a way to revert the default snapshots on all my VMs with one click




                                          + COM API Document




                                           www.virtualizeplanet.com   11/23/2012   8
VPSnapper




            www.virtualizeplanet.com   11/23/2012   9
The SDK is the future
 Resource Pool Scheduler
•Student gave me an idea. I needed to be able to shift resource allocation from pool
to pool
• Once again I used the book and the SDK programmers guide but failed at stage 1
• Stage 1 was to list all VMs running
• I posted my failure on VMTN = VMware Communities
• Few days later VMware sent me a fixed version of my test app.
• This was a huge springboard




                                             www.virtualizeplanet.com   11/23/2012     10
Another Useful Book

 Samples are in JAVA
 However I found I could
  easily copy from JAVA
  to C# .NET




                            www.virtualizeplanet.com   11/23/2012   11
The SDK Tree
                                             ExtensibleManagedObject




                                                     ManagedEntity




ResourcePool      ComputeResource       Hostsystem          Datacenter              Folder             VirtualMachine




               ClusterComputeResource




                                                               www.virtualizeplanet.com   11/23/2012                    12
MOB = Managed Object Browser

 https://yourserver/mob




                           www.virtualizeplanet.com   11/23/2012   13
How to work with the SDK

 Make a connection
 Filter only what you need – Proprerty Spec
 Which hierarchy objects to search - Traversal Spec




                            www.virtualizeplanet.com   11/23/2012   14
VIMAPI in .net

 2 x Dlls – import in to your code




 Using Statement:




                              www.virtualizeplanet.com   11/23/2012   15
MOREF Managed Object Reference

 You do not manipulate the VMware objects like
  VMs, Folders, Hosts and Datastores directly
 You work with a representation of those objects
  known as a Managed Object Reference aka MOREF
 Its all about the MOREF!




                             www.virtualizeplanet.com   11/23/2012   16
Data model

 Managed Object Types = objects that have
  properties and methods
 MOREF = local representation
 Data Object = just pure data and no actions




                            www.virtualizeplanet.com   11/23/2012   17
vSphere Plug-in Wizard

 Finalist in Best Free
  vSphere Tools VMworld
  2011
 Plugs in Website of
  your choice into
  vSphere Client




                          www.virtualizeplanet.com   11/23/2012   18
vSphere Plug-in Wizard




                www.virtualizeplanet.com   11/23/2012   19
vDisk Informer

 Helps you find wasted
  vDisk space
 Helps you find
  misaligned vDisks
 Use Gparted to fix




                          www.virtualizeplanet.com   11/23/2012   20
vDisk Waste Finder

 Previous version of
  vDisk Informer
 VMUG can have copy
  of code.
 Demo




                        www.virtualizeplanet.com   11/23/2012   21
Extreme GUI Makeover

 Before        After




                www.virtualizeplanet.com   11/23/2012   22
Tips on creating a sexy GUI




                www.virtualizeplanet.com   11/23/2012   23
Tips on creating a sexy GUI




                www.virtualizeplanet.com   11/23/2012   24
Tips on creating a sexy GUI




                www.virtualizeplanet.com   11/23/2012   25
www.virtualizeplanet.com   11/23/2012   26
Writing Config




                 www.virtualizeplanet.com   11/23/2012   27
Performing an action



ManagedObjectReference moref_task = _service.PowerOffVM
(moref_VM, moref_Host);




                                     www.virtualizeplanet.com   11/23/2012   28
My best tip as a novice

 Take an existing example and hack it to death with
  trial and error until you get it working for your
  needs
 If something doesn’t work post it on VMware's
  Community forum
 After today code for vDisk Waste Finder will be
  available from my blog www.virtualizeplanet.com




                            www.virtualizeplanet.com   11/23/2012   29
Disclaimer:

Virtualize Planet will not be held liable for any actions you perform in
your environment. Anything you learn from this material should be used
at your own discretion and be warned actions you perform can be
damaging. Always consult a professional.




                    www.virtualizeplanet.com               11/23/2012      30

More Related Content

What's hot (20)

PDF
Spring Cloud Function: Where We Were, Where We Are, and Where We’re Going
VMware Tanzu
 
PDF
OPEN SOURCE TECHNOLOGY: Docker Containers on IBM Bluemix
DA SILVA, MBA
 
PDF
BelfastJUG, Spring Boot + Docker
Hudson Mendes
 
PDF
Docker vs VM | | Containerization or Virtualization - The Differences | DevOp...
Edureka!
 
PDF
Containerize, PaaS, or Go Serverless!?
Phil Estes
 
PPTX
Container as a Service with Docker
Patrick Chanezon
 
PPTX
Improving Your Company’s Health with Middleware Takeout
VMware Tanzu
 
PDF
Use Docker to Deliver Cognitive Services Running Cross Platform and Multi Clo...
Docker, Inc.
 
PDF
Spring Boot Loves K8s
VMware Tanzu
 
PDF
You Want to Kubernetes? You MUST Know Containers!
VMware Tanzu
 
PDF
Welcome to the Metrics
VMware Tanzu
 
PDF
VMware@Night: Container & Virtualisierung
Digicomp Academy AG
 
PPTX
Dockercon 2019 Developing Apps with Containers, Functions and Cloud Services
Patrick Chanezon
 
PDF
Empower Your Docker Containers with Watson - DockerCon 2017 Austin
Phil Estes
 
PPTX
IBM Container Service Overview
Kyle Brown
 
PDF
Going Serverless Using the Spring Framework Ecosystem
VMware Tanzu
 
PPTX
Docker - A high level introduction to dockers and containers
Dr Ganesh Iyer
 
PDF
Introduction to Panamax from CenturyLink
Lucas Carlson
 
PPTX
Scalable, Available and Reliable Cloud Applications with PaaS and Microservices
David Currie
 
PDF
Full Steam Ahead, R2DBC!
VMware Tanzu
 
Spring Cloud Function: Where We Were, Where We Are, and Where We’re Going
VMware Tanzu
 
OPEN SOURCE TECHNOLOGY: Docker Containers on IBM Bluemix
DA SILVA, MBA
 
BelfastJUG, Spring Boot + Docker
Hudson Mendes
 
Docker vs VM | | Containerization or Virtualization - The Differences | DevOp...
Edureka!
 
Containerize, PaaS, or Go Serverless!?
Phil Estes
 
Container as a Service with Docker
Patrick Chanezon
 
Improving Your Company’s Health with Middleware Takeout
VMware Tanzu
 
Use Docker to Deliver Cognitive Services Running Cross Platform and Multi Clo...
Docker, Inc.
 
Spring Boot Loves K8s
VMware Tanzu
 
You Want to Kubernetes? You MUST Know Containers!
VMware Tanzu
 
Welcome to the Metrics
VMware Tanzu
 
VMware@Night: Container & Virtualisierung
Digicomp Academy AG
 
Dockercon 2019 Developing Apps with Containers, Functions and Cloud Services
Patrick Chanezon
 
Empower Your Docker Containers with Watson - DockerCon 2017 Austin
Phil Estes
 
IBM Container Service Overview
Kyle Brown
 
Going Serverless Using the Spring Framework Ecosystem
VMware Tanzu
 
Docker - A high level introduction to dockers and containers
Dr Ganesh Iyer
 
Introduction to Panamax from CenturyLink
Lucas Carlson
 
Scalable, Available and Reliable Cloud Applications with PaaS and Microservices
David Currie
 
Full Steam Ahead, R2DBC!
VMware Tanzu
 

Viewers also liked (15)

PDF
Wiki antenas
Jesus Gonzalez
 
PPTX
Fme4 forensic thanatology3(scientific study of death)
Yaseen Muhammad
 
PPTX
Slideshare
angielues
 
PPT
การทดสอบสมรรถภาพทางกาย
Nun อันทวีสิน
 
PPT
Школьная форма
julia_hatter
 
PDF
Template sample
Kamen Plamenov
 
PPT
You miss 100% of the shots you
lincolnv
 
PPTX
Danza afro
angielues
 
PPTX
Wiki antenas
Jesus Gonzalez
 
PPT
Altus swift seminar final 151112
MrSIPP
 
PPTX
Fme6 forensic thanatology3(scientific study of death)by dr yaseen muhammad BKMC
Yaseen Muhammad
 
PPT
การทดสอบสมรรถภาพทางกาย
Nun อันทวีสิน
 
PPT
Essay Writing Techniques
Sarah Sewell
 
PPT
Chap02 fsm-mpssr-ht
infcom
 
PPT
Ch3 ing
infcom
 
Wiki antenas
Jesus Gonzalez
 
Fme4 forensic thanatology3(scientific study of death)
Yaseen Muhammad
 
Slideshare
angielues
 
การทดสอบสมรรถภาพทางกาย
Nun อันทวีสิน
 
Школьная форма
julia_hatter
 
Template sample
Kamen Plamenov
 
You miss 100% of the shots you
lincolnv
 
Danza afro
angielues
 
Wiki antenas
Jesus Gonzalez
 
Altus swift seminar final 151112
MrSIPP
 
Fme6 forensic thanatology3(scientific study of death)by dr yaseen muhammad BKMC
Yaseen Muhammad
 
การทดสอบสมรรถภาพทางกาย
Nun อันทวีสิน
 
Essay Writing Techniques
Sarah Sewell
 
Chap02 fsm-mpssr-ht
infcom
 
Ch3 ing
infcom
 
Ad

Similar to Getting started vmware apps (20)

PDF
Introduction to Docker
Knoldus Inc.
 
PDF
Docker Overview - Rise of the Containers
Ryan Hodgin
 
PDF
VMware@Night Container and Virtualization
Opvizor, Inc.
 
PDF
Lightning talk: 12 Factor Containers
Mukhtar Haji
 
PDF
Cloud Foundry Overview
Patrick Chanezon
 
PDF
Docker Networking | Container Network Model (CNM) | Docker Tutorial For Begin...
Edureka!
 
PDF
Demystifying Docker
Cloud Native Bangalore
 
PPTX
Demystifying Docker101
Ajeet Singh Raina
 
PPTX
Docker In Brief
Ritu Kamthan
 
PDF
Distribute Development Environment by docker-compose - May 2016 Docker Meetup...
Wiredcraft
 
PPTX
Docker, cornerstone of cloud hybridation ? [Cloud Expo Europe 2016]
Adrien Blind
 
PDF
DevNexus 2017 - Building and Deploying 12 Factor Apps in Scala, Java, Ruby, a...
Neil Shannon
 
PDF
Docker For Windows | Setting Up Docker On Windows | Edureka
Edureka!
 
PDF
Introduction to Docker - VIT Campus
Ajeet Singh Raina
 
PPTX
20170321 docker with Visual Studio 2017
Takayoshi Tanaka
 
PDF
Configuration Management and Transforming Legacy Applications in the Enterpri...
Docker, Inc.
 
PDF
What is Docker | Docker Tutorial for Beginners | Docker Container | DevOps To...
Edureka!
 
PDF
De 03 Introduction To V Cloud Api V1
ikewu83
 
PDF
A Shift from Monolith to Microservice using Docker
Ajeet Singh Raina
 
PDF
Introduction to Docker - Vellore Institute of Technology
Ajeet Singh Raina
 
Introduction to Docker
Knoldus Inc.
 
Docker Overview - Rise of the Containers
Ryan Hodgin
 
VMware@Night Container and Virtualization
Opvizor, Inc.
 
Lightning talk: 12 Factor Containers
Mukhtar Haji
 
Cloud Foundry Overview
Patrick Chanezon
 
Docker Networking | Container Network Model (CNM) | Docker Tutorial For Begin...
Edureka!
 
Demystifying Docker
Cloud Native Bangalore
 
Demystifying Docker101
Ajeet Singh Raina
 
Docker In Brief
Ritu Kamthan
 
Distribute Development Environment by docker-compose - May 2016 Docker Meetup...
Wiredcraft
 
Docker, cornerstone of cloud hybridation ? [Cloud Expo Europe 2016]
Adrien Blind
 
DevNexus 2017 - Building and Deploying 12 Factor Apps in Scala, Java, Ruby, a...
Neil Shannon
 
Docker For Windows | Setting Up Docker On Windows | Edureka
Edureka!
 
Introduction to Docker - VIT Campus
Ajeet Singh Raina
 
20170321 docker with Visual Studio 2017
Takayoshi Tanaka
 
Configuration Management and Transforming Legacy Applications in the Enterpri...
Docker, Inc.
 
What is Docker | Docker Tutorial for Beginners | Docker Container | DevOps To...
Edureka!
 
De 03 Introduction To V Cloud Api V1
ikewu83
 
A Shift from Monolith to Microservice using Docker
Ajeet Singh Raina
 
Introduction to Docker - Vellore Institute of Technology
Ajeet Singh Raina
 
Ad

Recently uploaded (20)

PDF
ICONIQ State of AI Report 2025 - The Builder's Playbook
Razin Mustafiz
 
PDF
5 Things to Consider When Deploying AI in Your Enterprise
Safe Software
 
PPTX
2025 HackRedCon Cyber Career Paths.pptx Scott Stanton
Scott Stanton
 
PDF
Optimizing the trajectory of a wheel loader working in short loading cycles
Reno Filla
 
PDF
99 Bottles of Trust on the Wall — Operational Principles for Trust in Cyber C...
treyka
 
PDF
Kubernetes - Architecture & Components.pdf
geethak285
 
PPTX
MARTSIA: A Tool for Confidential Data Exchange via Public Blockchain - Poster...
Michele Kryston
 
PDF
Hello I'm "AI" Your New _________________
Dr. Tathagat Varma
 
PDF
Peak of Data & AI Encore AI-Enhanced Workflows for the Real World
Safe Software
 
PDF
DoS Attack vs DDoS Attack_ The Silent Wars of the Internet.pdf
CyberPro Magazine
 
PPTX
Wondershare Filmora Crack Free Download 2025
josanj305
 
PDF
Dev Dives: Accelerating agentic automation with Autopilot for Everyone
UiPathCommunity
 
PPTX
New ThousandEyes Product Innovations: Cisco Live June 2025
ThousandEyes
 
PDF
Modern Decentralized Application Architectures.pdf
Kalema Edgar
 
PDF
Pipeline Industry IoT - Real Time Data Monitoring
Safe Software
 
PDF
How to Visualize the ​Spatio-Temporal Data Using CesiumJS​
SANGHEE SHIN
 
PPTX
Agentforce World Tour Toronto '25 - MCP with MuleSoft
Alexandra N. Martinez
 
PPTX
CapCut Pro PC Crack Latest Version Free Free
josanj305
 
PDF
Quantum Threats Are Closer Than You Think – Act Now to Stay Secure
WSO2
 
PDF
Enhancing Environmental Monitoring with Real-Time Data Integration: Leveragin...
Safe Software
 
ICONIQ State of AI Report 2025 - The Builder's Playbook
Razin Mustafiz
 
5 Things to Consider When Deploying AI in Your Enterprise
Safe Software
 
2025 HackRedCon Cyber Career Paths.pptx Scott Stanton
Scott Stanton
 
Optimizing the trajectory of a wheel loader working in short loading cycles
Reno Filla
 
99 Bottles of Trust on the Wall — Operational Principles for Trust in Cyber C...
treyka
 
Kubernetes - Architecture & Components.pdf
geethak285
 
MARTSIA: A Tool for Confidential Data Exchange via Public Blockchain - Poster...
Michele Kryston
 
Hello I'm "AI" Your New _________________
Dr. Tathagat Varma
 
Peak of Data & AI Encore AI-Enhanced Workflows for the Real World
Safe Software
 
DoS Attack vs DDoS Attack_ The Silent Wars of the Internet.pdf
CyberPro Magazine
 
Wondershare Filmora Crack Free Download 2025
josanj305
 
Dev Dives: Accelerating agentic automation with Autopilot for Everyone
UiPathCommunity
 
New ThousandEyes Product Innovations: Cisco Live June 2025
ThousandEyes
 
Modern Decentralized Application Architectures.pdf
Kalema Edgar
 
Pipeline Industry IoT - Real Time Data Monitoring
Safe Software
 
How to Visualize the ​Spatio-Temporal Data Using CesiumJS​
SANGHEE SHIN
 
Agentforce World Tour Toronto '25 - MCP with MuleSoft
Alexandra N. Martinez
 
CapCut Pro PC Crack Latest Version Free Free
josanj305
 
Quantum Threats Are Closer Than You Think – Act Now to Stay Secure
WSO2
 
Enhancing Environmental Monitoring with Real-Time Data Integration: Leveragin...
Safe Software
 

Getting started vmware apps

  • 1. Virtualize Planet Getting Started, writing VMware APPs for novice programmers Sponsored by www.virtualizeplanet.com Author: Ricky El-Qasem: 2011
  • 2. Breaking the magicians code 11/23/2012 2
  • 3. No Programmers Allowed  I’m not a programmer  I do not speak in Fortran or C++  The point of this session is that its for novices like me www.virtualizeplanet.com 11/23/2012 3
  • 4. A word from the sponsors All apps mentioned in this presentation are not the products of Canopy Cloud. Ricky developed these apps before joining Canopy. Canopy Private Cloud Solutions Catalogue: Vertical & Horizontal Workloads Management & Orchestration vCloud Director - vSphere Canopy Appstore Canopy Cloud Infrastructure Vblock - Best-of-Breed www.virtualizeplanet.com 11/23/2012 4
  • 5. My Apps  VPsnapper = where it all started  Resource Pool Scheduler  vDisk Waste Finder  vSphere Plug-in Wizard = Best Free Tools VMworld 2011  vDisk Informer www.virtualizeplanet.com 11/23/2012 5
  • 6. Different APIs  COM API  Web server API = SDK  PowerCLI  Etc etc www.virtualizeplanet.com 11/23/2012 6
  • 7. What you need before you begin  .Net IDE = Visual Studio .Net or  Java IDE = Netbeans www.virtualizeplanet.com 11/23/2012 7
  • 8. So how did I do it?  VPsnapper I needed a way to revert the default snapshots on all my VMs with one click + COM API Document www.virtualizeplanet.com 11/23/2012 8
  • 9. VPSnapper www.virtualizeplanet.com 11/23/2012 9
  • 10. The SDK is the future  Resource Pool Scheduler •Student gave me an idea. I needed to be able to shift resource allocation from pool to pool • Once again I used the book and the SDK programmers guide but failed at stage 1 • Stage 1 was to list all VMs running • I posted my failure on VMTN = VMware Communities • Few days later VMware sent me a fixed version of my test app. • This was a huge springboard www.virtualizeplanet.com 11/23/2012 10
  • 11. Another Useful Book  Samples are in JAVA  However I found I could easily copy from JAVA to C# .NET www.virtualizeplanet.com 11/23/2012 11
  • 12. The SDK Tree ExtensibleManagedObject ManagedEntity ResourcePool ComputeResource Hostsystem Datacenter Folder VirtualMachine ClusterComputeResource www.virtualizeplanet.com 11/23/2012 12
  • 13. MOB = Managed Object Browser  https://yourserver/mob www.virtualizeplanet.com 11/23/2012 13
  • 14. How to work with the SDK  Make a connection  Filter only what you need – Proprerty Spec  Which hierarchy objects to search - Traversal Spec www.virtualizeplanet.com 11/23/2012 14
  • 15. VIMAPI in .net  2 x Dlls – import in to your code  Using Statement: www.virtualizeplanet.com 11/23/2012 15
  • 16. MOREF Managed Object Reference  You do not manipulate the VMware objects like VMs, Folders, Hosts and Datastores directly  You work with a representation of those objects known as a Managed Object Reference aka MOREF  Its all about the MOREF! www.virtualizeplanet.com 11/23/2012 16
  • 17. Data model  Managed Object Types = objects that have properties and methods  MOREF = local representation  Data Object = just pure data and no actions www.virtualizeplanet.com 11/23/2012 17
  • 18. vSphere Plug-in Wizard  Finalist in Best Free vSphere Tools VMworld 2011  Plugs in Website of your choice into vSphere Client www.virtualizeplanet.com 11/23/2012 18
  • 19. vSphere Plug-in Wizard www.virtualizeplanet.com 11/23/2012 19
  • 20. vDisk Informer  Helps you find wasted vDisk space  Helps you find misaligned vDisks  Use Gparted to fix www.virtualizeplanet.com 11/23/2012 20
  • 21. vDisk Waste Finder  Previous version of vDisk Informer  VMUG can have copy of code.  Demo www.virtualizeplanet.com 11/23/2012 21
  • 22. Extreme GUI Makeover  Before  After www.virtualizeplanet.com 11/23/2012 22
  • 23. Tips on creating a sexy GUI www.virtualizeplanet.com 11/23/2012 23
  • 24. Tips on creating a sexy GUI www.virtualizeplanet.com 11/23/2012 24
  • 25. Tips on creating a sexy GUI www.virtualizeplanet.com 11/23/2012 25
  • 26. www.virtualizeplanet.com 11/23/2012 26
  • 27. Writing Config www.virtualizeplanet.com 11/23/2012 27
  • 28. Performing an action ManagedObjectReference moref_task = _service.PowerOffVM (moref_VM, moref_Host); www.virtualizeplanet.com 11/23/2012 28
  • 29. My best tip as a novice  Take an existing example and hack it to death with trial and error until you get it working for your needs  If something doesn’t work post it on VMware's Community forum  After today code for vDisk Waste Finder will be available from my blog www.virtualizeplanet.com www.virtualizeplanet.com 11/23/2012 29
  • 30. Disclaimer: Virtualize Planet will not be held liable for any actions you perform in your environment. Anything you learn from this material should be used at your own discretion and be warned actions you perform can be damaging. Always consult a professional. www.virtualizeplanet.com 11/23/2012 30

Editor's Notes

  • #31: I hope you enjoyed this material and look out for my next one what ever that may be.