Capturing and exporting a VSI

IBM Power Virtual Server in IBM data center

IBM Power Virtual Server Private Cloud in Client location


You can capture and export a virtual server instance (VSI) by using the IBM® Power® Virtual Server user interface, CLI, or API. When you capture a VSI, the boot volume and any attached data volumes are saved as a volume-backed image. The image is stored in new volumes on the storage providers. You can export the captured image to the image catalog, an IBM Cloud Object Storage bucket, or both. When an image is exported, the volumes of the image are copied and packaged in an Open Virtualization Appliance (OVA) file. The OVA file is compressed by using gzip before it is uploaded to your selected destination.

When you capture and export a VSI, you can choose the image catalog, Cloud Object Storage, or both as destinations. The image catalog is stored on the IBM Power storage area network (SAN). IBM Cloud Object Storage is encrypted and dispersed across multiple geographic locations, and accessed over HTTP by using a REST API. IBM Cloud Object Storage uses the distributed storage technologies that are provided by the IBM Cloud Object Storage System (formerly Cleversafe). After capturing an image to the image catalog, you can export it to Cloud Object Storage as a separate operation. You can also deploy the captured image to create a clone of the VSI by using a different network configuration.

The maximum image size that you can export to Cloud Object Storage is 10 TB.

The IBM® Power® Virtual Server Job feature tracks long-running asynchronous operations like VSI capture, image export, and image import across multiple workspaces in your cloud account.

The VSI capture, image export, and image import features are restricted to one operation at a time per Power Virtual Server workspace. Wait until one operation is complete before you submit a new operation (VSI Capture, Image Export, and Image Import).

You are charged different rates based on whether you export to the image catalog or Cloud Object Storage.

Before you capture an IBM i VSI, ensure that any buffer I/O memory is flushed (written) to the disk by using the following command:

CHGASPACT ASPDEV(*SYSBAS) OPTION(*FRCWRT)

Capturing and exporting a VSI by using the Power Virtual Server user interface

Complete the following steps to capture and export a VSI:

  1. Log in to the IBM Cloud catalog with your IBM credentials.

  2. In the search box, type Power Virtual Server and click the Power Virtual Server tile.

  3. Click Workspaces in the navigation panel. The Workspaces page with a list of existing workspaces is displayed.

  4. Select your workspace from the displayed list of workspaces.

  5. Click Virtual server instances in the navigation panel.

  6. Select the VSI that you want to capture. Ensure that the VSI is in an active state. The Virtual server instance details page is displayed.

  7. On the Virtual server instance details page, click options menu (3 vertical dots) and select Capture and export. The Capture and export virtual server pane is displayed.

  8. In the Capture contents section, the boot volume of the selected VSI is automatically selected. You can optionally select any additional data volumes that are attached to the VSI.

    Any volumes that are not shown are not on the same storage pool as the boot volume and cannot be included in the capture.

  9. Click Next.

  10. In the Destination section, select the export destination for the captured image:

    • Image catalog: Stores the image in your workspace image catalog for future deployments
    • IBM Cloud Object Storage: Exports to IBM Cloud Object Storage

    Image catalog

    If you selected Image catalog as the export destination, complete the following steps:

    1. Enter an image name in the Image name field.

    2. Optional: enter tags in the User tags field.

    IBM Cloud Object Storage

    If you selected IBM Cloud Object Storage as the export destination, complete the following steps:

    1. Select the Region where your IBM Cloud Object Storage bucket is located.

    2. In the Bucket name field, enter the name of the bucket where you want to export the image. Optionally, you can specify folder paths within the bucket.

    3. In the HMAC access key field, provide your HMAC access key. For more information, see Generating HMAC credentials.

    4. In the HMAC secret access key field, provide your HMAC secret access key.

    5. Set Generate checksum file to On to generate a checksum file.

      The checksum file is created and placed in the IBM Cloud Object Storage bucket along with the exported image. The checksum file name is based on the name of the image file and has the file extension .sha256. Use the command shasum -a 256 to verify that the copied file is correct.

      If you are creating your own image, you can create a checksum image and place it with your own image in the same bucket. One of the ways to generate the checksum image is by using the command shasum -a 256 <filename> or sha256sum <filename>.

      Generating a checksum file might increase the image capture and export time.

  11. Click the terms and conditions link to read the IBM Cloud Terms of Use. To continue, select the I agree to the Terms and conditions checkbox.

  12. Click Capture and export. The Capture & export virtual server dialog is displayed with information about the capture operation. Review the information and click Capture and export.

Capturing and exporting a VSI by using the Power Virtual Server CLI

To capture and export a VSI, use the ibmcloud pi instance-capture command. You can export it to the image catalog, Cloud Object Storage, or both.

ibmcloud pi instance-capture INSTANCE_ID --destination DEST --name NAME [--volumes "VOLUME1 VOLUME2"] [--access-key KEY] [--secret-key KEY] [--region REGION] [--image-path TYPE]

Capturing and exporting a VSI by using the Power Virtual Server API

To capture and export a VSI to the image catalog or IBM Cloud Object Storage by using the API, use the Add a capture pvm-instance to the jobs queue method.

Viewing the capture and export results

After you click Capture and export in the confirmation dialog, a notification is displayed confirming that the capture and export process has started. A Capture and export in progress progress bar is displayed on the Overview tab of the selected virtual server instance.

You can monitor the progress of the operation by clicking View details next to the progress bar.

To view details of a capture and export job by using the CLI, use the ibmcloud pi instance capture show command.

To view details of a capture and export job by using the API, use the Get detail of last capture job method.

If you select large volumes, the export process can take a significantly long time.

When the capture and export operation is complete, another notification is displayed indicating the status of the operation.

To view your exported image:

  • If you exported your volume-backed image to IBM Cloud Object Storage, navigate to your Cloud Object Storage bucket to view the image.

  • If you exported your volume-backed image to the image catalog, navigate to the Boot images page to view the image.

To see your newly exported image in the image catalog by using the CLI, use the ibmcloud pi image-list-catalog command:

ibmcloud pi image-list-catalog [--long] [--json]

To see your newly exported image in Cloud Object Storage by using the CLI, use the ibmcloud cos list-objects command:

ibmcloud cos list-objects --bucket BUCKET_NAME [--delimiter DELIMITER] [--encoding-type METHOD] [--prefix PREFIX] [--starting-token TOKEN] [--page-size SIZE] [--max-items NUMBER] [--region REGION] [--json]