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

Added serial attribute for disks in VM #6737

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jfeflinski
Copy link

Description

Sometimes I need to have unique serials for disk in the VM - serials are created from the VM ID and next number, e.g.:

7771-1
7771-2
7771-3
7771-4
.
.
.
7771-N

Branches to which this PR applies

  • master
  • one-X.X

  • Check this if this PR should not be squashed

@rsmontero
Copy link
Member

Self-note before merging, from libvirt documentation:

If present, this specify serial number of virtual hard drive. For example, it may look like <serial>WD-WMAP9A966149</serial>. Not supported for scsi-block devices, that is those using disk type 'block' using device 'lun' on bus 'scsi'. Since 0.7.1
  • Format, length is probably not a problem
  • Type, we need to check disk is not of type block

@rsmontero rsmontero self-assigned this Feb 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants