Newbie: correct way of using disk in vm?

uihuizui

Member
Mar 13, 2023
29
2
8
Hi,

I'm new to proxmox and think i'm doing well :) I just want to ask, if i understud it right way how to use a disk/share in a VM without overhead.

Goal:
A VM that provides a TimeMachine SMB share

What i did:

- 2x HDD 3TB configured as ZFS-Mirror in Proxmox (visible as storage A) (to have a recovery option when one disk fails)
- created a VM with 1st disc local-lvm as OS (scsi0)
- and a 2nd disk as "VM Disk 1" on storage a (as drive > scsi1)
- created partition sdb1 with fdisk for scsi1 (sdb in my case)
- created filesystem on sdb1 drive in the VM with "mkfs.ext4 /dev/sdb1"
- mountet sdb1 to /mnt/timemachine with fstab

Am i fine with that or did i something wrong or, i want to learn, is there a way to do it better?

I'm wondering about using ZFS > disk > ext4 > mount but maybe this is okay?

Thanks
 
Last edited:
I'm new to proxmox and think i'm doing well :) I just want to ask, if i understud it right way how to use a disk/share in a VM without overhead.
If you want no overhead at all and the VM being able to directly access the real disks, the only option is to PCI passthrough a whole disk controller into the VM with all of its ports. This usually means buying a dedicated HBA card and then putting that in your first PCIe x16 slot.

I'm wondering about using ZFS > disk > ext4 > mount but maybe this is okay?
Should be fine.
 
Hi Dunuin,

i decided to use a LXC instead of VM and now use mount points from the data pool. I think this will be the easiest and cheapest way without any layers between host & guest.

- 2x HDD 3TB configured as ZFS-Mirror in Proxmox as datapool
- created a LXC with rootdisc disc local-lvm as OS
- mp0 /datapoolname/folder to /mnt/folder

Thanks for your answer. I think also this way will be good.