Quantcast
Channel: VMware Communities : All Content - All Communities
Viewing all 180923 articles
Browse latest View live

Powercli script to Migrate VMs between two Vcenters

$
0
0

Hi can someone help to finish this script for me please

I have two Vcenters on vSAN and I want to migrate VMs between the two.

 

When I do it manually it works so I know the VMotion is working however when I try to script this I get the following error

 

CSV file

 

########SCRIPT to Migrate using a CSV file ####################

 

#Variables

$sourceVC = 'SourceVC'

#Passwords are stored in secure encrypted file

 

$destVC = 'DestinationVC'

#Passwords are stored in secure encrypted file

 

 

# Connect to the vCenter Servers

$sourceVCConn = Connect-VIServer -Server $sourceVC -Credential (Import-Clixml -Path E:\temp\password\existingVCadminpass.xml)

$destVCConn = Connect-VIServer -Server $destVC -Credential (Import-Clixml -Path E:\temp\password\newVCadminpass.xml)

 

 

#Import List of VMs to be migrated (cross VC migration no linked mode required )

$VMS =Import-Csv -Path E:\temp\password\migratevmlist.csv

 

 

$vm = Get-VM -Name $vms.name    -Server $sourceVCConn

$networkAdapter = Get-NetworkAdapter -VM $vm -Server $sourceVCConn

 

$destination = Get-VMHost -name $VMS.targethost -Server $destVCConn

$destinationPortGroup = Get-VirtualPortGroup -VirtualSwitch $VMS.targetswitchname -name $VMS.targetportgroup -VMHost $destination

$destinationDatastore = Get-Datastore -name $vms.targetdatastore -Server $destVCConn

 

#Migrate VM

Move-VM -VM $vm -Destination $destination -NetworkAdapter $networkAdapter -PortGroup $destinationPortGroup -Datastore $destinationDatastore

###############################################################################################################################

 

This is the error I get and it is triggered at the Move-vm statement

Move-VM : Cannot convert 'System.Object[]' to the type 'VMware.VimAutomation.ViCore.Types.V1.Inventory.VIContainer' required by parameter 'Destination'. Specified

method is not supported.

At line:23 char:30

+ Move-VM -VM $vm -Destination $destination -NetworkAdapter $networkAda ...

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

    + CategoryInfo          : InvalidArgument: (:) [Move-VM], ParameterBindingException

    + FullyQualifiedErrorId : CannotConvertArgument,VMware.VimAutomation.ViCore.Cmdlets.Commands.MoveVM

 

Can someone help me please


Order of linked vCenters?

$
0
0

We have 2 vCenters in different locations, a primary and failover. We created the failover first and now regardless of which one you log into, the failover vCenter shows at the top. Is there a way to reorder these so the primary shows at the top? I looked at the settings but didn't see much. Thanks in advance

UEM, AppVols, and Adobe Acrobat Reader DC

$
0
0

Hello,

 

I am currently using Windows 10 instant clones with the following,

 

UEM 9.6

App Volumes 2.15

Horizon Agent 7.7

Adobe Reader DC 19

 

I cannot get Adobe Reader to stop prompting to make it the default program. This happens every time I open a PDF in the same session.

 

 

I am applying the following registry settings

====================================================================

[HKEY_CURRENT_USER\Software\Adobe\Acrobat Reader\DC\AVAlert\cCheckBox]

"iAppDoNotTakePDFOwnershipAtLaunchWin10"=dword:00000001

"iAppDoNotTakePDFOwnershipAtLaunch"=dword:00000001

====================================================================

 

 

 

I am using the UEM "Default Apps and FTAs" policy as well,

====================================================================

[IncludeRegistryTrees] 

HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FileExts 

HKCU\SOFTWARE\Microsoft\Windows\Shell\Associations

HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\ApplicationAssociationToasts

 

[IncludeIndividualRegistryValues]

HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\UserSignedIn

====================================================================

 

 

Any idea how to stop this prompt from coming up every time? I would not be so bad if this would go away in the session if you selected do not show again.

 

Thanks!

How to move the virtual machines built in vsphere to workstation

$
0
0

As the title shows,I want move a virtual machine built in vsphere to workstation,is there any way to achieve it?

Create USB Hypervisor

$
0
0

Hello;

 

We have an old IBM x3650 M2 with a built-in usb port for booting as a built-in hypervisor (esxi).

 

The question is; how to create the bootable USB ?

Nakivo Backup on separate (direct) lan connection

$
0
0

Hello everyone,

I would like ask you for an advise.

This is only about my home lab, so just simple one esxi host without vcenter.

I am also using Nakivo as backup solution for my lab thats running on QNAP.

So far they were both on same subnet running without issues.

This week I added a 10GB connection to both devices and have just direct cable connection between them.

From esxi and VMs on top of it I can reach the QNAP without problem (NFS, SMB, SSH).

Also from QNAP itself I can SSH to the ESXi host.

All this using the 10GB connection.

But when I add this host with a new IP to Nakivo It all behaves very weird.

I know Nakivo is using ports 902 and 443, but nothing is being blocked on esxi side.

The only message I receive in hostd logs on esxi is

 

Accepted password for user nakivo from 192.168.168.5

2019-04-09T20:15:32.268Z info hostd[2098603] [Originator@6876 sub=Vimsvc.ha-eventmgr opID=6eee63d1] Event 1208 : User nakivo@192.168.168.5 logged in as Java/1.8.0_181

2019-04-09T20:15:33.068Z info hostd[2098603] [Originator@6876 sub=Vimsvc.ha-eventmgr opID=6eee6459 user=nakivo] Event 1209 : User nakivo@192.168.168.5 logged out (login time: Tuesday, 09 April, 2019 08:12:27 PM, number of API invocations: 0, user agent: Java/1.8.0_181)

2019-04-09T20:15:36.182Z info hostd[2099204] [Originator@6876 sub=Solo.Vmomi opID=6eee636e user=nakivo] Activation [N5Vmomi10ActivationE:0x00000098031a9820] : Invoke done [retrieveContents] on [vmodl.query.PropertyCollector:ha-property-collector]

2019-04-09T20:15:36.182Z verbose hostd[2099204] [Originator@6876 sub=Solo.Vmomi opID=6eee636e user=nakivo] Arg specSet:

--> (vmodl.query.PropertyCollector.FilterSpec) [

-->    (vmodl.query.PropertyCollector.FilterSpec) {

-->       propSet = (vmodl.query.PropertyCollector.PropertySpec) [

-->          (vmodl.query.PropertyCollector.PropertySpec) {

-->             type = "vim.HostSystem",

-->             all = false,

-->             pathSet = (vmodl.PropertyPath) [

-->                "config"

-->             ]

-->          }

-->       ],

-->       objectSet = (vmodl.query.PropertyCollector.ObjectSpec) [

-->          (vmodl.query.PropertyCollector.ObjectSpec) {

-->             obj = 'vim.HostSystem:ha-host',

-->             skip = false,

-->             selectSet = <unset>

-->          }

-->       ],

-->       reportMissingObjectsInResults = <unset>

-->    }

--> ]

2019-04-09T20:15:36.182Z info hostd[2099204] [Originator@6876 sub=Solo.Vmomi opID=6eee636e user=nakivo] Throw vmodl.fault.SystemError

2019-04-09T20:15:36.182Z info hostd[2099204] [Originator@6876 sub=Solo.Vmomi opID=6eee636e user=nakivo] Result:

--> (vmodl.fault.SystemError) {

-->    faultCause = (vmodl.MethodFault) null,

-->    faultMessage = <unset>,

-->    reason = "System exception while trasmitting HTTP Response:

--> error id = 32

--> "

-->    msg = ""

--> }

2019-04-09T20:15:36.182Z error hostd[2099204] [Originator@6876 sub=Default opID=6eee636e user=nakivo] Failed to send response to the client: Data already transmitted; cannot reset.

I am sure there is no blocking, network is setup correctly.

The thing I am not sure about is how in general esxi works with 2 management interfaces.

 

I would be very glad if you have any suggestions.

 

BR,

Jan

Moving VMs to new separate port groups

$
0
0

I am currently running ESXI 6.7 and have 3 VMs all running on default VM Network port group which is attached to the default vSwitch0.

 

What I am wanting to do is create 2 additional port groups and vSwitches.  Each port group (3 total) would then have their own respective vSwitch (3 total).  I am able to enter the settings of one of the VMs and connect it to the new port group, but once the connection is complete and I boot the VM I am unable to access any of the network resources that I was able to before.  I was toying around with resolving the issue and ran the Windows network troubleshooting tool and it states that the default gateway is unreachable.  None of the network settings have been change on the Windows side of things.  The only changes that have taken place is the port group move.  I'm not overly familiar with VMware so it's possible the solution is right in front of me and I'm missing it.

Update VMware Tools gives vix error code = 21009 and log file for vm shows "Operation not permitted". Manual upgrade works.

$
0
0

Hello.

 

Complete sequence from vmware.log of that vm:

 

"

2019-04-08T09:21:22.659Z| vmx| I125: VigorTransportProcessClientPayload: opID=VmToolsActionResolver-applyOnMultiEntity-74272-ngc:70012224-a9-fd-71ae seq=136226: Receiving ToolsInstallManager.Install request.

2019-04-08T09:21:22.659Z| vmx| I125: TOOLS INSTALL entering BEGINNING state.

2019-04-08T09:21:22.661Z| vmx| I125: ToolsISO: Using cached imageName 'windows.iso' for 'windows9srv-64' (refreshCount=3, lastCount=3).

2019-04-08T09:21:22.661Z| vmx| I125: ToolsISO: Selected Tools ISO 'windows.iso' for 'windows9srv-64' guest.

2019-04-08T09:21:22.865Z| vmx| I125: TOOLS INSTALL Attempting auto-upgrade.

2019-04-08T09:21:22.865Z| vmx| I125: TOOLS installed legacy version 10309, available legacy version 10338

2019-04-08T09:21:22.865Z| vmx| I125: TOOLS manifest update status is 3

2019-04-08T09:21:22.865Z| vmx| I125: TOOLS can be autoupgraded.

2019-04-08T09:21:22.865Z| vmx| I125: TOOLS INSTALL Launching auto-upgrader with args "".

2019-04-08T09:21:22.865Z| vmx| I125: TOOLS INSTALL autoupgrading old tools.

2019-04-08T09:21:22.865Z| vmx| I125: ToolsISO: Using cached imageName 'windows.iso' for 'windows9srv-64' (refreshCount=3, lastCount=3).

2019-04-08T09:21:22.865Z| vmx| I125: ToolsISO: Selected Tools ISO 'windows.iso' for 'windows9srv-64' guest.

2019-04-08T09:21:22.882Z| vmx| I125: FILE:open error on /vmfs/volumes/56b9c7ea-ddd95974-e79b-0017a477042c/packages/vmtoolsRepo/vmtools/windows.iso: Operation not permitted

2019-04-08T09:21:22.882Z| vmx| I125: Cannot open ISO image with upgrader binaries.

2019-04-08T09:21:22.882Z| vmx| I125: TOOLS INSTALL entering IDLE state.

2019-04-08T09:21:22.882Z| vmx| A100: ConfigDB: Setting toolsInstallManager.updateCounter = "14"

2019-04-08T09:21:22.887Z| vmx| A100: ConfigDB: Setting extendedConfigFile = "PCSCHEMATICLIC.vmxf"

2019-04-08T09:21:22.887Z| vmx| A100: ConfigDB: Setting toolsInstallManager.lastInstallError = "21009"

2019-04-08T09:21:22.887Z| vmx| I125: Vix: [vigorCommands.c:993]: VigorToolsInstallManagerCommandCallback: toolInstallErr = 12

2019-04-08T09:21:22.887Z| vmx| I125: VigorTransport_ServerSendResponse opID=VmToolsActionResolver-applyOnMultiEntity-74272-ngc:70012224-a9-fd-71ae seq=136226: Completed ToolsInstallManager request with messages.

2019-04-08T09:21:22.887Z| vmx| A100: ConfigDB: Setting toolsInstallManager.lastInstallError = "21009"

2019-04-08T09:21:22.887Z| vmx| I125: TOOLS INSTALL entering IDLE state.

2019-04-08T09:21:22.887Z| vmx| A100: ConfigDB: Setting toolsInstallManager.updateCounter = "15"

2019-04-08T09:21:22.893Z| vmx| A100: ConfigDB: Setting extendedConfigFile = "PCSCHEMATICLIC.vmxf"

2019-04-08T09:21:22.893Z| vmx| A100: ConfigDB: Setting toolsInstallManager.lastInstallError = "21009"

"

 

I mounted the ISO file window.iso and ran setup64.exe. It removed the old and installs the new. Unfortunenately it didn't upgrade the NSX drives but uninstalled them so I had to re-install those two afterwards. I ran setup64.exe. Maybe I should have run VMwareToolsUpgrader but anyway: Why does the upgrade not work?

 

 

/Peter


VCP-DCV 6.5 Question

$
0
0

Hello, I completed the ICM VMware 6.5 course through VMware IT Academy community college offering the course. Used the voucher provided to pass the 2V0-620 Foundations exam. I proceeded to take the 2V0-622 exam and pass that as well.  I just wanted to confirm that I have satisfied the requirements to considered VCP-DCV certified? Thank you in advance!

 

-Jason

Configuration Element - Element Not Set

$
0
0

Hi, this one should not be that complicated...

 

I have a workflow that send an email at the end using the Library / Mail action.

I have the binnding done .. i.e for toAddress, smtpHost, smtpPort, etc...

However there are by default the username and password, etc.. that are also correctly bind.

 

The problem is that I created a configuration element with all the value that I need there... and it is linked on the workflow.

 

When I validate the workflow... sometimes I get an "Attribute <attribute_name> configuration not set" error.

 

Now,.. most of the time is the password one.. so these are optional and we do not use them, so they are not set to any value in the configuration element.

 

To have the validation to succeed, I go in the configuration element, edit it, double click in the value field, and I do not change anything, just save and closed.

Rerun the validation on the workflow and it passes.

 

However the same happen again shortly after when I try to rerun the workflow.

 

Is there a way to avoid having these validation to fail because of empty configuration elements?

 

Thanks for any inputs that could help.

unable to create a new virtual machine : no permission to perform this operation

$
0
0

Bonjour à tous,

 

Je viens de réinstaller sur un nouveau portable VMWare Player 15 sous Opensuse Tumbleweed. Outre que j'ai bien galéré comme d'habitude avec les fichiers vmmon et vmnet...

Je rencontre maintenant le problème cité en titre.

 

J'essaye de créer une nouvelle MV et j'obtiens ce message "unable to create a new virtual machine : no permission to perform this operation"...

ça arrive lorsque je termine soit la configuration de création d'une nouvelle MV soit lorsque j'essaye d'en créer une sans même mettre le système d'exploitation.

 

Avez-vous une idée ?

En vous remerciant

 

Philippe

Skype for Business Presence in Outlook in Instant Clones

$
0
0

Wondering if anyone has run into this in the Horizon world since this is the only place I've seen this. I am having a trouble with user presence from S4B populating in Outlook if Outlook is opened before Skype. But this is only in Horizon IC's that I see this. On my physical machines, if I open Skype after Outlook has been opened, presence populates within a few seconds of status being completed in the S4B client.

 

In instant clones I have to restart Outlook to get presence to populate. Might be better off posting to a MSFT forum, but posting here in case anyone else has seen this.

Can't Connect to ESXi Host

$
0
0

Two times now I have had trouble connecting to my ESXi 6.0.0 host.  Both times I could ping the server, but when I went to login using the ESXi client, not the web client, I would get the following error. Call "ServiceInstance.RetrieveContent" for object "ServiceInstance" on Server "X.X.X.X" failed.  The first time I did a hard reboot of the server and everything started working.  The next day I had the same issue.  I did some Googling and found that the management network might need to be rebooted.  I went to the console and was able to put in my username and password, but when I hit F2 it would not respond.  I went back to my computer to do a bit more research.  Then when I went back to the console it had the screen up where I could select reset management network.  I did that but I never got any dropped packets from the continuous ping that I had running to the server.  So I physically unplugged the network cables from the server.  I am now able to login to the server.  My continuous ping was still running and I had 2 dropped packets.  No changes have been made to this server or my network.  Hopefully, someone with a better understanding of how to read logs can look at the attached logs and give me some assistance as to what might be causing this issue.

New-VM fails and raises little help

$
0
0

Running 11.1 of PowerCLI

vCenter cluster is 6.5

I can create VMs with GUI without fail

I am connected to my vcenter server as evident from using $global:defaultviserver

My Get-Datastore and Get-VMHost return valid entries and the store I want to use and host I want to use

 

This is all you get when PowerCLI does not like your command or it fails:

 

New-VM : 4/24/2019 7:48:23 AM   New-VM

At D:\git\moe\build\testVMCreate.ps1:14 char:1

+ New-VM -Name $targetvm1 -Datastore $datastore -VMHost $VMHost -Locati ...

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

    + CategoryInfo          : NotSpecified: (:) [New-VM], VimException

    + FullyQualifiedErrorId : Core_BaseCmdlet_UnknownError,VMware.VimAutomation.ViCore.Cmdlets.Commands.NewVM

 

Not much to go on (hint PowerCLI developers, can we enhance this to give more feedback please?)

 

This is the command I am using with obvious variables

 

Get-Folder returns the location I have unfocused in command above

 

I have tried stripping out many arguments and parameters to get to basic command and nothing works.

 

The odd thing is the New-VM command documentation says -Template is required.  Can't I simply create a new VM from raw parameters?

Creating a new template requires a VM to create it from.  See the issue there?  New-VM needs a template, New-Template needs a VM, according to the docs.

vRealize Ops & Skyline

$
0
0

So after the latest update I added our two vRealize Operations clusters and noted that skyline reported the "memory is not correct" issue.

 

Looking today I no longer see that finding.  Further I do not see anywhere on the CSP that shows that I have such nodes, but my local agent shows all is well to those servers.

Is this expected, and if not how do I fix.

--

Jason


Can't connect to VPN

$
0
0

Hello all,

 

I recently began working as an IT Support specialist at one of my local schools. I've been given the task of troubleshooting and fixing the VPN server that is

based in ESXi. I can currently RDP into the server, and ping it by IP and hostname. But I'm unable to connect via VPN. I've been wondering if it was something

within the ESXi firewall.

 

 

Any help is greatly appreciated.

Thanks!

VMWare Desktop Pro hangs if I delete one snapshot while saving another one

$
0
0

VMWare Desktop Pro hangs if I delete one snapshot while saving another one

 

15.0.4 build-12990004

VMware® Workstation 15 Pro

Windows 10 x64

mySSHSession - Account Lockout

$
0
0

Was wondering if there is a way to limit the number of attemps mySSHSession tries when establishing a connection.  With the basic code below it will try multiple times and ends up locking the specified user account if an incorrect password is used.  SSH keys are an option but was just wondering about this specifically. 

var mySSHSession = new SSHSession(host,user); 

 

 

//sample command  var cmd = "uptime";

 

 

mySSHSession.connectWithPassword(myPassword);  

mySSHSession.executeCommand(cmd, true);

 

 

// add logging/debugging as needed   

var output = mySSHSession.getOutput(); 

var error = mySSHSession.getError(); 

var exitCode = mySSHSession.exitCode; 

 

     System.log(host + " - " + "Output: '" + output + "'"); 

     //System.log("Error: '" + error + "'");  

     //System.log("Exit code: '" + exitCode + "'"); 

     // close out the session:  

 

 

mySSHSession.disconnect();

ESXi 6.7 Performance graphs only show the last few minutes

$
0
0

This is my second install of ESXi 6.7 U1 and I'm seeing the same problem. The performance monitoring graph on the host and on individual VMs only shows the last few minutes, no matter how long it has been up. This is the case with all counters (CPU/Network/Memory/Disk). Screenshots attached. Running the free license. I have tried restarting hostd, running with/without NTP, and, obviously, a full re-install. Any suggestions?

Upgrade to Windows 10 RS5 breaks vCenter from using Guest OS Customization

$
0
0

Hello,

 

So I've been using vRA 7.3.1 to deliver Windows 10 x64 jump boxes to users.  I was upgrading the image and it forced me to RS5.  I didn't see any issues during the setup, however when I tried to create a new image it fails.  It appears to clone the machine, but when it goes to use the Guest OS customization in vCenter it never does it.  Never joins the domain or renames the guest OS.  I tried this also in vCenter directly and it didn't work either.  So I tried to create a new image starting with RS5 as the base image.  I just installed the OS and VM tools and that was it.  What I wind up seeing in vCenter is the machine cloning, then it shows the customization is started, then the machine power on.  If I wait about 30 minutes it seems then it actually does join the machine to the domain.  However when I was using vRA and even RS4 this process was maybe 15 min tops, even with the customization after the domain join, so something is wrong here.  I'm using vCenter 6.5 and I just patched it to update 2uf to see if that would make a difference, but it didn't.  I'm not sure if I'm missing something else, if I need to go to vCenter 6.7 or what, but this is blocking me from handing off this project to someone else.  Any help is appreciated.

Viewing all 180923 articles
Browse latest View live


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