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

can not use revise method. (NSX-T JAVA SDK)

$
0
0

Hi. I am developing a tool to control gateway rule using java sdk.

 

I use revise method because I would like to re-order gateway rule, but It doesn't work.

 

my code is below.

 

ApiClient apiClient = getApiClient(firewallInfo);

Rules ruleService = apiClient.createStub(Rules.class);

String ruleId = fwRuleInfo.getAssignedRuleId();

String location = fwRuleInfo.getOrderLocation();

Rule rule = ruleService.get(DEFAULT_DOMAIN_ID, DEFAULT_POLICY_ID, ruleId);      

// bottom

ruleService.revise(DEFAULT_DOMAIN_ID, DEFAULT_POLICY_ID, ruleId, rule, null, RulesTypes.REVISE_OPERATION_BOTTOM);

 

// after

ruleService.revise(DEFAULT_DOMAIN_ID, DEFAULT_POLICY_ID, ruleId, rule, location, RulesTypes.REVISE_OPERATION_AFTER);

 

// before

ruleService.revise(DEFAULT_DOMAIN_ID, DEFAULT_POLICY_ID, ruleId, rule, location, RulesTypes.REVISE_OPERATION_BEFORE);

 

 

ErrorMessage is below.

 

com.vmware.vapi.std.errors.InvalidRequest: InvalidRequest (com.vmware.vapi.std.errors.invalid_request) => {

    messages = [],

    data = struct => {error_message=Method is not allowed, error_code=282, module_name=common-services},

    errorType = INVALID_REQUEST

}

at com.vmware.vapi.std.errors.InvalidRequest._newInstance2(InvalidRequest.java:194)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:498)

at com.vmware.vapi.internal.bindings.convert.impl.JavaClassStructConverter.createStructBinding(JavaClassStructConverter.java:220)

at com.vmware.vapi.internal.bindings.convert.impl.JavaClassStructConverter.fromValue(JavaClassStructConverter.java:78)

at com.vmware.vapi.internal.bindings.convert.impl.JavaClassStructConverter.fromValue(JavaClassStructConverter.java:32)

at com.vmware.vapi.internal.bindings.TypeConverterImpl$ValueToJavaVisitor.visit(TypeConverterImpl.java:346)

at com.vmware.vapi.bindings.type.ErrorType.accept(ErrorType.java:31)

at com.vmware.vapi.internal.bindings.TypeConverterImpl.convertToJava(TypeConverterImpl.java:688)

at com.vmware.vapi.internal.bindings.Stub.convert(Stub.java:417)

at com.vmware.vapi.internal.bindings.Stub.convertError(Stub.java:434)

at com.vmware.vapi.internal.bindings.Stub.access$300(Stub.java:57)

at com.vmware.vapi.internal.bindings.Stub$2.setResult(Stub.java:239)

at com.vmware.vapi.internal.bindings.Stub$2.setResult(Stub.java:230)

at com.vmware.vapi.internal.protocol.client.rest.DefaultRequestExecutorFactory$DefaultHttpResponseHandler.onResult(DefaultRequestExecutorFactory.java:86)

at com.vmware.vapi.vmc.client.authz.AuthzRefreshingRequestExecutorFactory$AuthzRefreshingRequestExecutor$AuthzRefreshingHttpResponseHandler.onResult(AuthzRefreshingRequestExecutorFactory.java:160)

at com.vmware.vapi.internal.protocol.client.rpc.http.ApacheClientRestTransport.execute(ApacheClientRestTransport.java:79)

at com.vmware.vapi.vmc.client.authz.AuthzRefreshingRequestExecutorFactory$AuthzRefreshingRequestExecutor.authorizeAndExecute(AuthzRefreshingRequestExecutorFactory.java:112)

at com.vmware.vapi.vmc.client.authz.AuthzRefreshingRequestExecutorFactory$AuthzRefreshingRequestExecutor.access$100(AuthzRefreshingRequestExecutorFactory.java:58)

at com.vmware.vapi.vmc.client.authz.AuthzRefreshingRequestExecutorFactory$AuthzRefreshingRequestExecutor$1.onComplete(AuthzRefreshingRequestExecutorFactory.java:98)

at com.vmware.vapi.vmc.client.authz.AuthzRefreshingRequestExecutorFactory$AuthzRefreshingRequestExecutor.refreshContext(AuthzRefreshingRequestExecutorFactory.java:188)

at com.vmware.vapi.vmc.client.authz.AuthzRefreshingRequestExecutorFactory$AuthzRefreshingRequestExecutor.refreshContextIfNeeded(AuthzRefreshingRequestExecutorFactory.java:171)

at com.vmware.vapi.vmc.client.authz.AuthzRefreshingRequestExecutorFactory$AuthzRefreshingRequestExecutor.execute(AuthzRefreshingRequestExecutorFactory.java:105)

at com.vmware.vapi.internal.protocol.client.rest.RestClientApiProvider.invoke(RestClientApiProvider.java:70)

at com.vmware.vapi.internal.bindings.Stub.invoke(Stub.java:225)

at com.vmware.vapi.internal.bindings.Stub.invoke(Stub.java:206)

at com.vmware.vapi.internal.bindings.Stub.invokeMethodAsync(Stub.java:170)

at com.vmware.vapi.internal.bindings.Stub.invokeMethod(Stub.java:138)

at com.vmware.nsx_policy.infra.domains.gateway_policies.RulesStub.revise(RulesStub.java:226)

at com.vmware.nsx_policy.infra.domains.gateway_policies.RulesStub.revise(RulesStub.java:213)


Re: Adding static route for second management interface

$
0
0

Can you check it please, with the old CLI esxcfg-route and give me the result?

esxcfg-route -d target_network_IP netmask default_gateway

vmware virtual machine exclusion from time machine on an iMac

$
0
0

As recommended I want to exclude my virtual machines from macOS Time machine backups.

 

Previously this seems to have worked but I have noticed that because I had renamed the virtual machine file names  Time Machine was backing them up and eating all of my system resources.

 

I have now put the new fiel names into the time machine using the standard GUI procedure but for some reason the names get changed automatically and there is nothing it would seem I can do to avoid this.

 

So the Virtual machine

     /Documents/Virtual Machines/Win 10 develop.vmwarevm

gets changed to:

     /Documents/Virtual Machines.localized/Win 10 develop.vmwarevm

 

This happens to all three  of my virtual machines.

 

When I look in time machine to check I can see the backups using the original names and even though OSX offers me the option to delete these backups nothing changes. They are always there.

 

Could somebody explain to me what is happening?

 

I fear it might be because I changed the file names to make the files more obvious to me which file is which version of windows.

 

TIA

-Paul-

Re: Переустановил ESXI поверх хранилища. Возможно ли восстановление ВМ?

$
0
0

Метаинформацию VMFS разбомбило свежей установкой. Таблицы размещения файлов больше нет.

Если диски у виртуалок были тонкие - то им полная хана.

Толстые же виртуальные диски лежат по физике подряд, цельным линейным куском - их начало можно поймать по сигнатурам партишен-тейбла и сигнатурам начала логических томов внутри виртуалок.

Их можно поймать сканированием, а потом выдернуть содержание линейным дампом фрагмента.

 

Короче, прогноз - не очень.

Re: Network Settings options greyed out in Fusion Pro 7.1.0

$
0
0

Sofware version: VMware Fusion Professional 11.5.0 (14634996)

 

I had the problem when reinstalling from fresh my Mac Pro with MacOS Mojave and restoring my profile.

Historically I have a vmnet4 host-only network for all my machines.

I noticed that the problem of Network Settings options greyed out is due to all the specific interfaces we create in addition to the default interfaces.

 

Here is the solution I did. I:

 

1) Manually deinstalled VMware Fusion VMware KB: Manually uninstalling VMware Fusion

2) Reinstalled VMware Fusion

3) Stopped VMware immediately

4) Killed all the different "vmnet" processes (like vmnet-bridge, vmnet-dhcpd, vmnet-natd, vmnet-netifup)

3) For an unknown reason (normally I erased all before reinstalling!!) my vmnet4 interface was declared with its directory and in the networking file presents in /Library/Preferences/VMware\ Fusion

4) Removed the vmnet4 directory

5) Edited networking and removed all the lines containing "answer VNET_4"

6) Restarted VMware Fusion

7) Recreated my vmnet4 interface (Possible! Network Settings is now not greyed!!)

 

Hope it can help!

Re: 15.5 Update Will Not Install

$
0
0

Hi,

 

I got the same issue during the installation of version 15.5. On the previous versions this was not a issue. Hopefully VMware fixes this in an upcoming release.

 

The issue is that every time I started the WS installer, it mentiones that due to a VC C++ redist update I needed to restart. After rebooting and trying again, every time the same error. The error during the WS install mentions VMware KB article KB55798.

 

I solved it by:

  • Installing the VC C++ 2015-2019 update, which can be found here.
  • Reboot
  • Start the WS 15.5 installer.

 

Happy upgrading!

 

Cheers, Daniel

Re: Please fix the installer!

$
0
0

Hey,

 

thanks for the investigation and the reply.

 

I'm using "Vipre Internet Security" since all those years too. It could be possible that it causes the issues with the Installer.

I will try and disable it next time before I update VMware and see if it solves the issues.

 

Thanks!

Re: Mac Catalina and Fusion Has Black Screen

$
0
0

VMware Fusion (10.1.6) never asks for Screen Recording permissions. There is no "+" button to add anything myself either. This is so frustrating.

 


Re: VSAN Product Specification

Re: Does VMWare converter support Windows Server 2019 as source officially?

$
0
0

No, it's not officially supported as of yet.

Re: vmware virtual machine exclusion from time machine on an iMac

$
0
0

Honestly, the best approach is to keep your VMs in a single directory and just exclude that entire directory from Time Machine. This is what I've been doing for years without issue.

Re: can not use revise method. (NSX-T JAVA SDK)

Re: vRA 7.3 - Change VirtualMachine.Disk0.StorageReservationPolicy with vRO

$
0
0
...or using PRE Approval stage to change custom properties related to resource allocation...

Solved: Failed to power on any virtual machine - Workstation 15.5 (Windows 10)

$
0
0

Hello

 

I just want to post this because I had this problem before, but I finally found the solution. If you still have this problem and haven't found a fix for it this might help you.

 

1. Make sure your firewall or anti-virus is off

2. Uninstall your anti-virus if the first doesn't help

3. Reinstall Windows if nothing else helps

 

For me VMware workstation was getting blocked by my Anti-virus software called "Avira".

 

More specifically this feature in Avira:

 

Hope this helps for any of you that still have this problem.

Re: Cloning a template from one vCenter to another in ELM

$
0
0

Expected result:

Clone task is created using template from vCenter1 for VM being created in vCenter 2

 

Actual result:

Clone task is created using a running VM as clone source in vCenter 2 for VM being created in vCenter 2


Re: VCAP Exam Vouchers

$
0
0

Seems you can’t receive direct twitter messages from anyone (privacy setting): @adamgudger can’t be messaged

Try to send me a message with your e-mail.

Re: VCAP Exam Vouchers

$
0
0

Hi Ted, please try again, should be sorted now

Re: Cloning a template from one vCenter to another in ELM

$
0
0

Does this mean you have VMs with the same DisplayName in vCenter1 and vCenter2?


If yes, use a Get-VM with the Server parameter pointing to vCenter1, to get the source in a variable (let's say $vm).

Then use that variable $vm on the VM parameter of the New-VM cmdlet.

 

I suspect that if you use Object By Name see about_obn), that it takes the VM in vCenter2.

Re: Cloning a template from one vCenter to another in ELM

$
0
0

No, they have different names. One is a template in vCenter1 and I use $TempSource = Get-Template -Name templatename -Location "SrcTemplates" -Server "vcenter1"

 

the resulting command acts like I’m using Get-VM on a VM in vCenter 2, with a completely separate name. I’m not even using -VM in the New-VM command which would be used to specify a VM to clone from.

Re: Cloning a template from one vCenter to another in ELM

$
0
0

Is this with the latest PowerCLI version?

In any case, you might be better off to open an SR, this sounds like a "feature".

Viewing all 229656 articles
Browse latest View live


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