This article applies to:
Product edition: Phoenix Cloud
Feature Category: VMware
Overview
Configuration on the Druva Hybrid workloads VMware role can be a time consuming process. This procedure will assist in the automation of this deployment.
How to Install PowerCLI
Check if PowerCLI is installed by running the following command
Get-Module vmware* -ListAvailable
If there is no output like shown below proceed to the next steps. If you have output proceed to the next section.
Run the following command to install the module from the Powershell repository.
You may get prompted to update NuGet, and trust the repository. Both are normal and should be accepted. Below is an example of trusting the repository.
The install should look similar to the following.
Once installed proceed to the next section.
How to connect to a vCenter/ESXi host
Open a Windows Powershell window if not already open.
Run the following command with the vCenter/ESXi name or IP address.
Connect-VIServer <vCener/ESXi host>
Input an administrative account when prompted, and click ‘OK’
Now there should be a response similar to the screenshot below indicating a successful connection.
Now proceed to the next section.
How to deploy the Druva Phoenix role
Connect to the vCenter or ESXi host using the steps above.
Run the following command to create the role:
Note: Replace “Druva_Phoenix_Role” with the name of the role preferred for the environment.
---------------------------------------------------------------------------
New-VIRole -Name “Druva_Phoenix_Role” -Privilege (Get-VIPrivilege -Id Datastore.AllocateSpace,
Datastore.Browse,
Datastore.FileManagement,
Datastore.UpdateVirtualMachineFiles,
Global.DisableMethods,
Global.EnableMethods,
Global.Licenses,
Global.SetCustomField,
Global.ManageCustomFields,
Host.Config.Storage,
Network.Assign,
Resource.AssignVMToPool,
VirtualMachine.Inventory.Create,
VirtualMachine.Inventory.Register,
VirtualMachine.Inventory.Delete,
VirtualMachine.Inventory.Unregister,
VirtualMachine.Provisioning.DiskRandomAccess,
VirtualMachine.Provisioning.DiskRandomRead,
VirtualMachine.Provisioning.GetVmFiles,
VirtualMachine.Provisioning.Clone,
VirtualMachine.GuestOperations.Modify,
VirtualMachine.GuestOperations.Execute,
VirtualMachine.GuestOperations.Query,
VirtualMachine.Interact.DeviceConnection,
VirtualMachine.Interact.PowerOn,
VirtualMachine.Interact.PowerOff,
VirtualMachine.Config.AddExistingDisk,
VirtualMachine.Config.AddNewDisk,
VirtualMachine.Config.AddRemoveDevice,
VirtualMachine.Config.AdvancedConfig,
VirtualMachine.Config.Resource,
VirtualMachine.Config.ChangeTracking,
VirtualMachine.Config.DiskLease,
VirtualMachine.Config.RemoveDisk,
VirtualMachine.Config.RawDevice,
VirtualMachine.Config.Settings,
VirtualMachine.Config.CPUCount,
VirtualMachine.Config.Memory,
VirtualMachine.Config.UpgradeVirtualHardware,
VirtualMachine.State.CreateSnapshot,
VirtualMachine.State.RemoveSnapshot,
VirtualMachine.State.RevertToSnapshot,
Resource.ColdMigrate,
Resource.HotMigrate,
Cryptographer.Access,
vApp.Import)
------------------------------------------------------------------------------
How to update the Druva Phoenix role
Connect to the vCenter or ESXi host using the steps above.
Run the following command to create the role:
Note: Replace “Druva_Phoenix_Role” with the name of the role in the environment.
---------------------------------------------------------------------------
Get-VIRole Druva_Phoenix_Role | Set-VIRole -AddPrivilege (Get-VIPrivilege -Id Datastore.AllocateSpace,
Datastore.Browse,
Datastore.FileManagement,
Datastore.UpdateVirtualMachineFiles,
Global.DisableMethods,
Global.EnableMethods,
Global.Licenses,
Global.SetCustomField,
Global.ManageCustomFields,
Host.Config.Storage,
Network.Assign,
Resource.AssignVMToPool,
VirtualMachine.Inventory.Create,
VirtualMachine.Inventory.Register,
VirtualMachine.Inventory.Delete,
VirtualMachine.Inventory.Unregister,
VirtualMachine.Provisioning.DiskRandomAccess,
VirtualMachine.Provisioning.DiskRandomRead,
VirtualMachine.Provisioning.GetVmFiles,
VirtualMachine.Provisioning.Clone,
VirtualMachine.GuestOperations.Modify,
VirtualMachine.GuestOperations.Execute,
VirtualMachine.GuestOperations.Query,
VirtualMachine.Interact.DeviceConnection,
VirtualMachine.Interact.PowerOn,
VirtualMachine.Interact.PowerOff,
VirtualMachine.Config.AddExistingDisk,
VirtualMachine.Config.AddNewDisk,
VirtualMachine.Config.AddRemoveDevice,
VirtualMachine.Config.AdvancedConfig,
VirtualMachine.Config.Resource,
VirtualMachine.Config.ChangeTracking,
VirtualMachine.Config.DiskLease,
VirtualMachine.Config.RemoveDisk,
VirtualMachine.Config.RawDevice,
VirtualMachine.Config.Settings,
VirtualMachine.Config.CPUCount,
VirtualMachine.Config.Memory,
VirtualMachine.Config.UpgradeVirtualHardware,
VirtualMachine.State.CreateSnapshot,
VirtualMachine.State.RemoveSnapshot,
VirtualMachine.State.RevertToSnapshot,
Resource.ColdMigrate,
Resource.HotMigrate,
Cryptographer.Access,
vApp.Import)
----------------------------------------------------------------------------
See also