Managing ISO Image Files
This section describes how to manage ISO image files.
Querying an ISO Image File
This operation enables you to query an ISO image file of a VM.
Procedure
- Go to the CLI.
- Run the show vm_iso general [ vm_fs_id=? ] command.Table 7-4 describes the related parameters.
- Confirm that all required parameters are correctly configured.
Example
Query ISO image files.
admin:/>show vm_iso general
Name Size File System ID
-------- ---------- --------------
XXX.iso 3.111GB 0
XXX.iso 3.111GB 1
Removing an ISO Image File
This operation enables you to remove an ISO image file of a VM.
Prerequisites
At least one VM exists in the storage system.
Procedure
- Go to the CLI.
- Run the remove virtual_machine vm_iso vm_id=? command.Table 7-5 describes the related parameters.
- Confirm that all required parameters are correctly configured.
Example
Remove an ISO image file.
admin:/>remove virtual_machine vm_iso vm_id=2
WARNING: You are about to remove ISO file from a virtual machine. This operation will empty the CDROM of the specified virtual machine.
Suggestion: Before performing this operation, ensure that the CDROM of the specified virtual machine is not being used or mounted.
Have you read warning message carefully?(y/n)y
Are you sure you really want to perform the operation?(y/n)y
Command executed successfully.
Deleting an ISO Image File
This operation enables you to delete an ISO image file of a VM.
Prerequisites
At least one VM exists in the storage system.
Do not delete an ISO file using the SFTP tool. Otherwise, the ISO file of the VM cannot be used normally. If an ISO file is required, transfer it to the storage system. If no ISO file is required, delete the ISO file from the VM.
Procedure
- Go to the CLI.
- Run the delete vm_iso general vm_fs_id=? iso_name=? command.Table 7-6 describes the related parameters.Table 7-6 Parameters for deleting an ISO image file
Parameter
Description
Value
vm_fs_id=?
ID of the VM file system.
To obtain the value, run the show vm_fs general command without parameters.
iso_name=?
Name of the file to be deleted.
To obtain the value, run the show vm_iso general command without parameters.
- Confirm that all required parameters are correctly configured.