vGhetto - DoubleCloud: Public Cloud · 2011. 5. 26. · Motivation for vGhetto • Build on top of...

15
vGh William www.virtually @la hetto m Lam yghetto.com amw

Transcript of vGhetto - DoubleCloud: Public Cloud · 2011. 5. 26. · Motivation for vGhetto • Build on top of...

  • vGhetto

    William Lamwww.virtuallyghetto.com

    @lamw

    vGhetto

    William Lamwww.virtuallyghetto.com

    @lamw

  • This presentation is not about the projects ...This presentation is not about the

  • What is vGhetto?

    • Is an open source repository containing Perl and Shell scripts to help Administrators manage and automate your vSphere environment

    • Started back in 2009 as a VMTN community doc and it is also hosted on Sourceforge

    • Over 100+ scripts in the repository to date

    • Majority of the scripts are written using vSphere SDK for Perl which relies on both the VI and vSphere APIs

    • Scripts can run on any system installed with vCLI (Windows/Linux/OSX) or VMware vMA

    Is an open source repository containing Perl and Shell scripts to help Administrators manage and automate your

    Started back in 2009 as a VMTN community doc and it is

    Over 100+ scripts in the repository to date

    Majority of the scripts are written using vSphere SDK for Perl which relies on both the VI and vSphere APIs

    Scripts can run on any system installed with vCLI (Windows/Linux/OSX) or VMware vMA

  • Motivation for vGhetto

    • Reoccurring questions in automating common and advanced vSphere tasks in VMTN forums

    • VMware did not have a centralized location in finding example scripts

    Reoccurring questions in automating common and advanced vSphere tasks in VMTN forums

    VMware did not have a centralized location in finding

  • Motivation for vGhetto

    • Build on top of the VMware vCLIo Limited in functionality, host centric operationso Does not leverage the full capabilities of vSphere APIs

    • vSphere API is very complexo Simplify with examples and share

    Build on top of the VMware vCLILimited in functionality, host centric operationsDoes not leverage the full capabilities of vSphere APIs

    Simplify with examples and share

  • vSphere Administrator Tasks

    • Fault Tolerance Management• VAAI & SIOC Management• Extracting ESX(i) WWPN• Extracting VM MAC Addresses• Thin Provisioning/Utilization reporting • RDM Management• RDM Management• ISO Management• Floppy Management • Disk Management• vApp operations (Linked Cloning vApps)• Hardware and Health monitoring• Reporting• Virtual Machine screenshots • Create Linked Clones

    vSphere Administrator Tasks

    Extracting VM MAC AddressesThin Provisioning/Utilization reporting

    vApp operations (Linked Cloning vApps)Hardware and Health monitoring

  • Creating Linked Clone using vSphere API

    • Traditionally available through Lab Manager & View

    Creating Linked Clone using vSphere API

    Traditionally available through Lab Manager & View

  • my $relocate_spec =VirtualMachineRelocateSpec->new(datastore => $ds_info{mor},

    host => $host_view,diskMoveType => "createNewChildDiskBacking",

    Creating Linked Clone using vSphere API

    • Introduced in vSphere 4.0 API

    diskMoveType => "createNewChildDiskBacking",pool => $comp_res_view

    my $clone_spec = VirtualMachineCloneSpec

    $vm_view ->CloneVM_Task(folder => $vm_viewname => Opts::get_option('vmname_destination'),spec => $clone_spec);

    >new(datastore => $ds_info{mor},host => $host_view,diskMoveType => "createNewChildDiskBacking",

    Creating Linked Clone using vSphere API

    diskMoveType => "createNewChildDiskBacking",pool => $comp_res_view->resourcePool);

    my $clone_spec = VirtualMachineCloneSpec->new( .....);

    (folder => $vm_view->parent,name => Opts::get_option('vmname_destination'),

  • vSphere Health Check Report

    http://communities.vmware.com/docs/DOC

    vSphere Health Check Report

    http://communities.vmware.com/docs/DOC-9842

  • • Snapshots• Mounted CD-ROM• VMware Tools version• ..... and much much more!

  • vSphere Security Hardening Report

    http://communities.vmware.com/docs/DOC

    vSphere Security Hardening Report

    http://communities.vmware.com/docs/DOC-11901

  • What makes this all possible?

    • Power of the vSphere API• Speak SOAP, you can talk to the vSphere API

    What makes this all possible?

    Speak SOAP, you can talk to the vSphere API

  • Anything you can do in vSphere Client, you can do using the vSphere API ( almost - 99.9%)

    The vSphere API is not just for developers, administrators can use it too

    Take home message:

    The vSphere API is platform agnostic, as long as you can speak SOAP, you can talk to vSphere

    Anything you can do in vSphere Client, you can do using the

    The vSphere API is not just for developers, administrators can

    The vSphere API is platform agnostic, as long as you can speak SOAP, you can talk to vSphere

  • More Information

    http://communities.vmware.com/docs/DOChttp://sourceforge.net/projects/vghetto/http://www.virtuallyghetto.com/

    http://communities.vmware.com/docs/DOC-9852http://sourceforge.net/projects/vghetto/

  • Thank You

    Congratulations to Steve Congratulations to Steve for VI Java's 3rd Anniversary!

    Thank You

    Congratulations to Steve Congratulations to Steve for VI Java's 3rd Anniversary!