How to share a partition between vm

La Matchata

Member
Nov 24, 2020
7
0
6
30
Hi !

I recently install proxmox on my computer and have an idea but with my limited knowledge i don't know if it possible to do

I want to install macos and windows on my Nvme drive, and use the same drive to store all my sample libraries ( for my music VST )
But, is it possible to use the partition where i store my samples on windows and mac vm ( they wont run at the same time )? Because it's for music i need to have them on my fastest disk..
I have another SSD but i installed my main Windows for gaming on it ( cause games i want to play have problem with kvm and anticheat )

Here's my configuration :

CPU : Ryzen 5800X
RAM : 16Gb ( soon 32 )
GPU : RX 5600XT
SSD : 1Tb for windows games, 2Tb windows, macos VM and sample libraries
HDD : 1 Tb for proxmox and another 1Tb that i don't use right now ( maybe for trying some linux distros )

Thanks for your help ! :)
 
But, is it possible to use the partition where i store my samples on windows and mac vm ( they wont run at the same time )? Because it's for music i need to have them on my fastest disk..
In theory yes, as long as Win and MacOS support the same filesystem and you really never start both VMs at the same time which then would corrupt the data on it. If that SSD is just for storing your music you could for example PCI passthrough or disk passthrough the whole disk into both VMs. With virtual disks this would be problematic as PVE names the virtual disks according to the VMID the virtual disks belongs to and you can't use the same VMID with two VMs.

What about running a NAS VM and then bringing that music into both Mac+Win VMs via something like SMB/NFS? Would add additional overhead and latency but benefit would be that both VMs could run at the same time accessing the same files and you won't risk to corrupt your data when you start both VMs by accident or one VM is running and then the other VM is started by a backup job.
 
Last edited:
In theory yes, as long as Win and MacOS support the same filesystem and you really never start both VMs at the same time which then would corrupt the data on it. If that SSD is just for storing your music you could for example PCI passthrough or disk passthrough the whole disk into both VMs. With virtual disks this would be problematic as PVE names the virtual disks according to the VMID the virtual disks belongs to and you can't use the same VMID with two VMs.

What about running a NAS VM and then bringing that music into both Mac+Win VMs via something like SMB/NFS? Would add additional overhead and latency but benefit would be that both VMs could run at the same time accessing the same files and you won't risk to corrupt your data when you start both VMs by accident or one VM is running and then the other VM is started by a backup job.

In theory yes, as long as Win and MacOS support the same filesystem and you really never start both VMs at the same time which then would corrupt the data on it. If that SSD is just for storing your music you could for example PCI passthrough or disk passthrough the whole disk into both VMs. With virtual disks this would be problematic as PVE names the virtual disks according to the VMID the virtual disks belongs to and you can't use the same VMID with two VMs.

What about running a NAS VM and then bringing that music into both Mac+Win VMs via something like SMB/NFS? Would add additional overhead and latency but benefit would be that both VMs could run at the same time accessing the same files and you won't risk to corrupt your data when you start both VMs by accident or one VM is running and then the other VM is started by a backup job.
Hi,

Thanks for your reply, you thinks i can passthrough the entire disk with the two OS installed on it? I think it maybe possible to tell macos and windows to not mount the os partition to avoid problem.

But if i do that, i need i think to install macos first but without passthrough the disk, on just maybe 100GB, and after when installing windows i pass the entire disk creating a partition in exfat and pass the disk for macos ?
I not remember if when installing mac you can make partition like the windows installer ...

And with partition passthrough, maybe as LnxBil said, it'll be easier ?
I was thinking about NAS, but i dont know if with latency and speed limit it will be great ... But i think i'll try when i have one pc that i not use !

Thanks you for helping me ! :)
 
But if i do that, i need i think to install macos first but without passthrough the disk, on just maybe 100GB, and after when installing windows i pass the entire disk creating a partition in exfat and pass the disk for macos ?
You could also install the guest OS in virtualized storage (as it is common in virtualization) and only passthrough the data disk to each VM. Just split everything in such a way that it is the easiest possible setup (KISS). The data disk should optimally only hold your data that you want to share and the OS of both VMs (better all VMs you have) should be on a separate storage. This is IMHO the easiest setup IF you want to do passthrough of a disk. If you just want your data to be shares, just go with Samba or NFS and share files instead of block devices.
 
Yes, this is what i was thinking initialy, installing OS on a dedicated drive and pass the nvme to each os ( formated in exfat), but, this nvme is my only SSD ... other are HDD ... I'm thinking about buying an PCI card for nvme, or just adding a SATA SSD later ...
Is it possible to move installation of a VM on other disk ( if the os was installed on a passthrough disk ? ) like you do if you move virtual disk?
 
Bad system design!

Use ZFS with as many Drives as you can. minimum 2x SSD/NVMe with ZFS Mirror; better ist ZFS RaidZn; n E {1,2,3}.

When you use any Harddisk, then you need setup this ZFS Pool wit a ZFS special Device with the same redundancy,

Example: 2x HDD ZFS mirror and 2x SSD ZFS mirror for Special Device. oder ZFS RaidZ1 on both and so on.

And then you can easy reuse ZFS Disspace with ZFS auto snapshot al least all 15 minutes for recovery the last state aof you VM oder LXC.

In a seperat Debian 12 LXC you can set up a local NAS (Samba with CIFS protoco) with private a IPs on a seperate vmbr without a real NIC.

Now you can share easy drive space over the NAS Share from our hostsystem Proxmox VE with ZFS.
 

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!