10.6. Virtual Disk Tasks
10.6.1. Creating Floating Virtual Disks
Procedure 10.2. Creating Floating Virtual Disks
- Select the Disks resource tab.
- Click.
Figure 10.1. Add Virtual Disk Window
- Use the radio buttons to specify whether the virtual disk will be an Image, Direct LUN, or Cinder disk.
- Select the options required for your virtual disk. The options change based on the disk type selected. See Section 10.6.2, “Explanation of Settings in the New Virtual Disk Window” for more details on each option for each disk type.
- Click OK.
10.6.2. Explanation of Settings in the New Virtual Disk Window
Field Name
|
Description
|
---|---|
Size(GB)
|
The size of the new virtual disk in GB.
|
Alias
|
The name of the virtual disk, limited to 40 characters.
|
Description
|
A description of the virtual disk. This field is recommended but not mandatory.
|
Interface
|
The virtual interface the disk presents to virtual machines. VirtIO is faster, but requires drivers. Red Hat Enterprise Linux 5 and higher include these drivers. Windows does not include these drivers, but they can be installed from the guest tools ISO or virtual floppy disk. IDE devices do not require special drivers.
|
Data Center
|
The data center in which the virtual disk will be available.
|
Storage Domain
|
The storage domain in which the virtual disk will be stored. The drop-down list shows all storage domains available in the given data center, and also shows the total space and currently available space in the storage domain.
|
Allocation Policy
|
The provisioning policy for the new virtual disk.
|
Disk Profile
|
The disk profile assigned to the virtual disk. Disk profiles define the maximum amount of throughput and the maximum level of input and output operations for a virtual disk in a storage domain. Disk profiles are defined on the storage domain level based on storage quality of service entries created for data centers.
|
Wipe After Delete
|
Allows you to enable enhanced security for deletion of sensitive material when the virtual disk is deleted.
|
Bootable
|
Allows you to enable the bootable flag on the virtual disk.
|
Shareable
|
Allows you to attach the virtual disk to more than one virtual machine at a time.
|
Field Name
|
Description
|
---|---|
Alias
|
The name of the virtual disk, limited to 40 characters.
|
Description
|
A description of the virtual disk. This field is recommended but not mandatory. By default the last 4 characters of the LUN ID is inserted into the field.
The default behavior can be configured by setting the
PopulateDirectLUNDiskDescriptionWithLUNId configuration key to the appropriate value using the engine-config command. The configuration key can be set to -1 for the full LUN ID to be used, or 0 for this feature to be ignored. A positive integer populates the description with the corresponding number of characters of the LUN ID. See Section 17.3.2, “Syntax for the engine-config Command” for more information.
|
Interface
|
The virtual interface the disk presents to virtual machines. VirtIO is faster, but requires drivers. Red Hat Enterprise Linux 5 and higher include these drivers. Windows does not include these drivers, but they can be installed from the guest tools ISO or virtual floppy disk. IDE devices do not require special drivers.
|
Data Center
|
The data center in which the virtual disk will be available.
|
Use Host
|
The host on which the LUN will be mounted. You can select any host in the data center.
|
Storage Type
|
The type of external LUN to add. You can select from either iSCSI or Fibre Channel.
|
Discover Targets
|
This section can be expanded when you are using iSCSI external LUNs and Targets > LUNs is selected.
Address - The host name or IP address of the target server.
Port - The port by which to attempt a connection to the target server. The default port is 3260.
User Authentication - The iSCSI server requires User Authentication. The User Authentication field is visible when you are using iSCSI external LUNs.
CHAP user name - The user name of a user with permission to log in to LUNs. This field is accessible when the User Authentication check box is selected.
CHAP password - The password of a user with permission to log in to LUNs. This field is accessible when the User Authentication check box is selected.
|
Bootable
|
Allows you to enable the bootable flag on the virtual disk.
|
Shareable
|
Allows you to attach the virtual disk to more than one virtual machine at a time.
|
Enable SCSI Pass-Through
|
Available when the Interface is set to VirtIO-SCSI. Selecting this check box enables passthrough of a physical SCSI device to the virtual disk. A VirtIO-SCSI interface with SCSI passthrough enabled automatically includes SCSI discard support. When this check box is not selected, the virtual disk uses an emulated SCSI device.
|
Allow Privileged SCSI I/O
|
Available when the Enable SCSI Pass-Through check box is selected. Selecting this check box enables unfiltered SCSI Generic I/O (SG_IO) access, allowing privileged SG_IO commands on the disk. This is required for persistent reservations.
|
- Live storage migration of direct LUN hard disk images is not supported.
- Direct LUN disks are not included in virtual machine exports.
- Direct LUN disks are not included in virtual machine snapshots.
Field Name
|
Description
|
---|---|
Size(GB)
|
The size of the new virtual disk in GB.
|
Alias
|
The name of the virtual disk, limited to 40 characters.
|
Description
|
A description of the virtual disk. This field is recommended but not mandatory.
|
Interface
|
The virtual interface the disk presents to virtual machines. VirtIO is faster, but requires drivers. Red Hat Enterprise Linux 5 and higher include these drivers. Windows does not include these drivers, but they can be installed from the guest tools ISO or virtual floppy disk. IDE devices do not require special drivers.
|
Data Center
|
The data center in which the virtual disk will be available.
|
Storage Domain
|
The storage domain in which the virtual disk will be stored. The drop-down list shows all storage domains available in the given data center, and also shows the total space and currently available space in the storage domain.
|
Volume Type
|
The volume type of the virtual disk. The drop-down list shows all available volume types. The volume type will be managed and configured on OpenStack Cinder.
|
Bootable
|
Allows you to enable the bootable flag on the virtual disk.
|
Shareable
|
Allows you to attach the virtual disk to more than one virtual machine at a time.
|
10.6.3. Overview of Live Storage Migration
- Live storage migration creates a snapshot.
- You can live migrate multiple disks at one time.
- Multiple disks for the same virtual machine can reside across more than one storage domain, but the image chain for each disk must reside on a single storage domain.
- In data centers with a compatibility version of 3.6, you can live migrate disks between any two storage domains in the same data center. In data centers with a compatibility version of 3.1, 3.2, 3.3, 3.4, or 3.5, you can live migrate disks only between two file-based domains (NFS, POSIX, and GlusterFS) in the same data center or between two block-based domains (FCP and iSCSI) in the same data center. Live storage migration is not supported in data centers with a compatibility version of 3.0.
- You cannot live migrate direct LUN hard disk images or disks marked as shareable.
10.6.4. Moving a Virtual Disk
- You can move multiple disks at the same time.
- If the virtual machine is shut down, you can move disks between any two storage domains in the same data center. In data centers with a compatibility version of 3.6, you can also move disks attached to running virtual machines between any two storage domains in the same data center. In data centers with a compatibility version of 3.1, 3.2, 3.3, 3.4, or 3.5, you can move disks attached to running virtual machines only between two file-based domains (NFS, POSIX, and GlusterFS) in the same data center or between two block-based domains (FCP and iSCSI) in the same data center. Live storage migration is not supported in data centers with a compatibility version of 3.0.
- If the virtual disk is attached to a virtual machine that was created based on a template and used the thin provisioning storage allocation option, you must copy the disks for the template on which the virtual machine was based to the same storage domain as the virtual disk.
Procedure 10.3. Moving a Virtual Disk
- Select the Disks tab.
- Select one or more virtual disks to move.
- Click Move Disk(s) window.to open the
- From the Target list, select the storage domain to which the virtual disk(s) will be moved.
- From the Disk Profile list, select a profile for the disk(s), if applicable.
- Click.
Locked
while being moved. If you moved a disk that is connected to a running virtual machine, a snapshot of that disk is created automatically, and is visible in the Snapshots tab of the details pane for that virtual machine. For information on removing the snapshot, see Deleting a Snaphot.
10.6.5. Copying a Virtual Disk
You can copy a virtual disk from one storage domain to another. The copied disk can be attached to virtual machines.
Procedure 10.4. Copying a Virtual Disk
- Select the Disks tab.
- Select the virtual disks to copy.
- Click the Copy Disk(s) window.button to open the
- Optionally, enter an alias in the Alias text field.
- Use the Target drop-down menus to select the storage domain to which the virtual disk will be copied.
- Click.
The virtual disks are copied to the target storage domain, and have a status of Locked
while being copied.
10.6.6. Importing a Virtual Disk Image from an OpenStack Image Service
Virtual disk images managed by an OpenStack Image Service can be imported into the Red Hat Enterprise Virtualization Manager if that OpenStack Image Service has been added to the Manager as an external provider.
- Click the Storage resource tab and select the OpenStack Image Service domain from the results list.
- Select the image to import in the Images tab of the details pane.
- Click Import Image(s) window.to open the
- From the Data Center drop-down menu, select the data center into which the virtual disk image will be imported.
- From the Domain Name drop-down menu, select the storage domain in which the virtual disk image will be stored.
- Optionally, select a quota from the Quota drop-down menu to apply a quota to the virtual disk image.
- Clickto import the image.
The image is imported as a floating disk and is displayed in the results list of the Disks resource tab. It can now be attached to a virtual machine.
10.6.7. Exporting a Virtual Machine Disk to an OpenStack Image Service
Virtual machine disks can be exported to an OpenStack Image Service that has been added to the Manager as an external provider.
- Click the Disks resource tab.
- Select the disks to export.
- Click the Export button to open the Export Image(s) window.
- From the Domain Name drop-down list, select the OpenStack Image Service to which the disks will be exported.
- From the Quota drop-down list, select a quota for the disks if a quota is to be applied.
- Click OK.
The virtual machine disks are exported to the specified OpenStack Image Service where they are managed as virtual machine disk images.
Important