Last active
October 5, 2020 18:25
-
-
Save mfrister/5e252e93ba4589e67cf3 to your computer and use it in GitHub Desktop.
Fix Ubuntu VMs not suspending in VMware Fusion
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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!