[SOLVED] Sharing storage with 2 VMs

niemand_besonderes

New Member
Mar 15, 2025
1
0
1
Hello,
I have an ext4 drive connected to my system as bulk storage and already shared it with one VM using this command:
Bash:
/sbin/qm set 105 -virtio2 /dev/disk/by-id/nvme-Viper_VP4300L_2TB_VP4300LEDBB233309048
Do I have to change this command in order to share my SSD to another VM? Is it even possible?
Thank you
Matthias
 
Bash:
/sbin/qm set 105 -virtio2 /dev/disk/by-id/nvme-Viper_VP4300L_2TB_VP4300LEDBB233309048
Do I have to change this command in order to share my SSD to another VM? Is it even possible?
Most filesystems (ext4 included) don't expect the disk to be share between machines (and are not designed for this). This will result in data loss and/or corruption.
If you want to share files between virtual machines, use the same approach as sharing files between physical machines: use a network share like NFS and SMB.