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

Re: moving vm to a different datacenter

$
0
0

When I try this code in 6.0 I just get multiple errors.

 

$vmName = "MYVM"

$tgtDatastore = "TestSAN"

$tgtCluster = "GD SVRM"

$tgtPool = "Resources" - I notice i cannot define a resource pool for this DC.

 

 

$vm = Get-VM -Name $vmName

$ds = Get-Datastore -Name $tgtDatastore

$esx = Get-Cluster -Name $tgtCluster | Get-VMHost | Get-Random

$rp = Get-ResourcePool -Name $tgtPool

 

 

$spec = New-Object VMware.Vim.VirtualMachineRelocateSpec

$spec.Datastore = $ds.ExtensionData.MoRef

$spec.Host = $esx.ExtensionData.MoRef

$spec.Pool = $rp.ExtensionData.MoRef

$vm.ExtensionData.RelocateVM($spec,"defaultPriority")

 

 

Exception setting "Datastore": "Cannot convert the "System.Object[]" value of

type "System.Object[]" to type "VMware.Vim.ManagedObjectReference"."

At C:\movevm.ps1:12 char:1

+ $spec.Datastore = $ds.ExtensionData.MoRef

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

    + CategoryInfo          : NotSpecified: (:) [], SetValueInvocationExceptio

   n

    + FullyQualifiedErrorId : ExceptionWhenSetting

 

 

Exception setting "Pool": "Cannot convert the "System.Object[]" value of type

"System.Object[]" to type "VMware.Vim.ManagedObjectReference"."

At C:\movevm.ps1:14 char:1

+ $spec.Pool = $rp.ExtensionData.MoRef

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

    + CategoryInfo          : NotSpecified: (:) [], SetValueInvocationExceptio

   n

    + FullyQualifiedErrorId : ExceptionWhenSetting

 

 

Exception calling "RelocateVM" with "2" argument(s): "A specified parameter

was not correct: spec.location.datastore"

At C:\movevm.ps1:15 char:1

+ $vm.ExtensionData.RelocateVM($spec,"defaultPriority")

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

    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException

    + FullyQualifiedErrorId : VimException

 

 

Any help would be appreciated.


Re: Shared Folders - Windows 10 upgrade from 15.11.

$
0
0

Hi Cintos, I've used the key mentioned, "vmhgfs,RDPNP, LanmanWorkstation,web client". I could access the vmware folder but I had every time to wait some minutes that Windows loads them. I don't know why.

Re: Moved It or Copied It when accessing same VM from different OSs?

$
0
0

Hello,

 

You should select "Move".

 

The thing that happens when you select "Copied" is that the hardware of your VM gets a new set of ID's.

So for your operating system it is similar to changing the hardware, this will cause things like network addresses changing.

This is good when you have a copy as then you can start up 2 copies and access both of them from the network.

It is bad if you have a guest OS that is linked to the hardware such as Microsoft's OS's. Selecting copy might lead to having to re-activate the operating system.

 

As you want to use the same OS from within different host OS's, the normal action is "Move" as it doesn't change anything for your guest OS.

--

Wil

How to I disable storage DRS for a VM?

$
0
0

I see that you can do this at the storage cluster level, Virtual machine settings and select the VM, select disabled but the VM still does a storage vMotion the next day after. We have storage DRS set up with a manual and automated schedule. The automated schedule seems to override the disabled VM setting.

Re: AV 2.11 - Error deleting files from desktop / creating some type of files

$
0
0

That's good to hear. I tested out the svdriver.sys file and it fixed the issue but created more problems for me than it fixed. After replacing it I couldn't get the start menu, or settings app to work at all. Also couldn't right click any icons in the taskbar. Waiting for an update from support and keeping an eye on the vmware downloads to see when a new version shows up.

Re: Move-VM between datacenters on same vCenter

$
0
0

LucD I have similar errors. Can you help me solve my errors?

$vmName = "MYVM"

$tgtDatastore = "TestSAN"

$tgtCluster = "GD SVRM"

$tgtPool = "Resources"

 

 

$vm = Get-VM -Name $vmName

$ds = Get-Datastore -Name $tgtDatastore

$esx = Get-Cluster -Name $tgtCluster | Get-VMHost | Get-Random

$rp = Get-ResourcePool -Name $tgtPool

 

 

$spec = New-Object VMware.Vim.VirtualMachineRelocateSpec

$spec.Datastore = $ds.ExtensionData.MoRef

$spec.Host = $esx.ExtensionData.MoRef

$spec.Pool = $rp.ExtensionData.MoRef

$vm.ExtensionData.RelocateVM($spec,"defaultPriority")

 

 

Exception setting "Datastore": "Cannot convert the "System.Object[]" value of

type "System.Object[]" to type "VMware.Vim.ManagedObjectReference"."

At C:\movevm.ps1:12 char:1

+ $spec.Datastore = $ds.ExtensionData.MoRef

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

    + CategoryInfo          : NotSpecified: (:) [], SetValueInvocationExceptio

   n

    + FullyQualifiedErrorId : ExceptionWhenSetting

 

 

Exception setting "Pool": "Cannot convert the "System.Object[]" value of type

"System.Object[]" to type "VMware.Vim.ManagedObjectReference"."

At C:\movevm.ps1:14 char:1

+ $spec.Pool = $rp.ExtensionData.MoRef

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

    + CategoryInfo          : NotSpecified: (:) [], SetValueInvocationExceptio

   n

    + FullyQualifiedErrorId : ExceptionWhenSetting

 

 

Exception calling "RelocateVM" with "2" argument(s): "A specified parameter

was not correct: spec.location.datastore"

At C:\movevm.ps1:15 char:1

+ $vm.ExtensionData.RelocateVM($spec,"defaultPriority")

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

    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException

    + FullyQualifiedErrorId : VimException

 

 

I cant seem to get your code to work on any of my 3 hypervisors.

Re: datastore lost after adaptec firmwareupdate

$
0
0

Hi ThompsG,

 

Thanks for your reply.

I dot think I have done something with extends but I would not burn my hand for this.. like always in the IT... everything is only 99% sure

 

I'm also not sure if I was able to mount them persistently..last reboot they are again gone but I could mount them again without troubles. for the moment I'm more scared about not seeing the 4th disk at all

[root@lowpoweresxi:~] esxcli storage vmfs extent list

Volume Name     VMFS UUID                            Extent Number  Device Name           Partition

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

IntelSSDR1boot  5621369e-ce7f03a6-0c14-001e67c0eb6f              0  eui.afd9954900d00000          3

HitachiR6data   5636599a-ec393a50-e673-001e67c0eb6f              0  eui.b0655a3500d00000          1

SamsungR5data   564888b6-dad30975-b86a-001e67c0eb6f              0  eui.3069235000d00000          1

[root@lowpoweresxi:~]

 

I also checked with gparted bootCD.. the disk is there I see my 100G partition so it looks like only esx for some reason dont like it

 

logs:

https://drive.google.com/file/d/0Bz-WHVvmcmQeQWR1VVNnbEFXWXM/view?usp=sharing

 

I also tried with esx boot usb stick but this also show me only 3 disks +usbstick and my 2nd SSD datastore is not visible

Regards

ASD

Re: Migration of SUSE Linux VMs from HyperV to ESXi

$
0
0

vmware_conv_failure.png

vm doesnt boot up after the online conversion due to the above error...

 

I was trying the online migration, it actually picks up a new disk for the /boot/efi rather than creating a seperate partition on the boot-disk itself like in the source. is there a way to control this behavior ?


Re: New HTML Client SDK Fling!

$
0
0

HTML Client SDK Fling 5 is available today!

Go to the vSphere HTML5 Web Client Fling page, click on the drop down in the left and select  html-client-sdk-6.5.0-4450180.zip

 

The updated Getting Started PDF file is included in the .zip.

The release notes for Fling 5 are attached here.

Re: VMWare Fusion 6.0.6 and MacOS Sierra?

$
0
0

I can't even run the installer. Just get "Image not recognized" when running installer. Same for 6.0.6 and V8...

 

Guess I'll be switching to VirtualBox

Re: VMWare Fusion 6.0.6 and MacOS Sierra?

$
0
0

Oops. My bad. 8.5 installer re-download looks like it may be working. 6.0.6 still doesn't though...

Intended vSphere console screen blanking upon user connection

$
0
0

Hi!

 

Just curious whether there could a feature to blank the screen upon user connection? We're trying to figure out a way to support users privacy on Linux VDI similarly as it's done on Windows. Windows agent suppresses console screen when user has a session on.

 

Setting

RemoteDisplay.maxConnections = "0"

on .vmx files

 

removes the ability to use interactive console but what's going on the screen can be still easily captured even through api just by

 

https://vcenter.host.name/screen?id=MoRef_ID

 

Also any suggestion how to audit usage of such API?

 

This is moreover a question of being compliant with privacy regulations than an actual problem, but still, this should not be that easy. We only have a one set of administrator with global full privileges.

Re: VMWare Fusion 6.0.6 and MacOS Sierra?

$
0
0

I completely removed 6.0.6 and re-installed.  Same problem.  I then tried V 7.0, same problem.

 

I downloaded a free 30 day trial of 8.5, and it all works great. 

 

Looks like any version prior to 8 will not work on Sierra.....

Re: VMWare Fusion 6.0.6 and MacOS Sierra?

$
0
0

Thanks artmerk. Just saved me a couple of hrs... Now I need to work out if I'm prepared to fork out for the upgrade or head down the virtualbox route...

Custom (per-user) Desktop Icons on Linked Clones?

$
0
0

Is it possible to allow users to keep their desktop icons settings with linked clones? The base image has a set that overwrites whatever the users have added or whatever they delete when we re-compose.


Looking for any kind of documentation on the Ports tab/Networking in VCenter 4.1

$
0
0

vCenter 4.1/Inventory/Networking/Ports

 

So far,  there seems to be zero noise out there about 1) how to clear the stats to start fresh,  and 2) how to interpret the stats themselves.

 

Anyone know?

 

Thanks.

 

Gregg

vCenter Host Gateway

$
0
0

What is the minimum license required to assign a Hyper-V host using vCetner Host Gateway?  I cannot find anything in documentation saying it needs licensing, but it is requiring me to assign a license.

Re: vCenter Host Gateway

$
0
0

Hi cclos,

In my opinion all third-party hosts are treated as a regular ESXi hosts in terms of licensing.

 

hph,

Petko Minkov

Re: Cannot allocate more CPUs

$
0
0

I do see "Up to 8-way virtual SMP", but the license on the same configuration tab is "VMware vSphere 5 Enterprise Licensed for 2 physical CPUs (unlimited cores per CPU) ".

Re: Shared Folders - Windows 10 upgrade from 15.11.

$
0
0

Hi Steve, I have the snapshot for Windows 10 build 1607 so I made some tries but the problem that I have to wait minutes when open shared folders are present. I've checked these registry Keys:

HKEY_LOCAL_MACHINE\ SYSTEM\CurrentControlSet\Control\NetworkProvider\Order

The Key ProviderOrder is: "vmhgfs,RDPNP, LanmanWorkstation,webclient"

 

I've checked also this key:

HKEY_LOCAL_MACHINE\ SYSTEM\ControlSet001\Control\NetworkProvider

The key ProviderOrder is: "vmhgfs,RDPNP, LanmanWorkstation,webclient"

These Keys are correctly in this way, so I didn't modify them, because I've uninstalled and reinstalled vmware tools. So for now I've back to Windows 10 1511.

Thanks

Viewing all 217522 articles
Browse latest View live




Latest Images