Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Say Bye to VMware PowerCLI ! Time to "GOVC"

602 views

Published on

An Open source project with close to 1000 GITHUB stars and a statically compiled vSphere CLI built on top of govmomi.

Published in: Software
  • Be the first to comment

Say Bye to VMware PowerCLI ! Time to "GOVC"

  1. 1. Say Bye to VMware PowerCLI Presenter: Ajeet Singh Raina
  2. 2. Let’s talk about VMware stuffs …
  3. 3. Areas of Automation Provisioning Operation Maintenance • Administrative tasks • Updates & Upgrades • Reporting • Configuration • Detection of Failures • Availability • Health • Scaling • Capacity Planning • Resource Allocation • Datacenter Infrastructure • Virtual Datacenter • VMs • Applications • Workloads • Desktops
  4. 4. VMware PowerCLI ~ automation to survive the virtual world
  5. 5. The Purpose of VMware PowerCLI https://code.vmware.com/tool/vmware-powercli/6.5 • A CLI and scripting tool built on Windows PowerShell • Automate all aspects of vSphere Management which includes network, storage, VMs, guest OS and much more.. Runs on [Server] • Windows Server 2016 • Windows Server 2012 R2 • Windows Server 2008 R2 Service Pack 1 Runs on [WorkStation] • Windows 10 • Windows 8.1 • Windows 7 Service Pack 1 • Ubuntu 16.04 • macOS 10.12 More than 500 cmdlets for managing VMware vSphere products PowerShell Interface for Managing VMware Products
  6. 6. PowerCLI Cheatsheet
  7. 7. Challenges
  8. 8. We need a tool which is - Simple Easy to Use Can be used by Dev & Ops Team both. • No additional programming skillset required. • Non-complex in day-to-day operations Portable Scalable Lightweight • Must be portable • Less Dependency • Easy to install • Easy Maintenance Linux Friendly Based on Linux Platform • Can be used easily by Linux Engineers. • Can be automated by Linux Shell scripting. Built for Distributed System • Solid option for Public Cloud Infrastructure. • Can be used to deploy VMs on both – Public & Private Cloud.
  9. 9. Introducing GOVC
  10. 10. What is GOVC?  An Open source project with close to 1000 GITHUB stars  A statically compiled vSphere CLI built on top of govmomi.  Govmomi is a GoLang library for interacting with VMware vSphere APIs (ESXi & vCenter)  This library is built for and tested against ESXi and vCenter 6.0, 6.5 and 6.7.  Written in Go Language  Compiled for Linux, FreeBSD, OSX & Windows  User friendly CLI alternative to GUI  Linux-Friendly  Can be used with Bash scripting for automation tasks Projects using govmomi
  11. 11. Demo #1 - Installing GOVC - Create a New Datacenter - Creating a new Cluster - Adding ESXi Hosts to the Cluster < 5 Min
  12. 12. Demo #2 - Deploying Virtual Machine from ISO < 2 Min
  13. 13. Demo #3 - Deploying Virtual Machine from Template in 5 Min < 2 Min
  14. 14. Demo #4 - Demonstrating SvMOTION < 2 Min
  15. 15. GOVC Capabilities https://github.com/vmware/govmomi/blob/master/govc/USAGE.md
  16. 16. #1 - Changing configuration of the given cluster
  17. 17. #2 - Changing the cluster rule
  18. 18. #3 - Creating Distributed vSwitch in Datacenter
  19. 19. #4 - Enable or disable VNC for VM
  20. 20. #5 – Performing vMotion
  21. 21. https://github.com/collabnix/govc
  22. 22. Welcoming Your Contributions.. https://github.com/vmware/govmomi https://github.com/collabnix/govc https://github.com/vmware/govmomi/tree/master/govc
  23. 23. Thank You

×