Jump to content

Recently got started with a home lab and playing around with multiple VMs. Currently I have 1 SSD (for proxmox and Isos) and then a bunch of HDD.

 

If I wanted to spin up multiple VMs, is the best practice to have 1 small dedicated SSD per guest OS per VM, then have any additional storage (i.e., an additional SSD or HDD?). So if I have 4 VMs, then I should have 1 SSD dedicated to each VM, plus an additional drive if needed for additional storage.

 

Or are there instances of running multiple VMs on one SSD? I feel this is a bit more risky as if that fails, then you lose two VMs instead of one. But I also understand the cost of storage/only so many SATA ports.

Link to comment
https://linustechtips.com/topic/1533552-optimal-storage-allocation-for-vms/
Share on other sites

Link to post
Share on other sites

having a dedicated SSD per VM is sort of.. unnecessary?

 

ideally you have a fast array of SSD's with some form of parity (to protect against data loss) and then stick the VM's on top of that, each with exactly the allocation they need.

Link to post
Share on other sites

Normally I'd say its best to have one big array of drives, and then put virtual disks on the drive array. Then you can use raid so drive failure doesn't stop vms. Also vms use little storage typically, so having a whole ssd for a vm thats using only 50GB of less is kinda wasteful.

Link to post
Share on other sites

3 hours ago, TechNoob9 said:

Recently got started with a home lab and playing around with multiple VMs. Currently I have 1 SSD (for proxmox and Isos) and then a bunch of HDD.

 

If I wanted to spin up multiple VMs, is the best practice to have 1 small dedicated SSD per guest OS per VM, then have any additional storage (i.e., an additional SSD or HDD?). So if I have 4 VMs, then I should have 1 SSD dedicated to each VM, plus an additional drive if needed for additional storage.

 

Or are there instances of running multiple VMs on one SSD? I feel this is a bit more risky as if that fails, then you lose two VMs instead of one. But I also understand the cost of storage/only so many SATA ports.

Think of data centers that run thousands, potentially millions of VM’s… at least many dozens or hundreds per host. They certainly do not have dedicated drives, at least not normally. 
 

You can run all the VM’s off the same SSD Proxmox host runs on. FYI, the way Proxmox sets up the datastore is not conducive to this as it allocates 50% to itself… which is dumb. I will link a video below on how to fix this. You have to do this prior to installing any VM’s tho, so if you already have VM’s, back them up, do this, then reload them. 
 

But the general idea is, install VM’s to the same boot drive as proxmox, and use your spinning rust as an array for them to use if/when needed for mass storage. I personally run TrueNAS as a VM, so I present my ZFS array to my VM’s via NFS or SMB, if you run the array in proxmox, you can just directly attach storage to VM’s, either way is fine; virtual networking is all 10gig or faster anyways, so performance differences are pretty moot. 
 

the part you want starts at 14:50, but if your new to proxmox, may be worth just watching the entire video, as well as videos from other creators just to get your bearings. 

Rig: i7 13700k +Contact Frame - - Asus Z790-P Wifi - - RTX 4080 - - 4x16GB 6000MHz - - Samsung 990 Pro 2TB NVMe Boot + Main Programs - - Crucial P3 2TB NVMe for photo work - - Corsair RM850x - - Sound BlasterX EA-5 - - Corsair XC8 JTC Edition - - Corsair GPU Full Cover GPU Block - - PTM 7950 - - XT45 X-Flow 420 + UT60 280 rads externally mounted - - EK XRES RGB PWM - - Fractal Define S2 - - DellAlienware AW3423DWF 34" -- Logitech Pro X Superlight - - Logitech G710+ - - LTT Northern Lights Deskpad

 

Headphones/amp/dac: Schiit Bifrost Multibit - -  Schiit Lyr 3 - - Fostex TR-X00 - - Sennheiser HD 6xx

 

Homelab/Media Server: Proxmox VE host - - 512 NVMe Samsung 980 RAID Z1 for VM's/Proxmox boot - - Xeon e5 2660 V4- - Supermicro X10SRF-i - - 128 GB ECC 2133 - - 10x8TB WD Red RAID Z2 - - 2x 800 GB SAS SSD’s (1 SLOG, 1 L2Arc) - - 45 HomeLab HL15 15 Drive 4U - - Corsair RM650i - - LSI 9305-16i HBA - - TreuNAS + many other VM’s

 

Unifi UDM Pro in front of full unifi network infrastructure

 

iPhone 17 Pro - - MacBook Air M3

Link to post
Share on other sites

5 hours ago, manikyath said:

having a dedicated SSD per VM is sort of.. unnecessary?

 

ideally you have a fast array of SSD's with some form of parity (to protect against data loss) and then stick the VM's on top of that, each with exactly the allocation they need.

Would you keep that separate from the SSD that has Proxmox installed or put everything on the same drive? I know @LIGISTX suggesting to put them all on the same drive, but that seems like it could be risky. (unless it's standard practice).

Link to post
Share on other sites

25 minutes ago, TechNoob9 said:

Would you keep that separate from the SSD that has Proxmox installed or put everything on the same drive? I know @LIGISTX suggesting to put them all on the same drive, but that seems like it could be risky. (unless it's standard practice).

IMO the host OS should always be on a separate drive from your "data" (VM storage is "data" in this sense)

 

but this gets into a matter of personal preference, the actual hardware you're working with, budgets, and your plans for disaster recovery.

Link to post
Share on other sites

56 minutes ago, TechNoob9 said:

Would you keep that separate from the SSD that has Proxmox installed or put everything on the same drive? I know @LIGISTX suggesting to put them all on the same drive, but that seems like it could be risky. (unless it's standard practice).

It really doesn't matter, especially for a home setup.

 

In the enterprise, no, they wouldn't have VM's share a boot drive as the host, but that isn't because of some unsafe risk - itll be because they will run some 256 GB boot drives, and an array of SSD's for VM's to live on, all while having a high availability mechanism in place... this is stuff most homelabers are not going to have, and thus don't need to architect our setups this way.

 

Think to yourself "what are the failure modes", and then determine what seems best for you. If your proxmox host dies, how do you recover? If your VM drive dives, weather it be the same as the proxmox host or not, how do you recover? Think through this, have backups in place, and then you can do what seems best for you. Personally, I run a Z1 Mirror for proxmox boot, and that drives also has my VM's... and those VM's are also backed up via PBS to my ZFS truenas spinning rust array... Personally I would much rather have 2 drives in a mirror, and on them have my proxmost host AND my VM's, then splitting them up and having to deal with redundancy for both. In the enterprise, they would just have redundancy for both...

 

TLDR; there is no "inherent risk" doing it all in one, it just means if that drive dies and you have no backups, you lose your proxmox host and your VM's. But if you split them up and your VM drive dies.... you still lose your VM's if you have no backup. So moral of the story is, have backups 🙂

Rig: i7 13700k +Contact Frame - - Asus Z790-P Wifi - - RTX 4080 - - 4x16GB 6000MHz - - Samsung 990 Pro 2TB NVMe Boot + Main Programs - - Crucial P3 2TB NVMe for photo work - - Corsair RM850x - - Sound BlasterX EA-5 - - Corsair XC8 JTC Edition - - Corsair GPU Full Cover GPU Block - - PTM 7950 - - XT45 X-Flow 420 + UT60 280 rads externally mounted - - EK XRES RGB PWM - - Fractal Define S2 - - DellAlienware AW3423DWF 34" -- Logitech Pro X Superlight - - Logitech G710+ - - LTT Northern Lights Deskpad

 

Headphones/amp/dac: Schiit Bifrost Multibit - -  Schiit Lyr 3 - - Fostex TR-X00 - - Sennheiser HD 6xx

 

Homelab/Media Server: Proxmox VE host - - 512 NVMe Samsung 980 RAID Z1 for VM's/Proxmox boot - - Xeon e5 2660 V4- - Supermicro X10SRF-i - - 128 GB ECC 2133 - - 10x8TB WD Red RAID Z2 - - 2x 800 GB SAS SSD’s (1 SLOG, 1 L2Arc) - - 45 HomeLab HL15 15 Drive 4U - - Corsair RM650i - - LSI 9305-16i HBA - - TreuNAS + many other VM’s

 

Unifi UDM Pro in front of full unifi network infrastructure

 

iPhone 17 Pro - - MacBook Air M3

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×