[PVE-User] Add serial number to VM

Nguyễn Tấn Vỹ vy.nt at vinahost.vn
Sat Aug 5 04:40:50 CEST 2017


Hello,

I found the root cause. The serial no more than 20 characters.


On Sat, Aug 5, 2017 at 8:58 AM, Nguyễn Tấn Vỹ <vy.nt at vinahost.vn> wrote:

> Hello,
>
> I want to add a serial number to VM with configure:
>
> *virtio1:
> /dev/disk/by-id/scsi-36c81f660d1d84600210e06ac0762a3ca,size=457344M,serial=36c81f660d1d84600210e06ac0762a3ca*
> *virtio2:
> /dev/disk/by-id/scsi-36c81f660d1d84600210e06b607f65658,size=457344M,serial=36c81f660d1d84600210e06b607f65658*
> *virtio3:
> /dev/disk/by-id/scsi-36c81f660d1d84600210e06c108996d9d,size=457344M,serial=36c81f660d1d84600210e06c108996d9d*
> *virtio4:
> /dev/disk/by-id/scsi-36c81f660d1d84600210e06c90913bdb0,size=457344M,serial=36c81f660d1d84600210e06c90913bdb0*
> *virtio5:
> /dev/disk/by-id/scsi-36c81f660d1d84600210e06d10992730d,size=457344M,serial=36c81f660d1d84600210e06d10992730d*
> *virtio6:
> /dev/disk/by-id/scsi-36c81f660d1d84600210e06da0a14d132,size=457344M,serial=36c81f660d1d84600210e06da0a14d132*
>
> But inside VM I see only one disk by-id with wrrong serial number.
>
> *lrwxrwxrwx 1 root root  9 Aug  4 18:55
> scsi-0QEMU_QEMU_HARDDISK_drive-scsi0 -> ../../sdalrwxrwxrwx 1 root root 10
> Aug  4 18:55 scsi-0QEMU_QEMU_HARDDISK_drive-scsi0-part1 ->
> ../../sda1lrwxrwxrwx 1 root root 10 Aug  4 18:55
> scsi-0QEMU_QEMU_HARDDISK_drive-scsi0-part2 -> ../../sda2lrwxrwxrwx 1 root
> root 10 Aug  4 18:55 scsi-0QEMU_QEMU_HARDDISK_drive-scsi0-part5 ->
> ../../sda5lrwxrwxrwx 1 root root  9 Aug  4 18:55
> virtio-36c81f660d1d84600210 -> ../../vdblrwxrwxrwx 1 root root 10 Aug  4
> 18:55 virtio-36c81f660d1d84600210-part1 -> ../../vdb1lrwxrwxrwx 1 root root
> 10 Aug  4 18:55 virtio-36c81f660d1d84600210-part9 -> ../../vdb9*
>
> How to add serial number into VM ? I would appreciate any help about it.
>
> Regards,
>



More information about the pve-user mailing list