Is there a way to delay a VM startup?

frogtest

Cadet
Joined
Jun 22, 2022
Messages
1
I've installed Plex plugin and works fine
I've installed Ubuntu 21.04 on a VM and installed Pi-Hole to that Ubuntu and works fine.
The problem comes on rebooting the server, Pi-Hole prevents jails from working therefore breaks Plex. If Pi-Hole is set for autostart, Plex and Jails won't work. If I turn off autostart on Pi-Hole and reboot, Plex will work along side Pi-Hole if turned on afterwards. But new jails/plugins can't be created.

Error: PlexBeta had a failure Exception: RuntimeError Message: + Acquiring DHCP address: FAILED, address received: 0.0.0.0/8 Stopped PlexBeta due to DHCP failure Partial plugin destroyed

Which is fine unless I want to add plugins later. Anyway, is there a way to delay a VM i.e Pi-hole on Ubuntu until after the Plex plugin starts.



X8DT3-LN4F Motherboard
2x Xeon X5650 2.66ghz 12mb Cache 6.4 GT/s 6-Core CPUs
48GB configured 12x4GB 10600R ECC Registered
6 WD Blue sata 4 TB raid, 1 TB m.2 cache, 480 GB ssd system disk
2x 720w Power Supplies (PWS-721P-1R)
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
There's a netwait feature that may help with that... I haven't really tried it out myself and certainly not for the purpose you're talking about here, but it's possible you could use the IP of the VM as the netwait target, which may cause the jails to wait for it to ping before starting...

If that's not going to work out, then you can certainly set the jails and/or VM to not start automatically and use a script to start them in order with API calls like midclt call vm.start and midclt call jail.start
 
Top