How best to add storage to Yunohost in Proxmox VM?

Discuss

I have a Proxmox box and want to put a VM on it with Yunohost but attach a large drive to that VM so I can have lots of space in the Yunohost. I’m thinking to do a PeerTube and some other storage intensive things on it.

I have a 1TB SSD in a USB enclosure, and when I pass through the USB it doesn’t work right. I assume this is because the enclosure is flaky because passing through other USB storage devices to other VMs works well.

What’s my best bet, buy a different USB enclosure? Attach this USB enclosure to the Host and pass through a directory (this is doable in proxmox right?). Or some other suggestion? How do you get large storage onto your Proxmox VM for Yunohost?

I use a 256GB SSD for my proxmox with VM on it and a 1TB SSD passthrough disk with multiples partitions. I mount some of them on proxmox to backup VM, do snapshot, store Iso and CT images. The others partitions are mount on the yunohost VM with Nextcloud data and borg backup.

The inconvenient with passthrough, you must detach the disk before a snapshot, however it’s not complicated.

My proxmox VM is about 6 years old, it’s a restoration from a yunohost backup (previously on a RPI) - I test yunohost and it is so robust, for me at least, so the test (i can’t call it test today) is always here. The passthrough HDD disk crashed, i replaced it without loose data, and passthrough with a new SSD.

But i don’t use it on a usb port, the disk is on a sata port

you passthrough individual partitions on the disk?

yes, USB is not the best, but these are mini PCs so there’s no way to put an internal drive.

It’s also a mini PC but there’s a sata port in it. Did you open it? You could have a great surprise.

Hmm, i’m not sure i understand, my english is so bad (but i try to speak in english since i’m on the yunohost forum, it’s difficult however)

I passthrough the whole disk but only mount with fstab the 2 partitions that i use with proxmox. The others partitions are mount only on the VM yunohost. I use Label, it’s easier to do that with explicit name.

1 Like

Oh, I thought if you passthrough the whole disk, you would not see the disk on the host and so couldn’t mount those other partitions, but you say that’s not how it works.

I dont’ need to split partitions, what I need is just to get the one giant partition on this SSD into the VM. I could buy a new USB enclosure that works better in passthrough, or I could mount the directory on the host and then pass the directory through. Do you know anything about passing directories through?

No, i only passthrough disk and mount partitions on proxmox and VM. I never try with directories.

Hi dlakelan,

Not to throw you off kilter, but did you consider using a container instead of a virtual machine?

I came from single board computers to Proxmox as well, but I have always run Yunohosts in a containers. I have some non-Linux VMs, but I find the management of VMs less flexible than that of containers.

Edit, (sorry, forgot to make it relevant to your question :stuck_out_tongue: ) : I didn’t use pass through for any hardware, but use the resources as they are provided via Proxmox.