Bug 593266 - There is no XML tag for specifying hard disk serial number
There is no XML tag for specifying hard disk serial number
Product: Virtualization Tools
Classification: Community
Component: libvirt (Show other bugs)
All All
low Severity medium
: ---
: ---
Assigned To: Daniel Veillard
Depends On:
  Show dependency treegraph
Reported: 2010-05-18 07:53 EDT by Коренберг Марк
Modified: 2010-05-24 08:48 EDT (History)
3 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2010-05-18 09:29:13 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Коренберг Марк 2010-05-18 07:53:15 EDT
There is no XML tag for specifying hard disk serial number
KVM supports this, but lack of support from libvirt.

It's very useful for virtualizing software which binds activation keys to HDD serial number. We have one.

Also (less important), there are no XML tags for specifying other hardware identifications: CPU serial number, CPU name, Motherboard name/serial and so on.
Comment 1 Daniel Berrange 2010-05-18 09:29:13 EDT
The seiral number is supported by the '<serial>VALUE</serial>' tag within the <disk>. For example:

    <disk type='block' device='disk'>
      <driver name='qemu' type='qcow2'/>
      <source dev='/dev/HostVG/QEMUGuest1'/>
      <target dev='hda' bus='ide'/>
      <address type='drive' controller='0' bus='0' unit='0'/>

CPU name/serial is governed by the choice of -cpu arg given to QEMU, whcih is exposed via the <cpu> element in libvirt XML


The other fields mentioned are fixed in the QEMU BIOS.
Comment 2 Коренберг Марк 2010-05-18 10:08:43 EDT
Huge thanks!

Please update documentation so far

If that resource is not source of documentation, where to look ?
Comment 3 Коренберг Марк 2010-05-18 10:10:53 EDT
No information here too
Comment 4 Коренберг Марк 2010-05-24 08:41:29 EDT
I have Ubuntu 9.10.

after virsh edit and adding serial number, it disappear!!
starting from which version, <serial> tag is supported ?
Comment 5 Daniel Berrange 2010-05-24 08:48:52 EDT
From libvirt-0.7.1

Note You need to log in before you can comment on or make changes to this bug.