Solution to vmnet1 down after suspend

I rarely shut down my laptop, but I use suspend all the time. Right now I have like 14 days of “uptime” which would have been a lot more if it wasn’t because I just installed Edgy :) I have VMware Server installed on it which I use for my work. I have all the machines on a host only network which works just great. But every time I suspend my laptop the virtually device vmnet1 seems to “go down” and I have to make a:

sudo ip link set vmnet1 up

to be able to connect from my laptop to the VMware machines again.

Now I created a file at the following location:

/etc/acpi/resume.d/89-enable-vmware-host-only-net.sh

With the following content:

#!/bin/sh

ip link set vmnet1 up

Now I don’t have do it manually any more, horay :-D

Creative Commons License
Solution to vmnet1 down after suspend by Jacob Emcken is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.