Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RFE: virt-install qemu:override support #599

Open
tinsjourney opened this issue Oct 26, 2023 · 1 comment
Open

RFE: virt-install qemu:override support #599

tinsjourney opened this issue Oct 26, 2023 · 1 comment
Labels
wishlist Nice to have but there's no current plans to implement

Comments

@tinsjourney
Copy link

Distro: RHEL 9.2
qemu version: 7.2.0
libvirt version: 9.0.0
virt-install version: 4.1.0

When trying to pass options to specific device (set rotational_rate to scsi or sata disk) we used

--qemu-commandline='device.scsi0-0-0-1.rotation_rate=1'

resulting in adding to the xml file :

  <qemu:commandline>
    <qemu:arg value='-set'/>
    <qemu:arg value='device.scsi0-0-0-1.rotation_rate=1'/>
  </qemu:commandline>

Since libvirt introduced a new XML syntax for overriding device properties (https://libvirt.org/drvqemu.html#overriding-properties-of-qemu-devices), the previous qemu:commandline block is not working anymore we need to use :

  <qemu:override>
    <qemu:device alias='scsi0-0-0-1'>
      <qemu:frontend>
        <qemu:property name='rotation_rate' type='unsigned' value='1'/>
      </qemu:frontend>
    </qemu:device>
  </qemu:override>
@ptoscano ptoscano added the wishlist Nice to have but there's no current plans to implement label Oct 26, 2023
@lateautumn233
Copy link

Perhaps this is effective?
Screenshot_2023-11-03-12-30-31-196_com chrome beta

@crobinso crobinso changed the title Add option to virt-install to set qemu:override parameter in xml RFE: virt-install qemu:override support Feb 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wishlist Nice to have but there's no current plans to implement
Projects
None yet
Development

No branches or pull requests

3 participants