VMWare – Version

Background

Needing to find out what versions of VMWare we are running.

 

Databases

Vmware can be back-ended by an Oracle, SQL Server, or postgres.

 

Query

To determine the versions of VMWare our hosts are running on, we issue the query pasted below:

Script


select 
		  vwHost.[PRODUCT_FULLNAME]
		, vwHost.[PRODUCT_VERSION]
		, vwHost.[VMOTION_ENABLED]
		, [count] = count(*)

from   [dbo].[VPXV_HOSTS] vwHost

group by

		  vwHost.[PRODUCT_FULLNAME]
		, vwHost.[PRODUCT_VERSION]
		, vwHost.[VMOTION_ENABLED]


 

Output

 

Explanation

We are on VMWare ESXi 5.5.0

 

References

  1. Brian P. O’Dwyer
    • Gathering ESXi Host Information from VMware vCenter VCDB for Virtual SQL Servers
      Link
  2. VMWare
    • Home > Resources > Compatibility Guides > Interoperability Matrix
      • VMware Product Interoperability Matrices
        Link

VSS – Error – “Volume Shadow Copy Service error: Unexpected error DeviceIoControl(\\?\fdc#generic_floppy_drive”

Background

Reviewing errors on a couple of our servers and consistently seeing errors sourced to VSS.

BTW, VSS is a Microsoft Application and the term VSS stands for Volume Shadow Copy.

Error

Error Image

unexpectederror-deviceiocontrol-genericfloppydrive-20170118-0636pm-brushedup

Error Message



Volume Shadow Copy Service error: Unexpected error DeviceIoControl(\\?\fdc#generic_floppy_drive#6&2cb9d9b7&0&0#{53f5630d-b6bf-11d0-94f2-00a0c91efb8b} - 0000000000000474,0x00560000,0000000000000000,0,0000003E699986F0,4096,[0]).  hr = 0x80070001, Incorrect function.
. 

Operation:
   Exposing Recovered Volumes
   Locating shadow-copy LUNs
   PostSnapshot Event
   Executing Asynchronous Operation

Context:
   Device: \\?\fdc#generic_floppy_drive#6&2cb9d9b7&0&0#{53f5630d-b6bf-11d0-94f2-00a0c91efb8b}
   Examining Detected Volume: Existing - \\?\fdc#generic_floppy_drive#6&2cb9d9b7&0&0#{53f5630d-b6bf-11d0-94f2-00a0c91efb8b}
   Execution Context: Provider
   Provider Name: VMware Snapshot Provider
   Provider Version: 1.0.0
   Provider ID: {564d7761-7265-2056-5353-2050726f7669}
   Current State: DoSnapshotSet


Error Explanation

The Event Source is VSS.  And, the Event ID is 12289.

And, the event description reads  “Volume Shadow Copy Service error: Unexpected error DeviceIoControl(\?\fdc#generic_floppy_drive …  hr = 0x80070001, Incorrect function“.

Later on the Device Id is identified again within the Context sub-region.  And, the Device ID is 53f5630d-b6bf-11d0-94f2-00a0c91efb8b.

 

Remediation

NetApp Community

dailyFresh

Link

Did you, by any change, create a VM with a floppy drive, installed Windows and then one day removed the floppy drive from the VM?

In that case disable the floppy drive in the Device Manager of Windows and see if the error goes away.

 

Steps

  1. Launch Control Panel \ Device Manager
  2. Select Floppy disk drives \ Floppy disk drive
    • Right click on your selection
    • From the drop-down menu, please select disable
 Device Manager – Original

devicemanager-floppydiskdrive-20170118-0641pm

 

 

 Device Manager – Disabling the device ….

disablefloppydiskdrive

 

 Device Manager – Disabled Device

devicemanager-floppydiskdrive-20170118-0642pm

 

Knowledge Based

Here is some of the KB available on the Net.

 

Device Id

Removable Drives

smallvoid.com

Link

From smallvoid.com here are the registry keys for the various types of removable storages.

Device Type Registry Key
 CD and DVD Drives  {53f56308-b6bf-11d0-94f2-00a0c91efb8b}
 Floppy Drives  {53f56311-b6bf-11d0-94f2-00a0c91efb8b}
 Removable Disks  {53f5630d-b6bf-11d0-94f2-00a0c91efb8b}
 Tape Drives  {53f5630b-b6bf-11d0-94f2-00a0c91efb8b}

 

 

Error

0x80070001

Error 0x80070001 often means that one is trying to access a device that does not exist.

Please refer to the following KB articles

  1. Windows backup or restore errors 0x80070001, 0x81000037, or 0x80070003
    Link

Giving Credit

Though DailyFresh will like to keep an Air of Anonymity, he still gets credit.

 

VMWare – WorkStation (v8) – Expanding Disk – Error – The called function cannot be performed on partial chains. Open the parent virtual disk (0x500003e83)

Introduction

I am just getting over a mishap I had with VMWare WorkStation Version 8.
On the VM Guest, the original provisioned disk was 40 GB on drive C: and 60 GB on drive D:

Not enough to do much with these days, and so I set out to increase it.

 

Attempt Disk Increase Using GUI

I took the VM Guest offline and tried increasing its disk layout.  But, each time on both disks (Disk C: and Disk D:)  got the same error message:


The called function cannot be performed on partial chains. Open the parent virtual disk (0x500003e83)

 

ExpandDiskCapacity

 

Attempt Disk Increase Using Command Line (vmware-vdiskmanager.exe)

Using VMWare’s vmware-vdiskmanager.exe:

Syntax:

c:
cd C:\Program Files (x86)\VMware\VMware Workstation
vmware-vdiskmanager.exe" -x [new-size] [file-name-vmdk]

Example:

c:
cd C:\Program Files (x86)\VMware\VMware Workstation
vmware-vdiskmanager.exe" -x 75GB Data-000003.vmdk

But, getting the same error…

VDiskManager-CommandLineError

Review VMWare WorkStation Version#

Reached for VMWare WorkStation Version# :

– Version 8.0

VMWareProductVersion

Upgraded VMWare WorkStation

Access  https://my.vmware.com/group/vmware/info?slug=desktop_end_user_computing/vmware_workstation/8_0
 and reviewed available patches for VMware version 8.

Downloaded latest patch for 8.0; happens to be 8.06

VMWareWorkStation-Version#-8-0-6

Please keep in mind that you need a VMWare Account.  If you do not have one, you can create one on the fly.

Installed VMWare Patch

Installed patch

Again, Try To Increase Disk

Again, tried to increase disk, but same error.

Goggled for Help

I have one thing going, and that is an Internet connection — “Country Boy will survive

Here are the steps prescribed.

Clone VMWare Disk

Let us clone the disk; that is create a copy of the disk.

Again, keep in mind that you need sufficient disk to make a copy of the existing one. So you need about 1.5 * allocated VM disk space.

Syntax

"C:\Program Files (x86)\VMware\VMware Workstation\vmware-vdiskmanager.exe" -r virtual-machine-disk-source -t 0 virtual-machine-disk-destination

 

Sample


"C:\Program Files (x86)\VMware\VMware Workstation\vmware-vdiskmanager.exe" -r Data-000003.vmdk -t 0 Data-000003-Clone-20131105.vmdk

 

 

Output

 

Creating disk 'Data-000003-Clone-20131105.vmdk'
Convert: 100% done.
Virtual disk conversion successful.

 

Expand Resultant VMWare Disk

Let us expand the disk image that resulted from our cloning exercise.

Syntax:

C:\Program Files (x86)\VMware\VMware Workstation\vmware-vdiskmanager.exe" -x [new-size] [cloned-disk-file-name]

 

Sample:

C:\Program Files (x86)\VMware\VMware Workstation\vmware-vdiskmanager.exe" -x 75GB Data-000003-Clone-20131105.vmdk

Through VMWare WorkStation, Add new VMWare Disk

Through VMWare WorkStation, add new VMWare disk.

Here are the steps:

Add New VMWare Disk
https://www.vmware.com/support/ws5/doc/ws_disk_add_virtual.html

  • Power off the specific Virtual Machine
  • Open the virtual machine settings editor (VM > Settings) and click Add. The Add Hardware Wizard guides you through the steps to create your virtual disk.
  • Click Hard Disk, then click Next.
  • Select Use an existing virtual disk, then click Next.
  • Enter the path and file-name for the existing disk file, or click Browse to navigate to the file.
  • Click OK.

AddHardwareWizard-AddExistingDisk

Through VMWare WorkStation, disconnect old disk

Through VMWare WorkStation, disconnect old VMWare disk.

Please keep in mind:

  • Use the virtual machine settings editor to disconnect a virtual disk from a virtual machine.
  • The Remove command does not delete files from the host file system. You can delete virtual disk files manually

Steps to disconnect old disk:

Removing a Virtual Disk from a Virtual Machine
https://www.vmware.com/support/ws5/doc/ws_disk_add_virtual.html

 

  • Select a virtual machine and choose VM > Settings.
  • Select the virtual disk you want to remove.
  • Click Remove.
  • The virtual disk is disconnected from virtual machine.

RemoveDisk

Power VMWare Guest On

Power VMWare Guest back on

Using VMWare Guest OS Native Tools, Expand Guest Disk

Use your Guest OS Native Tools to expand the Guest Disk unto the expanded space.

Thank Internet!

Thank Internet.