Skip to contentSkip to conversation

API to change the vendor of IDE disk

DISCUSSION Alex 2 participants 2 messages Jul 1, 2022 – Jul 4, 2022

lore
Share & tools
lore

Alex

author
#0 lore raw

Dear Qemu Genius

This is zaifeng ([email protected]) (WeChat ID: QemuKVM).

Yes, I am a cloud engineer. (๑•̀ㅂ•́)و✧

May I ask you some questions about Qemu?

----------------

Here is the problem:

If you use IDE disk on a Windows VM, "QEMU HARDDISK" could be found from device manager.

Some applications will refuse to boot on virtualized environment by detecting if the disk name contains "QEMU" string. I have no idea why, maybe they worried about copy-vm = copy-license?

I know for virtio-scsi disks, it's possible to change it by adding </vendor&gt; </product&gt; </serial&gt; in libvirt-xml. However it does not work for IDE disk.

Simply&nbsp;detach&nbsp;or convenrt that IDE&nbsp;disk to virtio-scsi&nbsp;solves the problem.

However, we hope that our customer could use IDE disk without any configuration.

----------------

So.....

Here is my questions:

Q1: How to change the vendor-name of a IDE disk?

Is there any API(s) to config it?

I can't find the way from libvirt-doc.

​In Qemu code, I seems that "QEMU HARDDISK" is just by default, and it's&nbsp;configurable.

Q2: Why add&nbsp;</vendor&gt; </product&gt; </serial&gt; in libvirt-xml doesn't work for IDE disk?

Why only virtio-scsi disk support this kind of config?

Is there any hint? story? background? reason?

----------------

I hope any Qemu Genius could answer my question!

Qemu project push the human-race forward, and I want to be that part of progress!

Kind Regards,

zaifeng.&nbsp;ヽ(✿゚▽゚)ノ

#1 lore raw

Hi!

On 01/07/2022 10.18, Alex wrote:
...

Quoted 10 lines

Here is my questions:

Q1: How to change the vendor-name of a IDE disk?

Is there any API(s) to config it?

I can't find the way from libvirt-doc.

​In Qemu code, I seems that "QEMU HARDDISK" is just by default, and it's configurable.

I think you can specify the model string when you run QEMU directy, e.g.:

qemu-system-x86_64 -device ide-hd,model=XYZ ...

Whether that's somehow configurable via libvirt, too, you should better ask that question on the libvirt mailing list instead, I think.

Thomas