APFS support in File Restore

Der Harry

Member
Sep 9, 2023
42
14
8
Is there any (nice way) to bring APFS support to the "File Restore" Option to PBS?

I have a VM with a APFS / macOS Partition. It would be nice to access files - as on Windows, LInux machines.

Is it enough to just install a APFS driver in Proxmox - e.g. https://github.com/linux-apfs/linux-apfs-rw?

Is there a kind of list where Proxmox is getting the filesystems?
 
Theoretically it should be enough, if the linux mount command can mount it, so should pve pbs.
The list of supported file systems is taken from /proc/filesystems. Every line that is not starting with nodev is considered a valid file system.
 
Last edited:
  • Like
Reactions: Der Harry
This is no prio :) Just burning time ... thx for helping

Would be cool if you can point me to the next direction.

So here what I did (on the proxmox server)

Bash:
apt install -y build-essential git
apt install -y linux-headers-$(uname -r)
git clone https://github.com/linux-apfs/linux-apfs-rw.git
cd linux-apfs-rw
make
modprobe libcrc32c
insmod apfs.ko
cat /proc/filesystems | grep apfs
        apfs


Bash:
# nothing here
tail -f /var/log/proxmox-backup/file-restore/qemu.log


(I also did a insmod to the pbs server with the apfs.ko)

This is what I get:

1713785067089.png
 
are there attempts to upstream it (or another, ro driver - we don't need write support ;))? it's marked as experimental and I'd be a bit wary to include completely random code in the file restore VM..
 
  • Like
Reactions: fiona and Der Harry
are there attempts to upstream it (or another, ro driver - we don't need write support ;))? it's marked as experimental and I'd be a bit wary to include completely random code in the file restore VM..

Yea the name is just a bit of an issue here - and "opensource-ish" issue ...


https://github.com/linux-apfs/linux-apfs.git < is the "old" readonly driver repo (that is archived - but not removed)

https://github.com/linux-apfs/linux-apfs-rw.git < with the "rw" is the new repo - that is under development - but has that stupid name.


I hope that you always add a "-o ro" to your mounts
 

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!