Skip to content

Instantly share code, notes, and snippets.

@mfrister
Last active October 5, 2020 18:25
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save mfrister/5e252e93ba4589e67cf3 to your computer and use it in GitHub Desktop.
Save mfrister/5e252e93ba4589e67cf3 to your computer and use it in GitHub Desktop.
Fix Ubuntu VMs not suspending in VMware Fusion
# Paste into a root shell on your Ubuntu VM
curl -L https://gist.githubusercontent.com/meeee/5e252e93ba4589e67cf3/raw/faa25d74545ca527d713df2b843da43af3cf92ea/network > /etc/init.d/network && \
chmod +x /etc/init.d/network && \
echo "Suspend fix installed."
#!/bin/sh
# Hack for /etc/vmware-tools/scripts/vmware/network which
# otherwise runs deprecated "service networking stop|start"
# Put into /etc/init.d/network and make executable.
#
# By eswierk
# From https://gist.github.com/drakkhen/5473067#comment-1231510
case "$1" in
stop)
ifdown -a
;;
start)
ifup -a
;;
restart)
ifdown -a
ifup -a
;;
esac
@JPHFS
Copy link

JPHFS commented Apr 2, 2019

Hi,

I had the same probelm with my VMWare with SUSE, I spent so much time time googling for a solution and I found you page. It works! Many thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment