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

bug cloning a running VM in 6.5u2

$
0
0

When cloning a running VM and choosing Customize Virtual Hardware, there is a major problem.  The only change I am making is to change the NIC Portgroup.  But instead of only changing the portgroup, it also changes the drive backing of all the hard disks to point to the original VM's .vmdk files.  With the original VM running, you can not power on the new VM due to the locks on the files.  If you have powered off the original before powering on the clone, then you can be royally messed up.  The drives are being cloned and are in the clones folder, but once the file copies are complete, the new VM is being modified.  In the event viewer of the cloned VM there is a huge entry where it is changing the drive config as well as several other settings.

 

For full disclosure, I am cloning a VM with multiple hard disks between two different clusters with different distributed switches and VLANs.  So it is necessary to change the port group.  We are cloning VMs between test and production clusters.  This is fully repeatable on every VM that we have tested so it is not a configuration or environmental problem.  It is bug.

 

I do understand that the Customize Virtual hardware option is and has been forever marked as "Experimental", but this is an expected use of the option that should work.  The program should only be changing those options that are modified in the wizard, it should not be changing anything else.    This is not an acceptable situation.  I have used this wizard for years to add drives, change CPU and Memory settings and it has always worked fine until now.


Caps Lock automatically switches on in the host machine when I'm using Remote console

$
0
0

Hi, I'm using VMware Remote Console 10.0.2 (but also tried with 10.0.1) on a Mac mini with macos 10.13.5 with two displays. My problem is, every time I open a VM in the remote console, then go back to my Mac (the host machine) Caps Lock automatically turns on. If I turn it off then go back to the VM, and back to my Mac again, it switches on again immediately. This is very annoying and so far I haven't had this bug, I've been using VMware for years now. I'm not sure what triggered this issue now, but as far as I'm concerned, none of my colleagues experiencing this with the same setup that I'm using. Has anyone met this issue before? Do you know a workaround for it? Thanks!

The resource '24' is in use. But its not?! Cant delete VDSwitch.

$
0
0

First of, I am very new to vCenter...

 

I have created a dSwitch, and when I am going to delete it and start over I am getting this error:

The resource '24' is in use.

vDS ProductiondvSwitch port 24 is reserved by entity esxi1.xyz.local Virtual NIC vmk0, type:hostVmkVnic

 

 

 

Port 24 is my dManagement Port group.

 

When I go to Distributed Switch /.... / Manage / Ports I only see my Port gorups created and its "Blank".

 

When I go to the Settings tab. I see that the Switch dont have any NIC on its uplinks.

 

I can delete all Port Groups BUT dManagement.

 

All NICs stand Unused on dManagement.

 

The hosts are disconnected...

 

Anyone who can assist me?

Problème de clavier Azerty dans la console de navigateur sous vsphère web client

$
0
0

Bonjour,

Je suis débutant dans la virtualisation avec VMware

J'ai installé Esxi 6.5 que je manage avec vsphère web client.

A partir du  vsphère web client j'ai installé un VM debian

Mon problème est que je n'arrive pas à faire passer mon clavier en AZERTY dans la console de navigateur(Chrome) il reste bloqué après plusieurs manipulation en QWERTY.

Merci de m'aider

installing vmware horizon client on linux ubuntu 14.6 lts

$
0
0

I'm having trouble running vmware client on my home linux ubuntu 14.6 lts system to log into work.

After quite some trouble I discovered I had to use the command line to install VMware-Horizon-Client-4.7.0-7395152.x64.bundle

Once this was done successfully, see log below, I did not see VMware horizon client appear anywhere on my "search computer".

 

I found this in /usr/bin

joe@joeslinux:/$ cd usr/bin

joe@joeslinux:/usr/bin$ ls -al vm*

-rwxr-xr-x 1 root root     31216 Nov 21  2016 vmstat

-rwxr-xr-x 1 root root     10680 Jul  6  2017 vmwarectrl

-rwxr-xr-x 1 root root   5998664 Mar 26 19:12 vmware-flash-projector

lrwxrwxrwx 1 root root        56 Mar 26 19:12 vmware-installer -> /usr/lib/vmware-installer-horizon/2.1.0/vmware-installer

-rwxr-xr-x 1 root root 134894307 Mar 26 19:12 vmware-remotemks

-rwxr-xr-x 1 root root  26049060 Mar 26 19:12 vmware-remotemks-container

lrwxrwxrwx 1 root root        45 Mar 26 19:12 vmware-usbarbitrator -> /usr/lib/vmware/view/usb/vmware-usbarbitrator

-rwxr-xr-x 1 root root      5258 Mar 26 19:12 vmware-view

-rwxr-xr-x 1 root root      6700 Mar 26 19:12 vmware-view-log-collector

-rwxr-xr-x 1 root root      8296 Mar 26 19:12 vmware-view-usbdloader

 

which is the executable? the one I click on from the desktop to start a session to connect to my remote computer? Are there no step by step instructions? Or did I miss them?

 

joe@joeslinux:~/Downloads$ sudo ./VMware-Horizon-Client-4.7.0-7395152.x64.bundle

[sudo] password for joe:

Extracting VMware Installer...done.

You must accept the VMware Horizon Client End User License Agreement

to continue.  Press Enter to proceed.

VMWARE END USER LICENSE AGREEMENT

...

Do you agree? [yes/no]: yes

 

Client Drive Redirection(The Client Drive Redirection component

enables folder redirection from your local computer to the remote

desktop.) [yes]: yes

 

Multimedia Redirection (MMR)(With multimedia redirection (MMR), the

multimedia stream is processed on the client system.) [yes]: yes

 

Smart Card(The Smart Card component enables Smart Card device

redirection from your local computer to the remote desktop.) [yes]: yes

 

Real-Time Audio-Video(The Real-Time Audio-Video component allows you

to use local computer's webcam or microphone on the remote desktop.)

[yes]: yes

 

VMware Horizon(R) Virtualization Pack for Skype for Business(VMware

Horizon(R) Virtualization Pack for Skype for Business enables Skype

for business on linux view client.) [yes]: yes

 

USB Redirection(The USB component enables USB device redirection from

your local computer to the remote desktop.) [yes]: yes

 

Virtual Printing(The Virtual Printing component allows you to use

local or network printers from a remote desktop without requiring that

additional print drivers be installed in the remote desktop.) [yes]: yes

 

Seamless Window(The Seamless Window component enables seamless window

feature for RDSH applications.) [yes]: yes

 

The product is ready to be installed:

    USB Redirection

    Virtual Printing

    Seamless Window

    Multimedia Redirection (MMR)

    Smart Card

    VMware Horizon(R) Virtualization Pack for Skype for Business

    Real-Time Audio-Video

    PCoIP

    Horizon Client

    Client Drive Redirection

Press Enter to begin installation or Ctrl-C to cancel.

 

Installing VMware Horizon Client 4.7.0

    Configuring...

[######################################################################] 100%

Installation was successful.

Register and start installed services(s) after installation(Select

yes, the Installer will create necessary entries in your system

autostart or generate a launching script, so that the installed

service(s) can be ready before the Horizon Client starts)[yes/no]: yes

 

Do you want to check your system compatibilities for Horizon Client,

this Scan will NOT collect any of your data?[yes/no]: yes

 

Scanning     libxml2.so.2

    Please wait

[######################################################################] 100%

VMware Horizon Client Drive Redirection

    Success

VMware Horizon Multimedia Redirection (MMR)

    Failed        libgstapp-0.10.so.0

    Failed        libgstbase-0.10.so.0

    Failed        libgstreamer-0.10.so.0

VMware Horizon Smart Card

    Success

VMware Horizon Real-Time Audio-Video

    Success

VMware Horizon(R) Virtualization Pack for Skype for Business

    Success

VMware Horizon PCoIP

    Success

VMware Horizon USB Redirection

    Success

VMware Horizon Virtual Printing

    Success

VMware Horizon Seamless Window

    Success

VMware Horizon Client

    Success

joe@joeslinux:~/Downloads$

Horizon View and MS SQL multiplex licenses

$
0
0

Anyone know if the linked clones themselves and the users are subject to multiplex licenses? I know the components ae Connection servers, composers, etc... but what about linked clones or users?

Using plink.exe in Powershell script returns "Unable to create scratch directory"

$
0
0

Hello,

I wrote this powercli script in order to update the HP Smart array P840 firmware and driver of my HP DL380 G9s. I am currently running ESXi 65U1 and vSAN 661.

I staged the files with another script so assume they are already on the hosts chomod'd and unzipped.

 

The VIB installation works just fine but when this part of the code runs I get an error stating: "unable to create scratch directory"

$cmd1 = @'

'/tmp/CP032780.vmexe --rewrite --force --silent --log-dir=/tmp'

'@

I also tried to stage the files in a datastore as opposed to root with the same message being returned:

$cmd1 = @'

'/vmfs/volumes/datastore1 (5)/files/CP032780/CP032780.vmexe' --inventory --log-dir=/tmp

'@

 

This is the command output. The ./_hp_scexe_info does not exist anywhere. I'm presuming the command can't write to either /tmp or /vmfs/...

Capture.PNG

Here is a detailed ls of both directories.

post 2.PNG

permissions for the exe

-rwxr-xr-x    1 root     root         27408 Jan 30 19:25 CP032780.vmexe

-rw-r--r--    1 root     root      12460831 Jan 30 19:25 CP032780.vmfile

-rw-r--r--    1 root     root        370802 Jan 30 19:25 CP032780.xml

 

I forgot to mention that either command works in an SSH session.

 

You can see the entire script here, in my github page.

https://github.com/Coolguydoesnotlookatexplosions/vmware-utils/blob/master/Executeremotecommands.ps1

 

LucD tagging as i have seen him post some on plink.

I can not add NAS to my EXSi

$
0
0

Hello everyone, when I try to add a NAS unit through vSphere (it does not appear in the NFS option) I thought it was the version of this and install 4.0, 5.5 and 6.0 and even then it does not work or via web does not let me , I already have NFS service enabled on my NAS, try adding a storage adapter and still not. Someone knows how this can be resolved or if this action can be carried out by CLI. Thank you.

 

Mensaje editado por: Anderson Martinez Virviescas


Question on scope of Inputs in scriptable tasks

$
0
0

Hi all, I have a blueprint with a vm that passes * properties and I successfullty get my custom properties in the payload. I found on the internet a script that has a function that will iterate, using recursion, through the payload and get the key/value pairs. I am trying to figure out a good way to set an attribute 'attPropertyArray', which is of type proerties, to the custom properties I have. All the custom properties (3) start with prd and are type string.

Below is the script. It DOES work if I use regex to look for, in the funciton, each custom property name by name, set an attribute to that value (string), then at the end put each of those attribute values into my properties attribute attPropertyArray. So it SEEMS that those attributes are accessible inside the function as it recurses.

The DOES NOT WORK part, where I am trying to populate the attribute of type properties inside the function as it recurses gives an error:
item: 'setPropReservationPolicyID/item1', state: 'failed', business state: 'null', exception: 'TypeError: Cannot call method "put" of null (Workflow:setPropReservationPolicyID / Props from Payload (item1)#25)'
workflow: 'setPropReservationPolicyID' (5223234e-0af0-470c-8ea6-dd490265596b)

So, am I missing something obvious?

I have verified that the 'does not work' part DOES match and has the correct key/value

[2018-06-08 08:01:11.102] [I] REGEX MATCH:prdDatacenterLocation: CTX
[2018-06-08 08:01:11.104] [I] Variable Set to: CTX
[2018-06-08 08:01:11.107] [I] REGEX MATCH:prdProdOrNonProd: Production
[2018-06-08 08:01:11.110] [I] Variable Set to: Production
[2018-06-08 08:01:11.113] [I] REGEX MATCH:prdVMRole: Epic
[2018-06-08 08:01:11.116] [I] Variable Set to: Epic

FULL SCRIPT
-------------------------------------------------------------------------

if(payload != null) {
    var sortKeys = payload.keys.sort()
    sortKeys.forEach(function(key){ //foreach element in the array
        logProperties(key, payload.get(key), "");
    });
} else {
    System.debug("Payload is null");
}

attPropertyArray = new Properties();

function logProperties(keyName, keyValue, keyParent) {
    var keyValueType = System.getObjectType(keyValue);
    if(keyValueType == "Properties") {
        var sortKeys = keyValue.keys.sort()
        sortKeys.forEach(function(k){
            logProperties(k, keyValue.get(k), keyParent+keyName+".");
        });
    } else {
        if(keyValue == "") {
            keyValue = "null";
        }
        /* DOES NOT WORK
        var expr = /prd/;
        if(keyName.match(expr)) {
            attPropertyArray.put(keyName,keyValue);        
        }
        */
        var expr = /prdVMRole/;
        if(keyName.match(expr)) {
              //System.log(keyName + ': ' + keyValue);
            prdVMRole = keyValue;        
            System.log("Variable Set to: " + prdVMRole);        
        }
        var expr = /prdDatacenterLocation/;
        if(keyName.match(expr)) {
              //System.log(keyName + ': ' + keyValue);
            prdDatacenterLocation = keyValue;        
            System.log("Variable Set to: " + prdDatacenterLocation);        
        }
        var expr = /prdProdOrNonProd/;
        if(keyName.match(expr)) {
              //System.log(keyName + ': ' + keyValue);
            prdProdOrNonProd = keyValue;
            System.log("Variable Set to: " + prdProdOrNonProd);        
        }                
        //System.debug(keyParent + keyName + ":"+keyValueType+": " +keyValue);
    }
}
attPropertyString = prdVMRolea + " " + prdDatacenterLocation + " " + prdProdOrNonProd
attPropertyArray.put("prdVMRole",prdVMRole);
attPropertyArray.put("prdDatacenterLocation",prdDatacenterLocation);
attPropertyArray.put("prdProdOrNonProd",prdProdOrNonProd);

vCenter HA Deployment Fails

$
0
0

I'm attempting to deploy a vCenter HA setup. We are running vCenter 6.5. I have created the replication network, validated that communication is possible on this network, and selected the basic setup. While the HA deployment is running, the 'Clone virtual machine' task fails with an error "An error occurred while communicating with the remote host." Has anyone run into this? I can't seem to find any information online.

 

Cloning a Centos machine

$
0
0

What is the best method of getting a clone image from a Linux (centos) machine from a ESXi 5.5 with vCenter environment?  The developer needs to test some codes from the production machine before performing the actual upgrade.

 

 

On version 4 of ESXi standalone, we attempted shutting the production machine down and downloaded the image.  Then uploaded the image with a different name but the OS didn't load up.  We read the issue was that the Centos OS expected the old mac address of the NIC to be the same.  We didn't proceed further back then.

 

 

 

Thanks,

TT

How to find Linked clone VMs

$
0
0

I need to find the VM's which are created by linked clones from vCloud Director. Is there any automate way to get these vms?

 

I need to do storage migration/replacement of 60TB Luns in a storage cluster but the vcenter is mapped to vcloud director.

The Org VMs which resides on this storage contains linked clone VM's. Here is the problem I can't directly do svmotion as linked clones will break. So i need to identify either the linked clone VM or the .vmdk file of parent VM.

If i do grep  vmdk file then chain of delta disks will be identified. so anyway to automate this process to do cat the vmdk files.

Or any best way to find the linked cloned vms or the parent vm which contains linked clones either from vcenter or from vCloud using powershell

How to display a scripting-object in workflow presentation?

$
0
0

In my workflow I would like to present to the user a list made up of a scipting-object from my plugin, lets call it "MyObject", by the object name.

 

At the moment, for the Presentation property of my Workflow:

  • I have created an Input variable of type "String",
  • set it to "Predefined list of answers"
    • bind it to an action that iterates through my list of MyObjects and puts the names of them into an Array. This Array of Strings is then presented to the user.

This works fine.

 

What I'd rather do is just pass the list of objects straight to Presentation. But when I set this up:

  • make an input variable of type "MyObject",
  • set it to "Predefined list of elements"
    • bind it to an action which returns an Array of "MyObject"

No list is presented to the user, only a clickable "Not Set" text that does nothing.

Although strangely when I run this Workflow in vSphere, a list is presented, but the list is presented as many "[object Object]"s.

 

How do I make my scriptable-object appear nicely (or at all) in the presentation dropdown without having to iterate through it to extract the names of them? (in both vRO and vSphere)

vmexe HP files execution with PowerCLI

$
0
0

At the end I'm submitting a new thread as I saw that old thread was not moved to the top after the update.

 

I created a script to upload the file CPxxxx.vmexe successfully to all involved ESXi hosts. Then I'm running this but it produces no result:

 

 

$vmhost = Get-VMHost xxxxxxxxxxxxxxxxxx    
# Login credentials to SSH each host. It will convert the string from secure to plain text for plink  
$user = Read-Host "ESXi Host SSH User"  
$rootpword = Read-Host "ESXi Host SSH Password" -AsSecureString  
$rootbstr = [System.Runtime.InteropServices.marshal]::SecureStringToBSTR($rootpword)  
$rootpword = [System.Runtime.InteropServices.marshal]::PtrToStringAuto($rootbstr)    
# The "echo y" command automatically accepts the key for plink.    echo y | C:\Users\xxxxxx\Documents\VI-Tools\powerCLI\tested\ESXi\plink.exe -ssh $vmhost -l $user -pw $rootpword exit | Out-Null    
#execute patching  
C:\Users\xxxxxx\Documents\VI-Tools\powerCLI\tested\ESXi\plink.exe -ssh $vmhost -l $user -pw $rootpword -batch "chmod +x /tmp/CP035395.vmexe"  
start-process "cmd.exe" "/c echo y | C:\Users\xxxxx\Documents\VI-Tools\powerCLI\tested\ESXi\plink.exe -ssh $vmhost -l $user -pw $rootpword -batch /tmp/CP035395.vmexe"    
sleep -Seconds 60    
$VMhost | Restart-VMHost -Confirm:$false | Out-Null 

 

the host gets rebooted but patch is not applied. Is there a way to successfully execute these kind of files with PowerCLI? Executing those commands from within a ssh session works fine.

esxi host upgrade

$
0
0

I have completed the upgrade of my vCenter server from windows server 2008 5.5 to an appliance version 6.5.0.14000-7515524.  So what is the best way to upgrade the hosts, use update manager, a CD, USB. Also what version of esxi server goes best with 6.5.0.14000-7515524 and I don't see it in the .iso for 6.5.0.14000-7515524


ESX-Host not responding to VC

$
0
0

Hi guys,

 

we had some issues, restarting and migrating vm's on one esx-host. So I tried starting the management agents, like described in KB1003490 (VMware Knowledge Base ).

 

/etc/init.d/hostd restart     seemed to work fine, but with

 

/etc/init.d/vpxa restart      I got following output (after a long time):

 

watchdog-vpxa: Terminating watchdog process with PID 35024

vpxa stopped.

 

So I thought the vpxa ist not running and tried to start with "/etc/init.d/vpxa start" , but esx says, that the service is running.

 

 

I tried to repeat the procedure, but the vpxa-restart hangs with following output:

 

/etc/init.d/vpxa restart

watchdog-vpxa: PID file /var/run/vmware/watchdog-vpxa.PID does not exist

watchdog-vpxa: Unable to terminate watchdog: No running watchdog process for vpxa

vpxa stopped.

 

 

It would be fine, if there would be a solution, without downtime, because there are still VMs running.

network core change

$
0
0

We are switching out all of our core switches this weekend (from cisco to HP). The current hosts have no redundancy basically one nic to a common switch. I have added a 4 port network card to each host (4) and pre-configured vSwitches (2 ports for mgmt, 2 for vm network, etc). The 10G iscsi ports & cables to the SAN will not be touched.

 

My question is when moving to the new core switch can I simply connect a new cable to a new vswitch vm network port - let it sync & then remove the current cable?

vCenter to manage 2 datacenters

$
0
0

Hello

 

We looking to stand up 2 datacenters with 5 node clusters (6.5) in each DC.

 

Looking to use vCenter HA with embedded PSC and have the active node in DC1 and passive (peer) node in DC2 with the witness in another location, with the ability to manage both clusters.

 

What are the networking requirements?

 

Can the mgt vLAN be on different subnets?  Can they be routable or does it need to be a stretched vLAN?

How about the HA network? can this be a routable vLAN or does does this need to be strectched vLAN?

 

Is there a best practice document?

 

Thanks

Migrate VMs from vCenter to another without downtime

$
0
0

Hello,

 

We are planning to prepare a new environment with new hardware (hosts & storage) and new vCenter server with latest version (also deploy NSX on this environment).

And we have an existing environment with old hardware and storage with a vcenter 6.0.

At the end of the new deployment we have to move the VMs from current vCenter to new One without any down time.

 

what is the configuration needed between the two vCenters, and how the migration should be applied ?

 

Please advise,

How to list symbolic links of a folder in ESXi?

$
0
0

Hi;

 

How to list symbolic links of a folder in ESXi?

 

Thanks

Viewing all 176483 articles
Browse latest View live


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