[#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
[...]
 
Opps missed the announcement :(

Edit: Updated, working nicely thanks :D
 
Last edited:
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.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!