Hello everyone. This is my very first post so I apologize if I made any mistakes.
I am running xcp-ng on a single host (homelab). One of the VMs is TrueNAS Core with an HBA card passthru (12 drives total). All my VMs (except for TrueNAS) are running off an NFS share from the TrueNAS VM.
Everything has been working great except for a small issue. The host cannot connect to this NFS SR until after TrueNAS has fully booted up and starts serving the share.
I can click reconnect on the NFS SR after the VM boots and then manually start the rest of the VMs. Is there an easier way (ideally automated) to do this?
I do not see how it would be possible to achieve this using the built in jobs in XO. I can reconnect the SR from CLI using xe pbd-plug uuid=[uuid]. However, I am not sure how I could trigger this after the TrueNAS VM boots. And that still leaves the issue of having to start the other VMs manually.
I am thinking of setting up a job on TrueNAS Core to SSH into console and run a sh file that would connect the NFS SR start all VMs. Am I overcomplicating this? Any other ideas on how to accomplish this?
Thank you for any help provided