Difference between revisions of "Troubleshooting (Virtual Machine)"

Jump to navigation Jump to search
Added "Can't Connect VM's NIC"
(→‎Snapshots: Added "Revert to Snapshot Causes Trust Relationship Failure")
(Added "Can't Connect VM's NIC")
 
(3 intermediate revisions by the same user not shown)
Line 188: Line 188:


=== Revert to Snapshot Causes Trust Relationship Failure ===
=== Revert to Snapshot Causes Trust Relationship Failure ===
When reverting a VM that is a member of a Windows domain to a snapshot you can get the following errors at boot up or when trying to logon
When reverting a VM that is a member of a Windows domain to a snapshot you can get the following errors at boot up, or when trying to logon
* '''The trust relationship between this workstation and the primary domain failed'''
* '''The trust relationship between this workstation and the primary domain failed'''
* '''Windows cannot connect to the domain, either because the domain controller is down or otherwise unavailable, or because your computer account was not found. Please try again later. If this message continues to appear, contact your system administrator for assistance.'''
* '''Windows cannot connect to the domain, either because the domain controller is down or otherwise unavailable, or because your computer account was not found. Please try again later. If this message continues to appear, contact your system administrator for assistance.'''


The problem is caused by the VM's computer account, which is used by the domain client/snapshotted machine to access the domain controller, having an invalid password.  Domain member servers periodically change the password they use to connect to the domain with (by default every 30 days).  So if a VM is snapshotted, then following that updates its computer account password; on a revert to snapshot it will revert to the old invalid snapshot and be unable to login to the domain.
The problem is caused by the VM's computer account, which is used by the domain client/snapshotted machine to access the domain controller, having an invalid password.  Domain member servers periodically change the password they use to connect to the domain with (by default every 30 days).  So if a VM is snapshotted, then following that updates its computer account password; on a revert to snapshot it will revert to the old invalid password and be unable to login to the domain.


* '''To resolve:'''
* '''To resolve:'''
*# The machine needs to be taken off the domain, and put back on (you'll need a domain account with rights to do this)
*# The machine needs to be taken off the domain, and put back on (you'll need a domain account with rights to do this)
*#* See [[Windows_2008#Re-Add_Server_to_Domain|Re-Add Server to Domain]] for further info
* '''To prevent:''' - see note below
* '''To prevent:''' - see note below
** Disable machine account password changes
** Disable machine account password changes
Line 207: Line 208:
{| class="vwiki-note"
{| class="vwiki-note"
|-
|-
! The prevention options reduce domain security
! The prevention options reduce domain security !
|-  
|-  
| They should only be actioned if you understand the risks and are not breaching any security policies that are in force.
| They should only be actioned if you understand the risks and are not breaching any security policies that may in force at your organisation.
If its not a regular occurrence, its probably best to just live the problem, and resolve when required.  Snapshots should be allowed to run for many days in normal operation, which means that the problem should not occur frequently in a well run environment.
If its not a regular occurrence, its probably best to just live the problem, and resolve when required.  Snapshots should not be allowed to run for many days in normal operation, which means that the problem should not occur frequently in a well run environment.
|}
|}


Line 223: Line 224:
** The virtual hardware has changed (especially disk type) since the original machine was created
** The virtual hardware has changed (especially disk type) since the original machine was created
** Sysprep can't customise the machine because it doesn't have administrator rights, this can occur where a DC's users have been offloaded to [[Acronyms#L|LDS]]
** Sysprep can't customise the machine because it doesn't have administrator rights, this can occur where a DC's users have been offloaded to [[Acronyms#L|LDS]]
== Can't Connect VM's NIC ==
When powering up a VM its network card becomes disconnected.  If you tick the ''Connected'' checkbox, the task completes without error, but the checkbox is unchecked again.
This can happen when exporting a VM from Lab Manager, or can be caused by config errors with vShield Zones (and there are probably triggers as well).  You may notice either of the following in the VM's <code>vmware.log</code> file
* <code>vcpu-0| [msg.ethernet.e1000.openFailed] Failed to connect ethernet0.</code>
* <code>vcpu-0| [msg.ethernet.openFailed] Failed to initialize ethernet0.</code>
Filter config has been left on the VM's NIC, which is causing problems when trying to connect the vNIC to its portgroup.
In order to resolve either...
* Replace the virtual NIC in the VM's config (remove the NIC, then readd it)
* Manually remove the offending config lines from the VMX file
*# Power off the VM, and identify where its VMX config file is, and what ESX its on
*# Remove the VM from the vCenter inventory
*# SSH to the ESX, and edit the VM's VMX config file
*# Remove any lines that reference a filter on the affected NIC, for example...
*#* <code>ethernet0.filter1.param0 = "0x2000029" </code>
*#* <code>ethernet0.filter1.param1 = "3" </code>
*#* <code>ethernet0.filter1.name = "vsla-fence" </code>
*# Register the VM
*# Verify the NIC's connected network, and reconnected the NIC
*# Power the VM back up
For more info see [http://kb.vmware.com/kb/1028151 VMware KB 1028151]


== VMTools Automatic Cursor Release Not Working ==
== VMTools Automatic Cursor Release Not Working ==
Line 259: Line 285:
[[Category:Virtual Machine]]
[[Category:Virtual Machine]]
[[Category:Troubleshooting]]
[[Category:Troubleshooting]]
[[Category:Troubleshooting VMware]]

Navigation menu