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

Looking for Cleaner output for the below script (ideally Excel)

$
0
0

Hi Gurrus,

LucDcjscol

I am looking for the cleaner output of the below script which is ideally in Excel sheet with colorful columns and backgrounds. Could any one please help me out on this.

 

connect-viserver -Server .......

$report = @()

foreach($cluster in Get-Cluster){

    foreach($rp in Get-ResourcePool -Location $cluster){

        foreach($vm in (Get-VM -Location $rp)){

            $report += Get-HardDisk -VM $vm |

            Select @{N='Cluster';E={$cluster.Name}},

                @{N='ResourcePool';E={$rp.Name}},

                @{N='VM';E={$vm.Name}},

                @{N='HD';E={$_.Name}},

                @{N='Datastore';E={($_.Filename.Split(']')[0]).TrimStart('[')}},

                @{N='Filename';E={($_.Filename.Split(' ')[1]).Split('/')[0]}},

                @{N='VMDK Path';E={$_.Filename}},

                @{N='Format';E={$_.StorageFormat}},

                @{N='Type';E={$_.DiskType}},

                @{N='VM Tools Status';E={$vm.ExtensionData.Guest.ToolsStatus}},

                @{N='CapacityGB';E={$_.CapacityGB}},

                @{N="Configured OS";E={$vm.ExtensionData.Config.GuestFullName}},

                @{N="Running OS";E={$vm.ExtensionData.Guest.GuestFullName}}

                 }

    $report | Export-Csv C:\temp\report.csv -NoTypeInformation -UseCulture

   }

}


javax.xml.ws.soap.soapfaultexception in service controller

$
0
0

Hi all,

 in my HTML plugin , i am sending call to the back end java service from my javascript. but i am getting a "404(not foung)" error.

when i checked virgo logs i found the following error:

http-bio-9090-exec-XXX com.mycompany.myplugin.mvc.ServiceController            javax.xml.ws.soap.SOAPFaultException: the session is not authenticated.

 

a couple of places in logs i also found the following entry:

com.vmware.vise.util.session.SessionUtil                         Associated sessionEd 100092 with clientId 200058. It was previously associated with clientId 200057. Context path: /vsphere-client/myplugin

 

any help in this regard

Thanks 

Nishchay

Answer types

Error: Object Reference not set to an Instance of an object - Set-VM with Parameter -OSCustomizationSpec

$
0
0

I try to clone an existing machine with the following command in Powercli 5.5 Release 2 Patch 1:

 

New-VM -Name $vmname -VM $basevm -Datastore $datastore -ResourcePool $pool -Description $description | Set-VM -OSCustomizationSpec $custspec -Confirm:$false


In correspondence to the Manual this should be correct, but i always get the error after successfull clone:

 

Set-VM - Object Reference not set to an Instance of an object


The first part (New-VM) seems to work, so I tried on the clone the following command:


Set-VM -VM "autoclone-test" -OSCustomizationSpec "AUTO_CLONE_SERVER" - Confirm:$false


Got the same error, any Idea why it isn't working? (Tried in 32bit and 64bit Powercli)


best regards,


Daniel

unable to logon to vcsa 6.0

$
0
0

Hi Guys,

 

We have been running vCenter server appliance version 6 (version=6.0.0, build=2776510) in production for about 6 weeks now without issue. 2 days ago logons failed to the server. quick fix was a reboot of the appliance. going through the logs show too many entries with error or failed to filter.

 

 

but before the Crash we can see entries such as below: (name of user has been replaced)

 

2015-12-14T23:54:52.062Z error vpxd[7FED01109700] [Originator@6876 sub=[SSO] opID=24c46df0] [UserDirectorySso] AcquireToken exception: N9SsoClient22CommunicationExceptionE(Operation timed out)

2015-12-14T23:54:52.062Z error vpxd[7FED01109700] [Originator@6876 sub=User opID=24c46df0] Failed to authenticate user 2015-12-14T23:54:52.527Z error vpxd[7FECF3060700] [Originator@6876 sub=[SSO] opID=5ac13399] [UserDirectorySso] AcquireToken exception: N9SsoClient22CommunicationExceptionE(Operation timed out)

2015-12-14T23:54:52.527Z error vpxd[7FECF3060700] [Originator@6876 sub=User opID=5ac13399] Failed to authenticate user 2015-12-14T23:54:57.068Z info vpxd[7FED01109700] [Originator@6876 sub=vpxLro opID=24c46df0] [VpxLRO] -- FINISH task-internal-275213344

2015-12-14T23:54:57.068Z info vpxd[7FED01109700] [Originator@6876 sub=Default opID=24c46df0] [VpxLRO] -- ERROR task-internal-275213344 -- SessionManager -- vim.SessionManager.login: vim.fault.InvalidLogin:

 

looks like an SSO issue.

 

SR has been logged with VMware but it seems they are too busy with other customers to deal with our case.

 

Has anyone experienced anything similar? T

 

his happens in the middle of a busy backup period (netbackup using snapshot based backup of VMs)

 

Regards

Ciarán

Error: This product can only be installed on 64bit Windows 7 - but it is on a 64bit windows 7 system

$
0
0

Got the latest update/patch for my VMware workstation 11 and it just wouldn't install - claiming the above mentioned problem.

 

Has anyone else run into this issue?

Cannot connect to Server

$
0
0

Many of the applications I have been trying to use AppVols with are financial Client / Server based. l am trying to deliver the client to end users but in almost every instance the application cannot find the server end of the equation. If I install it directly on to the virtual desktop it can connect. My example program is Google Earth... when delivered in an AppStack it cannot find the google servers. Is anyone else seeing this issue? I am using AppVol 2.9 on non-persisten windows 7 64bit machine with VMware View 6.2

 

My current work around - which is working fine but adds another layer of effort is to ThinApp the applications but deliver them with AppVol.

No Historical DATA exist on VRealize 6.02 After reinstalling the vcenter

$
0
0

Hi All ,

Your support is highly appreciated ,,,,,

 

Case description :

- I have 2 vcenter servers 5.5 and 1 vcop 5.8.5 and Vrealize 6.02 .

- 2 vcenters adapters were added (registered ) to VCOP 5.8.5 and where working fine (collecting data)

- installed Vrealize 6.0 and imported the data from existing VCOP 5.8.5

-"deletenonexisting " was set to false which means that data will not be purged or removed from database in case if adapters were removed from VCOP

- I was planning to upgrade the vcenters from 5.5 to 6.0 update 1 but instead of uninstall linked mode before upgrading vcenters  ,I uninstalled the vcenter (unfortunately no backup was taken ). Big Big Big mistake was made when you complete such tasks and talk with friends or colleagues  and pressing  on next next next and this is the result

- I decided to install new vcenters version 6.0 update 1 using same FQDN and IP and here started the problems:

-In VCOP 5.8.5 become foundation instead of standard because it was licensed with removed vcenters as asset with standard license

-Historical Data of the virtual machine become invisible 

-Report Tab was removed

- VROP 6.0 automatically registered the new vcenters and started collecting data as normal but again no Historical data shown since the date when the old vcenters reinstalled.

- to move from foundation license to standard I installed temporary vcenter instance and registered with VCOP and applied the standard licenses

- now missed tabs came back but historical data invisible on VCOP

 

 

How can I see historical data again  or retrieve them from database ???

Any workaround to solve this issue??

Can I do anything to extract some data from database? attached screenshot of available command related to database

 

Thanks


перенос VM-ок с ESXI 4 на ESXI 5

$
0
0

привет всем,

нужен совет бывалых, относительно сабжа

итак, есть два идентичных железных сервера, на первом ESXI 4.1 (260247), на втором ESXI 5.5 (2068190)

на первом и втором есть работающие виртуалки с различными ОС. задача, все хозяйство с первого перенести на второй (с 4-го на 5-й)

кратковременное выключение виртуалок (не гиппервизоров!) возможно, но не более чем на час-полтора

с VMware vCenter Converter Standalone знаком, однако положительного опыта использования не имею.

предполагаю, что нужно сделать какие-то дополнительные шаги для переноса.

прошу поделиться опытом, ссылками, советами по-переносу

спасибо!

Не добавляется хост в vCenter Server

$
0
0

Здравствуйте! Купили VMware vSphere 6.0 Essentials Kit. Соответственно это самая бюджетная лицензия, и в ней нету никаких компонентов поддерживаемых. При добавлении в Datacenter vCenter Server хоста выдает ошибку, что лицензия не поддерживает vMotion поэтому не могу добавить хост. Подскажите а без поддержки vMotion можно как-нибудь добавить хост?

vRO context execution

$
0
0

Is there a way to allow orchestrator to 'know' where it was started from in the vcenter web client and import that item into the workflow that is being run so that the user doesn't have to select it?

 

For example, I want to be able to right click a vm and execute a workflow....

 

1.jpg

 

And have it not ask me to select a VM...or at the very least auto populate the field for me:

 

2.jpg

Windows 10 Start Menu fails to open

$
0
0

After installing the AppVolumes agent and using UIA + Profile, we are unable to open the start menu (to open applications or anything), including search.   AV 2.10 and View 6.2.   Windows 10 on View w/o AppVolumes has no issues with start menu or search

Problem finding datastores attached to hosts

$
0
0

Lately I’ve been running into random failures in my deployment workflow when it comes to finding what datastores are attached to what hosts. My workflow selects a host to use, then loops through all datastores, looking to see what hosts are connected and builds a list of available datastores I can pick from.

 

The relevant section of code is where my problem is:

 

var allDatastores = System.getModule("com.vmware.library.vc.datastore").getAllDatastores();

 

var vmStorage = new Array();

var storageName;

if (allDatastores)

{

for (i = 0; i < allDatastores.length; i++)

                {

                                for (j=0; j < allDatastores[i].host.length; j++)

 

 

Everything works fine but every now and then, I get the following error: TypeError: Cannot read property "length" from undefined

 

I believe the error is coming from the host.length call (I’ve adding a little more logging to try and confirm the next time it happens). I added a try/catch block to loop through the same section of the code in the event of a failure but after 10 attempts (with 15 seconds between), it still fails. Another call to the workflow right after works just fine.

 

Anyone know what might be the cause of if there’s a better way to get a list of datastores and/or datastore clusters attached to a given host? I've seen other random failures (usually with running stuff within the guest OS via vmware tools) and retrying seems to work but in this case, not so much.

 

Thanks

Windows 10 host - Workstation Pro 12 - Host hangs

$
0
0

I am running a dual monitor Workstation 12 Pro (upgraded for a couple of years) on a system that used to be Windows 7.  I recently upgraded the host OS to Windows 10 Pro.

 

I typically have 2-3 guest VMs running at a time with a mix of Linux, Windows 7, windows 10, and windows 8.1.

 

When the host was Windows 7, I occasionally had problems with the host freezing and locking up when the windows 8.1 system was running.  The only fix was to reboot.  This seemed to happen frequently, if the host performed a windows update check. 

 

Now that I've upgraded to Windows 10, it only takes a few minutes to an hour for any of my VMs to cause the host to freeze up.  By changing my system Group Policy, I've set Windows Update to prompt me before installing updates.  So, Windows Update can't be the problem.

 

I've run all of the usual hardware diagnostics and nothing comes up.  I've updated all of my drivers to the latest.

 

The host is not completely wedged, as I hear the hard drives spinning and I can ping the host.  However, no higher level network services are responsive, such as file shares, Remote Registry service, WMI, etc.  The mouse is stuck in "wait".  The task bar is unresponsive and CTRL-ALT-DEL does nothing.  After reboot, the windows event logs show nothing of interest.  I enabled VMware debugging, but nothing unusual shows up in the logs.

 

I've disabled 3D hardware acceleration for the guest VMs.  Nothing seems to work.

 

Any ideas on the best way to triage this?

An alert is saying a VM is low on disk space, but it isn't low on space

$
0
0

I have VMs that are alerting on low disk space, but when I go to Analysis | Capacity Remaining, everything is green.  When I go to Troubleshooting | All Metrics, it says it has 24% left.  I notice the alert hasn't updated since 11/30/2015.  The metrics are from today, and show values for the past couple weeks.  How do I get the alert to update again?


Problemi di performance di difficile spiegazione... come indagare?

$
0
0

Ciao,

 

ho un cluster esxi con 5 host (tutti alla ver 6 con le ultime patch installate, hw con tutti i firmware aggiornati e in matrice di comp.) che usano diversi datastore NFS che stanno su due coppie di netapp fas2240 (un totale di 4 teste). La rete è a 1gbit. Il tutto serve un sito internet. I netapp hanno una versione di s.o. un po' datata ma comunque in hcl.

 

Succede che tutte le mattine intorno alla stessa ora e per circa un'ora si osservano latenze enormi (ordine del secondo) su certi oggetti. Dopo parecchio studio si è visto che a rallentare sono alcuni host. VM che stanno sullo stesso datastore hanno prestazioni normali o pessime a seconda dell'host su cui girano. Ridistribuendo le VM il problema si sposta su host diversi.

Non è sicuro ma ci sono indizi a dire che il problema segue alcune VM (sono più di 100 e il problema si manifesta una volta al giorno in orari non presidiati, quindi è non è facile beccarle).

Nella fascia oraria incriminata non c'è un carico particolare su host e storage. L'unica cosa certa è che l'uso di banda internet è alto perché vengono scaricati grossi file da parte di clienti esterni. Però la banda complessiva verso internet è di "soli" 100 + 100 Mbit/s (sono due isp distinti).

 

Purtroppo per limiti hardware e "storici" la configurazione della rete non è ottimale: ho solo 4 nic per host e non ho una vlan separata per il traffico verso i datastore, l'unica cosa che ho potuto fare è, giocando con standby e active adapters, dedicare 1 nic all'nfs. 2 nic sono su un vSwitch dedicato a management+vmotion e 2 nic con un vSwitch sono per il traffico nfs, per la rete delle vm e per la rete pubblica.

 

Per questo motivo ho avuto il sospetto che si potesse saturare la nic dedicata all'nfs degli host. Mettendo le VM più critiche (quelle che quando rallentano provocano utenza interna inferocita) su altri host rispetto a quelle che 'consumano' più banda internet ho visto che l'host senza le "succhiabanda" non da mai problemi di prestazioni.

Oltre ad avere Veeam ONE per analizzare le prestazioni, sto usando il PRTG network monitor per rilevare in dettaglio il traffico nic per nic di tutti gli host. Come immaginavo, il traffico sulle nic dove gira nfs sta fra 100 e 200 Kbit/s; solo quando per es. faccio il deploy di una vm da template sale a 400. I grafici sono sempre "giustamente irregolari", cioè non si vedono le classiche righe diritte che compaiono quando qualcosa è saturo.

 

Ho disabilitato dedupliche e compressioni sugli storage, in modo da escludere che possano essere queste a rallentare le macchine. Inoltre sempre col PRTG controllo le stesse, in modo da evidenziare picchi di cpu e altre operazioni come scrub di dischi, onde escludere che siano la causa del problema. E non lo sono (capitano ma in orari differenti).

 

Da ultimo: questo cluster non è giovane ma gira da ormai più di 4 anni e ha avuto incrementi di carico e potenziamenti di hw (erano solo 3 host e netapp più vecchi), ma i guai sono iniziati nell'ultimo mese. Ho fatto l'aggiornamento a vSphere 6, però non penso sia la causa diretta ma solo "indiretta": modificando la distribuzione delle VM per il riavvio degli host ho fatto emergere la criticità che ora, ridistribuendo in modo opportuno, ho di nuovo "sommerso".

 

Che fareste al mio posto?

Several problems caused by ESXi 6 hosts booting faster than SAN

$
0
0

We have a number of ESXi 6 hosts and a SAN, with VM's, syslog and scratchDir located on the SAN for each host. This works like a charm if the SAN stays alive, but in the event of power outage, we get proglems. (You might say "get an UPS for the SAN then", That's a good point, but it's a requirement from the customer that the system should be able to start fully upon blackstart without user input). The scratch and syslog could be moved away from SAN to solve the problem with them, but not the VM's.

 

This can't be a too unusual problem, but still Google doesn't seem to have a really good answear. For earlier esxi versions, one could just add "delay XX" in the bootloader and the problem was solved. I have also found something about adding sleep XX in the etc/rc.local.d/rc.local file just before exit, but that had no effekt at all on the boot time and I find very little documentation about it..

 

An additional problem, if we somehow could get the hosts to rescan iSCSI targets after boot, that would still mean that we have to start VM's manually, as at the time the host tries to autostart them, right after boot, they aren't available as the SAN hasn't booted at that point?

Enable vSphere Web Client Automation

$
0
0

In this post I will provide some files and instructions that will allow you to create automated tests for the vSphere Web Client.

 

Important notes, before you start:

  • This post describes how to enable the automation and not how to write automated tests. Refer to official Adobe documentation for instructions on automating flex application: Adobe Flex 4.6 * Creating applications for testing
  • Instructions and bits provided here are version specific. When you upgrade your Web Client you need to refer back to this page and download the corresponding bits.
  • Each zip file contains a PDF with instructions. Read them carefully before you begin and follow them strictly to avoid build or product issues.
  • Create a backup copy of the modified files before you modify/replace them.
  • Use the instructions here only for testing purposes and never in production environment.
  • The instructions and bits here are provided without any warranty. If something doesn't work as explained or as expected, come back to this forum for support.

 

Summary

Enabling automation of a Flex application requires a number of libraries to be built in the application. The instructions and bits provided here will allow you to build you own customized copy of the vSphere Web Client.

Here is a summary of the steps that you need to perform to achieve this:

  1. Download the attached vsphere-webclient-automation-x.y.x.zip file that matches the Web Client version that you use.
  2. In your Web Client deployment find a file named container-app-war-x.y.z.war. This is a web archive that contains a file UI.swf. This is the main Flex application that is executed. It loads dynamically all other modules and plugins.
  3. Copy the container-app-war-x.y.z.war file to your local machine.
  4. Run the build script provided in the zip file. The build is Maven based. So you will need Java and Maven installed on your machine. Use the recommended versions specified in the PDF with instructions. The build might or might not work with the latest Java and Maven versions.
  5. The script will build new UI.swf file and will replace the original one in the container-app-war-x.y.z.war file.
  6. Finally you need to copy the modified container-app-war-x.y.z.war file to its original location.


The provided script (pom.xml) will include the following Adobe libraries in the Web Client build:

  • automation.swc (version 4.6.b.23201)
  • automation_agent.swc (version 4.6.b.23201)
  • automation_dmv.swc (version 4.6.b.23201)
  • automation_spark.swc (version 4.6.b.23201)


There are instructions how to include the Selenium Flex API library. The dependency is added in the build script for you, but is commented out.

Additionally you can include any arbitrary Flex library you want in your customized build of the UI.swf. Look for instructions in the PDF document within the ZIP file.

 

Enjoy!

Expand Linked Clone

$
0
0

Firstly, I am very new to VMware.

 

I created a base Windows VM, performed all the updates, ..., installed a few utilities.

Then I created a Linked Clone and installed Office.

 

Now I notice that apparently, I'm almost out of room on the VM, which I find odd to begin with, but regardless.

 

How can I expand the VM so I haven't lost 2 days of installations, updates, configuration?

 

Thank you for any help you can provide on the matter.

vps

$
0
0

bonjour jai un vps cher ovh il est tu possible de faire une wmwere sur un vps

 

hello i an expensive ovh vps you it is possible to make a wmwere on a vps

Viewing all 180923 articles
Browse latest View live