Quantcast
Channel: VMware Communities: Message List
Viewing all 231440 articles
Browse latest View live

Re: import-module vmware.vimautomation.extensions fails to define Method: get_CreateDate'

$
0
0

Thanks for the reply!

yes it was me.

Below are the version I'm running

 

PS C:\Users\Administrator\Desktop> Get-Host | Select-Object Version

 

 

Version

-------

5.1.14409.1018

 

 

 

 

PS C:\Users\Administrator\Desktop> Get-PowerCLIVersion

WARNING: The cmdlet "Get-PowerCLIVersion" is deprecated. Please use the 'Get-Module' cmdlet instead.

 

 

PowerCLI Version

----------------

   VMware PowerCLI 11.5.0 build 14912921

---------------

Component Versions

---------------

   VMware Common PowerCLI Component 11.5 build 14898112

   VMware Cis Core PowerCLI Component PowerCLI Component 11.5 build 14898113

   VMware VimAutomation VICore Commands PowerCLI Component PowerCLI Component 11.5 build 14899560

 

 

 

 

 

 

PS C:\Users\Administrator\Desktop>


Not able to ping VM in different host. NSX-V

$
0
0

Hi,

I am not able to ping VM which are in two different hosts.

 

I have checked below things:-

 

VTEP IPs of both hosts are successfully communicating.

VMs in different vxlan segment and in same host are communicating properly.

VMs in same vxlan segment and in same host are communicating,

Both host are part of same transport zone

 

Trace results (for VM within a same vxlan and in different host ) are like this-

 

0 ---- injected -------vNic

1-----Received ------firewall

2-----Forwarded -----firewall

 

----packet drop----

 

 

What could be the reason. please help.

 

Regards

Re:Details of vRA vSphere VM placement logic

$
0
0

Hi ccnasaurabh1.


We had the same issue you are spesiying here, and we have solved it in a simlar matter,
Using the event broker to trigger to turn of DRS for a VM, after deployment.

vRA is rather dump when it comes to placement of VMs during deployment (Hint: Metro clusters) and also we are using guest operations during provisioning and if DRS moves a VM during provisioning this will fail. So we turn off the DRS during deployment, and set it to default after deployment.

Also, setting DRS to manual is not correct. The VM might still change ESX host during reboot(it will however not move it while running). See the code below and take notice of:
drsVmConfigSpec.info.enabled = false;        
Setting it to false, means DRS is disabled, NOT manual.


(You also need the Custom properties as explained allready in this thread:
VirtualMachine.Admin.ForceHost
VirtualMachine.Admin.HostSelectionPolicy: EXACT_MATCH
)

If you want to make your solution a litte bit more "secure". I can metion that we use Tags in vCenter/vm/StoragePods/ESX etc. And rules in the vCenter to enforce them. So when a VM is deployed in vRA the Tags will be assigned to the VM. The VM will then always run on the host/cluster/datastore we want. (EG: a user deploys to a Metro Cluster and Storage+Cluster will always be on the same site.)
 


Anyway, we use 2 events in Eventbroker like this:


1. Eventbroker event Machine provisioning/Event/CloneWorkflow.CloneMachine.EVENT.OnCloneMachineComplete
(Should be blockable!)

This must turn off DRS.

2. Eventbroker event Macine provisioning/Post/VMPSMasterWorkflow32.BuildingMachine

Set DRS to "default"


The actual code is like this: (you need to add the logic around finding the VM)


function VerifyDRSEnabled(ClusterName)
{
    var T = ClusterName.configurationEx;

    var x = T.drsConfig;

    if (x.enabled == true && x.enableVmBehaviorOverrides == true)
    {
        return true;
    }
    else
    {
        System.log (ClusterName.Name+" does not have DRS enabled (or allow overide per vm.");
        return false;
    }

}

function SetVMToManual(VM)
{
    var drsVmConfigSpec = new VcClusterDrsVmConfigSpec();
    drsVmConfigSpec.operation = VcArrayUpdateOperation.add;
    drsVmConfigSpec.info = new VcClusterDrsVmConfigInfo();
    drsVmConfigSpec.info.key = VM;
    drsVmConfigSpec.info.enabled = false;        
    drsVmConfigSpec.info.behavior = VcDrsBehavior.manual

    var VcClusterDrsVmConfigSpecArray = new Array() ;  
    VcClusterDrsVmConfigSpecArray.push(drsVmConfigSpec);      
    var clusterConfigSpec = new VcClusterConfigSpecEx();
    clusterConfigSpec.drsVmConfigSpec = VcClusterDrsVmConfigSpecArray

    System.log("Setting DRS setting for vm : " + VM.name + " on cluster " + Cluster.name+" to manual.");
    var task = Cluster.reconfigureComputeResource_Task(clusterConfigSpec, true);
    return task;

}
function SetVMToDefault(VM)
{
    var myVM = new VcManagedObjectReference();
    myVM.type = "VirtualMachine";
    myVM.value = VM.id;

    var drsVmConfigSpec = new VcClusterDrsVmConfigSpec();                      
    drsVmConfigSpec.operation = VcArrayUpdateOperation.remove;
    drsVmConfigSpec.removeKey = myVM;

    var ClusterDrsVmConfigSpecArray = new Array();  
    ClusterDrsVmConfigSpecArray.push(drsVmConfigSpec)
    var clusterConfigSpec = new VcClusterConfigSpecEx();
    clusterConfigSpec.drsVmConfigSpec = ClusterDrsVmConfigSpecArray
    
    System.log("Restoring defualt DRS setting for vm : " + VM.name + " on cluster " + Cluster.name);
    var task = Cluster.reconfigureComputeResource_Task(clusterConfigSpec, true);
    return task;
}

var VM =GetVMByUUID();

if (VM != null)
{
    // Get Cluster of VM.
    var Cluster = VM.runtime.host.parent;
    if (VerifyDRSEnabled(Cluster) == true)
    {
        if (State == true)
        {
            var Task = SetVMToManual(VM);
        }
        else
        {
            var Task = SetVMToDefault(VM);
        }
    }
}
    

Hope this can help you out.

Re: import-module vmware.vimautomation.extensions fails to define Method: get_CreateDate'

$
0
0

That vSphere version is definitely not supported anymore.
I'm not even sure if the Fling is intended to work with that vSphere version.

Nor do I know if the Fling is actively maintained at the moment, especially since most of the functionality in the Fling is now available in the VMware PowerCLI modules.

 

What specific functionality from the PowerCLI Extensions Fling are you looking for?

Re: Mac OS versions supported

Re:Automate firewall changes in NSX-T via VRA/VRO!

$
0
0

You are correct there is no plug in.  It seems all NSX-T interaction will be done via REST API.

There are a couple NSX-T  API videos on youtube that give good examples of how to hook in.

We are also going to start looking at this in the new year so please share anything you learn.

Re: ThinApp 5.2.5 and Java 1.8.172

$
0
0

if 64-bit java,

 

[BuildOptions]

LargeAddressAware=1

Re: Can't open disk with advanced transport mode(SAN)!

$
0
0

I have solved this issue, I set vmxspec="moref=vm-469".


Re: Windows 10 VDI with Ubuntu Pre-Installed

$
0
0

I've tried migrating that folder but whenever I've done it, the Ubuntu instance errors out when I log into a fresh vm and try to run it. At this point I think it's somehow tied to the machine itself and just can't be roamed. For the time being it looks like I'm gonna be stuck with dedicated vms.

Cannot power-on new VMs after Player install, "Module 'Snapshot' power on failed."

$
0
0

Hi,

I just installed the latest available Player, 15.5.1 build-15018445, and I get the following error when trying to create VMs - same with both Ubuntu and PopOS iso files:

 

"Error while powering on: Could not get snapshot information: Could not find the file.

Module 'Snapshot' power on failed.

Failed to start the virtual machine."

 

Thanks

Re: import-module vmware.vimautomation.extensions fails to define Method: get_CreateDate'

$
0
0

Hi,

 

I'm trying to use the instantClone feature.

 

but when I run it returns this error followed by bunch more of them..

 

Placing vmParent in suspended state...

Enable-InstantCloneVM : The 'Enable-InstantCloneVM' command was found in the module 'VMware.VimAutomation.Extensions',

but the module could not be loaded. For more information, run 'Import-Module VMware.VimAutomation.Extensions'.

At C:\Users\Administrator\Desktop\instantClone.ps1:67 char:17

+ $parentForkVM = Enable-InstantCloneVM -VM $parentVM -guestUser $guest ...

+                 ~~~~~~~~~~~~~~~~~~~~~

    + CategoryInfo          : ObjectNotFound: (Enable-InstantCloneVM:String) [], CommandNotFoundException

    + FullyQualifiedErrorId : CouldNotAutoloadMatchingModule

 

 

Press any key to spawn children ...

Spawning Child1

New-InstantCloneVM : The 'New-InstantCloneVM' command was found in the module 'VMware.VimAutomation.Extensions', but

the module could not be loaded. For more information, run 'Import-Module VMware.VimAutomation.Extensions'.

At C:\Users\Administrator\Desktop\instantClone.ps1:117 char:24

 

so I tried removing the alias for all of them then attempt to re-import the module then get the get_CreateDate error

remove-item alias:Enable-InstantCloneVM

...

Import-Module : Method 'get_CreateDate' in type

'VMware.VimAutomation.Extensions.InstantClone.Types.InstantCloneVirtualMachineImpl' from assembly

'VMware.VimAutomation.Extensions, Version=3.0.0.1649, Culture=neutral, PublicKeyToken=null' does not have an

 

 

you mentioned not supported vSphere..? I'm running 6.7.

what version would be supported? should I downgrade to 6.5?

 

thanks

Re: What is the difference between vRealize Automation and Terraform?

$
0
0


We are also in very early stages about replacing vRA with possible Terraform. But probably not in the same matter. 


As a solution we require the users (developers+Support) to have no understanding of IaaS, they only want their machines/databases etc with a touch of a button. Also we have no public cloud (AWS/Azure etc). Futher more we basically use vRA as a frontend for deploying and assigning IP's. (Everthing is done in vRO worfklows based on user selection in vRA)

 

The trouble we see ahead is vRA 8.0. It's the second time VMware breaks almost everything (vRA 6.x to 7.x was the first). We have spend alot of time developing vRO workflows witch needs to be redesigned. And vRA 7.x will go out of support in a little over a year. (This you really need to consider, if you you want to go with Terraform and vRA 7.x!)

So we are are looking into the following solutions at the moment:

1. Replace vRA with vCD and (possibly) Terraform (keep using vRO)
Much more expenisive solution, however this mean we can keep alot of the vRO workflows. We can use vCD as frontend and it's more flexible than vRA. Futhermore it should be able to give us addition features when it comes to vRO (RabbitMQ/vCD can trigger alot more events than vRA/EventBroker). It will also prove true multitenancy (not the "fake" one vRA has.)

2. Create everything again in vRA 8.0
Alot of work, and we have no idea what will happend with vRA 9.0, experience tells us it will not be compatible...)

3. Going with Foreman/Ansible
Loses alot of features, alot to redo, but cheaper.

4. Finding another product (Resolve, BMC, Hiro etc).

So far we have not decided, but we are doing PoC on Soltion #1 and #3.

Re: What is the difference between vRealize Automation and Terraform?

$
0
0

Just one point of correction to make:

 

And vRA 7.x will go out of support in a little over a year.

At this time, based on the Product Lifecycle Matrix document, vRA 7.6 will be supported until April of 2022.

Re: VCenter Start Error - Unable to start service rhttpproxy

$
0
0

Please check if port 80/443 is in use by other program as I see the rhttproxy service got access denied from the logs so this service do not have permission to access file under programdata\vmware or program files\vmware folders

2019-12-20T08:57:31.468-08:00 info rhttpproxy[01728] [Originator@6876 sub=Default] Vmacore::InitSSL: handshakeTimeoutUs = 20000000

2019-12-20T08:57:31.468-08:00 error rhttpproxy[01728] [Originator@6876 sub=Default] No ssl keystore file specified. Outgoing SSL connections may fail

2019-12-20T08:57:31.468-08:00 error rhttpproxy[01728] [Originator@6876 sub=Default] Application error: Access is denied.

 

netstat -anob |findstr 80

netstat -anob |findstr 443 should not give any pid as rhttpproxy is down..

 

if anything is using it, you need to identify the pid(except for 4 as that is system process)

for pid 4, try the kb VMware Knowledge Base  and VMware Knowledge Base

 

Thanks,

MS

How do I update a Snapshot?

$
0
0

I'm using version 15.5.1.  I have one Snapshot named "BaseLine" and from it I created 3 different courses and saved each "C-1", "C-2", "C-3". I've been making changes to the "C-3", but I can't update "C-3". It want's to create a "Snapshot 5" next to "C-3".


Re: import-module vmware.vimautomation.extensions fails to define Method: get_CreateDate'

$
0
0

No, my bad, I misread that you were using vSphere 5.1.

 

I would suggest to have a look at William's posts on Instant Cloning.

He even provided a module InstantClone for that in the PowerCLI Examples repository.

Re: How do I update a Snapshot?

$
0
0

All the changes you’ve made since you took the C3 snapshot are part of that configuration - that is the active VM state.

 

I would suggest reading up on the snapshot functionality before doing anything else: Taking Snapshots of Virtual Machines

Chrome 79 and VMware-CIP-Launcher.exe

$
0
0

I installed the VMware vServer Appliance and am starting to use the vSphere Client. This is managing VMware 6.7 U2. I had to initially install the vmware-cip-launcher.exe. Each time I go to the VMware vSphere sign-on page I get the notorious "Open VMware-cip-launcher.exe" pop-up. I have fixed this issue in FireFox and Internet Explorer. However, Chrome is not allowing it to work transparently. I have to give it permission each time I start the HTML5 page to run. I have searched all over the internet and within the VMware discussion groups. There are miscellaneous threads that address earlier versions of Chrome.

 

Is anybody familiar with this issue? I cannot believe that VMware has not found a solution to this. It appears to have been going on for more than five years. Thank you.

Basic Requirement to setup On Permises DataCenter

$
0
0

Hello,

 

I would like to implement the small new VMWare Virtual Environment (Private).

 

What are the basic requirement to buy ( Specific to VMware )? forget about physical harware's.

 

How that license it works( such as vCenter or Data Center, ESXi............)

 

Will it possible to share the PCI slot across the cluster within the VMWare vCenter ? I meant, one of the VM is connected with physical PCI slot. So when that VM moves to different ESXi within the cluster ESXi, what would happen ? will it be possible to share the all cluster nodes PCI cards within the cluster nodes ?

access control

Viewing all 231440 articles
Browse latest View live


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