Virtual FAT into Proxmox through QEMU

puntloos

New Member
Mar 8, 2025
2
0
1
QEMU supports virtual FAT emulation, which takes a local folder and presents it as a drive, but the documents are quite fuzzy.

To my understanding, if I can only run qemu-system-x86_64 with the added parameter

Code:
-drive file=fat:/mnt/tmp

I am fairly sure that folder will show up as a drive.

But if I go to /etc/pve/lxc/105.conf and add:
Code:
args: -drive file=fat:/mnt/tmp

Nothing happens - at least if I do ps -w and fine the qemu commandline I don't see the -drive command.

What am I missing?
 
and to add - it's not quite clear to me what happens even if I succeed passing the arguments. Maybe it's obvious but do I get a block device (name?) I can mount? Or?
 
Hi,
containers do not use QEMU at all, but LXC. So you cannot use QEMU arguments. There also is no args option for container configurations. Always use pct set <ID> --<option> <value> or same with qm set for VMs rather than modifying configuration files by hand, they will tell you early when an option doesn't exist or a value is invalid.

There are bind mounts and device mounts for containers:
https://pve.proxmox.com/pve-docs/chapter-pct.html#_bind_mount_points
https://pve.proxmox.com/pve-docs/chapter-pct.html#_device_mount_points