9.19.5.2. Inserting a CD-ROM in a live VM by using the web console


To make data on a CD-ROM storage device available to a running virtual machine (VM), create a virtual CD-ROM drive in the VM and insert the CD-ROM into the drive as an ISO image.

Setting up a virtual CD-ROM drive requires rebooting the VM, but you can insert and eject ISO images in the drive while the VM is running.

重要

Inserting and ejecting CD-ROMs in running VMs is a Technology Preview feature only. Technology Preview features are not supported with Red Hat production service level agreements (SLAs) and might not be functionally complete. Red Hat does not recommend using them in production. These features provide early access to upcoming product features, enabling customers to test functionality and provide feedback during the development process.

For more information about the support scope of Red Hat Technology Preview features, see Technology Preview Features Support Scope.

Prerequisites

  • The DeclarativeHotplugVolumes feature gate must be enabled. To ensure this, the HyperConverged CR must contain the declarativeHotplugVolumes: true line in the spec.featureGates configuration section:

    apiVersion: hco.kubevirt.io/v1
    kind: HyperConverged
    metadata:
      name: kubevirt-hyperconverged
      namespace: openshift-cnv
    spec:
        featureGates:
          declarativeHotplugVolumes: true
  • The HotplugVolumes feature gate must be disabled. This feature gate is required for using ephemeral volumes, but is incompatible with DeclarativeHotplugVolumes.

    apiVersion: hco.kubevirt.io/v1
    kind: HyperConverged
    metadata:
      name: kubevirt-hyperconverged
      namespace: openshift-cnv
    spec:
        featureGates:
            HotplugVolumes: false

Procedure

  1. In the OpenShift Container Platform web console, go to Virtualization VirtualMachines.
  2. Click the name of the VM in which you want to insert the CD-ROM.
  3. On the VM details page, click the Configuration tab.
  4. Open the Storage pane.
  5. Click Add.

    A drop-down menu opens.

  6. Click CD-ROM.
  7. In the Name field, add a name for the CD-ROM drive device.
  8. Select the ISO image to add to the drive as a CD-ROM volume. To do so, click the drop-down button, and select from the volumes available in the cluster.

    Alternatively, you can upload a new ISO file and insert it into the CD-ROM drive after it is created. To do so:

    1. Ensure that the Upload a new ISO file to the cluster line is checked.
    2. Drag and drop an ISO file in the Upload ISO field, or click Upload and select the ISO image that you want to upload.
    3. In the Upload mode field, select Mount uploaded ISO as DataVolume.
  9. Click Add.

    The CD-ROM drive is added to the Storage list.

  10. If the VM is running, shut it down or restart it.
  11. To insert the ISO file attached to the CD-ROM drive as a CD-ROM volume into the VM, click the Options menu kebab next to the CD-ROM drive, and click Inject. You can do this while the VM is running.
  12. Optional: In the guest operating system, verify that the CD-ROM has been detected.
  13. Optional: To eject the CD-ROM from the VM, click the Options menu kebab next to the CD-ROM device in the web console, and select Eject. You can do this while the VM is running.
Red Hat logoGithubredditYoutubeTwitter

詳細情報

試用、購入および販売

コミュニティー

会社概要

Red Hat は、企業がコアとなるデータセンターからネットワークエッジに至るまで、各種プラットフォームや環境全体で作業を簡素化できるように、強化されたソリューションを提供しています。

多様性を受け入れるオープンソースの強化

Red Hat では、コード、ドキュメント、Web プロパティーにおける配慮に欠ける用語の置き換えに取り組んでいます。このような変更は、段階的に実施される予定です。詳細情報: Red Hat ブログ.

Red Hat ドキュメントについて

Legal Notice

Theme

© 2026 Red Hat
トップに戻る