5

I got a Win Server 2008 R2 on a VM. I think someone accidentally ejected the NIC card that is presented as a hot pluggable device. But I am trying to find proof of that in the windows event logs and I haven't found a thing so far. What should I be looking for?

Thanks

EDIT for clarity:

  1. VMware presents NIC cards and HDDs to the Win Srv 2003 and newer VM as hot removable devices. This means if someone doesn't look where they are clicking can easily eject the NIC card, and this activity would not get logged in the VMware normal log messages. As per KB below, it has the fix as well:

http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1020718

  1. The pluggin and unpluggin of hot plugging of removable devices are not logged apparently.

  2. The VM is already fixed. I have the above as a theory as to what happened, but it wouldn't be a very convincing theory without sufficient proof. While I have the screenshot that shows the NIC is presented as a removable device that is circumstantial. I would rather have a log message that shows at "time xx:xx device removed".

  • thanks, I did look through the windows logs and application services logs found under server manager/diagnostics. I spent an hour googling those event ids, and haven't found anything that looks like someone ejecting a hotpluggable device – D.Zou Feb 24 '15 at 15:33
  • 1
    Isn't the important thing to get it working again? When you say you're trying to find proof it makes me think you're playing the blame game, which doesn't serve anyone, least of all yourself. – joeqwerty Feb 24 '15 at 16:01
  • 5
    I'm going to weigh in and say I don't really understand the downvotes - I think this question is perfectly reasonable and it's totally understandable to want to provide conclusive evidence of what caused a production issue. – Dan Feb 24 '15 at 16:19
  • 3
    @D.Zou - My apologies. I didn't intend to start a fire with my comment. I have an aversion to the use of the word "proof" being used in the context of incident analysis because I've only ever heard it used when someone was getting beaten up for making a mistake. I didn't mean to imply that that's what you were doing. Again, my apologies. – joeqwerty Feb 24 '15 at 16:44
0

Yes, this will not be clearly logged in the vmware.log or hostd log file. However, depending on your setup, this can still be possible to trace.

If you know the timeframe, you can go to file > export > export events in vSphere Client (assuming you are using VI Client, but you haven't mentioned what kind of environment this is...) Select the timeframe and finish. There should then be a "Reconfigure VM" task at the time, including the username of who did it.

A better method is if the VM is on an ESXi host that is part of vCenter Server, as you can find this information in the vCenter database quite easily.

First, create a test VM and remove a network card (or do it on a VM where it wont be a big deal.) Next, connect to the vCenter database with SQL Management Studio, and run a SQL query: select * from vpx_task

Find the task of the NIC being removed, and note the code name of the description for removing a NIC (I am not in front of a SQL Db at the moment so I cannot test this right now). At a guess, it will be something like networkcard.remove or network.destroy - something along those lines....

Next, run the following query, changing the bit in between the % and % to the description code from above:

select * from vpx_task where description like '%description%'

Example: select * from vpx_task where description like '%network.destroy%' Locate the VM and timeframe, and you will see who removed the NIC and when.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.