Skip to content

Option to add/remove CD-ROM device and load/eject ISO #13454

Description

@Az3RuS

Hello !

Have you thought about adding an option to add CD-ROM devices but also to eject and load ISOs into them?

Like qemu-guest-agent command :

Insert : virsh change-media $VMName --path sda --source $ISO --insert --live

<disk type='file' device='cdrom'>
      <driver name='qemu' type='raw'/>
      <source file='/datastore/ISOs/CentOS-7-x86_64-Minimal-1908.iso'/>
      <backingStore/>
      <target dev='sda' bus='sata'/>
      <readonly/>
      <alias name='sata0-0-0'/>
      <address type='drive' controller='0' bus='0' target='0' unit='0'/>
    </disk>

image

Eject : virsh change-media $VMName --path sda --eject --live

    <disk type='file' device='cdrom'>
      <driver name='qemu' type='raw'/>
      <target dev='sda' bus='sata' tray='open'/>
      <readonly/>
      <alias name='sata0-0-0'/>
      <address type='drive' controller='0' bus='0' target='0' unit='0'/>
    </disk>

image
PS : When you use its controls you can already see on the cockpit the disc being added or ejected.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions