Quantcast
Channel: VMware Communities : Discussion List - All Communities
Viewing all 178257 articles
Browse latest View live

Get connection closed error when trying to extract data from vCenter Server using C# application

$
0
0

I get the below error while extracting data from vCenter 5.5 Server using C# vSphere 5.5 SDK (The underlying connection was closed: A connection that was expected to be kept alive was closed by the server.)

 

 

ERROR The underlying connection was closed: A connection that was expected to be kept alive was closed by the server.

System.Net.WebException: The underlying connection was closed: A connection that was expected to be kept alive was closed by the server. ---> System.IO.IOException: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host. ---> System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host

   at System.Net.Sockets.Socket.Receive(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags)

   at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size)

   --- End of inner exception stack trace ---

   at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size)

   at System.Net.FixedSizeReader.ReadPacket(Byte[] buffer, Int32 offset, Int32 count)

   at System.Net.Security._SslStream.StartFrameHeader(Byte[] buffer, Int32 offset, Int32 count, AsyncProtocolRequest asyncRequest)

   at System.Net.Security._SslStream.StartReading(Byte[] buffer, Int32 offset, Int32 count, AsyncProtocolRequest asyncRequest)

   at System.Net.Security._SslStream.ProcessRead(Byte[] buffer, Int32 offset, Int32 count, AsyncProtocolRequest asyncRequest)

   at System.Net.TlsStream.Read(Byte[] buffer, Int32 offset, Int32 size)

   at System.Net.PooledStream.Read(Byte[] buffer, Int32 offset, Int32 size)

   at System.Net.Connection.SyncRead(HttpWebRequest request, Boolean userRetrievedStream, Boolean probeRead)

   --- End of inner exception stack trace ---

   at System.Web.Services.Protocols.WebClientProtocol.GetWebResponse(WebRequest request)

   at Microsoft.Web.Services3.WebServicesClientProtocol.GetResponse(WebRequest request, IAsyncResult result)

   at Microsoft.Web.Services3.WebServicesClientProtocol.GetWebResponse(WebRequest request)

   at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)

   at Vim25Api.VimService.RetrieveProperties(ManagedObjectReference _this, PropertyFilterSpec[] specSet)

   at vCenterTestConnect.vCenterESXHostInfo.getvCenterHostAdvancedInfo()

   at vCenterTestConnect.vCenterESXHostInfo.startExtraction()

 

Yje application works fine in test environment in our lab (with 2 hosts and 22 VM) but gives the above error when used in prod environment. Any help would be appreciated.


Getting complete list of servers and attributes directly from web services

$
0
0

We want to utilise web services provided by vSphere directly bypassing Java or C# libraries as part of our "environment discovery" routine which would be periodically performed by a Middleware platform. We want to configure it to poll vSphere web services and extract necessary data and store it in a database repository accessed by other applications. We definitely don't want to build any custom code to invoke web services via libraries provided by vmware.

 

I am able to successfully get the list of methods exposed (https://ourvmwareserver/sdk/vimService.wsdl) and use Login method to get the key and then use the key to invoke some other methods in SoapUI.

 

Now after spending few hours going through the SDK manuals I am at complete loss as to how exactly I can get the list of servers and their attributes using this approach. Can someone help with that please?

unable to login SSH via root

$
0
0

Hallo zusammen,

habe heute mein SSH config in ESXI geändert :

PermitRootLogin no

habe ich mich toerethisch gesperrt. weißt jn, wie ich wieder diese Einstellung zurücksetzen kann ?

What is the difference between the View and ManagedObjectView?

$
0
0

Im reading the docs for the API reference.

It looks pretty straight forward, but Im a little confused about the purpose of ManagedObjectView.

According to the docs:

ViewManager can be used to create "Views" (ContainerViewListViewInventoryView). So ViewManager is like a View factory right?

What confuses me though is that if View is the base class then why do the ContainerView, ListView, InventoryView actually extend from ManagedObjectView which in turn extends from View?

What is ManagedObjectView's purpose? Why don't they extend directly from View? With my limited understanding of this I see ManagedObjectView as a weird middleman.

How to get the configuration of a running VirtualMachine

$
0
0

Hello,

I'm a beginner with the SDK and I'm trying to get the configuration of a running VirtualMachine.

I'm able to connect to the virtual center and to the following:

 

Dim myVM As New VMware.Vim.VirtualMachine(vmClient, New VMware.Vim.ManagedObjectReference("VirtualMachine-vm-1404"))

 

I'm sure that the object myVM is correctly set coz I'm able to command the VirtualMachine (for example I can issue a MyVM.ShutdownGuest that works perfectly).

I wish to retrieve the configuration of the virtual machine, particularly I wish to get virtual disks configuration, but here is my problem, if I look into the managed objects that are supposed to store the infos I need they are empty!

 

VirtualMachineConfigInfo.png

since I'm a beginner with the SDK I think I'm missing something...

 

Please help

Resuming a HOL doesn't bring back my cluster's configuration

$
0
0

I'm running "HOL-SDC-1608 What's New with Virtual SAN 6.2" and every time I stop the lab and resume, all of my VSAN storage configuration is reset back to the point it was unconfigured. This is really frustrating as I was expecting not to have to reconfigure all of the steps I had previously made before stopping the lab.

 

Does the HOL support resuming the lab and resuming the lab configuration when I stopped before?

Change password of local vra user

$
0
0

Is it somehow possible to change the password of a local vra user (vsphere.local?)

How do I use a local ticket acquired via VMware.Vim?

$
0
0

Object vSphereClient is already established and logged in.

 

using VMware.Vim;

 

private SessionManager GetSessionManager() {

  SessionManager sessionManager = null;

  try {

  ManagedObjectReference _svcRef = new ManagedObjectReference();

  _svcRef.Type = "ServiceInstance";

  _svcRef.Value = "ServiceInstance";

 

 

  ServiceInstance _service = new ServiceInstance(vSphereClient, _svcRef);

 

 

  ServiceContent _sic = _service.RetrieveServiceContent();

  sessionManager = (SessionManager)vSphereClient.GetView(_sic.SessionManager, null);

  }

  catch (Exception e) {

  throw (e);

  }

  return sessionManager;

}

public SessionManagerLocalTicket GetLocalTicket(string userName) {

  return GetSessionManager().AcquireLocalTicket(userName);

}

 

Here you see at method GetLocalTicket I can acquire a local ticket.

It creates a file with a one time username and password on the host, for instance:

/var/run/vmware-hostd-ticket/52b65cfa-d0d1-0dc6-ffc1-c8428d10e973

 

This file is available for a few seconds only (4 or 5 seconds, or so), after that it dissapears. I can use the contents of it to authenticate against for instance a vSphere host, one time.

 

The firstproblem is:

1. How do I read it from the host or use it for authentication directly?

 

I tried displaying it with "more /var/run/vmware-hostd-ticket/52b65cfa-d0d1-0dc6-ffc1-c8428d10e973"and I only get data similar to this: "52 1f 94 41 69 db 7c 67-ee d9 3a e4 dc 2d 6e b9~"

 

That doesn't make any sense to me, so the second problem is:

2. When acquired from the host, how do I use it? Is this the password string maybe?


And my third question:

3. How do I set the expiration time for the ticket to be more then a few seconds? Or in other words, the server-determined expiration time?

According to https://www.vmware.com/support/developer/vc-sdk/visdk2xpubs/ReferenceGuide/vim.SessionManager.html the expiration time is set some where on the host.

" The local ticket that is returned becomes invalid either after it is used or after a server-determined ticket expiration time passes."



How do we know from which template does the Virtual Machine is deployed?

$
0
0

Hi Folks,

I am trying to find out  a property in the Java SDK saying that the specific VM is deployed from which template, something like bios uuid or any property can define the relation ship between VM and template

Does anyone have an idea please help me.

 

Thanks you very much in advance.

vSphere web Client password prompts

$
0
0

I have two locations that I'm using replication and site recovery on. I use the same domain credentials to login to either side.

 

If I open the webclient for side 1 and then view the replications and look at side 2 I'm prompted for a password. I'm wondering if this is normal? Does it not use the credentials that i'm logged into the web client with?

How to start a VM?

$
0
0

Good morning everybody!

 

Really quick simple question, strange that I can't find any info elsewhere, but here goes: How do I start a virtual machine using the web API? I know my VMWare hypervisor web address, what web address do I call to make it startup an existing virtual machine? So far I've tried http://machinehost/sdk and http://machinehost:8333/sdk but my browser just ends up prompting me that the security certificate for that address has expired and then if I continue it takes me to a blank page.

 

Is the web API what I think it is? I believe that it is a REST API for developers to interface with VMWare hypervisors. If not could someone please direct me to the proper knowledge resources for VMWare RESTful APIs.

 

Thanks, cheers.

VMware Orchestrator 7.0.1: SQL 1.1 Plug-in unable to connect to MS SQL database requiring Forced Encryption

$
0
0

Hello,

 

I'm having issues connecting to a remote Microsoft SQL 2014 server after we've changed our SQL servers to required Force Encryption. I was able to connect to it fine prior to this change.

 

I've tried updating  the connection URL and added ssl=request as below, and have even tried values such as require, authenticate, etc.  according to http://jtds.sourceforge.net/faq.html  :

 

Original Connection URL: jdbc:jtds:sqlserver://sqlserver.ad.mydomain.com:1433/Database;useNTLMv2=true;domain=mydomain


New Connection URL: jdbc:jtds:sqlserver://sqlserver.ad.mydomain.com:1433/Database;useNTLMv2=true;domain=mydomain;ssl=request

 

I've also imported the SAN certificate we use on the SQL servers into the Orchestrator configuration and restarted services and rebooted the entire system. Is there a potential problem with using a SAN certificate ( the certificate has our DC as the name, but we add multiple SAN names to it to validate other hosts internally, including our SQL servers and the SQL virtual name)

 

Originally I had tried using the Update database workflow but it kept giving me  the java.sql.SQLException: I/O Error: Connection reset error. I restarted the orchestrator service and my existing database under Inventory -> SQL Plug-in disappeared. Now when I try to run the SQL workflow to Add a database, I keep getting the same java.sql.SQLException: I/O Error: Connection reset error message.

 

Any thoughts from the community? This should be pretty straightforward but it's giving me all kinds of heck.

 

Thanks,

 

Kevin

Rest call to update 'Cores per socket' property of a VM

$
0
0

Team,

I am trying to automate the process of deploying VMs in Vcloud. One of the steps is to update VM properites(Memory,CPU etc.)

I am using a rest call to update Memory and CPU information. However, i am not able to update 'Cores per Socket' property using a rest call.

A very similar rest call is used in both cases but one property is updated and the other is not. what could be the reason? Is there any other way i could update the cores per socket property?

I would appreciate if anyone would help me in identifying the problem here.

 

 

Thanks,

Vinay.

Login error in Lab: HOL-SDC-1621 - vRealize Automation

$
0
0

Hello,

 

I am trying to login as instructed in lab manual using user: DevUser with p/w VMware1! but I am getting incorrect username/password error. Can you please confirm username/pw.

 

Thank you for your help.

C'est une blague ?

$
0
0

Bonjour,

 

Très heureux de trouver une aide officielle VMw en Français...

 

Un groupe de 10 / 12 questions .... Puis, ... Plus rien ??

 

Là c'est pour la présentation, si je le peux j'aurais quelques questions à poser...

 

Merci, jean.


Zombie children in Multi machine container

$
0
0

We have a workflow which is used to scale out an existing multi-machine build. We are seeing a failure in the step where it's iterating over the children and checking their status, as long as all the children are good, it will continue.

 

The MM container has 4 vms. It also appears to have another 7 children in an unknown state. I think it's from failed scale out runs. Is there any way to find these zombies and kill them? It appears to kill the process and add another zombie.

 

VCO 5.5.5

VCAC 6.2.0

 

Our logs look like this:

 

[2016-09-07 13:55:29.758] [I] ParentMachineId = 58217ef4-e263-453e-a70a-9334e4a3feba

[2016-09-07 13:55:32.104] [I] 2bb365d8-aae5-4676-99cd-3ecd18aabb40 On

[2016-09-07 13:55:33.198] [I] 62e858fa-e4d7-48f4-80f1-8e59bc801feb On

[2016-09-07 13:55:34.332] [I] e44f3a6b-9102-47e6-a0b8-5cc0eae79656 MachineProvisioned

[2016-09-07 13:55:35.459] [I] 905d3318-5b6f-4592-9f60-9c94a9dc1c67 On

[2016-09-07 13:55:36.562] [I] 29f09391-15b9-4c06-ae43-d4dfcea14fae On

[2016-09-07 13:55:36.562] [I] Child 3506842b-78dd-4040-85fb-80dc2a7a4349 is in unknown state

[2016-09-07 13:55:36.562] [I] Child 632fd382-fdf6-4d41-9543-aae5885da9fb is in unknown state

[2016-09-07 13:55:36.563] [I] Child 6c2dcadc-4c4f-4cf2-ba7e-20d36263234b is in unknown state

[2016-09-07 13:55:36.563] [I] Child 304c1946-8dd9-47c4-a34b-61d0a840a5ba is in unknown state

[2016-09-07 13:55:36.563] [I] Child 184fd6c3-9f31-49cf-9ac2-c3b128591721 is in unknown state

[2016-09-07 13:55:36.563] [I] Child de4f3612-5b41-4ecf-92e6-82d30deab1fc is in unknown state

[2016-09-07 13:55:36.563] [I] Child e44f3a6b-9102-47e6-a0b8-5cc0eae79656 is in success state

[2016-09-07 13:55:36.563] [I] One or more machines failed provisioning for the multimachine container. (Dynamic Script Module name : multiMachine_WaitForState#100)

 

Any idea how we can remove these unknown children?

 

Thanks.

 

-Dave

VMware Announces Fusion and Fusion Pro 8.5, Workstation Player and Pro 12.5

$
0
0

See: VMware Announces Fusion and Fusion Pro 8.5 With Sierra and Windows 10 Anniversary Support - Mac Rumors

 

I have seen no official announcement on VMware's website yet. According to the article, VMware Fusion 8.5 and Fusion Pro 8.5 are free upgrades for Fusion 8 users.

 

I hope it fixes my two pet bugs: "Unity windows constantly grab focus" and "Virtual Machine Library mini windows don't display current virtual machine screen".

 

Window focus issues in Unity mode

Windows apps steal focus after choosing app from Mission Control using Unity

 

Mini Windows in Virtual Machine Library Do Not Update?

Installation ESXi 6 plus VCenter

$
0
0

Bonjour,

 

Donc, je suis heureux, car non, ce n'est pas une blague, mon post précédent est bien apparut dans ce fil ici, dans ce "groupe Français" alléluia...

 

D'où ma question.

 

Je travaille depuis quelques jours sur VMware installé avec une licence free sur un serveur...

Enthousiasmé, je décide d'installer un deuxième hôte ESXi sur un autre serveur...

Me voici donc confronté au couple nop nop nop Pas d'échanges de clusters entre deux hôtes ESXi avec une licence gratos.

 

 

Toujours aussi enthousiasmé j'ai acquis une licence minimum chez VMware, (essential kit).

 

Qui saurait me dire si je puis tout simplement insérer ma nouvelle licence acheté sur les hôtes ESXi déjà installés ?

 

Ou bien, l'accès payant nous oblige t-il a installer une appli spécifique, et donc tout ré-installer ?

 

Merci de cette info capitale anti-perte de temps ...

 

jean

RDSH Application Pool Data missing from VROPS

$
0
0

Hello Team,

 

We have just setup VROPS 6.3 with Horizon view 6.2 . We can see PCOIP session data like logon time, profile time. Anything with regards to RDSH application pool is missing.

 

Here is screen shot , any suggestion / recommendation would be helpful . I could not find any one reporting such issues on any forum.

 

RDSH Application Pool.jpg

 

Regards

Mohammed Emaad Damudi

VMware server web access service can't start, what should i do?

$
0
0

Hi everyone,

 

I'm using windows server 2003R2. I have VMware server 2.0.1 install on it and it has been working for a while but recently  i restarted the server and after that i can't access to https:myserver:8333/ui/. It shows me a 503 service unavalaible error. When i try to start the VMware server web access service in windows administration tools, it's like the service start whitout error message but it doesn't really. I have been looking for a solution for days but nothing work. Can you help me please?

 

Already thank you for your reply

Viewing all 178257 articles
Browse latest View live