Create/delete directories for VMs: Pre/Post handlers ?

Discussions related to using VirtualBox on Linux hosts.
Post Reply
mabra
Posts: 18
Joined: 28. Oct 2012, 22:11
Primary OS: MS Windows 2008
VBox Version: OSE other
Guest OSses: ALL !
Location: Brühl

Create/delete directories for VMs: Pre/Post handlers ?

Post by mabra »

Hello !

I try to use VBox on ZFS filesystems, but do not want to use VDev (volumes) for the machines.
Instead, it would be best for me to have handlers to catch, on create/delete of the directories
for the VMs. In this case I could call a script, which creates/deletes a filesystem on the zfs-pool.
This way would give much more flexibility to assign properties to the machine specific filesystem
and it would give more control over the storage - independent from the mountpoint.
Haveing filesystems allows to take snapshots and copy deltas of it to a backup server.

Everything else is more work: Shutdown the machine. Rename the directory. Create zfs filesystem
with mountpoint to the original directory. Copy all files.

To mention: Even this can only be seen as a workaround. Have ZFS directly integrated with
VBox, would make more sense: It could mange this with the usal commands.

I hope, I made this clear.

Thanks anyway and best regards,
Manfred
Post Reply