This is meant more for reading & understanding than for running as-is.
Basically put this in a folder on the host, and set up a virtiofs filesystem on
the VM pointing to that folder. If the tag name is "localdata", then do mkdir /mnt/localdata ; mount -t virtiofs localdata /mnt/localdata and then run
/mnt/localdata/install-rules.sh to install the udev rule into HAOS.