Newbie: correct way of using disk in vm?

uihuizui

New Member
Mar 13, 2023
27
2
3
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.
 

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!