I keep a Windows 10 VM on my laptop, and last week it lost network connectivity, (it’s set to get its IP from my mac and get network connectivity via NAT). The guest was getting a 169.254.x.x APIPA address so either NAT was down, or there was no network?
Solution
You need to ‘Restart’ the services on the Mac host machine. Execute the following two commands;
This has tripped me up a couple of times, and if you Google the problem, you find a load of posts saying ‘Just install VMware tools that will fix the problem’
It Wont!
And I’ll tell you why, run ifconfig
You will notice you have a network card, but you will also notice that it’s got a strange name ‘ens160’ not eth0 as you would normally expect? Anyway let’s prove it’s not a driver issue by issuing a dhclient -vcommand. This basically forces the NIC up and makes it get a DHCP address, (assuming your NIC is connected to the correct network, and you have DHCP running of course!)
So this tells me it’s not a driver issue, and that installing VMware tools probably wont cure the problem.
It Didn’t!
Also if you reboot, you will find it’s not working again!
Solution
I’m going to use nano in a minute, (other editors are available), so I’ll install that first. (I’m logged in as root, you may need to prefix the following command with sudo if you are not).
[box]
yum install nano
[/box]
Remember my network card had a ‘funny name’, well change directory to the /etc/sysconfig/network-scripts directory, and you will see it’s config file, so let’s edit that, (change the text in red, to reflect your interface name, from the ifconfig command earlier);
[box]
cd /etc/sysconfig/network-scripts
nano ifconfig-ens160
[/box]
Make sure;
BOOTPROTO=dhcp
ONBOOT=yes
Now if you reboot your VM, it should come back up with networking enabled.
Related Articles, References, Credits, or External Links
I was called to a 2003 Server yesterday, that was riddled with malware, whatever was on there was generating a lot of network traffic, so the first thing I did was disconnect it from the network.
That’s fine, but if I wanted to use my usual ‘weapon of choice’ Malwarebytes, how was I going to get the latest database installed?
Solution
WARNING: There is a note on the Malwarebytes website that discourages this procedure, as it breaks the incremental update mechanism of Malwarebytes. They recommend that you use this utility to do the job, and that it should be updated every week (though the page currently has December 2011 as the update date!) . In my case once the machine is clean, I’ll remove Malwarebytes and install Trend Worry Free on it anyway. Either way, I prefer to know for a fact I’m using the latest database.
1. Install and update Malwarebytes on a nice clean machine (In this case, my Windows 7 laptop).
2. Find out what version of Malwarebytes you are running (on the about tab).
3. Navigate to the following location, and take a copy of the rules.ref file, i.e. put a copy on a USB thumb drive.