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

esxcli network ip interface add

$
0
0

okay CLI gods out there...

 

I try to automate my host provisioning.. today i had a boot media SD card die, so rebuilding.

my non-enterprise + hosts i can build out no problem, including vmotion interfaces on vmotion network stack, etc.

 

where i am running into issues is distributed port groups, and adding vmk interfaces to a port group.

 

using an esxcli construct, as that is the only way to add to the vmotion netstack

 

on a new host, that looks something like  (some code missing):

$esxcli = Get-EsxCli -VMHost $esx -v2

    $esxcli.network.ip.netstack.add.invoke(@{netstack = "vmotion"})

    $arguments  = $esxcli.network.ip.interface.add.CreateArgs()

    $arguments.mtu = 1500

    $arguments.portgroupname = "vlan xx - vMotion A"

    $arguments.netstack = "vmotion"

    $arguments.interfacename = "vmk1"

    $esxcli.network.ip.interface.add.Invoke($arguments)

    $arguments  = $esxcli.network.ip.interface.ipv4.set.CreateArgs()

    $arguments.netmask = "255.255.255.0"

    $arguments.gateway = "$ipvm$gw"

    $arguments.ipv4 = "$ipvm$oct"

    $arguments.type = "static"

    $arguments.interfacename = "vmk1"

    $esxcli.network.ip.interface.ipv4.set.Invoke($arguments)

 

okay.. above code works fine on a standard switch, specifically   $arguments.portgroupname = "vlan xx - vMotion A"

 

for a Distributed switch, the syntax changes to use dvportID and dvsname instead of portgroupname

(and it's the same command as if you were CLI-ed into the box, and using esxcli).

 

so for DVS, it looks like:

    $arguments  = $esxcli.network.ip.interface.add.CreateArgs()

    $arguments.mtu = 1500

    $arguments.dvsname = "DVswitchName"

    $arguments.netstack = "vmotion"

    $arguments.interfacename = "vmk1"

    $arguments.dvportid = 468

 

the dvsname corresponds to the Distributed switch name (not individual portgroup), also can be seen in output of esxcfg-vswitch -l

 

the DVPortID i'm assigning is an empty port on the portgroup i'm trying to add the interface to.

FYI, to find that, i'm using this:

    $vSwitch = Get-VDSwitch -VMHost $esx -name DSName

    $pg = Get-VDPortgroup -VDSwitch $vSwitch -Name "vlan xx - vMotion A"

    $portID = ($pg | get-vdPort  |  where-object {! $_.ProxyHost } | Select -First 1).ID

 

all that looks ok.. but when i run the invoke..

Message: EsxCLI.CLIFault.summary;

InnerText: Invalid vswitch port group or DVPort parameters.EsxCLI.CLIFault.summary

 

so for debugging purposes.. i try from the host CLI, as follows:

esxcli network ip interface add  --dvs-name "DSName" --dvport-id 472 --netstack "vmotion" --interface-name vmk1

and get the same error

Invalid vswitch port group or DVPort parameters.

 

So, what am i missing here?


ALL IP addresses for each VM from import-list

$
0
0

Hey All,

 

I'm trying to get all IP addresses from an import .csv list of VM's.  I'm either getting errors or only getting
one IP per VM? How do I accomplish this?

 

Thanks..

New Linux user question? VMware horizon view client 4.9 on XUbuntu 16.04.5

$
0
0

I recently installed Xubuntu 16.04.5 (32-bit version) on my computer, and downloaded the Horizon client.

Whenever I attempt to login to my work VDI, it authenticates but then when I open a desktop, it closes immediately.

I have found several forum posts that seem relevant

but none of the solutions seem to work for me (other than downgrade Ubuntu to version 14, which I haven't tried yet).

Get-Vm : Value cannot be null

$
0
0

With PowerCli 11, I got Value cannot be null

 

Get-Vm : Value cannot be null.

Parameter name: format

At line:1 char:1

+ Get-Vm *

+ ~~~~~~~~

    + CategoryInfo          : NotSpecified: (:) [Get-VM], ArgumentNullException

    + FullyQualifiedErrorId : System.ArgumentNullException,VMware.VimAutomation.ViCore.Cmdlets.Commands.GetVM

 

 

I got this error on almost all commands.

After some digging, I got this error only if I change windows display language (in my case from french to english). Currently running Windows 10 1709

 

Could anyone can confirm this a bug with PowerCLI?

Vsphere 6.7 not install hp gen10

$
0
0

I have hp server dl380 gen10 but i have error installation

 

20181122_111941.jpghelp

vRops 6.7 Evaluation( 60 days) does it have All features (vROPS 6.7 Enterprse Features = vRops 6.7 Evaluation Features )

$
0
0

Hello,

 

I was trying to deploying vRops 6.7 in my environment.but as of now we don't have license with vRops.

I downloaded Trail version which is 60 days and does it have all features in Trail version

 

vROPS 6.7 Enterprse= vRops 6.7 Evaluation

 

 

Thank you,

Ravi

Unable to retrive log bundle from host

$
0
0

Hi,

skyline appliance is not able to retrive log bundle from esxi host: the appliance is trying to connect to the esxi host via proxy even if NO_PROXY setting for the local network and local domain are in place in files /etc/environment and /etc/sysconfig/proxy. Any idea?

 

I have these errors:

 

./skyline/health-collector.log:2018-11-23 16:00:43,577 ERROR [pool-6-thread-4] Download-Worker-host-1236 [DownloadWorker.java:82] Got Exception - Unable to tunnel through proxy. Proxy returns "HTTP/1.1 403 Forbidden"

./skyline/health-collector.log:2018-11-23 16:01:13,572 ERROR [pool-7-thread-1] V.f.it  [ConnectionDownloadManager.java:122] Fetching support bundle from host-1236 failed. Will restart

 

on the proxy server I have a deny towards the esxi host.

 

thank you

bye

Moving to Skyline Advisor from the pilot

$
0
0

We were a part of the pilot and I realized that we stopped receiving reports about a month ago. From what I can tell, that process is no longer functional and is now being done using the Skyline Advisor portal.

 

So I followed the instructions and accessed Skyline Advisor from the Support link on My Vmware. I have a couple of options. I first chose to migrate to the cloud services. While I could log in, it knew nothing about me and prompted me to set up a new organization. Not sure what that would do, so I went back and this time opted to just login with vmware.com.  I'm in to my account, but there's no data to look at when I go to the Proactive Findings tab.  So, how do I get to usable data?

 

Jon


New VLAN on a distributed switch

$
0
0

Hello Everyone,

Can anybody shed some light on this: does a new VLAN automatically propagate to vSphere distributed switch after the VLAN is configured on the upstream network switches and on the UCS FIs? Would be hard to imagine that this is the case, and one still needs to configure a new distributed port group, and tag that new VLAN there.

 

Appreciate your input.

linked_Mode_powercli

$
0
0

HI Luc,

 

could you suggest on following scenrio.

 

i have two vcenters   vcenter1 and vcenter 2  they are in linked mode as we can verify in webclient.

 

however when i am using

connect-viserver -server vcenter1 -alllinked

 

i am not getting them in powerclialso

$global:defaultviservers show only one of them connected.

URGENT - Frequent Horizon Agent Disconnects / Desktop Unavailable

$
0
0

We are currently troubleshooting a very frustrating issue where we are having frequent disconnects across hundreds of users out of 1500 (at random times) where we see sessions disconnect and when the user gets disconnected, they get the "This desktop currently has no desktop resources available." error. Upon checking the machine, we see the Horizon Agent service is stopped. If we manually start the Agent service, it will become available again but tends to crash again within 24 hours. Below are the details of the environment, along with the errors in the Windows Event Viewer. We can find no correlation at all on why some VDIs crash and some don't. We did find that if we reboot the VM, we don't see another crash for several days to a week. If we simply restart the Horizon Agent, it crashes or stops again within 24 hours.

 

Very long story short, we've engaged VMware support and the only thing they have found is errors regarding to WMI. They then pointed us to Microsoft support. Microsoft support confirmed that machines having the Agent issues, the WMI service is in a semi functioning state. We rebuilt the WMI repository on several machines but still cannot find a root cause and cannot determine after weeks if this is a WMI/OS issue or some sort of VMware Agent issue. Any help, similar experience or fix would be greatly appreciated.

 

 

Windows OS on All Desktops: Windows 10 1709 16299.579 (patched up to Sept 2018)

Pools: All Persistent desktops

VDI Specs: 3-4 vCPUs / 8-16 GB RAM (Disconnects happening on all pools in all regions, with all specs)

Antivirus: Cylance

Domain: One Global AD 2012 Domain

Connection Server Version: 7.5.0

Desktop Horizon Agent Version: 7.5.0

Protocol: PCOIP

Endpoints: HP Zero Clients (Disconnects happening on all types of endpoints)

 

Error showing up in only a few machines on crash: (On most disconnects, there are NO related errors in the Windows Event Logs)

 

Log Name:      System

Source:        Service Control Manager

Date:          11/8/2018 4:40:40 PM

Event ID:      7031

Task Category: None

Level:         Error

Keywords:      Classic

User:          N/A

Computer:   

Description:

The VMware Horizon View Agent service terminated unexpectedly.  It has done this 1 time(s).  The following corrective action will be taken in 60000 milliseconds: Restart the service.

Event Xml:

<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">

  <System>

    <Provider Name="Service Control Manager" Guid="{555908d1-a6d7-4695-8e1e-26931d2012f4}" EventSourceName="Service Control Manager" />

    <EventID Qualifiers="49152">7031</EventID>

    <Version>0</Version>

    <Level>2</Level>

    <Task>0</Task>

    <Opcode>0</Opcode>

    <Keywords>0x8080000000000000</Keywords>

    <TimeCreated SystemTime="2018-11-08T21:40:40.729919700Z" />

    <EventRecordID>4656</EventRecordID>

    <Correlation />

    <Execution ProcessID="664" ThreadID="12948" />

    <Channel>System</Channel>

    <Computer></Computer>

    <Security />

  </System>

  <EventData>

    <Data Name="param1">VMware Horizon View Agent</Data>

    <Data Name="param2">1</Data>

    <Data Name="param3">60000</Data>

    <Data Name="param4">1</Data>

    <Data Name="param5">Restart the service</Data>

    <Binary>570053004E004D000000</Binary>

  </EventData>

</Event>

vSphere Upgrade Failed

$
0
0

Hi, Am trying to upgrade the env.

 

vCetner 6.0 U3c to 6.7.

 

Getting following error at prechecks. Not sure what is causing the issue. No KB article as such. Any help with be appreciated.

 

 

Error

VMware Tools driver is not initialized

 

 

Resolution

Make sure that VMware Tools driver is initialized and is running properly on the source vCenter Server Appliance (1XXXXXX). Also make sure that the ESXi host which contains the source vCenter Server Appliance is not under heavy load. Contact VMware support in case the issue cannot be resolved.

 

Automazione creazione VM

$
0
0

Buongiorno, ho cercato su Google ma senza successo..sono alla ricerca di un software con interfaccia web, che mi consenta di creare vm all'interno di esx.

Attualmente per creare un vm dobbiamo andare in vsphere e creare la vm indicando i parametri desiderati, mi chiedevo se esiste un software che punta all'host esx e attraverso una interfaccia mi permetta di creare una vm così come se stessi utilizzando vsphere.

Grazie e buon lavoro.

vRni Network Insight - Service Unavailable - Tenant is not active

$
0
0

Hi i have been exploring the vRni Network Insight. And got a trial license, worked great until the license was not valid anymore.

 

i have checked the services in the cli and they are all running, both vm`s have been gracefully restarted.

 

Now when i try to login with the std. user i get this error: "tenant is not active"

 

 

vrni_error01.png

DRS Question

$
0
0

Hey guys,

Is it possible to use DRS for both compute and storage during a deployment process? I looked thru the API and i am not sure which attribute / scripting class i should be focusing on to handle this.

My current setup is this (attached):

Compute:

-Query the DC in a cluster for host names

-Query the host to make sure they arent in maint mode than add it to an array

-Sort array by free memory

-Output host on array[0]

 

Storage:

-Add storage to array located in that cluster

-Sort by free space

-Output datastore

 

While this works the issue i come accross is that DRS will balance the storage and even though the storageDRS cluster may have 20TB free only 5TB is available on 1 LUN. When i attach new drives i reuse the datastore output and add the drives. The issue with this comes from auto adding drives that are more than what the LUN can handle.

I am not sure how well the VcDrs items work in vRO or have seen any examples of its use.

Thanks for the help!


What is recommended way(e.g. command) to monitor a VM during provisioning and confirm PowerOn & configuration is complete?

$
0
0

Currently, using check to confirm power state is PowerOn and then get ipaddress. However, I notice that just because state = PowerOn, the vm is still being configured and cannot obtain the ipaddress. Any thoughts are greatly appreciated. 

Solaris 10 x86 Tools Install Failure

$
0
0

I've got two freshly installed Solaris 10 x86 (147147-26) VMs but when I try to install the VMware tools I get the following error:

 

Unable to change the access rights of the file GLOB(0x833319c).

 

I've tried installing the 10.2, 10.3 and now 10.3.2 tools with the same error (different HEX value). VMware support has been useless.

 

Any ideas here?

 

-Jonathan

[linux] vcsa install, A problem occurred while reading the OVA file.: Error: Invalid XML:

$
0
0

mounted iso, navigated to /mnt/target/vcsa-ui-installer/lin64 and ran ./installer

6.7U1 installer is failing on the deployment size screen.   6.5 installer would also fail the same way.  what can I do to get vcsa to deploy properly from linux?

Can't expand datastore capacity

$
0
0

Hi.

Please give me some advice.

 

I added HDD to storage for datastore "ds02" with LUN concatenation.

And I did "increase datasotre capacity" on vSphere client with Error.

The error is this.

"Unable to grow Filesystem, please see VMkernel log fordetails : No space left on device"

VMkernel log is this.

2014-11-06T01:59:05.584Z cpu38:34276)LVM: 2907: [naa.600000e00d280000002800c000010000:1] Device expanded (actual size 61160331231 blocks, stored size 30580164575 blocks)

2014-11-06T01:59:05.800Z cpu47:34276)LVM: 11172: LVM device naa.600000e00d280000002800c000010000:1 successfully expanded (new size: 31314089590272)

2014-11-06T01:59:05.977Z cpu47:34276)Vol3: 661: Unable to register file system ds02 for APD timeout notifications: Already exists

2014-11-06T01:59:05.980Z cpu47:34276)LVM: 7877: Using all available space (15657303277568).

2014-11-06T01:59:14.416Z cpu7:34276)LVM: 7785: Error adding space (0) on device naa.600000e00d280000002800c000010000:1 to volume 52f05483-52ea4568-ce0e-901b0e0cd0f0: No space left on device

2014-11-06T01:59:14.451Z cpu7:34276)LVM: 5424: PE grafting failed for dev naa.600000e00d280000002800c000010000:1 (opened: t), vol 52f05483-52ea4568-ce0e-901b0e0cd0f0: Limit exceeded

2014-11-06T01:59:14.451Z cpu7:34276)LVM: 7133: Device scan failed for <naa.600000e00d280000002800c000010000:1>: Limit exceeded

2014-11-06T01:59:14.451Z cpu7:34276)LVM: 7805: LVMProbeDevice failed for device naa.600000e00d280000002800c000010000:1: Limit exceeded

 

The results didn't increase capacity and missing divice on selecting device menu.

Adding capacity been recognized for vmfs,but not increase free capacity.

Of course shown datastore device at first time.

I did with vsphere client but from vsphere web client same.

 

Past capacity : 14.24TB

New capacity : 28.48TB(add 14.24TB)

vsphere 5.5(not update2)

 

I want to use new capacity.Give me advice.

Best regards.

vmkwarning: cpu29:66613)WARNING: ScsiDeviceIO: 1188: Device naa.xxx performance has deteriorated. I/O latency increased from average value of 951 microseconds to 20503 microseconds

$
0
0

I see this in the logs, can someone explain to me how often and how ESXi calculate the latency?

What is average, average of what? How often ESXi is checking the latency?

Viewing all 180460 articles
Browse latest View live


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