How to add a raw VM from RAID?

Pavel Turchin

New Member
Apr 9, 2020
6
0
1
42
Hello! Help me please with my problem. I have a RAID-1 with several RAW VMs from ProxMox 6.1 (partitions, not RAW files). And I want to add them into my proxmox server 6.2 to run. I had read manuals and I can create a VMs from backup files (vzdump-qemu). All works fine. But several VMs have no backups. Only RAW VM in RAID partitions. I had already add a RAID as a storage. I see all my VMs in web interface as a disk images on RAW format. But only "Remove" button is active. How I can run them?
 
Can you please give a bit more information?
* What kind of RAID partitions? ZFS? LVM? ...

Can you show us how you did add the RAID as a Storage? How does the GUI show the VM disks?
 
I have RAID-1 from 2*3Tb Western Digital disks. WD-raid on screenshots. I add it to ProxMox host as a LVM with containers and disk images. And I see it as a storage with all nine VMs. But only button "Remove" is active as on attached picture.
 

Attachments

  • raid.PNG
    raid.PNG
    29.7 KB · Views: 12
  • storages.PNG
    storages.PNG
    11.6 KB · Views: 12
Okay. You don't have a backup of the config files of the VMs located in /etc/pve/qemu right? In that case, what you can do is to create new VMs with the matching VM ID.

After that you can run qm rescan on the CLI of the node to search all storages for disks which are not yet assigned to a VM. After this, you should see Unused disks in the hardware panel of the VMs which you then can attach by double clicking on them and configuring them.

You might want to remove the disks automatically created when you created the VMs. Consider giving the disk during the VM creation wizard a small size to easily identify the disk you want removed.

After you set up the disks as you want, make sure that the boot order in the Options panel of the VM is set corretly.
 
thank you very much! It works! But I see no VMs in WEB-interface of proxmox. So I created a VM with fake hdd. Then I went to /etc/pve/qemu and change hdd parameter to my VM partitions names. And it works!!! Thank you!

Tell me please, parameter "size" after VM partition name in /etc/pve/qemu/*.conf file I set "200G" if i see that size on web view of ProxMox when I click on storage, and "content" after that. Is it correct? Or I should check VM size by another tool?
 
Tell me please, parameter "size" after VM partition name in /etc/pve/qemu/*.conf file I set "200G" if i see that size on web view of ProxMox when I click on storage, and "content" after that. Is it correct? Or I should check VM size by another tool?
This does not need to be set and the parameter in the config file has no effect on the actual VM disk. If you remove that parameter you will sooner or later get it set automatically with the value that the disk has.

From the qm.conf man page:
Code:
           size=<DiskSize>
               Disk size. This is purely informational and has no effect.
 
Thank you very much for your answers! And the last question please. :)
Where I can find a "notes" from my VMs? Where ProxMox stores it? I want try to restore it from my VMs and make backups for future. :)
 
Where I can find a "notes" from my VMs? Where ProxMox stores it? I want try to restore it from my VMs and make backups for future. :)
The notes are stored in the config file of the VM located at /etc/pve/qemu-server/
 

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!