Quantcast
Channel: VMware Communities : All Content - All Communities
Viewing all 183671 articles
Browse latest View live

Invoke-VMScript authenticate issues

$
0
0

Hi,

 

I got an issue right now with powerCLI, I am running a PowerCLI script for one of my customers and get sometime an error of credentials. I want to understand the root cause of the issue. The script is:

 

Invoke-VMScript "ping $Server" -vm $EDRC -HostUser $HostUser -HostPassword $HostUserAdminPass -GuestUser $DomainUser -GuestPassword $DomainUserAdminPass -ScriptType "bat"

 

 

Sometimes work ok. Sometimes on the same target server I get:

 

 

Invoke-VMScript : 8/5/2015 12:13:32 AM Invoke-VMScript Failed to
Wed 8/5/2015 12:13:36 AM - authenticate with the guest operating system using the supplied credentials. 
Wed 8/5/2015 12:13:36 AM - At line:40 char:1
Wed 8/5/2015 12:13:36 AM - + Invoke-VMScript "ping localhost" -vm $vm -HostUser $HostUser -HostPassword
Wed 8/5/2015 12:13:36 AM - $Host ...
Wed 8/5/2015 12:13:36 AM - + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Wed 8/5/2015 12:13:36 AM - ~~~
Wed 8/5/2015 12:13:36 AM - + CategoryInfo : NotSpecified: (:) [Invoke-VMScript], InvalidGues
Wed 8/5/2015 12:13:36 AM - tLogin
Wed 8/5/2015 12:13:36 AM - + FullyQualifiedErrorId : Client20_VmGuestServiceImpl_RunScriptInGuest_ViE
Wed 8/5/2015 12:13:36 AM - rror,VMware.VimAutomation.ViCore.Cmdlets.Commands.InvokeVmScript
Wed 8/5/2015 12:13:36 AM - Invoke-VMScript : 8/5/2015 12:13:34 AM Invoke-VMScript Failed to
Wed 8/5/2015 12:13:36 AM - authenticate with the guest operating system using the supplied credentials. 
Wed 8/5/2015 12:13:36 AM - At line:41 char:1

 

 

Both source and target are in the same domain using a domain admin user.


Can you help solve this thing?

 

 

Thanks


Is it possible to use PowerCLI to update only the VMCI driver?

$
0
0

Hi all,

 

I'm rolling out an Agentless antivirus solution to our environment soon & so I need to install the 'VMCI Driver -> NSX File Introspection Driver' as part of the process.

 

I'm trying to work out how to do this with Powershell/PowerCLI but I see no option to do so without installing everything.  Preferably, I'd install just the driver mentioned above (without the 'Shared Folders' option) & leave the currently install components alone.

 

I believe that the below code would achieve what I want but I'm not sure it can be passed to the PowerCLI Update-Tools cmdlet:

 

/S /v "/qn REBOOT=R ADDLOCAL=ALL REMOVE=Hgfs"

Writable volumes not detaching and impossible to login to the VDI on 2nd attach

$
0
0

I have an environment with VMware View 6.1.1 linked clones and appvolumes 2.9.

Applications are delivered through Appvolumes appstacks

Users can install applications through Appvolumes writable volumes ((UIA_ONLY)

User profiles are being handled by Persona Management.

 

When I assign a writable volume to a user and the user logs in to Horizon View, the user gets assigned a VDI from the pool, the writable volume and other appstacks are being attached to the assigned VD, the logon occurs and the user can install applications. So no problem there.

 

When the user logs out of the VDI, the writable volume and appstack volumes are not being detached automatically. I then detach the appstacks and writable volume manually (via the vSphere client) and delete the desktop.

 

When the same user logs again in to Horizon View, he gets assigned a VDI from the linked clone pool, writable volume (UIA_ONLY) and other appstacks are being attached to the assigned VDI, but the VDI itself displays the message "Please wait for the App Volumes Service" and the logon process does not finish.

 

This situation only occurs when users are assigned a writable volume and does not occur when users are assigned only appstacks.

Enabling or disabling the option "Prevent user login if writable is in use on another computer" does not have any effect on resolving the problem.

Check account settings on ESXi

$
0
0

I would like to check my local account settings on each ESXi host.  I would like to confirm if:

 

-There is a local ESXi admin account that exists OTHER than root

 

How would I do this with PowerCLI?

 

Thanks!

What are the supported SQL Server versions with Appvolumes 2.9?

VMware Workstation Technology Preview 2015 is available!

$
0
0

The VMware Workstation team is very excited to announce the VMware Workstation Technology Preview 2015 release! We're providing public access to this Tech Preview to gather feedback from users on a wide range of hardware and software configurations. The VMware Workstation Tech Preview 2015 includes changes to the core virtualization engine and new capabilities we are exploring. We would appreciate feedback in the following areas:

 

  • New OS Support including Windows 10 Insider Preview
  • DirectX 10 and OpenGL 3.3 Support
  • Performance Improvement for VM Suspend, Resume, and Snapshot
  • IPv6 NAT Support
  • High DPI Display Support
  • Tear Away Tabs

 

You can find more information about this Tech Preview release including download link and license key from VMware Workstation Technology Preview 2015 Forum. Looking forward to hearing your feedback!

 

Thank you!

 

The VMware Workstation Team!

NMP Module Version

$
0
0

How can I find out the version of NMP module that ESXi supports by default.

 

Thanks

Login attempts result in "Account not authorized."

$
0
0

Stumped by this one:

 

  • I can log in to My VMware, no problem. 
  • I've generated a My VMware authentication code.

 

Attempts to log in to the Software Manager Download Service result in "Account not authorized."

I receive the same message whether I attempt to login with My VMware username and password, account number and password, or vmware and authentication code.

 

 

Documentation says to contact VMware support for assistance in resolving the issue, which I did, and was promptly told that they don't support the product.  Instead, I should seek community support.

 

Anyone?


Cannot create a datastore

$
0
0

Hello everyone~

To start, I am new to VMware. Honestly, I am new to working IT in a corporate environment. I am attempting to get this up and running on a new server. I am a big DIY person, always trying things by following guides.

 

I have successfully (I think) installed ESXi 5.5 onto a flash drive (16GB SanDisk) and set the server up to boot from that device. I have also set a static IP and password.

I then moved on and installed vSphere and was able to connect to my ESXi server. From there I reach the Configuration tab and it says: "The ESXi host does not have persistent storage. [removed] To ad storage now, click here to create a datastore..."

NoPersistentStorage.GIF

So I click, and it brings me to the Add Storage screen. I leave Disk/LUN selected (not sure what it is, but I don't want a Network File System). Clicking "Next" brings me to a list, well its supposed to be a list, actually it is empty.

EmptyList.GIF

 

I am sure people are going to ask for specs...

Dell PowerEdge

RAID 10

PERC H330 Integrated RAID Controller

4x 600GB SAS HDD

It came with Windows Server 2012 which I did a baremetal backup and the VMware Converter to another location . I want to get rid of the Windows install and have the entire server as the storage for Virtual Machines. I want to then add the virtualized Windows 2012 onto ESXi along with many other virtual servers.

 

Do I need to format the drives in any particular way? Did I miss a step somewhere? I did not format the hard drives to get rid of Windows 2012, I figured I would be given that option from VMware when the time came.

USB 3 driver for Win 7 (and possibly older) ?

$
0
0

An chance to see USB 3 (and 3.1 when made available by Apple - it is comming ) support for pre Win8 OS ?

Checking CPU in ESXtop

$
0
0

how can I use ESXtop to check if CPU instructions are being scheduled on local NUMA nodes or on non-local NUMA nodes?

Performance issues in Fusion 7

$
0
0

Host: Yosemite(10.10.4) on Late 2013 27" iMac, 3.2Ghz i5, 24GB, VM's on external 3TB WD MyBook(USB3)

Guests: Windows 7, Yosemite, Mavericks, Mountain Lion, Lion - all are set to 8GB with drive sizes ranging from 40GB on up

 

Some time back I started experiencing performance issues where there would be long pauses when trying to do anything inside the vm's. I've been making do with this and being patient because stopping to troubleshoot would have put me behind even more. Unfortunately things are mounting so now I'm forced to dig into this. It just took me more than a day to install the four flavors of OS X I mentioned above. I was doing two at a time. Once they were up and going I installed the tools. Back when I use to use the Windows version of VMware I would immediately notice a performance increase after installing the tools. On the Mac though I barely see any improvement in Windows and for Mac guests I basically see zero improvement. The Windows guest is what I use more than anything and it's where I first started seeing performance issues months ago. I wish I had documented if there were any changes when this started but I didn't...work has been pretty chaotic in the last year.

 

At any rate I had read some time back that there were performance issues with Yosemite that was an Apple issue in the OS for 2011 iMacs. My system is a few years newer though and the system I witnessed with this problem demonstrated performance issues that were much worse. I realize what I've posted is still fairly vague but I'm curious if this rings a bell for anyone and if anyone from vmware does any support on here. I've only visited here a couple times so I'm not familiar with how vmware handles their support.

 

One more thing...it wasn't always this bad. When I upgraded to 7, Fusion still ran fine. It was a few months later that I started having issues. I've considered grabbing another iMac here and test my vm's on it but they're currently tied up and like I said time is a bit of an issue with the demands on me right now.

 

So, any ideas or recommendations? Thanks in advance.

Can't resize pre-allocated disk because it requires cleanup which is impossible

$
0
0

On vmware fusion 7.1.2  (Windows 7 Guest), I want to increase the size of a pre-allocated virtual disk. The general settings pane says that the disk requires cleanup. Therefore the pane that would allow me to increase the size of the disk refuses to do so because the disk requires cleanup. The pane that would do the cleanup refuses to do so because the disk is not of a type that can be cleaned up.

Is there some way to convince vmware to let me make the virtual disk larger?

 

Note that the virtual disk was created as a pre-allocated disk but it was created by a much earlier version of vmware at about the time Windows 7 was first released. My vmware has been upgraded regularly since then as new versions/revisions were released.

VimException Timeout, Session no longer exist

$
0
0

Hi Everyone,

      I am writing VIMAPI via vb.net and after the application launches and calls to connect to my VCenter server via Client.Connect and SSPIHelper. Approximately 60 minutes of runtime and a call to a VIMAPI function a VIMException occurs for Unauthorized use. This is due to the current session time for the VIMAPI. Is there a function I can call to check to see if the current session is alive and well and call to reauthorize if needed?

[code]

   Try

                sc = Client.Connect("https://virtualcenter/sdk")

            Catch ex As Exception

                MsgBox(ex.Message)

                Return False

            End Try

 

            SessMgr = Client.GetView(Client.ServiceContent.SessionManager, Nothing)

 

            If Not LoginToVirtualCenter(Username, Password) Then

                Return False

            End If

 

Private Function LoginToVirtualCenter(Optional ByVal Username As String = Nothing, Optional ByVal Password As String = Nothing) As Boolean

        If Username Is Nothing And Password Is Nothing Then

            Dim SSPIClient As SspiClients = New SspiClients("", SspiPackageType.NTLM)

            Dim SSPI As New VMware.Vim.SSPIAuthentication

 

            Try

                Dim SH As New SspiHelper("host/MyServer.MyDomain.Com@MyDomain.Com")

                Dim MyToken As Byte()

                Dim MyServerToken As Byte()

                Dim ContinueProcessing As Boolean = True

                SH.InitializeClient(MyToken, MyServerToken, ContinueProcessing)

                UserSess = SessMgr.LoginBySSPI(Convert.ToBase64String(MyToken), "en")

            Catch ex As VimException

                Debug.WriteLine("Exception")

                Dim MySSPIChallange As SSPIChallenge = ex.MethodFault

                Try

                    SSPIClient.Initialize(Convert.FromBase64String(MySSPIChallange.Base64Token))

                    Try

                        UserSess = SessMgr.LoginBySSPI(Convert.ToBase64String(SSPIClient.Token), "en")

                        Return True

                    Catch exab As VimException

                        Debug.WriteLine("NTLM AUTH FAILED TRYING WITH CREDS") ' Not sure why this happens on other machines?

                        Return LoadVirtualCenter(GVSphereUsername, GVSpherePassword)

                    Catch exabc As Exception

                        Console.WriteLine(exabc.Message)

                        Debug.WriteLine("exabc")

                    End Try

                    Return False

                Catch e As Exception

                    MsgBox(e.Message)

                    Return False

                End Try

            End Try

        Else

            UserSess = Client.Login("MyDomain\" & Username, Password)

        End If

 

        Return True

    End Function

[/code]

   Try
                sc = Client.Connect("https://virtualcenter/sdk")
            Catch ex As Exception
                MsgBox(ex.Message)
                Return False
            End Try
 
            SessMgr = Client.GetView(Client.ServiceContent.SessionManager, Nothing)
 
            If Not LoginToVirtualCenter(Username, Password) Then
                Return False
            End If
 
Private Function LoginToVirtualCenter(Optional ByVal Username As String = Nothing, Optional ByVal Password As String = Nothing) As Boolean
        If Username Is Nothing And Password Is Nothing Then
            Dim SSPIClient As SspiClients = New SspiClients("", SspiPackageType.NTLM)
            Dim SSPI As New VMware.Vim.SSPIAuthentication
 
            Try
                Dim SH As New SspiHelper("host/MyServer.MyDomain.Com@MyDomain.Com")
                Dim MyToken As Byte()
                Dim MyServerToken As Byte()
                Dim ContinueProcessing As Boolean = True
                SH.InitializeClient(MyToken, MyServerToken, ContinueProcessing)
                UserSess = SessMgr.LoginBySSPI(Convert.ToBase64String(MyToken), "en")
            Catch ex As VimException
                Debug.WriteLine("Exception")
                Dim MySSPIChallange As SSPIChallenge = ex.MethodFault
                Try
                    SSPIClient.Initialize(Convert.FromBase64String(MySSPIChallange.Base64Token))
                    Try
                        UserSess = SessMgr.LoginBySSPI(Convert.ToBase64String(SSPIClient.Token), "en")
                        Return True
                    Catch exab As VimException
                        Debug.WriteLine("NTLM AUTH FAILED TRYING WITH CREDS") ' Not sure why this happens on other machines?
                        Return LoadVirtualCenter(GVSphereUsername, GVSpherePassword)
                    Catch exabc As Exception
                        Console.WriteLine(exabc.Message)
                        Debug.WriteLine("exabc")
                    End Try
                    Return False
                Catch e As Exception
                    MsgBox(e.Message)
                    Return False
                End Try
            End Try
        Else
            UserSess = Client.Login("MyDomain\" & Username, Password)
        End If
 
        Return True
    End Function

vCenter 5.5 to 6.0 upgrade fails at import stage - Failed to stop service vpxd

$
0
0

I fired off a vCenter 5.5 to 6.0 upgrade.  It completed the export step, uninstall of vCenter 5.5 step and install of vCenter 6.0 step.


After vCenter 6.0 install step completes, it starts the importing 5.x data step and this immediately fails with a popup of "Failed to stop service vpxd".  I looked in services.msc and saw that the vCenter Server service was running when this popup occurred.  It wasn't in a stopping state.  It seems like the installer never even got to trying to stop the service.

 

When it tried to roll back, it ended up leaving me with a system with no vCenter installed and some leftover Service entries.   The only option I had was to try and run the vCenter 6.0 install again.

 

I found this article: VMware KB: Recovering from a failed upgrade of vCenter Server 5.1 or 5.5 to 6.0 which says to use this command:  VMware-vCenter-Server.exe UPGRADE_FROM_EXPORT_DATA="1".

 

So I rebooted.  I restored my backup of VIM_VCDB from before the upgrade attempt. Then I renamed C:\ProgramData\VMware\VMware VirtualCenter to -old, as well as renamed C:\Program Files\VMware\vCenter Server to -old and ran VMware-vCenter-Server.exe UPGRADE_FROM_EXPORT_DATA="1".and specified C:\ProgramData\VMware\vCenterServer\export as the location of the 5.5 export data (which is where it went when the first attempt occurred.

 

This second attempt installed vCenter 6.0 fine, and then immediately failed again on the import step.   When this rolled back, it cleanly uninstalled everything from vCenter.  All services, all registry entries, etc.  So this left me with a pretty clean system.

 

Since I had some random leftover bits from the first failure attempt, I figured I'd try one more time.  I restored the DB, restored a copy of the \export folder I had made after the first attempt, renamed the vCenter directories again and kicked off an install.  And again, it failed at the same import step.

 

I checked the ODBC, it's correct, there's no trailing spaces.  I'm logged in with the same domain account I used to install vCenter 5.5.  All the obvious things have been checked and look good.

 

So, I'm stumped.  There are a ton of log files, and I have no clue which one I need to look through for more detail.

 

Help please!


Hypervisor installtion issues.

$
0
0

Hello trying to instal hypervisor 6.0 on a Dell R710

As per KB i updated BIOS to latest 6.4.0 and all firmware.

 

I keep getting this error:

 

This programs has encountered and error"

Error:

partedutil failed with message: Error: invalid partition table on /dev/disks/naa..... -- wrong signature 1800.

Unable to read partition for device

 

Thank you.

/vmfs/devices/disk/naa...IMG_20150622_184617.jpg

Novnc Console URL

$
0
0

After installing, I did realized that the consoles where pointing to the IP (and not the generated URL) to the service.

 

Changed the nova.conf novncproxy_base_url directive to point to the right URL, restarted the nova-api, nova-consoleauth, cleaned up the memcached with the 'flush_all' command, but the nova get-vnc-console still returns me the old VNC Console URL.

 

Any idea why this happens and what's the fast path to solve it?

 

Thanks!

ESXi 6 Major problems with adding datastore

$
0
0

I have tried to play with ESXi 6.0 on multiple occasions but it seems that even the most basic steps to add a local disk as datastore is proving to be extremely problematic. To preface the problem, I have 2 Micron M550 1TB SSDs local to the host, and I had them previously partitioned and functioning without problems in ESXi 5.5. I have since tried to upgrade to 6.0, and to start fresh, I attempted to re-partition the disks. This step used to take about 30s-1m in 5.5 but in 6.0 it just completely hangs. I am seeing these errors in the vmkernel.log and looking them up online has yet to have yielded with any working solutions.

 

2015-08-06T01:58:10.281Z cpu6:35435 opID=4704a8fd)<3>ata1.00: bad CDB len=16, scsi_op=0x9e, max=12

2015-08-06T01:58:10.281Z cpu10:32805)NMP: nmp_ThrottleLogForDevice:3178: Cmd 0x9e (0x439dc06b0e00, 0) to dev "mpx.vmhba0:C0:T0:L0" on path "vmhba0:C0:T0:L0" Failed: H:0x0 D:0x2 P:0x0 Valid sense data: 0x5 0x20 0x0. Act:NONE

2015-08-06T01:58:10.286Z cpu6:35435 opID=4704a8fd)<3>ata1.00: bad CDB len=16, scsi_op=0x9e, max=12

2015-08-06T01:58:10.286Z cpu10:32805)NMP: nmp_ThrottleLogForDevice:3178: Cmd 0x9e (0x439dc06b0e00, 0) to dev "mpx.vmhba0:C0:T0:L0" on path "vmhba0:C0:T0:L0" Failed: H:0x0 D:0x2 P:0x0 Valid sense data: 0x5 0x20 0x0. Act:NONE

2015-08-06T01:58:10.290Z cpu6:35435 opID=4704a8fd)FSS: 5327: No FS driver claimed device 'mpx.vmhba0:C0:T0:L0': No filesystem on the device

2015-08-06T01:58:10.311Z cpu6:35435 opID=4704a8fd)FSS: 5327: No FS driver claimed device 't10.ATA_____Micron_M550_MTFDDAK1T0MAY_______________________14180DE80028:1': No filesystem on the device

2015-08-06T01:58:10.311Z cpu6:35435 opID=4704a8fd)FSS: 5327: No FS driver claimed device 'control': No filesystem on the device

2015-08-06T01:58:10.338Z cpu6:35435 opID=4704a8fd)VC: 3551: Device rescan time 26 msec (total number of devices 8)

2015-08-06T01:58:10.338Z cpu6:35435 opID=4704a8fd)VC: 3554: Filesystem probe time 90 msec (devices probed 7 of 8)

2015-08-06T01:58:10.338Z cpu6:35435 opID=4704a8fd)VC: 3556: Refresh open volume time 0 msec

2015-08-06T01:58:43.703Z cpu10:32805)NMP: nmp_ThrottleLogForDevice:3178: Cmd 0x1a (0x439dc0674f00, 0) to dev "mpx.vmhba0:C0:T0:L0" on path "vmhba0:C0:T0:L0" Failed: H:0x0 D:0x2 P:0x0 Valid sense data: 0x5 0x20 0x0. Act:NONE

2015-08-06T02:03:30.870Z cpu1:32796)NMP: nmp_ThrottleLogForDevice:3178: Cmd 0x1a (0x439dc06aa4c0, 0) to dev "mpx.vmhba0:C0:T0:L0" on path "vmhba0:C0:T0:L0" Failed: H:0x0 D:0x2 P:0x0 Valid sense data: 0x5 0x20 0x0. Act:NONE

 

My system is running on a SuperMicro X10DRL-I, E5 2620 V3, 32GB DDR4, Intel PRO/1000 VT, Intel X520-DA, IBM 5016. The disks are connected to the onboard Intel SATA ports.

PowerCLI 6 vFlash Read Cache cmdlets (where)

$
0
0

In 5.5 we added a fling to PowerCLI to enable VSAN and vFRC Cmdlets.

 

Get-HardDiskVFlashConfiguration

Get-VMHostVFlashConfiguration

Set-HardDiskVFlashConfiguration

Set-VMHostVFlashConfiguration

 

Now that we are on the vSphere 6 platform the Cmdlets are not built into PowerCLI 6 nor will the old VMware.VimAutomation.Extensions import...

 

Am I missing something?

 

Does anyone know how to use PowerCLI 6 to modify vFRC?

After upgrade of Esxi 5.5 to 6.0 servers lock up every other day

$
0
0

I recently upgraded two esx boxes that have been running 5.5 forever to version 6. Upgrades ran fine no issues. However since the upgrade the boxes go to disconnected from vsphere and are unreachable on the network. I can go to the servers and login on the console when this happens. Restarting agents doesn't seem to fix and the box locks up eventually. Only way to get back is a hard reboot.

Viewing all 183671 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>