...
...
...
Table of Contents | |
---|---|
|
...
|
...
Info |
---|
How to edit VM cost codes, lock and protect VMs, relocate a VM, troubleshoot VM launch, manage VMs with workflow feature, and perform power operations with the API on the hybrid cloud platform. |
...
Edit
...
extra charges with cost codes for a VM
Include Page | ||||
---|---|---|---|---|
|
...
Protect a VM
...
Include Page |
---|
...
Reset VM password
Excerpt |
---|
In vCloud Director, to reset the initial password of the root or Administrator user for a VM do these steps.
The platform will automatically shut down the VM and run the process to reset the password, then it will restart the VM. |
Restrict virtual appliances and VMs
Excerpt | ||
---|---|---|
| ||
To restrict a VM by moving it to a restricted VApp:
|
Relocate a deployed VM to another host
...
What happens when the user clicks deploy?
|
...
An administrator can block actions on a VM in the platform by other users who do not have the Protect virtual machine privilege.
You can lock or protect a deployed VM when it is powered on, paused, or powered off.
Panel |
---|
Privileges: Protect virtual machine |
To protect a VM
Select the VM and click the padlock protect VM button near the Deploy VM button
In the Protect virtual machine dialog, enter the reason for protecting the VM.
...
The platform will display a padlock symbol in the top left corner of the VM icon and change the status of the VM to MAINTENANCE. The administrator can customize this status in the UI labels.
The name of the administrator who blocked the VM and the reason display in VM details → General.
To release a protected VM, click the padlock unprotect VM button
|
...
Reset VM password
Include Page | ||||
---|---|---|---|---|
|
...
Restrict virtual appliances and VMs
Excerpt | ||
---|---|---|
| ||
To restrict a VM by moving it to a restricted VApp:
|
...
Relocate a deployed VM to another host
The relocate VM feature enables you to move a deployed VM to another hypervisor on the same rack with the same manager. This feature is available for VMware ESXi and uses the vMotion feature. This feature requires the "Relocate a VM into a compatible host" privilege. The Relocate VM button is on the VM control panel near the Protect VM padlock button.
Panel |
---|
Privileges: Relocate a VM into a compatible host |
To relocate a VM:
Go to Virtual datacenters → open a virtual appliance → go to Virtual machines → select a VM
On the VM control panel on the lower right-hand side of the screen, click the Relocate VM button
The platform will display a dialog with a list of hypervisor hosts where you can relocate the VM
Click the Show details link to display the host metrics and the Relocate button
Select the host with the same manager where you wish to relocate the VM, go to the host section and click Relocate. The platform will display the VM status as Relocating
After relocation, the new hypervisor location will display in the control panel, for example, with a new Remote access address. If you click the Relocate button again, you should see a different host list, including the original host.
Screenshot: Select the VM and click relocate
...
Screenshot: Host selection list
...
Screenshot: Host metrics and Relocate button
...
Screenshot: You can check the relocation by clicking the Relocate button again, which will show the original host as a new candidate
...
...
What happens when the user clicks deploy?
The VM scheduler deploys the VM.
...
A yellow warning or red error notification message
An error state on the VM icon
A VM warning symbol in the lower part of the VM icon.
The user and the administrator may be notified of the error.
...
The platform displays the full details of an error in the Events view and on the Events panel in the Home view.
...
Here is an example of an event for a failed reconfigure.
Panel | ||
---|---|---|
| ||
Source: Abiquo / admin / |
The platform displays the VM warning symbol is based on for the VM task state. The VM tasks are a collection of jobs. For example, a Deploy task includes jobs to allocate, configure, and power on the VM. If a job fails, then the task will also fail and the platform will display the warning symbol on the VM.
To acknowledge and delete a warning symbol, click on the symbol to remove it.
If your user role is an administrator role with the privilege to "Manage Users", then you can also delete warnings for the users of the enterprises that you manage.
States of VMs and virtual appliances
...
Manage workflow tasks
...
name | Manage workflow tasks |
---|
When workflow is enabled, the user's requests to deploy, reconfigure and undeploy VMs will be held with the status waiting to be reviewed.
This can include actions on scaling groups, unless the administrator selects the option to disable workflow in the scaling group.
To view the list of workflow tasks
Go to Virtual datacenters → Workflow tasks.
To filter workflow tasks, enter text in the filter box at the top of the tasks list.
...
To continue a queued workflow task, click the Accept link beside the task.
...
tasks are a collection of jobs. For example, a Deploy task includes jobs to allocate, configure, and power on the VM. If a job fails, then the task will also fail and the platform will display the warning symbol on the VM.
To acknowledge and delete a warning symbol, click on the symbol to remove it.
If your user role is an administrator role with the privilege to Manage users
, then you can also delete warnings for the users of the enterprises that you manage.
...
Virtual machine states table
Include Page | ||||
---|---|---|---|---|
|
Virtual appliance states
Include Page | ||||
---|---|---|---|---|
|
...
Retrieve a VM using the API
This section describes how to retrieve a virtual machine with the REST API.
Before you begin, create a VM with the Abiquo UI and power it off. Open the browser console. This example uses Chrome, so we clicked F12.
Select the Network view
Click the red arrow record button and the clear button next to it
In the platform on the VM control panel, click the Start button
...
Scroll up to the first request, which should be a PUT request to the virtual machine state URL. Click on the request
If you can't see the Method column, right click on a column heading and select Method from the list
...
Select the link to the VM up to the end of the VM ID number (before "/state")
...
Use a cURL request similar to the one the example below or a REST API tool such as Postman to perform a GET request to this link. For this basic testing, you can use the -k option to avoid security warnings.
Code Block |
---|
curl -X GET https://mjsabiquo.bcn.abiquo.com/api/cloud/virtualdatacenters/2/virtualappliances/1/virtualmachines/47 \ -H 'Accept:application/vnd.abiquo.virtualmachine+json;version=56.01' \ -u admin:xabiquo -k --verbose |
...
Manage VM power states using the API
...
name | Manage VM power states using the API |
---|
To manage the
...
Vm using the API, first you need to retrieve the
...
VM and find the links for different actions.
Remember to see VirtualMachinesResource for full details of
...
VM operations using the Abiquo API.
Insert excerpt | ||||||||
---|---|---|---|---|---|---|---|---|
|
...
Related pages
Work with VMs
Administer virtual resources