Professional Documents
Culture Documents
VMWare
VMWare
Query:
SELECT CREATE_TIME, USERNAME, VM_NAME, HOST_NAME, EVENT_TYPE FROM
VCDB.DBO.VPX_EVENT WHERE EVENT_TYPE = 'vim.event.VmRemovedEvent'
AND VM_NAME = 'VMNAME'
NOTE: (Where the VMNAME is the name of your Virtual Machine that was
deleted.)
If you don't know the full name of the VM, you can just use
wildcards(AND VM_NAME LIKE 'VM%'). This will show all results from
all Virtual Machines that start with 'VM'.
You can use many different wildcards to look for the right result.
Please check Microsoft KBQ98434 how to use wildcards.
Using VPX_EVENT you can query lot of events/tasks that was performed on
VMs/Hosts.
Example:
vim.event.VmPoweredOffEvent - Virtual Machines that were
Poweroff(without using Guest Powerdown)
We can also use the same query using PowerShell Script o check events.
Example(VM created)
Get-VM -Name 'VMNAME' | Get-VIEvent -Types Info | Where
{$_.GetType().Name -eq "VmCreatedEvent"}
Select UserName, CreatedTime, FullFormattedMessage | FT -AutoSize
You can also list the last VMs deleted, or any other event(just change
the event id for the event you want to list).
You can consult all machine events and that can be used in the above
query/script VMware vSphere API Reference Documentation
CAUSE:
VM snapshot is deleted.
Consolidated when the VM Snapshot is not finish
Steps in checking;
1. Right click the VM that have an issue click EDIT SETTINGS.
A. Check all the hard drive connected if all have Provision Size.
If one of the disk is zero (ZERO). get the Disk Filename. Close the MENU.
B. Click the VM then go to Summary from the right menu up. Select
storage, right click then Browse DataStore,
Select the directory of the VM, then search the filename of
the Disk, check the size, if the size is good.. proceed in Solution.
If no zero open a ticket.
Terminal/ Console.
CID=de688dba
ParentCID=(content ID of the Parent Disk) ex.
Disk 01
CID=ab123ba
ParentCID=cd123dc
Disk 02
CID=ef123fc
ParentCID=ab123ba
Got a response from VMware Tech Support: We have seen messages similar to
this caused by a tie in to the Unity module on the hosted hypervisor and
the lack of the Unity feature in vSphere. The developers are working on
changing the code in a future release As a workaround solution, follow the steps
below:
� Disable unity in the tools config file. The config file location and
the entry to be added are as follows: o
Tools config file location: � Windows XP and Windows Server
2000/2003:
C:\Documents and Settings\AllUsers\ApplicationData\VMware\VMware
Tools\tools.conf �Windows Vista, Windows 7, and Windows Server 2008:
C:\ProgramData\VMware\VMware Tools\tools.conf o Tools config file
content to be added: � [unity]
� pbrpc.enable = false Notes:
� If the config file doesn't exist, you should create one
� The Application Data/ProgramData folder is hidden
� You'll need to edit this file as Administrator (i.e.,
right-click "Start > All Programs > Accessories > Notepad" and select "Run as
administrator"
Solution:
When VM Tools warning message starts. you will see the windows event
log is full of VMTools warning message as shown below.
To work around this issue, disable VMware Tools logging to the Event
Log and general virtual machine logging to the vmware.log file for the virtual
machine.
Note: If you encounter issues with VMware Tools, the logging will need
to be enabled again for troubleshooting.
Open the tools.conf file using a text editor. The tools.conf file is
located at:
Windows XP and Windows Server 2000/2003:C:\Documents and
Settings\All Users\Application Data\VMware\VMware Tools\ (in my case)
Windows Vista, Windows 7, and Windows Server
2008:C:\ProgramData\VMware\VMware Tools\
Linux:/etc/vmware-tools/tools.conf
Create a file with name tools.conf and edit it with notepad or any
other editor as shown below.
[logging]
vmusr.level = error
vmsvc.level = error
Verify:
Now if you go to Event Logs of your VM. you will see there is no
more warning events for VM Tools.
HOW TO'S
Datastore Properties
Select the datastore, if you've not rename the datastore,
the datastore default name is datastore1.
Browse Datastore
Select the root (/) of the datastore, and click the New
Folder icon to create a new destination folder for the new virtual machine clon or
copy..
Create folder
Enter a name for the folder name followed by OK.
VM Folder
Select ALL the files in the VM folder to be cloned/copied.
Empty Folder
Right click the empty folder space and Right Click and
Select Paste
Right click the empty folder space and Right Click and
Select Paste[
The Copy Progress bar will be displayed, indicating a time
to completion.
Add to Inventory
Follow the Add to Inventory Wizard, make sure the name is
different and unique, it must be different to
the original virtual machine name. This is just a friendly
name for the inventory, it does not change the name of the name of the virtual
machine OS.
Add name
Select the host, that you want to add this virtual machine
to, followed by Next
Add VM to host
Review the details and Click Finish to add the VM to the
Host Machines Inventory. The Virtual Machine will be added to the inventory.
INSTALLATION
Everything you need to know can be found on the official Fling page.
https://labs.vmware.com/flings/esxi-embedded-host-client
VERDICT:
- UI is very similar to vCenter but with a few modifications that make
it a lot lighter
- I like how the console can be opened within the current window, in a
new window or in VMRC.
- I do not like how clicking on the image of the console automatically
opens it in the current window. Options should be provided like above.
- Almost everything I would want, even the advanced features are
available. The only issue is not everything is fully working like
enabling/disabling SSH
-