Friday, May 20, 2016

Proxmox crash clean install with vm disks still on iSCSI VM-Storage

Your proxmox server crashed and the only way to get it running is a clean install.
All configs are gone and the only thing you have are the vm-disks on your iSCSI storage.

No worries, follow this guide and you will be up and running in no time.

Ofcourse i can not held responsable for any damages or data loss ;)

Tested with:

Proxmox 3.2
iSCSI storage where the vm's are stored.
MS Windows 2008R2 VM ( stored on iSCSI storage )

Installation:

Install proxmox

-       Go in the webinterface click in the directory Datacenter and then click on tab Storage.


-       Click Add – iSCSI target


o    Fill in an ID number


o    Portal: Type in the IP number of your iSCSI server


o    Target: Choose the iSCSI share


o    Uncheck Use Luns Directly ( this is very important! )

The iSCSI target has now been added to Proxmox


Now add the iSCSI share:

-       Click on the directory Datacenter en and then click on the  tab Storage

-       Click Add – LVM group

o    Type in an ID Number

o    Base storage: Choose the iSCSI share

o    Base Volume: Choose the Volume

o    Volume Group: Type in a Volume Group Name

The iSCSI store is now ready for use.

Go your iscsi store you just created on the left and verify the vm image is present.
When it's present create a new VM.

Configure the VM as close as you can to the orginal one.

Open the proxmox shell
type: nano /etc/pve/qemu-server/VM_ID_NEW_CREATED_VM.conf


change the diskname and size to the orginal vm-disk

Press CRTL+X and then Y to save.

Your VM should now boot with the orginal vm-disk and everything is up and running again.



No comments: