Setting libvirtd to delay start of vm

Do you want to delay it for a set time after host startup or delay it until something else has happened?
 
Do you want to delay it for a set time after host startup or delay it until something else has happened?
I want to delay it till the network bridges come up. Currently the vm fails as it cannot see the br0 and br1 interfaces. Doing a sudo service libvirtd restart afterwards brings the vm up.
I suspect it is maybe a few seconds, not more than 20 maximum.
 
So success!
The libvirtd unit file needed this:
BindsTo=sys-devices-virtual-net-br0.device
BindsTo=sys-devices-virtual-net-br1.device
BindsTo=sys-devices-virtual-net-br2.device
After=sys-devices-virtual-net-br0.device
After=sys-devices-virtual-net-br1.device
After=sys-devices-virtual-net-br2.device
 
  • Like
Reactions: Nod
Top
Sign up to the MyBroadband newsletter
X