no Traffic to Internet, though you can ping the gateway

Posted by O.Sommer

Tonight I was facing an interesting problem I did not had before.
I just had reinstalled a Server 2012 Essentials VM and was configuring this for internetaccess to patch and configure it.
Though i had entered a vaild IP and a vaild Gatway I misstyped the Gateway IP to be the same as the local OS IP. In my case 192.168.46.2. Recognizing my error I reopened the IPv4 config dialog and change the IP to 192.168.46.1 which is the gateway IP:

image

Then I tried accessing the internet for Patches and things, but that failed… hmm, well troubleshooting is my job and so.
I went on pinging the gateway IP 192.168.46.1, which succeded, then I ping a FQDN, which failed…hmm, ok went to check for DNS settings, all ok.

So went on an pinged one of the google DNS Server 8.8.8.8 which also failed:

image

Interesting… so how come you get to the gateway IP just fine, but not bejond?
Well that’s usually a matter of the Gateway/Firewall/Router, right?
Ok, so checked the setting of the Gateway multiple times all seemed right… As the Gateway is a TMG I went on to monitor traffic coming from the VM:

image

Ping to the Gateway IP showed up just as expeted and were allowed.

But any other traffic to the internet, e.g. pinging 8.8.8.8 didn’t even show up in the LOG… interesting…

Then I fired a “route print” on the VM and found something interesting, two default gateways:

image

WTH??!! Ok, now that’s not right and might cause the trouble…ie
So I tried to reset the gateway using the IP config dialog, which did not work as it always kept the wrong gateway of 192.168.46.2 in the deafult route.

Ok, so the let’s use “route delete 0.0.0.0” and then reset the correct gateway in IPv4 setting:

image

and after resetting the correct gateway of 192.168.46.1 in IPv4 setings:

image

after this pinging the web and DNS resolutions started to work just fine:

image

Wie man VMs aus SC Virtual Maschine Manager entfernt, die den Status “update failed” or “failed” job status haben

Posted by o.sommer

Im VMM kann es manchmal vorkommen, das eine oder mehrere VMs nach misslungenen Operationen de facto leere Hüllen auf Hyper-V Host zurücklassen. Meist ist dort dann nur die Konfigurations XML Datei der VM vorhanden, die aber manuell nicht gelöscht werden kann, weil sie angeblich im Zugriff wäre.

Manchmal hilft einfach ein Neustart des Clusternodes der angeblich die “failed” VM Reste besitzt.

Hinweise darauf wie man die direkt aus der VMM DB löschen könnte finden sich hier:
http://theangryangel.co.uk/blog/scvmm-2008-duplicated-but-missing-vms

Folgende Lösung fand ich in diesem Forums Thread:
http://social.technet.microsoft.com/Forums/en-US/virtualmachinemanager/thread/1fa47937-c86b-423f-84e1-2bfde4fd5775/

Technet Referenz mit dem SQL Script in dem man den ObjectState anpassen kann (220 im Beispiel, 107 für die angesprochenen Problemfälle):
RemoveMissingVMs
http://technet.microsoft.com/en-us/library/ff641854.aspx
auch in diesen KB Artikel referenziert:
http://support.microsoft.com/default.aspx?scid=kb;EN-US;983839