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

PowerCLI - Manual Input && Combine Output

$
0
0

Hello Team,

 

I am preparing a PowerCLI Script when I can given manual Input and combine the output of two commands. The requirement is:

For selected VMs

- Powered ON / OFF .

- UUID of these VM's .

- Esx Host Names of which these VM's belong to .

- UUID Of ESX Host .

 

I have prepared as-->

 

# Prompt for VC

$vCenter = Read-Host "Enter vCenter Name or IP"

Connect-VIServer $vCenter

 

$CSVFilepath = "C:\Test.csv"

 

$VM = Read-Host "Enter VM Name"

 

Get-VM $VM |select name, PowerState, @{n="VMUUID";e={(Get-View $_.Id).config.uuid}} | out-file -FilePath $CSVFilepath -append

Get-VM $VM |Get-VMHost | Select Name,@{n="HostUUID";e={$_.ExtensionData.hardware.systeminfo.uuid}} | out-file -FilePath $CSVFilepath -append

 

Q1 - Script should ask to enter the VM name again and again.

Q2 - Combine the output in single CSV file with different data in separate columns.

 

Pls help, as I m not able to create foreach and combine the output.

 

Rgds

-Harjit


Can't ping VMs behind logical switches from external network

$
0
0

Hi,

I need some help please.

 

I have installed NSX on a nested environnment

 

now from the admin pc  I can ping the sophos router 192.168.100.254, I can ping 192.168.3.1 and 192.168.3.254

I can also ping the logical switch gateway for each Tier.

10.1.10.1

10.1.20.1

10.1.30.1

all Vms are Ups.

When I try to ping 10.1.10.11 and 10.1.10.12 (VMs) no response.

a ping from 10.1.10.11 to 10.1.10.12 works.

 

actually I have one static route on the NSX edge

 

Network 192.168.100.0/24

Next Hop 192.168.3.1

Interface Enterprise_Uplink 192.168.3.254

MTU 1600

Admin distance 1

 

Here are the static routes on the sophos router :

Kernel IP routing table

Destination     Gateway         Genmask         Flags Metric Ref    Use Iface

10.1.10.0       0.0.0.0         255.255.255.0   U     5      0        0 eth1

10.1.20.0       0.0.0.0         255.255.255.0   U     5      0        0 eth1

10.1.30.0       0.0.0.0         255.255.255.0   U     5      0        0 eth1

127.0.0.0       0.0.0.0         255.0.0.0       U     0      0        0 lo

192.168.3.0     0.0.0.0         255.255.255.0   U     0      0        0 eth1

192.168.5.0     0.0.0.0         255.255.255.0   U     5      0        0 eth1

192.168.100.0   0.0.0.0         255.255.255.0   U     0      0        0 eth0

 

a ping from the Sophos router to 10.1.10.1 is ok but 10.1.10.11 is not !

 

a ping from the NSX Edge to all VM behind logical switches works !!

 

Thanks for your help !!!

schéma.png

Create virtualmachine snapshot - 100% for 40mins

$
0
0

Hey Guys,

 

Got a really odd one here, for the last week I noticed all VM backups (Veeam 9.5) blew out by 35-45mins each. The problem is with 70+ VMs this pushed us outside the backup Window. In terms of troubleshooting so far we haven't got far, I've reviewed the vCenter logs and rebooted EVERYTHING. What we found from this is that when we reboot vCenter we have no issues for about 15 snapshots. The second thing we tried was snapshots from vCenter (rather than Veeam) but we have the same issue and it's only in creation, not removal. No matter how large or small the VM they all take the same time (even a 5GB CentOS Server) roughly 35-45mins. All tha past tasks looking at the vCeneter logs were between 10-130seconds for the

 

From what i can see in the vCenter logs there is a timeout peroid that is hit causing the task to be canceled/stopped but this is not causing a failure or any issues, everything still works fine. Its just takes 40mins longer per VM for any snapshots.

 

Here are the the vCenter logs:

2017-04-14T23:07:39.287+10:00 error vpxd[05084] [Originator@6876 sub=MoEvent opID=4569d102] [EventManagerMoImpl::EventBatchAppender::EventAppenderJob::PostJob] VirtualCenter did not respond to the request to append events after 2400 seconds

2017-04-14T23:07:39.291+10:00 error vpxd[05084] [Originator@6876 sub=Vmomi opID=4569d102] [VpxVmomi] IO exception while sending fault

2017-04-14T23:07:39.291+10:00 info vpxd[05084] [Originator@6876 sub=vpxLro opID=4569d102] [VpxLRO] -- FINISH task-internal-27952

2017-04-14T23:07:39.291+10:00 info vpxd[05084] [Originator@6876 sub=Default opID=4569d102] [VpxLRO] -- ERROR task-internal-27952 -- EventManager -- vim.event.EventManager.logUserEvent: vmodl.fault.UnexpectedFault:

--> Result:

--> (vmodl.fault.UnexpectedFault) {

-->    faultCause = (vmodl.MethodFault) null,

-->    faultName = "vim.fault.Timedout",

-->    fault = (vmodl.MethodFault) null,

-->    msg = ""

--> }

--> Args:

-->

--> Arg entity:

--> 'vim.VirtualMachine:vm-2741'

--> Arg msg:

--> "Source: Veeam Backup

--> Action: Job "Backup"

--> Operation: Stopped

--> Status: Success

--> ID: 9444fd99-6cb7-45c0-90b7-cead7533a244

--> Description: "

2017-04-14T23:07:39.297+10:00 warning vpxd[05316] [Originator@6876 sub=VpxProfiler opID=HB-host-19@28497-1d592c26] VpxdInvtVm::ProcessVmInfo [ProcessVmInfoTime] took 1477703 ms

2017-04-14T23:07:39.297+10:00 warning vpxd[05316] [Originator@6876 sub=VpxProfiler opID=HB-host-19@28497-1d592c26] VpxdInvtVm::ProcessVmChanges [ProcessVmChangesTime] took 1477703 ms

2017-04-14T23:07:39.300+10:00 warning vpxd[05316] [Originator@6876 sub=VpxProfiler opID=HB-host-19@28497-1d592c26] [VpxdHostSync] ProcessChanges host:syd-sy1-ex02.cloud.local [ProcessChanges] took 1477706 ms

2017-04-14T23:07:39.301+10:00 warning vpxd[05316] [Originator@6876 sub=VpxProfiler opID=HB-host-19@28497-1d592c26] [VpxdHostSync] DoHostSync:0000000004A81420 [DoHostSyncTime] took 1478249 ms

2017-04-14T23:07:39.301+10:00 warning vpxd[05316] [Originator@6876 sub=VpxProfiler opID=HB-host-19@28497-1d592c26] InvtHostSyncLRO::StartWork [HostSyncTime] took 1478249 ms

2017-04-14T23:07:39.301+10:00 warning vpxd[05316] [Originator@6876 sub=VpxProfiler opID=HB-host-19@28497-1d592c26] VpxLro::LroMain [TotalTime] took 1478249 ms

 

 

Going bonkers here guys, not idea whats going on. Thanks in advance for any help

 

I've created a project on Freelancer also:vmware vcenter | VMware

 

Cheer.

Simple UI for simple control of VM's

$
0
0

Hello,

 

I have a need for a simple UI for internal users to be able to do the following.

 

1. Reserve an existing VM for a per-designated amount of time

2. Clicking one button would revert to snapshot and power on VM

3. When reservation time has expired, the VM will  power off

4. A button is available in the UI during the time the VM is running, to terminate the reservation, and shutdown the VM if so desired prior to the reservation expiring

 

Any open source or other tool anyone has seen that would fulfill this requirement?

 

Regards

-John

Environment Variables are set after UEM processes it's conditions

$
0
0

Hi,

 

I have two environments:

     1. Horizon 6.2.1 with UEM 9.0.0.156 and App Volumes 2.11.0.122

     2. Horizon 7.1 with UEM 9.2 and App Volumes 2.12.1.103

 

I am migrating from environment #1 to environment #2. I have an existing Windows 7 golden image that I cloned and updated with the latest View, UEM and App Volumes agents. I also migrated the existing UEM config. There are some conditions and condition sets that are looking for the ViewClient_Machine_Name variable to map printers, map drives etc. Everything is working fine in the old 6.2 environment but in the new 7.1 environment the Environment Variables are set after UEM processes it's conditions. In the log files I see many of the following lines right after logon:

 

2017-06-12 14:46:54.925 [DEBUG] Conditions: Check for environment variable 'ViewClient_Machine_Name' = false (variable not set)

 

If I execute "UEM User Environment Refresh" after logon - all printers and drives are mapped correctly.

 

Then in the logs I see the following  lines:

 

2017-06-12 14:07:41.666 [DEBUG] Conditions: Check for environment variable 'ViewClient_Machine_Name' = false ('ZC-0030' is not equal to 'ZC-0011')

 

Which is the expected behavior.

 

Also I have a shortcut that is added to the startup folder. The application starts automatically in environment #1. In environment #2 the application is added to the startup folder but it doesn't start automatically.

 

Any help will be greatly appreciated.

VCentre 6.5.0

$
0
0

Installed vCentre on virtual server but unable to get it started. Getting the below error.

 

A server error occurred.

[500] SSO error: AFD Native Error Occured: 9108

 

I see this in the logs but unsure how to resolve.

cannot bind connection: [ldap://localhost:389, NEON-ZELDA.neocom.co.nz@vsphere.local]

[2017-06-15T09:40:41.400+12:00                      IDM Startup                          ERROR] [ServerUtils] cannot establish connection with uri: ldap://localhost:389

 

Any help would be appriciated

503 Service Unavailable (Failed to connect to endpoint:

$
0
0

Error Message:

 

503 Service Unavailable (Failed to connect to endpoint: [class Vmacore::Http::LocalServiceSpec:0x000001d47454d440] _serverNamespace = /ui action = Allow _port = 5090)

error.png

 

Hello guys good evening, I was encountered this error on my host machine when accessing the vcenter server with vSphere Client (HTML5) - partial functionality, any solution or recommendation to solve my current issues on my vCenter Server 6.5 thank you guys and GOD BLESS US ALL...

Host not responding in vCenter

$
0
0

Hi,

rcporto

I am facing one issue with ESXi host, it is disconnecting from vcenter and happened two times, first time it happened 3 months back (I got fixed by restarting host management agent) and second time it happened recently, please let me know how can I resolve this issue permanently.

                                                                                                                                                

[This is production issue]

 

My environment:

ESXi 6.0 update 2

vCenter 6.0

 

Note: the VM's that are running on this host are not migrating to other host's in cluster

 

Thank you,

Vkmr.


One Netapp NFS datastore is showing read only

$
0
0

Hi All,

 

Facing an issue whereas one NFS V3 datastore is showing readonly on ESXi 5.0 host tried remounting with IP and readding the IPs in access list of NFS volume from storage end but no luck.

 

Tested it by adding ESXi 6 host ip in the access list of NFS volume which worked fine. So it looks like issue with ESXi 5.0 hosts only.

 

Can someone let me know what settings are required.

 

Thanks

6.5 Fault Tolerance. Are all virtual disks duplicated?

$
0
0

I have a question regarding FT in version 6.5. According to the official documentation, Primary VMs and Secondary VMs always maintain independent vmdk copies, which can be placed on different datastores to increase redundancy.

 

First question: So if I create a VM with a virtual disk for the operating system, and 10 other virtual disks for data, does this mean that the 11 virtual disks will be duplicated on the Secondary VM when FT is enabled? Or does the duplication only apply to the VM configuration files and operating system disk?

 

Second question: The limitations state that Fault Tolerance is not supported with a 2TB+ VMDK. Does this apply only for the virtual disk where the VMs operating system resides on, or does it also apply to additional virtual disks that I add to the VM?

 

Thanks to whoever can clarify this !

memory reservation

$
0
0

I have an esxi host that has 512GB memory.  I have three vms that will consume all the memory.  Since there is no memory overcommit, I wanted to set the memory reservation equal to the memory assigned to the vms.  One has 256GB, the other 2 have 128GB.  However, I can't powered on all the vms.  Keep complaining that can't find a host to run the vm.  I have to reduct the Memory reservation for one of the vms by ~18GB to be able to run it.  Is there a formula to figure out how much overhead is used by vmware so I can reduce the memory reservation accordingly?

Dual boot to Windows Server 2016 within Windows 10

$
0
0

Hi,

 

For dual-boot to Windows Server 2016 within Windows 10, I have gone through the link

https://blogs.technet.microsoft.com/blainbar/2012/09/25/step-by-step-4-methods-to-dual-boot-microsoft-windows-8-and-windows-server-2012-with-or-without-windows-7/

 

One of the ways is “Dual Boot to Windows 8 or Windows Server 2012 from within the Windows 7 Operating System using an existing .VHD”.

 

In this way, a VHD is selected i.e. Server2012RTM.vhd.

 

Currently Windows Server 2016 is installed as a Guest OS on VMware Workstation 12.5.6 and because of VMware Workstation; the VHD is created with an extension .vmdk.

 

In this dual-boot process, may I use this VHD (.vmdk) as Attach VHD?

Apart from the way (mentioned in the link), is there another way so that .vmdk can be used as a Dual-boot within Windows 10?

 

Regards

GnVm

vSphere Client update - failed to downlaod requried file

$
0
0

HI All

 

Installed vSphere client on a new laptop (WIn10) - I think it was about a 6.0 something client so I could manage my older ESXi5 server.

 

Installed OK and when I try to connect it says there is a support file required.  It starts to downlaod the file VMware-viclient-all-5.0.0-455964-5.0 but fails part way through saying the server timed out.  Not sure what s going on but I have satellite internet and I find it flakey a lot of the time to what I suspect is the very high latency of the service.

 

So I want to download the file while at work and then install manually at home, problem is I cant find the file at all.  I had a similar named file VMware-viclient-all-5.0.0-455964 but it will only install on XP so obviously there is a newer version (hence the -5.0 on the end) that is compatible with later windows version.

 

Does anyone know where I can find this file for manual download.

I am getting an error when searching an object in vRops

$
0
0

Hi,

 

I am searching an object in vRops search windows and i am getting list of objects but when i select that object then getting following error "could not find any of the requested resources" I have an access to those VCs and objects.

 

User is in particular user group and that group assigned to special roles. As per user it was working fine couple of days before .

 

Thank you .

 

Regards

Krish.

Missing Data in Vrops 6.4

$
0
0

I have noticed several VMs that are missing data.

We are unable to look back 90 days on several VM on any metric. They all stop at April 2017

I looked in storage/vcops/data and using the identifier I have found the months of data, but I can't get it to display

I have verified the created date is correct 09/2015

 

I don't believe it's a syncing issue as all the data reside on the master node.

 

How do I resolve this issue?


Is it possible to deploy 3rd party plugin solution service layer on vcenter directly?

$
0
0

Hi, 

I'm looking at this section of vsphere 6.5 document : http://pubs.vmware.com/vsphere-65/index.jsp#com.vmware.wcsdk.pg.doc/GUID-88363ADC-4F14-4A99-937E-634015751B56.html

Wondering if we can directly  deploy 3rd party service layer(java, nodejs, etc) on a vcenter appliance. Or it has to be on a external server?  

I like the new vsphere SDK provided highly extensive html UI and new service platform to interact with vcenter (as a external actor), but if its' possible to have our own service layer deployed right within vcenter/container, it would be saving a lot of network and boxing overhead.  Please let me know if it's doable, and if any, point me to the resource/guide that I can refer to. 

Thanks.

 

Lee.H

2 node cluster -split brain

$
0
0

hi there,

In our test environment, vsan (version 6.5) is configured with 2 node direct connection with witness appliance. While working on servers' firmware upgrade (most likely network isolation and plus cold reboot), I think I've caused split brain in our vsan cluster.

 

If both host1 and host2 are up and running (witness as well) then all the vms seems inaccessible (orphan) on the hosts' inventory and even no objects/vm folders can be seen on vsan storage, it is just empty.

If host2 and witness appliance are up and running then vms are accessible and can be powered on. Even in this stage, if host1 is restarted then cause the same problem -vms are being inaccessible.

If Host1 and witness appliance are up and running then vms are inaccessible and vsan storage seems empty.

 

"esxcli vsan cluster get" output (below) on both hosts +witness appliance, that shows the members' UUID and Master UUID *witness sees host2 as a master.

 

"esxcli vsan cluster" leave and join on host1 might work but I'd like to hear and appreciate whoever has same or similar experience before taking an action.

 

host1 -

Cluster Information

   Enabled: true

   Current Local Time: 2017-06-14T18:17:26Z

   Local Node UUID: 58d5c198-bb69-73e6-d154-005056851dd8

   Local Node Type: NORMAL

   Local Node State: MASTER

   Local Node Health State: HEALTHY

   Sub-Cluster Master UUID: 58d5c198-bb69-73e6-d154-005056851dd8

   Sub-Cluster Backup UUID:

   Sub-Cluster UUID: 522cc8bf-c136-0570-5a09-7b6ca3738dc2

   Sub-Cluster Membership Entry Revision: 1

   Sub-Cluster Member Count: 2

   Sub-Cluster Member UUIDs: 58d5c198-bb69-73e6-d154-005056851dd8, 5935f59b-107f-e956-55f0-005056b12d1b

   Sub-Cluster Membership UUID: ce774159-22c1-ab1c-cbe9-180373f813f2

   Unicast Mode Enabled: true

   Maintenance Mode State: OFF

 

host2 -

Cluster Information

   Enabled: true

   Current Local Time: 2017-06-14T18:11:57Z

   Local Node UUID: 58d35025-4d1f-1362-375d-000c298a9ad5

   Local Node Type: NORMAL

   Local Node State: MASTER

   Local Node Health State: HEALTHY

   Sub-Cluster Master UUID: 58d35025-4d1f-1362-375d-000c298a9ad5

   Sub-Cluster Backup UUID:

   Sub-Cluster UUID: 522cc8bf-c136-0570-5a09-7b6ca3738dc2

   Sub-Cluster Membership Entry Revision: 2

   Sub-Cluster Member Count: 1

   Sub-Cluster Member UUIDs: 58d35025-4d1f-1362-375d-000c298a9ad5

   Sub-Cluster Membership UUID: d5774159-9511-463a-4f15-180373f8131a

   Unicast Mode Enabled: true

   Maintenance Mode State: ON

 

witness appliance

Cluster Information

   Enabled: true

   Current Local Time: 2017-06-14T22:36:40Z

   Local Node UUID: 5935f59b-107f-e956-55f0-005056b12d1b

   Local Node Type: WITNESS

   Local Node State: AGENT

   Local Node Health State: HEALTHY

   Sub-Cluster Master UUID: 58d35025-4d1f-1362-375d-000c298a9ad5

   Sub-Cluster Backup UUID:

   Sub-Cluster UUID: 522cc8bf-c136-0570-5a09-7b6ca3738dc2

   Sub-Cluster Membership Entry Revision: 1

   Sub-Cluster Member Count: 2

   Sub-Cluster Member UUIDs: 58d35025-4d1f-1362-375d-000c298a9ad5, 5935f59b-107f-e956-55f0-005056b12d1b

   Sub-Cluster Membership UUID: 1f8a4159-6900-7633-902e-180373f8131a

   Unicast Mode Enabled: true

   Maintenance Mode State: OFF

vcenter domain change

$
0
0

our vcenter 6.0 ( windows 2012 r2 ) working ccc.local domain. now we will change the our domain controller. how to change vcenter settings and esxi 6.0 settings for new domain controller.

when vm has a ide disk, can't change settings while it is powered on

$
0
0

On esxi 6.5d, When the vm has a ide disk, I was unable to change any VM settings such as Network Connected (Y/N), which Virtual Switch a NIC is connected to, unmapping an ISO image to a CD while a VM is powered on.

Any attempt to adjust settings yields the error "The attempted operation cannot be performed in the current state (Powered on)".

 

When remove the ide disk, everything is ok. Is this a normal thing?

 

Thanks

vSphere WebClient and vSphere Desktop Client

$
0
0

Hi Folks,

 

I am experiencing weird issue. When I login via vSphere vCenter Server Web Client , under inventories , it shows me an error "You have no privilege to view this object or object does not exist". However, exactly via C# client, i can view same inventory item. 

I have tried clearing up IE cache, logged on from a different client  via vSphere Webclient . It does not make difference at all. Is there any difference in permission model used by vSphere Desktop Client and vSphere WebClient?It used to work fine before. I am not using Client Integration Plugin for SSO on client computers.

 

relevant information to help track issue.

vSphere vCenter Server 5.5.0 Build 2646482

vSphere Web Client 5.5.0.14567

vSphere Desktop Client 5.50 Build 2417603

Viewing all 178776 articles
Browse latest View live


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