[SOLVED] Adding HD disks to VM

wbravin

Member
Sep 7, 2022
81
6
13
Hello all

I am still suffering from my debacle 2 weeks ago.

I had to rebuild proxmox and all the wms and lxcs.

I had all working until las night.

For whatever reason i had to remove truenas scale vm from proxmox. During the previous installation of truenas I added the hard drive by using this commands.


qm set 100 -scsi1 /dev/disk/by-id/scsi-35000cca2552266a0
qm set 100 -scsi2 /dev/disk/by-id/scsi-35000cca2552625a0
qm set 100 -scsi3 /dev/disk/by-id/scsi-35000cca2555ad480

qm set 100 -scsi4 /dev/disk/by-id/ata-WDC_WD20EFRX-68EUZN0_WD-WCC4M2VPUCED
qm set 100 -scsi5 /dev/disk/by-id/ata-WDC_WD20EFRX-68EUZN0_WD-WCC4M5RYP4DS
qm set 100 -scsi6 /dev/disk/by-id/ata-WDC_WD20EFRX-68EUZN0_WD-WCC4M2VPUEHD

And the all were loaded and visible in both the pve and the vm.

I had as i said remove (destroy) the truenas vm.

I recreated the vm from scratch (with the same vm id (100)) and when installed i tried to add the existing library. No library showed up.

Infact no disks were visible in the hardware list of the vm

I tried to add these disks (with the above instructions ) proxmox would not let me.

In fact the disks are still visible in the pve disks

How to i remove these disks from the PVE ( so i can add them once again)?


Thank you
 
I'm in the same "boat".
Proxmox 9. I lost the root password so, with all my VM data on a second disk I reloaded Proxmox 9
downloaded yesterday on the SSD boot disk. All the VM disks are raw LVMs on an 8Tb disk data2:
ls /dev/mapper
data2-vm--200--disk--0 data2-vm--200--disk--1 data2-vm--200--disk--2
On GUI data2 vm-200-disk-0 vm-200-disk-1 etc.

VM 200 was Fedora 40 and uses UEFI bios and thus three sata disk partitions.

How do I recreate this VM ?
 
Thanks guys for your responses. Sometimes the "very simple", "everybody knows" is the hardest to find in the forums.
Once I found an example:
root@prox2:~# qm set 100 --sata0 data2:vm-100-disk-0
update VM 100: -sata0 data2:vm-100-disk-0
So, in my two disk system, 250GB SSD and 8Tb SATA disk, after reloading Proxmox 9.0 on the SSD
after loosing it's root password, all I needed was to use the GUI to create a VM and use storage on
a different storage pool so as to not clobber the the intact data of the same name, then use:
qm set 100 --sata0 data2:vm-100-disk-0
This replaced "pool2:vm-100-disk-0" and made this as an unused. VM 100 then booted up fine.
( VM 100 is Fedora 40)