SlideShare a Scribd company logo
How to Exchange Status Message Between Guest
and Host Using RPC
Max Daneri, VMware
William Lam, VMware
TEX5109
22
Disclaimer
 This presentation may contain product features that are currently
under development.
 This overview of new technology represents no commitment from
VMware to deliver these features in any generally available
product.
 Features are subject to change, and must not be included in
contracts, purchase orders, or sales agreements of any kind.
 Technical feasibility and market demand will affect final delivery.
 Pricing and packaging for any new technologies or features
discussed or presented have not been determined.
33
Agenda
• Introduction
• Dilemma / Motivation
• What is GuestRPC
• Use Cases
• How GuestRPC works
• How to use GuestRPC to exchange message Guest-Host
• How to get guest message from vSphere SDK
• How to use vSphere SDK to exchange message Host-Guest
• Summary
44
Introduction
William Lam
Staff Product Integration Architect, VMware R&D
Blog: www.virtuallyghetto.com
Twitter: @lamw
Max Daneri
Senior Consultant CIM Emea
Web: http://www.vmts.net
Twitter @m_daneri
55
Dilemma
vApp network
vApp
External Network (set up by system admin)
External Organization Network (set up by system admin)
Organization
Internal Organization network (set up by system admin)
vApp network
(set up by org admin/vApp author, internal to vApp)
External Organization Network
vApp network
1 2 3
4
56
7
8
I’ve to monitor this
How can I do ?
66
Motivation
VMware vSphere
How do I retrieve info from
Hypervisor from within Guest OS?
Blog:http://www.virtuallyghetto.com/2011/01/how-to-extract-
host-information-from.html
77
Guest RPC
 It is private communication channel between the guest and host
 It works like a bidirectional communication protocol over a shared
memory between host and guest
 Write and read the Virtual Machine configuration running file (write from
VM is limited to some specific parameters)
 Write message on Virtual Machine log file
88
Use Cases
 Reporting
• Virtual Machine status
(disk space, network connectivity, connections failures, etc.)
• VM applications state
(services or daemons running state, number of database transactions, etc.)
 Application configuration
• A well know application using this is VMware Horizon View
99
How Does GuestRPC Work?
It’s a very low level “communication” method, in practice the communication is
done by accessing a special I/O port, specific to VMware virtual machines
5658h, and setting a specific command parameter
The following Assembly code invokes “Backdoor” functions:
1010
How to Use GuestRPC
There are currently three methods to use Guest RPC:
 VMware Guest API (Supported)
 Native VMware Tools command line
 Fling Guest RPC .NET and Java library
1111
VMware Supported Guest API
1212
VMware Supported Guest API
 These are the only officially supported API
 HA Application Monitoring API
• The vSphere High Availability (HA) feature for ESXi hosts in a cluster provides
protection for a guest OS and applications running in a virtual machine by
restarting the virtual machine if a guest OS or application failure occurs.
 Guest API
• The vSphere Guest API provides functions, that allow
management agents and other software to collect data about the state and pe
rformance of a VMware virtual machine.
The Guest API provides fast access to resource management information, with
out the need for authentication
More info on http://pubs.vmware.com/vsphere-
51/topic/com.vmware.ICbase/PDF/vsp51_guest_HAappmon_sdk.pdf
1313
Guest RPC Using VMware Tools
1414
Guest RPC Using VMware Tools
VMware Tools has a native support for Guest RPC
vmtoolsd –cmd <Guest RPC Command>
You can find it on :
 UNIX/Linux - /usr/bin/vmtoolsd
 Windows - C:Program FilesVMwareVMware Toolsvmtoolsd.exe
1515
Guest RPC Commands
1616
Guest RPC Commands 1/2
To work with VMX file (running configuration copy)
 INFO-SET guestinfo.<varname> <value>
Set a new temporary VM configuration parameter called guestinfo.varname to a
specific value
Note:
• Any temporary parameter has to start with guestinfo.
• These values remain on memory until the next VM power cycle
 INFO-GET <varname>
Retrieves any persistent or temporary value inside VM running configuration file
To write a log
 PLOG <message>
Write a log message on Virtual machine log file (vmware.log)
1717
Guest RPC Commands 2/2
HA Application monitoring command
 GuestAppMonitor.Cmd.Enable
Enable HA application monitoring
 GuestAppMonitor.Cmd.Disable
Requests the virtual machine infrastructure to stop monitoring the calling program.
 GuestAppMonitor.Cmd.IsEnabled
Returns the current recorded state of application monitoring.
 GuestAppMonitor.Cmd.MarkActive
Sends a request to mark the program as active. This function is also known as the
heartbeat because your program must call it at least once every 30 seconds while
your application monitoring is enabled, or the virtual machine infrastructure will
determine that the monitoring has failed.
 GuestAppMonitor.Cmd.GetAppStatus
Returns the current status recorded by the virtual machine infrastructure
as ‘Green’, ‘Red’, or ‘Gray’.
• Green. Virtual machine infrastructure acknowledges that the application is being monitored.
• Red. Virtual machine infrastructure does not think the application is being monitored. The HA
monitoring agent will initialize an asynchronous reset on the virtual machine if the status is Red.
• Gray. App monitor is disabled
1818
Fling Guest RPC Library
1919
Fling Guest RPC Library
A new library that make any RPC command easy to use
OS Support :
 Windows 32bit/64bit (Java and .NET)
 Any Linux 32bit/64bit (Java and Mono)
Available on VMware labs with source code soon
2020
Fling Guest RPC Library 1/2
 GuestInfo functions
• void SetGuestInfo(string key, string value )
Set a new temporary VM configuration parameter called guestinfo.key to a
specific value
• string GetGuestInfo(string key )
Retrieves any persistent or temporary value inside VM running
configuration file
 Various functions
• VMLog(string log)
Write a log message on Virtual machine log file (vmware.log)
• Boolean VMCheckVirtual()
Check if it is running on a virtual machine
• String CmdRpc(String command)
Exec a generic command
2121
Fling Guest RPC Library 2/2
Application monitor functions
 GuestAppMonitorEnable()
Enable HA application monitoring
 Boolean GuestAppMonitorDisable()
Requests the virtual machine infrastructure to stop monitoring the calling
program.
 Boolean GuestAppMonitorIsEnabled()
Returns the current recorded state of application monitoring.
 void GuestAppMonitorMarkActive()
Sends a request to mark the program as active.
 string GuestAppMonitorGetAppStatus()
Returns the current status recorded by the virtual machine infrastructure as
‘Green’, ‘Red’, or ‘Gray’.
2222
How to use “GuestInfo”
Note: Guestinfo.<*> is a VMX runtime property only, and
disappear after any VM power cycle
2323
How to Use “GuestInfo”
From a vSphere Web Service API point of view Guestinfo.<*> values can
be collected visiting the content of
VirtualMachine.config.extraConfig (Type:OptionValue[ ])
Data Object – OptionValue
2424
PowerShell 1/2
Param (
[parameter(Mandatory=$true)] $VCenter,
[parameter(Mandatory=$true)] $VM
)
$format = @{Expression= {$_.Key} ;
Label="Key";width=25}, `
@{Expression= {$_.Value};
Label="Value";width=15}
Connect-VIServer $VCenter
(get-vm -Name $VM|get-view) | where {
$_.key.contains("guestinfo.vmworld") }
| Format-Table -Property $format | Out-String
Sample PowerShell script
2525
PowerShell 2/2
Results
--------------------------------------------------
Key Value
--- -----
guestinfo.vmworld.sda1 OK
guestinfo.vmworld.Defa... OK
guestinfo.vmworld.Micr... FAILS
2626
What Else Can We Do With This Data?
2727
vSphere Web Client Extension
Simple vSphere Web Client project showing how to use
Guest RPC
2828
Another Project Using GuestRPC
• VAM (Virtual Application Monitor)
• Modular and expandable open source networks and
applications monitor
• Available on https://labs.vmware.com Release date: TBD
2929
vSphere Client Plugin – VAM demo
3030
Summary
 GuestRPC is a powerful method to exchange information between
an ESXi host and its virtual machines
 Accessible through API or CLI
 Easy to use GuestRPC Library (Fling)
 Best for last, everything can be done without use of a
network connection
3131
TAP Membership Renewal – Great Benefits
• TAP Access membership includes:
New TAP Access NFR Bundle
• Access to NDA Roadmap sessions at VMworld, PEX and Onsite/Online
• VMware Solution Exchange (VSX) and Partner Locator listings
• VMware Ready logo (ISVs)
• Partner University and other resources in Partner Central
• TAP Elite includes all of the above plus:
• 5X the number of licenses in the NFR Bundle
• Unlimited product technical support
• 5 instances of SDK Support
• Services Software Solutions Bundle
• Annual Fees
• TAP Access - $750
• TAP Elite - $7,500
• Send email to tapalliance@vmware.com
3232
TAP Resources
 TAP
• TAP support: 1-866-524-4966
• Email: tapalliance@vmware.com
• Partner Central: http://www.vmware.com/partners/partners.html
 TAP Team
• Kristen Edwards – Sr. Alliance Program Manager
• Sheela Toor – Marketing Communication Manager
• Michael Thompson – Alliance Web Application Manager
• Audra Bowcutt –
• Ted Dunn –
• Dalene Bishop – Partner Enablement Manager, TAP
 VMware Solution Exchange
• Marketplace support –
vsxalliance@vmware.com
• Partner Marketplace @ VMware
booth pod TAP1
THANK YOU
How to Exchange Status Message Between Guest
and Host Using RPC
Max Daneri, VMware
William Lam, VMware
TEX5109

More Related Content

Viewers also liked

Res reclamation_VM
Res reclamation_VMRes reclamation_VM
Res reclamation_VM
Roopa Krishnaji Rao
 
Hosted Virtualization
Hosted VirtualizationHosted Virtualization
Hosted Virtualization
jayallen77
 
OPERATING SYSTEM BY DR .MUGABO MG MKAMA
OPERATING SYSTEM BY DR .MUGABO MG MKAMAOPERATING SYSTEM BY DR .MUGABO MG MKAMA
OPERATING SYSTEM BY DR .MUGABO MG MKAMA
Mugabo Mkama
 
Virtual Pc Seminar
Virtual Pc SeminarVirtual Pc Seminar
Virtual Pc Seminar
guest5b5549
 
Monitoring Docker Containers and Dockererized Application
Monitoring Docker Containers and Dockererized ApplicationMonitoring Docker Containers and Dockererized Application
Monitoring Docker Containers and Dockererized Application
Rahul Krishna Upadhyaya
 
QEMU in Cross building
QEMU in Cross buildingQEMU in Cross building
QEMU in Cross building
Tetsuyuki Kobayashi
 

Viewers also liked (6)

Res reclamation_VM
Res reclamation_VMRes reclamation_VM
Res reclamation_VM
 
Hosted Virtualization
Hosted VirtualizationHosted Virtualization
Hosted Virtualization
 
OPERATING SYSTEM BY DR .MUGABO MG MKAMA
OPERATING SYSTEM BY DR .MUGABO MG MKAMAOPERATING SYSTEM BY DR .MUGABO MG MKAMA
OPERATING SYSTEM BY DR .MUGABO MG MKAMA
 
Virtual Pc Seminar
Virtual Pc SeminarVirtual Pc Seminar
Virtual Pc Seminar
 
Monitoring Docker Containers and Dockererized Application
Monitoring Docker Containers and Dockererized ApplicationMonitoring Docker Containers and Dockererized Application
Monitoring Docker Containers and Dockererized Application
 
QEMU in Cross building
QEMU in Cross buildingQEMU in Cross building
QEMU in Cross building
 

Similar to VMworld 2013: How to Exchange Status Message Between Guest and Host Using RPC

Vsc 71-se-presentation-training
Vsc 71-se-presentation-trainingVsc 71-se-presentation-training
Vsc 71-se-presentation-training
narit_ton
 
DC Metro And Federal VMUG March 2009
DC Metro And Federal VMUG March 2009DC Metro And Federal VMUG March 2009
DC Metro And Federal VMUG March 2009
langonej
 
vmaf deployement & upgrade for software projects
vmaf deployement & upgrade for software projectsvmaf deployement & upgrade for software projects
vmaf deployement & upgrade for software projects
Thierry Gayet
 
Expanding your options with the MQ Appliance
Expanding your options with the MQ ApplianceExpanding your options with the MQ Appliance
Expanding your options with the MQ Appliance
Anthony Beardsmore
 
VMworld 2013: Keep it Simple and Integrated - Out-of the Box Cross-System Aut...
VMworld 2013: Keep it Simple and Integrated - Out-of the Box Cross-System Aut...VMworld 2013: Keep it Simple and Integrated - Out-of the Box Cross-System Aut...
VMworld 2013: Keep it Simple and Integrated - Out-of the Box Cross-System Aut...
VMworld
 
VMworld 2013: Failsafe at PCIe Level: Enabling PCIe Hot Swap
VMworld 2013: Failsafe at PCIe Level: Enabling PCIe Hot Swap VMworld 2013: Failsafe at PCIe Level: Enabling PCIe Hot Swap
VMworld 2013: Failsafe at PCIe Level: Enabling PCIe Hot Swap
VMworld
 
VMworld Europe 204: Technical Deep Dive on EVO: RAIL, the new VMware Hyper-Co...
VMworld Europe 204: Technical Deep Dive on EVO: RAIL, the new VMware Hyper-Co...VMworld Europe 204: Technical Deep Dive on EVO: RAIL, the new VMware Hyper-Co...
VMworld Europe 204: Technical Deep Dive on EVO: RAIL, the new VMware Hyper-Co...
VMworld
 
vVMworld 2013: Deploying, Troubleshooting, and Monitoring VMware NSX Distribu...
vVMworld 2013: Deploying, Troubleshooting, and Monitoring VMware NSX Distribu...vVMworld 2013: Deploying, Troubleshooting, and Monitoring VMware NSX Distribu...
vVMworld 2013: Deploying, Troubleshooting, and Monitoring VMware NSX Distribu...
VMworld
 
Server Virtualization using Hyper-V
Server Virtualization using Hyper-VServer Virtualization using Hyper-V
Server Virtualization using Hyper-V
Md Yousup Faruqu
 
Microsoft Server Virtualization and Private Cloud
Microsoft Server Virtualization and Private CloudMicrosoft Server Virtualization and Private Cloud
Microsoft Server Virtualization and Private Cloud
Md Yousup Faruqu
 
VMworld 2013: ESXi Native Networking Driver Model - Delivering on Simplicity ...
VMworld 2013: ESXi Native Networking Driver Model - Delivering on Simplicity ...VMworld 2013: ESXi Native Networking Driver Model - Delivering on Simplicity ...
VMworld 2013: ESXi Native Networking Driver Model - Delivering on Simplicity ...
VMworld
 
IPLOOK vEPC solution
IPLOOK vEPC solutionIPLOOK vEPC solution
IPLOOK vEPC solution
IPLOOK Networks
 
Eco4Cloud - Company Presentation
Eco4Cloud - Company PresentationEco4Cloud - Company Presentation
Eco4Cloud - Company Presentation
Eco4Cloud
 
VMWARE Professionals - Security, Multitenancy and Flexibility
VMWARE Professionals -  Security, Multitenancy and FlexibilityVMWARE Professionals -  Security, Multitenancy and Flexibility
VMWARE Professionals - Security, Multitenancy and Flexibility
Paulo Freitas
 
Monitoring CloudStack and components
Monitoring CloudStack and componentsMonitoring CloudStack and components
Monitoring CloudStack and components
ShapeBlue
 
VMware End-User-Computing Best Practices Poster
VMware End-User-Computing Best Practices PosterVMware End-User-Computing Best Practices Poster
VMware End-User-Computing Best Practices Poster
VMware Academy
 
Windows Server 2008 R2 & SP1 for IT Pro's
Windows Server 2008 R2 & SP1 for IT Pro'sWindows Server 2008 R2 & SP1 for IT Pro's
Windows Server 2008 R2 & SP1 for IT Pro's
Amit Gatenyo
 
Intel update
Intel updateIntel update
Intel update
The Linux Foundation
 
vCenter Orchestrator APIs
vCenter Orchestrator APIsvCenter Orchestrator APIs
vCenter Orchestrator APIs
Pablo Roesch
 
Vsphere 4-partner-training180
Vsphere 4-partner-training180Vsphere 4-partner-training180
Vsphere 4-partner-training180
Suresh Kumar
 

Similar to VMworld 2013: How to Exchange Status Message Between Guest and Host Using RPC (20)

Vsc 71-se-presentation-training
Vsc 71-se-presentation-trainingVsc 71-se-presentation-training
Vsc 71-se-presentation-training
 
DC Metro And Federal VMUG March 2009
DC Metro And Federal VMUG March 2009DC Metro And Federal VMUG March 2009
DC Metro And Federal VMUG March 2009
 
vmaf deployement & upgrade for software projects
vmaf deployement & upgrade for software projectsvmaf deployement & upgrade for software projects
vmaf deployement & upgrade for software projects
 
Expanding your options with the MQ Appliance
Expanding your options with the MQ ApplianceExpanding your options with the MQ Appliance
Expanding your options with the MQ Appliance
 
VMworld 2013: Keep it Simple and Integrated - Out-of the Box Cross-System Aut...
VMworld 2013: Keep it Simple and Integrated - Out-of the Box Cross-System Aut...VMworld 2013: Keep it Simple and Integrated - Out-of the Box Cross-System Aut...
VMworld 2013: Keep it Simple and Integrated - Out-of the Box Cross-System Aut...
 
VMworld 2013: Failsafe at PCIe Level: Enabling PCIe Hot Swap
VMworld 2013: Failsafe at PCIe Level: Enabling PCIe Hot Swap VMworld 2013: Failsafe at PCIe Level: Enabling PCIe Hot Swap
VMworld 2013: Failsafe at PCIe Level: Enabling PCIe Hot Swap
 
VMworld Europe 204: Technical Deep Dive on EVO: RAIL, the new VMware Hyper-Co...
VMworld Europe 204: Technical Deep Dive on EVO: RAIL, the new VMware Hyper-Co...VMworld Europe 204: Technical Deep Dive on EVO: RAIL, the new VMware Hyper-Co...
VMworld Europe 204: Technical Deep Dive on EVO: RAIL, the new VMware Hyper-Co...
 
vVMworld 2013: Deploying, Troubleshooting, and Monitoring VMware NSX Distribu...
vVMworld 2013: Deploying, Troubleshooting, and Monitoring VMware NSX Distribu...vVMworld 2013: Deploying, Troubleshooting, and Monitoring VMware NSX Distribu...
vVMworld 2013: Deploying, Troubleshooting, and Monitoring VMware NSX Distribu...
 
Server Virtualization using Hyper-V
Server Virtualization using Hyper-VServer Virtualization using Hyper-V
Server Virtualization using Hyper-V
 
Microsoft Server Virtualization and Private Cloud
Microsoft Server Virtualization and Private CloudMicrosoft Server Virtualization and Private Cloud
Microsoft Server Virtualization and Private Cloud
 
VMworld 2013: ESXi Native Networking Driver Model - Delivering on Simplicity ...
VMworld 2013: ESXi Native Networking Driver Model - Delivering on Simplicity ...VMworld 2013: ESXi Native Networking Driver Model - Delivering on Simplicity ...
VMworld 2013: ESXi Native Networking Driver Model - Delivering on Simplicity ...
 
IPLOOK vEPC solution
IPLOOK vEPC solutionIPLOOK vEPC solution
IPLOOK vEPC solution
 
Eco4Cloud - Company Presentation
Eco4Cloud - Company PresentationEco4Cloud - Company Presentation
Eco4Cloud - Company Presentation
 
VMWARE Professionals - Security, Multitenancy and Flexibility
VMWARE Professionals -  Security, Multitenancy and FlexibilityVMWARE Professionals -  Security, Multitenancy and Flexibility
VMWARE Professionals - Security, Multitenancy and Flexibility
 
Monitoring CloudStack and components
Monitoring CloudStack and componentsMonitoring CloudStack and components
Monitoring CloudStack and components
 
VMware End-User-Computing Best Practices Poster
VMware End-User-Computing Best Practices PosterVMware End-User-Computing Best Practices Poster
VMware End-User-Computing Best Practices Poster
 
Windows Server 2008 R2 & SP1 for IT Pro's
Windows Server 2008 R2 & SP1 for IT Pro'sWindows Server 2008 R2 & SP1 for IT Pro's
Windows Server 2008 R2 & SP1 for IT Pro's
 
Intel update
Intel updateIntel update
Intel update
 
vCenter Orchestrator APIs
vCenter Orchestrator APIsvCenter Orchestrator APIs
vCenter Orchestrator APIs
 
Vsphere 4-partner-training180
Vsphere 4-partner-training180Vsphere 4-partner-training180
Vsphere 4-partner-training180
 

More from VMworld

VMworld 2016: vSphere 6.x Host Resource Deep Dive
VMworld 2016: vSphere 6.x Host Resource Deep DiveVMworld 2016: vSphere 6.x Host Resource Deep Dive
VMworld 2016: vSphere 6.x Host Resource Deep Dive
VMworld
 
VMworld 2016: Troubleshooting 101 for Horizon
VMworld 2016: Troubleshooting 101 for HorizonVMworld 2016: Troubleshooting 101 for Horizon
VMworld 2016: Troubleshooting 101 for Horizon
VMworld
 
VMworld 2016: Advanced Network Services with NSX
VMworld 2016: Advanced Network Services with NSXVMworld 2016: Advanced Network Services with NSX
VMworld 2016: Advanced Network Services with NSX
VMworld
 
VMworld 2016: How to Deploy VMware NSX with Cisco Infrastructure
VMworld 2016: How to Deploy VMware NSX with Cisco InfrastructureVMworld 2016: How to Deploy VMware NSX with Cisco Infrastructure
VMworld 2016: How to Deploy VMware NSX with Cisco Infrastructure
VMworld
 
VMworld 2016: Enforcing a vSphere Cluster Design with PowerCLI Automation
VMworld 2016: Enforcing a vSphere Cluster Design with PowerCLI AutomationVMworld 2016: Enforcing a vSphere Cluster Design with PowerCLI Automation
VMworld 2016: Enforcing a vSphere Cluster Design with PowerCLI Automation
VMworld
 
VMworld 2016: What's New with Horizon 7
VMworld 2016: What's New with Horizon 7VMworld 2016: What's New with Horizon 7
VMworld 2016: What's New with Horizon 7
VMworld
 
VMworld 2016: Virtual Volumes Technical Deep Dive
VMworld 2016: Virtual Volumes Technical Deep DiveVMworld 2016: Virtual Volumes Technical Deep Dive
VMworld 2016: Virtual Volumes Technical Deep Dive
VMworld
 
VMworld 2016: Advances in Remote Display Protocol Technology with VMware Blas...
VMworld 2016: Advances in Remote Display Protocol Technology with VMware Blas...VMworld 2016: Advances in Remote Display Protocol Technology with VMware Blas...
VMworld 2016: Advances in Remote Display Protocol Technology with VMware Blas...
VMworld
 
VMworld 2016: The KISS of vRealize Operations!
VMworld 2016: The KISS of vRealize Operations! VMworld 2016: The KISS of vRealize Operations!
VMworld 2016: The KISS of vRealize Operations!
VMworld
 
VMworld 2016: Getting Started with PowerShell and PowerCLI for Your VMware En...
VMworld 2016: Getting Started with PowerShell and PowerCLI for Your VMware En...VMworld 2016: Getting Started with PowerShell and PowerCLI for Your VMware En...
VMworld 2016: Getting Started with PowerShell and PowerCLI for Your VMware En...
VMworld
 
VMworld 2016: Ask the vCenter Server Exerts Panel
VMworld 2016: Ask the vCenter Server Exerts PanelVMworld 2016: Ask the vCenter Server Exerts Panel
VMworld 2016: Ask the vCenter Server Exerts Panel
VMworld
 
VMworld 2016: Virtualize Active Directory, the Right Way!
VMworld 2016: Virtualize Active Directory, the Right Way! VMworld 2016: Virtualize Active Directory, the Right Way!
VMworld 2016: Virtualize Active Directory, the Right Way!
VMworld
 
VMworld 2016: Migrating from a hardware based firewall to NSX to improve perf...
VMworld 2016: Migrating from a hardware based firewall to NSX to improve perf...VMworld 2016: Migrating from a hardware based firewall to NSX to improve perf...
VMworld 2016: Migrating from a hardware based firewall to NSX to improve perf...
VMworld
 
VMworld 2015: Troubleshooting for vSphere 6
VMworld 2015: Troubleshooting for vSphere 6VMworld 2015: Troubleshooting for vSphere 6
VMworld 2015: Troubleshooting for vSphere 6
VMworld
 
VMworld 2015: Monitoring and Managing Applications with vRealize Operations 6...
VMworld 2015: Monitoring and Managing Applications with vRealize Operations 6...VMworld 2015: Monitoring and Managing Applications with vRealize Operations 6...
VMworld 2015: Monitoring and Managing Applications with vRealize Operations 6...
VMworld
 
VMworld 2015: Advanced SQL Server on vSphere
VMworld 2015: Advanced SQL Server on vSphereVMworld 2015: Advanced SQL Server on vSphere
VMworld 2015: Advanced SQL Server on vSphere
VMworld
 
VMworld 2015: Virtualize Active Directory, the Right Way!
VMworld 2015: Virtualize Active Directory, the Right Way!VMworld 2015: Virtualize Active Directory, the Right Way!
VMworld 2015: Virtualize Active Directory, the Right Way!
VMworld
 
VMworld 2015: Site Recovery Manager and Policy Based DR Deep Dive with Engine...
VMworld 2015: Site Recovery Manager and Policy Based DR Deep Dive with Engine...VMworld 2015: Site Recovery Manager and Policy Based DR Deep Dive with Engine...
VMworld 2015: Site Recovery Manager and Policy Based DR Deep Dive with Engine...
VMworld
 
VMworld 2015: Building a Business Case for Virtual SAN
VMworld 2015: Building a Business Case for Virtual SANVMworld 2015: Building a Business Case for Virtual SAN
VMworld 2015: Building a Business Case for Virtual SAN
VMworld
 
VMworld 2015: Explaining Advanced Virtual Volumes Configurations
VMworld 2015: Explaining Advanced Virtual Volumes ConfigurationsVMworld 2015: Explaining Advanced Virtual Volumes Configurations
VMworld 2015: Explaining Advanced Virtual Volumes Configurations
VMworld
 

More from VMworld (20)

VMworld 2016: vSphere 6.x Host Resource Deep Dive
VMworld 2016: vSphere 6.x Host Resource Deep DiveVMworld 2016: vSphere 6.x Host Resource Deep Dive
VMworld 2016: vSphere 6.x Host Resource Deep Dive
 
VMworld 2016: Troubleshooting 101 for Horizon
VMworld 2016: Troubleshooting 101 for HorizonVMworld 2016: Troubleshooting 101 for Horizon
VMworld 2016: Troubleshooting 101 for Horizon
 
VMworld 2016: Advanced Network Services with NSX
VMworld 2016: Advanced Network Services with NSXVMworld 2016: Advanced Network Services with NSX
VMworld 2016: Advanced Network Services with NSX
 
VMworld 2016: How to Deploy VMware NSX with Cisco Infrastructure
VMworld 2016: How to Deploy VMware NSX with Cisco InfrastructureVMworld 2016: How to Deploy VMware NSX with Cisco Infrastructure
VMworld 2016: How to Deploy VMware NSX with Cisco Infrastructure
 
VMworld 2016: Enforcing a vSphere Cluster Design with PowerCLI Automation
VMworld 2016: Enforcing a vSphere Cluster Design with PowerCLI AutomationVMworld 2016: Enforcing a vSphere Cluster Design with PowerCLI Automation
VMworld 2016: Enforcing a vSphere Cluster Design with PowerCLI Automation
 
VMworld 2016: What's New with Horizon 7
VMworld 2016: What's New with Horizon 7VMworld 2016: What's New with Horizon 7
VMworld 2016: What's New with Horizon 7
 
VMworld 2016: Virtual Volumes Technical Deep Dive
VMworld 2016: Virtual Volumes Technical Deep DiveVMworld 2016: Virtual Volumes Technical Deep Dive
VMworld 2016: Virtual Volumes Technical Deep Dive
 
VMworld 2016: Advances in Remote Display Protocol Technology with VMware Blas...
VMworld 2016: Advances in Remote Display Protocol Technology with VMware Blas...VMworld 2016: Advances in Remote Display Protocol Technology with VMware Blas...
VMworld 2016: Advances in Remote Display Protocol Technology with VMware Blas...
 
VMworld 2016: The KISS of vRealize Operations!
VMworld 2016: The KISS of vRealize Operations! VMworld 2016: The KISS of vRealize Operations!
VMworld 2016: The KISS of vRealize Operations!
 
VMworld 2016: Getting Started with PowerShell and PowerCLI for Your VMware En...
VMworld 2016: Getting Started with PowerShell and PowerCLI for Your VMware En...VMworld 2016: Getting Started with PowerShell and PowerCLI for Your VMware En...
VMworld 2016: Getting Started with PowerShell and PowerCLI for Your VMware En...
 
VMworld 2016: Ask the vCenter Server Exerts Panel
VMworld 2016: Ask the vCenter Server Exerts PanelVMworld 2016: Ask the vCenter Server Exerts Panel
VMworld 2016: Ask the vCenter Server Exerts Panel
 
VMworld 2016: Virtualize Active Directory, the Right Way!
VMworld 2016: Virtualize Active Directory, the Right Way! VMworld 2016: Virtualize Active Directory, the Right Way!
VMworld 2016: Virtualize Active Directory, the Right Way!
 
VMworld 2016: Migrating from a hardware based firewall to NSX to improve perf...
VMworld 2016: Migrating from a hardware based firewall to NSX to improve perf...VMworld 2016: Migrating from a hardware based firewall to NSX to improve perf...
VMworld 2016: Migrating from a hardware based firewall to NSX to improve perf...
 
VMworld 2015: Troubleshooting for vSphere 6
VMworld 2015: Troubleshooting for vSphere 6VMworld 2015: Troubleshooting for vSphere 6
VMworld 2015: Troubleshooting for vSphere 6
 
VMworld 2015: Monitoring and Managing Applications with vRealize Operations 6...
VMworld 2015: Monitoring and Managing Applications with vRealize Operations 6...VMworld 2015: Monitoring and Managing Applications with vRealize Operations 6...
VMworld 2015: Monitoring and Managing Applications with vRealize Operations 6...
 
VMworld 2015: Advanced SQL Server on vSphere
VMworld 2015: Advanced SQL Server on vSphereVMworld 2015: Advanced SQL Server on vSphere
VMworld 2015: Advanced SQL Server on vSphere
 
VMworld 2015: Virtualize Active Directory, the Right Way!
VMworld 2015: Virtualize Active Directory, the Right Way!VMworld 2015: Virtualize Active Directory, the Right Way!
VMworld 2015: Virtualize Active Directory, the Right Way!
 
VMworld 2015: Site Recovery Manager and Policy Based DR Deep Dive with Engine...
VMworld 2015: Site Recovery Manager and Policy Based DR Deep Dive with Engine...VMworld 2015: Site Recovery Manager and Policy Based DR Deep Dive with Engine...
VMworld 2015: Site Recovery Manager and Policy Based DR Deep Dive with Engine...
 
VMworld 2015: Building a Business Case for Virtual SAN
VMworld 2015: Building a Business Case for Virtual SANVMworld 2015: Building a Business Case for Virtual SAN
VMworld 2015: Building a Business Case for Virtual SAN
 
VMworld 2015: Explaining Advanced Virtual Volumes Configurations
VMworld 2015: Explaining Advanced Virtual Volumes ConfigurationsVMworld 2015: Explaining Advanced Virtual Volumes Configurations
VMworld 2015: Explaining Advanced Virtual Volumes Configurations
 

Recently uploaded

[OReilly Superstream] Occupy the Space: A grassroots guide to engineering (an...
[OReilly Superstream] Occupy the Space: A grassroots guide to engineering (an...[OReilly Superstream] Occupy the Space: A grassroots guide to engineering (an...
[OReilly Superstream] Occupy the Space: A grassroots guide to engineering (an...
Jason Yip
 
Best 20 SEO Techniques To Improve Website Visibility In SERP
Best 20 SEO Techniques To Improve Website Visibility In SERPBest 20 SEO Techniques To Improve Website Visibility In SERP
Best 20 SEO Techniques To Improve Website Visibility In SERP
Pixlogix Infotech
 
TrustArc Webinar - 2024 Global Privacy Survey
TrustArc Webinar - 2024 Global Privacy SurveyTrustArc Webinar - 2024 Global Privacy Survey
TrustArc Webinar - 2024 Global Privacy Survey
TrustArc
 
June Patch Tuesday
June Patch TuesdayJune Patch Tuesday
June Patch Tuesday
Ivanti
 
Public CyberSecurity Awareness Presentation 2024.pptx
Public CyberSecurity Awareness Presentation 2024.pptxPublic CyberSecurity Awareness Presentation 2024.pptx
Public CyberSecurity Awareness Presentation 2024.pptx
marufrahmanstratejm
 
Choosing The Best AWS Service For Your Website + API.pptx
Choosing The Best AWS Service For Your Website + API.pptxChoosing The Best AWS Service For Your Website + API.pptx
Choosing The Best AWS Service For Your Website + API.pptx
Brandon Minnick, MBA
 
“How Axelera AI Uses Digital Compute-in-memory to Deliver Fast and Energy-eff...
“How Axelera AI Uses Digital Compute-in-memory to Deliver Fast and Energy-eff...“How Axelera AI Uses Digital Compute-in-memory to Deliver Fast and Energy-eff...
“How Axelera AI Uses Digital Compute-in-memory to Deliver Fast and Energy-eff...
Edge AI and Vision Alliance
 
Programming Foundation Models with DSPy - Meetup Slides
Programming Foundation Models with DSPy - Meetup SlidesProgramming Foundation Models with DSPy - Meetup Slides
Programming Foundation Models with DSPy - Meetup Slides
Zilliz
 
The Microsoft 365 Migration Tutorial For Beginner.pptx
The Microsoft 365 Migration Tutorial For Beginner.pptxThe Microsoft 365 Migration Tutorial For Beginner.pptx
The Microsoft 365 Migration Tutorial For Beginner.pptx
operationspcvita
 
Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...
Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...
Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...
saastr
 
Driving Business Innovation: Latest Generative AI Advancements & Success Story
Driving Business Innovation: Latest Generative AI Advancements & Success StoryDriving Business Innovation: Latest Generative AI Advancements & Success Story
Driving Business Innovation: Latest Generative AI Advancements & Success Story
Safe Software
 
Freshworks Rethinks NoSQL for Rapid Scaling & Cost-Efficiency
Freshworks Rethinks NoSQL for Rapid Scaling & Cost-EfficiencyFreshworks Rethinks NoSQL for Rapid Scaling & Cost-Efficiency
Freshworks Rethinks NoSQL for Rapid Scaling & Cost-Efficiency
ScyllaDB
 
FREE A4 Cyber Security Awareness Posters-Social Engineering part 3
FREE A4 Cyber Security Awareness  Posters-Social Engineering part 3FREE A4 Cyber Security Awareness  Posters-Social Engineering part 3
FREE A4 Cyber Security Awareness Posters-Social Engineering part 3
Data Hops
 
Digital Marketing Trends in 2024 | Guide for Staying Ahead
Digital Marketing Trends in 2024 | Guide for Staying AheadDigital Marketing Trends in 2024 | Guide for Staying Ahead
Digital Marketing Trends in 2024 | Guide for Staying Ahead
Wask
 
How to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdf
How to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdfHow to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdf
How to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdf
Chart Kalyan
 
Taking AI to the Next Level in Manufacturing.pdf
Taking AI to the Next Level in Manufacturing.pdfTaking AI to the Next Level in Manufacturing.pdf
Taking AI to the Next Level in Manufacturing.pdf
ssuserfac0301
 
Astute Business Solutions | Oracle Cloud Partner |
Astute Business Solutions | Oracle Cloud Partner |Astute Business Solutions | Oracle Cloud Partner |
Astute Business Solutions | Oracle Cloud Partner |
AstuteBusiness
 
"Choosing proper type of scaling", Olena Syrota
"Choosing proper type of scaling", Olena Syrota"Choosing proper type of scaling", Olena Syrota
"Choosing proper type of scaling", Olena Syrota
Fwdays
 
Main news related to the CCS TSI 2023 (2023/1695)
Main news related to the CCS TSI 2023 (2023/1695)Main news related to the CCS TSI 2023 (2023/1695)
Main news related to the CCS TSI 2023 (2023/1695)
Jakub Marek
 
Presentation of the OECD Artificial Intelligence Review of Germany
Presentation of the OECD Artificial Intelligence Review of GermanyPresentation of the OECD Artificial Intelligence Review of Germany
Presentation of the OECD Artificial Intelligence Review of Germany
innovationoecd
 

Recently uploaded (20)

[OReilly Superstream] Occupy the Space: A grassroots guide to engineering (an...
[OReilly Superstream] Occupy the Space: A grassroots guide to engineering (an...[OReilly Superstream] Occupy the Space: A grassroots guide to engineering (an...
[OReilly Superstream] Occupy the Space: A grassroots guide to engineering (an...
 
Best 20 SEO Techniques To Improve Website Visibility In SERP
Best 20 SEO Techniques To Improve Website Visibility In SERPBest 20 SEO Techniques To Improve Website Visibility In SERP
Best 20 SEO Techniques To Improve Website Visibility In SERP
 
TrustArc Webinar - 2024 Global Privacy Survey
TrustArc Webinar - 2024 Global Privacy SurveyTrustArc Webinar - 2024 Global Privacy Survey
TrustArc Webinar - 2024 Global Privacy Survey
 
June Patch Tuesday
June Patch TuesdayJune Patch Tuesday
June Patch Tuesday
 
Public CyberSecurity Awareness Presentation 2024.pptx
Public CyberSecurity Awareness Presentation 2024.pptxPublic CyberSecurity Awareness Presentation 2024.pptx
Public CyberSecurity Awareness Presentation 2024.pptx
 
Choosing The Best AWS Service For Your Website + API.pptx
Choosing The Best AWS Service For Your Website + API.pptxChoosing The Best AWS Service For Your Website + API.pptx
Choosing The Best AWS Service For Your Website + API.pptx
 
“How Axelera AI Uses Digital Compute-in-memory to Deliver Fast and Energy-eff...
“How Axelera AI Uses Digital Compute-in-memory to Deliver Fast and Energy-eff...“How Axelera AI Uses Digital Compute-in-memory to Deliver Fast and Energy-eff...
“How Axelera AI Uses Digital Compute-in-memory to Deliver Fast and Energy-eff...
 
Programming Foundation Models with DSPy - Meetup Slides
Programming Foundation Models with DSPy - Meetup SlidesProgramming Foundation Models with DSPy - Meetup Slides
Programming Foundation Models with DSPy - Meetup Slides
 
The Microsoft 365 Migration Tutorial For Beginner.pptx
The Microsoft 365 Migration Tutorial For Beginner.pptxThe Microsoft 365 Migration Tutorial For Beginner.pptx
The Microsoft 365 Migration Tutorial For Beginner.pptx
 
Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...
Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...
Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...
 
Driving Business Innovation: Latest Generative AI Advancements & Success Story
Driving Business Innovation: Latest Generative AI Advancements & Success StoryDriving Business Innovation: Latest Generative AI Advancements & Success Story
Driving Business Innovation: Latest Generative AI Advancements & Success Story
 
Freshworks Rethinks NoSQL for Rapid Scaling & Cost-Efficiency
Freshworks Rethinks NoSQL for Rapid Scaling & Cost-EfficiencyFreshworks Rethinks NoSQL for Rapid Scaling & Cost-Efficiency
Freshworks Rethinks NoSQL for Rapid Scaling & Cost-Efficiency
 
FREE A4 Cyber Security Awareness Posters-Social Engineering part 3
FREE A4 Cyber Security Awareness  Posters-Social Engineering part 3FREE A4 Cyber Security Awareness  Posters-Social Engineering part 3
FREE A4 Cyber Security Awareness Posters-Social Engineering part 3
 
Digital Marketing Trends in 2024 | Guide for Staying Ahead
Digital Marketing Trends in 2024 | Guide for Staying AheadDigital Marketing Trends in 2024 | Guide for Staying Ahead
Digital Marketing Trends in 2024 | Guide for Staying Ahead
 
How to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdf
How to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdfHow to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdf
How to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdf
 
Taking AI to the Next Level in Manufacturing.pdf
Taking AI to the Next Level in Manufacturing.pdfTaking AI to the Next Level in Manufacturing.pdf
Taking AI to the Next Level in Manufacturing.pdf
 
Astute Business Solutions | Oracle Cloud Partner |
Astute Business Solutions | Oracle Cloud Partner |Astute Business Solutions | Oracle Cloud Partner |
Astute Business Solutions | Oracle Cloud Partner |
 
"Choosing proper type of scaling", Olena Syrota
"Choosing proper type of scaling", Olena Syrota"Choosing proper type of scaling", Olena Syrota
"Choosing proper type of scaling", Olena Syrota
 
Main news related to the CCS TSI 2023 (2023/1695)
Main news related to the CCS TSI 2023 (2023/1695)Main news related to the CCS TSI 2023 (2023/1695)
Main news related to the CCS TSI 2023 (2023/1695)
 
Presentation of the OECD Artificial Intelligence Review of Germany
Presentation of the OECD Artificial Intelligence Review of GermanyPresentation of the OECD Artificial Intelligence Review of Germany
Presentation of the OECD Artificial Intelligence Review of Germany
 

VMworld 2013: How to Exchange Status Message Between Guest and Host Using RPC

  • 1. How to Exchange Status Message Between Guest and Host Using RPC Max Daneri, VMware William Lam, VMware TEX5109
  • 2. 22 Disclaimer  This presentation may contain product features that are currently under development.  This overview of new technology represents no commitment from VMware to deliver these features in any generally available product.  Features are subject to change, and must not be included in contracts, purchase orders, or sales agreements of any kind.  Technical feasibility and market demand will affect final delivery.  Pricing and packaging for any new technologies or features discussed or presented have not been determined.
  • 3. 33 Agenda • Introduction • Dilemma / Motivation • What is GuestRPC • Use Cases • How GuestRPC works • How to use GuestRPC to exchange message Guest-Host • How to get guest message from vSphere SDK • How to use vSphere SDK to exchange message Host-Guest • Summary
  • 4. 44 Introduction William Lam Staff Product Integration Architect, VMware R&D Blog: www.virtuallyghetto.com Twitter: @lamw Max Daneri Senior Consultant CIM Emea Web: http://www.vmts.net Twitter @m_daneri
  • 5. 55 Dilemma vApp network vApp External Network (set up by system admin) External Organization Network (set up by system admin) Organization Internal Organization network (set up by system admin) vApp network (set up by org admin/vApp author, internal to vApp) External Organization Network vApp network 1 2 3 4 56 7 8 I’ve to monitor this How can I do ?
  • 6. 66 Motivation VMware vSphere How do I retrieve info from Hypervisor from within Guest OS? Blog:http://www.virtuallyghetto.com/2011/01/how-to-extract- host-information-from.html
  • 7. 77 Guest RPC  It is private communication channel between the guest and host  It works like a bidirectional communication protocol over a shared memory between host and guest  Write and read the Virtual Machine configuration running file (write from VM is limited to some specific parameters)  Write message on Virtual Machine log file
  • 8. 88 Use Cases  Reporting • Virtual Machine status (disk space, network connectivity, connections failures, etc.) • VM applications state (services or daemons running state, number of database transactions, etc.)  Application configuration • A well know application using this is VMware Horizon View
  • 9. 99 How Does GuestRPC Work? It’s a very low level “communication” method, in practice the communication is done by accessing a special I/O port, specific to VMware virtual machines 5658h, and setting a specific command parameter The following Assembly code invokes “Backdoor” functions:
  • 10. 1010 How to Use GuestRPC There are currently three methods to use Guest RPC:  VMware Guest API (Supported)  Native VMware Tools command line  Fling Guest RPC .NET and Java library
  • 12. 1212 VMware Supported Guest API  These are the only officially supported API  HA Application Monitoring API • The vSphere High Availability (HA) feature for ESXi hosts in a cluster provides protection for a guest OS and applications running in a virtual machine by restarting the virtual machine if a guest OS or application failure occurs.  Guest API • The vSphere Guest API provides functions, that allow management agents and other software to collect data about the state and pe rformance of a VMware virtual machine. The Guest API provides fast access to resource management information, with out the need for authentication More info on http://pubs.vmware.com/vsphere- 51/topic/com.vmware.ICbase/PDF/vsp51_guest_HAappmon_sdk.pdf
  • 13. 1313 Guest RPC Using VMware Tools
  • 14. 1414 Guest RPC Using VMware Tools VMware Tools has a native support for Guest RPC vmtoolsd –cmd <Guest RPC Command> You can find it on :  UNIX/Linux - /usr/bin/vmtoolsd  Windows - C:Program FilesVMwareVMware Toolsvmtoolsd.exe
  • 16. 1616 Guest RPC Commands 1/2 To work with VMX file (running configuration copy)  INFO-SET guestinfo.<varname> <value> Set a new temporary VM configuration parameter called guestinfo.varname to a specific value Note: • Any temporary parameter has to start with guestinfo. • These values remain on memory until the next VM power cycle  INFO-GET <varname> Retrieves any persistent or temporary value inside VM running configuration file To write a log  PLOG <message> Write a log message on Virtual machine log file (vmware.log)
  • 17. 1717 Guest RPC Commands 2/2 HA Application monitoring command  GuestAppMonitor.Cmd.Enable Enable HA application monitoring  GuestAppMonitor.Cmd.Disable Requests the virtual machine infrastructure to stop monitoring the calling program.  GuestAppMonitor.Cmd.IsEnabled Returns the current recorded state of application monitoring.  GuestAppMonitor.Cmd.MarkActive Sends a request to mark the program as active. This function is also known as the heartbeat because your program must call it at least once every 30 seconds while your application monitoring is enabled, or the virtual machine infrastructure will determine that the monitoring has failed.  GuestAppMonitor.Cmd.GetAppStatus Returns the current status recorded by the virtual machine infrastructure as ‘Green’, ‘Red’, or ‘Gray’. • Green. Virtual machine infrastructure acknowledges that the application is being monitored. • Red. Virtual machine infrastructure does not think the application is being monitored. The HA monitoring agent will initialize an asynchronous reset on the virtual machine if the status is Red. • Gray. App monitor is disabled
  • 19. 1919 Fling Guest RPC Library A new library that make any RPC command easy to use OS Support :  Windows 32bit/64bit (Java and .NET)  Any Linux 32bit/64bit (Java and Mono) Available on VMware labs with source code soon
  • 20. 2020 Fling Guest RPC Library 1/2  GuestInfo functions • void SetGuestInfo(string key, string value ) Set a new temporary VM configuration parameter called guestinfo.key to a specific value • string GetGuestInfo(string key ) Retrieves any persistent or temporary value inside VM running configuration file  Various functions • VMLog(string log) Write a log message on Virtual machine log file (vmware.log) • Boolean VMCheckVirtual() Check if it is running on a virtual machine • String CmdRpc(String command) Exec a generic command
  • 21. 2121 Fling Guest RPC Library 2/2 Application monitor functions  GuestAppMonitorEnable() Enable HA application monitoring  Boolean GuestAppMonitorDisable() Requests the virtual machine infrastructure to stop monitoring the calling program.  Boolean GuestAppMonitorIsEnabled() Returns the current recorded state of application monitoring.  void GuestAppMonitorMarkActive() Sends a request to mark the program as active.  string GuestAppMonitorGetAppStatus() Returns the current status recorded by the virtual machine infrastructure as ‘Green’, ‘Red’, or ‘Gray’.
  • 22. 2222 How to use “GuestInfo” Note: Guestinfo.<*> is a VMX runtime property only, and disappear after any VM power cycle
  • 23. 2323 How to Use “GuestInfo” From a vSphere Web Service API point of view Guestinfo.<*> values can be collected visiting the content of VirtualMachine.config.extraConfig (Type:OptionValue[ ]) Data Object – OptionValue
  • 24. 2424 PowerShell 1/2 Param ( [parameter(Mandatory=$true)] $VCenter, [parameter(Mandatory=$true)] $VM ) $format = @{Expression= {$_.Key} ; Label="Key";width=25}, ` @{Expression= {$_.Value}; Label="Value";width=15} Connect-VIServer $VCenter (get-vm -Name $VM|get-view) | where { $_.key.contains("guestinfo.vmworld") } | Format-Table -Property $format | Out-String Sample PowerShell script
  • 25. 2525 PowerShell 2/2 Results -------------------------------------------------- Key Value --- ----- guestinfo.vmworld.sda1 OK guestinfo.vmworld.Defa... OK guestinfo.vmworld.Micr... FAILS
  • 26. 2626 What Else Can We Do With This Data?
  • 27. 2727 vSphere Web Client Extension Simple vSphere Web Client project showing how to use Guest RPC
  • 28. 2828 Another Project Using GuestRPC • VAM (Virtual Application Monitor) • Modular and expandable open source networks and applications monitor • Available on https://labs.vmware.com Release date: TBD
  • 30. 3030 Summary  GuestRPC is a powerful method to exchange information between an ESXi host and its virtual machines  Accessible through API or CLI  Easy to use GuestRPC Library (Fling)  Best for last, everything can be done without use of a network connection
  • 31. 3131 TAP Membership Renewal – Great Benefits • TAP Access membership includes: New TAP Access NFR Bundle • Access to NDA Roadmap sessions at VMworld, PEX and Onsite/Online • VMware Solution Exchange (VSX) and Partner Locator listings • VMware Ready logo (ISVs) • Partner University and other resources in Partner Central • TAP Elite includes all of the above plus: • 5X the number of licenses in the NFR Bundle • Unlimited product technical support • 5 instances of SDK Support • Services Software Solutions Bundle • Annual Fees • TAP Access - $750 • TAP Elite - $7,500 • Send email to tapalliance@vmware.com
  • 32. 3232 TAP Resources  TAP • TAP support: 1-866-524-4966 • Email: tapalliance@vmware.com • Partner Central: http://www.vmware.com/partners/partners.html  TAP Team • Kristen Edwards – Sr. Alliance Program Manager • Sheela Toor – Marketing Communication Manager • Michael Thompson – Alliance Web Application Manager • Audra Bowcutt – • Ted Dunn – • Dalene Bishop – Partner Enablement Manager, TAP  VMware Solution Exchange • Marketplace support – vsxalliance@vmware.com • Partner Marketplace @ VMware booth pod TAP1
  • 34.
  • 35. How to Exchange Status Message Between Guest and Host Using RPC Max Daneri, VMware William Lam, VMware TEX5109