![]() Setup your VM as you normally do in Proxmox via GUI.#virtio2: /dev/disk/by-id/scsi-SATA_Toshiba_drive3,cache=writethrough,backup=noĪrgs: -drive file=/dev/disk/by-id/scsi-Toshiba_drive2,if=none,id=drive-virtio1,cache=writethrough,aio=threads,detect-zeroes=on,serial=TOSHIBA_Drive2 -device virtio-blk-pci,drive=drive-virtio1,id=virtio1,bus=pci.0,addr=0xb -drive file=/dev/disk/by-id/scsi-SATA_Toshiba_drive3,if=none,id=drive-virtio2,cache=writethrough,aio=threads,detect-zeroes=on,serial=Toshiba_drive3 -device virtio-blk-pci,drive=drive-virtio2,id=virtio2,bus=pci.0,addr=0xc -drive file=/dev/disk/by-id/scsi-SATA_WDC_Drive1,if=none,id=drive-virtio0,cache=writethrough,aio=threads,detect-zeroes=on,serial=WDC_Drive1 -device virtio-blk-pci,drive=drive-virtio0,id=virtio0,bus=pci.0,addr=0xa #virtio1: /dev/disk/by-id/scsi-Toshiba_drive2,cache=writethrough,backup=no #virtio0: /dev/disk/by-id/scsi-SATA_WDC_Drive1,cache=writethrough,backup=no Smbios1: uuid=1721a17b-xxxx-xxxxx-xxxxx-xxxxx Net0: virtio=00:XX:XX:XX:XX:XX,bridge=vmbr0 What my 100.conf looks like now (Rockstor was the first VM is setup when I installed cat /etc/pve/qemu-server/100.conf Then rescan your drives from the web-ui and see if that helps. And if your hypervisor assures static device names, this method is no longer a work-around but a simple solution.Īfter creating the udev rules above, reload them with udevadm control -reload-rules. I think for testing purposes you should be fine with this. ![]() Obviously, this assumes that /dev/xvdf doesn’t change name upon reboot. ID_SERIAL and ID_SERIAL_SHORT are something you can set to anything unique. Suppose your device is /dev/xvdf, you can get the DEVPATH with this command udevadm info -name=xvdh. Here’s a solution/work-around that works regardless of the hypervisor or hdd source. Trying to get rid of the dreaded “disk serial number or uuid is not legitimate or unique” warnings in the interface. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
January 2023
Categories |