[#153] Hdd serial number.

It's already there, the ticket was old ;-)
 
Please excuse me if this is a stupid question, but at what point does the changes in Git get pushed into the next beta release?

Also what will the expected format be is it literally a case of adding ,serial= at the end of the line of config for the virtual device?
 
It is included in the final release of PVE4 and yes, you're correct. Add it to the virtual drive in the config with, e.g.:
Code:
[...]
virtio0: local:100/vm-100-disk-1.qcow2,cache=writeback,size=32G,serial=XXXX-YYYY-YOURSERIAL
[...]
 
  • Like
Reactions: theduck
Not working out for me....

virtio0: local:100/vm-100-disk-1.qcow2,cache=writeback,size=1863G,serial=WDC_WD20EZRX-00DC0B0_WD-WMC1T1453223

Screenshot from 2015-12-24 23:54:21.png

trying to pass to rockstor but rockstor only sees 100GB

Screenshot from 2015-12-24 23:56:05.png

any help would be much appreciated.

ooops- running PVE 4.1
 
Last edited:
BOOOM! got it working thanks to the guys over at rockstor

The correct syntax seems to be-

"virtio0: /dev/sdc,cache=writeback,size=1863G,serial=WDC_WD20EZRX-00DC0B0_WD-WMC1T1453223"
 
This fails if the serial number contains spaces, which is what many drives have.

example:

serial=' kjhgfd21'
or
serial=" kjhgfd21"

Proxmox will invalidate and remove the drive from a VM

Bug #153.

It is included in the final release of PVE4 and yes, you're correct. Add it to the virtual drive in the config with, e.g.:
Code:
[...]
virtio0: local:100/vm-100-disk-1.qcow2,cache=writeback,size=32G,serial=XXXX-YYYY-YOURSERIAL
[...]
 
Hello,

I can't pass serial number to VM with configure:

virtio1: /dev/sdb,size=457344M,serial=36c81f660d1d84600210e06ac0762a3ca
virtio2: /dev/sdc,size=457344M,serial=36c81f660d1d84600210e06b607f65658

I would appreciate any help about it.