Create http headers Base 64 encode mgpwd X-TEST PARM{base64encode(PARM[mgpwd])} MD5 Sum on password X-TEST PARM{base64encode(PARM[mgpwd])} Saml Saml attribute to send in personal id if you login with e-id or webtoken definision by ldap1 attirubute under Database settings... Continue Reading →
Expand vmdk in webclient could not complete task
When expand the vmdk from webclient, it breaks and error message could not complete. Then the VM gets invalid in the inventory Solution: See what datastore the vm resides Remove the invalid vm from inventory Browse the datastore that the invalid vm resides Add to inventory Power it on Works Power Down Expand the... Continue Reading →
Vsphere 6.7 Whats New small words
Full list: https://docs.vmware.com/en/VMware-vSphere/6.7/rn/vsphere-esxi-vcenter-server-67-release-notes.html The vSphere 6.7 release is the final release of vCenter Server for Windows In-Guest unmap with snapshots VMware is deprecating webplatform.js, which will be replaced with an improved way to push updates into partner plugin solutions without any lifecycle dependencies on vSphere Client SDK updates. If you have an existing plugin solution to the... Continue Reading →
Powercli Vsphere
Get VM list from a datstore Get-datastore | Where {$_.name -like '*DATASTORE01*'} | Get-VM Find snapshots Get-Snapshot -vm * -name “VEEAM BACKUP*” | Format-Table -property VM,Name Clear snapshots Get-Snapshot -vm * -name “VEEAM BACKUP*” | remove-snapshot List VM and What Datastore get-vmhost |get-datastore|%{$ds=$_; $ds.Extensiondata.Vm|%{$_|select @{n='vm name';e={(Get-View -property name -Id $_.toString()).name}},@{n='ds name';e={$ds.name}} }} List... Continue Reading →
Unable to live vmotion server betweenesxi hosts
/etc/vmware/vpx/vpxa.cfg stop vpxa on the host (/etc/init.d/vpxa stop) Replace the hostname with host management IP in the vpxa.cfg file. start vpxa service (/etc/init.d/vpxa start)
How to install PowerCli on Kali
curl https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add - Add source deb [arch=amd64] https://packages.microsoft.com/debian/stretch/prod stretch main sudo apt-get update sudo apt-get install -y powershell pwsh Install-Module -Name VMware.PowerCLI -Scope CurrentUser Update-Module VMware.PowerCLI
Space Reclaim in words
Thin Disks VM server Windows 50GB Disk C:\ Guest Zero in guest WILL fill the disk sdelete -z C:\ VMDK will be 50GB Guest will be 0GB Storage Will be 0GB IF it understand Zeroing To resolve VMDK size Storage Vmotion or vmkfstools -K /path/to/disk-name.vmdk https://kb.vmware.com/s/article/2004155 or the best soloution run in-guest UNMAP BUT Virtual... Continue Reading →
After migrating from 5.5 Windows to 6.5 Appliance you get Certificate error in Profile-Driven Storage.
This is not used after 6.0. You will see a warning in VirtualCeneter that you have a certificate warning. And if you go in to service you have a serivice that has a yellow warning. Because this is not used you can delete this one. ssh to vcenter Command> shell Shell access is granted to... Continue Reading →
Upgrade to 6.5 from 5.5 gets update manager unknown error
To resolve this I did patch 5.5 first, reboot and then I was able to upgrade.
The host returns esxupdate error code:12. cannot read or write to the database. check the update manager log files and esxupdate log files for more details.
When remmidate you get this error. I installed the patches that I can stage. Stuck on Next step: esxcli network firewall unload esxcli software vib install -v http://vum.se:9084/vum/repository/hostupdate/vmw/vib20/tools-light/VMware_locker_tools-light_6.5.0-1.33.7273056.vib [DatabaseIOError] Failed to create temporary DB dir: [Errno 28] No space left on device: '/locker/packages/var/db/locker/profiles.new' filename = /locker/packages/var/db/locker Please refer to the log file for more... Continue Reading →
Create USB bios bootble
geteltorito firmware.iso > firmware.img dd if=firmware.img of=/dev/sdb
Software Depo for HPE and Dell
Dell: https://vmwaredepot.dell.com/index.xml) HP: http://vibsdepot.hpe.com/getting_started.html#DepotContent http://vibsdepot.hpe.com/index.xml - latest HPE Value-Add components (for VUM) http://vibsdepot.hpe.com/hpe/<release date>/index.xml or http://vibsdepot.hpe.com/hpq/<release date>/index.xml - latest HPE Value-Add components for a specific release http://vibsdepot.hpe.com/index-drv.xml - latest HPE and 3rd party device drivers used in the HPE Custom Image (for VUM) http://vibsdepot.hpe.com/hpe/<release date>/index-drv.xml or http://vibsdepot.hpe.com/hpq/<release date>/index-drv.xml - latest HPE... Continue Reading →
The upgrade contains the following set of conflicting VIBs. When upgrading to 6.5
Scan the host with UpdateManager and look at the result: The upgrade contains the following set of conflicting VIBs QLogic_bootbank_scsi-qla2xxx_934.5.29.0-1OEM.500.0.0.472560 Emulex_bootbank_scsi-lpfc820_8.2.4.151.65-1OEM.500.0.0.472560 Emulex_bootbank_scsi-lpfc820_8.2.4.151.65-1OEM.500.0.0.472560 QLogic_bootbank_scsi-qla2xxx_934.5.29.0-1OEM.500.0.0.472560 Solution: esxcli software vib list | grep qla2 scsi-qla2xxx 934.5.29.0-1OEM.500.0.0.472560 QLogic VMwareCertified 2014-11-11 ~ # esxcli software vib remove -n scsi-qla2xxx Wait it take some time Removal Result Message: The update... Continue Reading →
Create certificate for MobilityGuard against LDAP (AD or LDS)
Begär klientcertifikat Det följande har vi gjort från en windowsmaskin, det går kanske att använda linux och firefox men det har vi inte testat. Men en windows-dator, surfa med internet explorer till: [http:///]http:///certsrv och logga in med det konto som MG ska använda. Välj följande: Request Certificate -> Advanced certificate request -> Create and submit a... Continue Reading →
Vsphere 6.5 Migration error. Replace a Process Level Token privilege to the user
Replace a Process Level Token privilege to the user Error when you do the prechecks https://technet.microsoft.com/en-us/library/dn221975.aspx Login with your Administrator account on the Windows machine. Go to Control Panel and open the Administrative Tools. Open Local Security Policy and expand Local Policies. Under User Rights Assignment, open the Replace a Process Level Token. Add service account name that is being used by the... Continue Reading →
Disable dnsmasq in ubuntu
Disable the systemd-resolved service and stop it: sudo systemctl disable systemd-resolved.service sudo service systemd-resolved stop Put the following line in the [main] section of your /etc/NetworkManager/NetworkManager.conf: dns=default Delete the symlink /etc/resolv.conf rm /etc/resolv.conf Restart network-manager sudo service network-manager restart
Patch or upgrade 5.5 get VIB VMware_bootbank_ehci-ehci-hcd_1.0-3vmw.550.3.95.4345813 requires xhci-xhci >= 1.0-3vmw.550.3.95, but the requirement cannot be satisfied within the ImageProfile
To resolve this issue, remove the xhci VIB file before upgrading the host. Connect to the affected ESXi host using an SSH session. For more information, see Using ESXi Shell in ESXi 5.x and 6.0 (SOL-2003). Delete the xhci VIB file by running this command: esxcli software vib remove --vibname xhci-xhci
Patch VMware ESXi hosts by command line without update manager for example.
Step 1. Download the latest patch bundle from link. Patches are cumulative. Each patch bundle (.zip archive) includes all the updates from prior patches. Step 2. Upload the patch zip to a datastore. Step 3. Enable SSH In the vSphere Web client start the SSH service and make a SSH session to the ESXi host... Continue Reading →
XFCE set google chrome as default browser even for evolution
gio mime x-scheme-handler/http google-chrome.desktop gio mime x-scheme-handler/https google-chrome.desktop
msg.snapshot.error-QUIESCING-ERROR” in vCenter Server
You get this when you clone a powered on vm. From: https://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=2069952 To resolve this issue, start the Windows Virtual Disk service: Log in to the Windows operating system as an Administrator. Click Start, type services.msc, and press Enter. Right-click the Virtual Disk service and click Start. If this does not resolve the issue, disable VMware snapshot provider in... Continue Reading →
Powercli 6.5 error with add-pssnapin VMware.VimAutomation.Cor
They have chnage the way to app snapin! Get-Module -Name VMware.VimAutomation.Core -ListAvailable | Import-Module #add-pssnapin VMware.VimAutomation.Core Error: add-pssnapin VMware.VimAutomation.Cor add-pssnapin : No snap-ins have been registered for Windows PowerShell version 3. At line:1 char:1 + add-pssnapin VMware.VimAutomation.Cor + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidArgument: (VMware.VimAutomation.Cor:String) [Add-PSSnapin], PSArgumentException + FullyQualifiedErrorId : AddPSSnapInRead,Microsoft.PowerShell.Commands.AddPSSnapinCommand
UpdateManager strange errors after migrate. interface com.vmware.vim.binding.integrity.baselinemanager is not visible from class loader
From: https://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=2147284 Cautions: The following is a destructive task. Ensure you have working backups and/or snapshots of the vCenter Server Appliance 6.5 before proceeding. Connect to vCenter Server Appliance 6.5 via SSH Run the shell command to switch to the BASH Shell:shell Stop the VMware Update Manager Service:service-control --stop vmware-updatemgr Run the following command... Continue Reading →
Error in Vsphere web Flash client. Cannot navigate to the desired location. Error details: An error occurred while activating extension vsphere.core.inventory.domainView. Invalid domain view id: vsphere.core.inventory.domainView
From: http://www.virtuallyghetto.com/2010/07/how-to-unregister-vcenter.html 1. Point your web browser to your vCenter server: https://VC-Server/mob and login. 2. Click on content: 3. Locate and click on ExtensionManager: 4. Click on the plugin you are interested in removing: 5. Record the plugin key id which will be used to remove the plugin: 6. Now, go back to previous page and at the... Continue Reading →
Virtual Center Appliance pre check failed Error: Source vCenter Server schema validation found an issue.
from the migration log: 2017-08-18 15:31:41.969Z| migration-assistant-5973321| E: ParsePreUpgradeOutput: Error: Failed to discover a system name that is compatible with both your VMware vCenter Server certificate and your VMware Single Sign-On certificate that can be used to migrate to a VMware vCenter Server Appliance with an embedded Platform Services Controller. 2017-08-18 15:31:41.969Z| migration-assistant-5973321| I: ParsePreUpgradeOutput:... Continue Reading →
Update failed Virtual Appliance when using proxy.
The proxy settings is only for http (in gui). You need to set this for https also. This is done from the cli. Enable ssh on the appliance ssh login with root com.vmware.appliance.version1.networking.proxy.set --protocol https --server 192.168.1.1 --port 8080
Virtualcenter precheck migration from 5.5 to 6.5. Source vCenter Server schema validation found an issue.
Felmeddelande med Precheck vid migrering: Error: Source vCenter Server schema validation found an issue. 1 [42000](50000) [Microsoft][SQL Server Native Client 10.0][SQL Server]ERROR ! Missing constraints: VPX_ENTITY_LAST_EVENT.FK_VPX_LAST_EVENT_EVENT; Testa först med detta sql script: alter table VPX_ENTITY_LAST_EVENT add constraint FK_VPX_LAST_EVENT_EVENT foreign key(LAST_EVENT_ID) references VPX_EVENT (EVENT_ID) on delete cascade Funkar inte detta måste följande göras: Please follow... Continue Reading →
Using esxtop to identify storage performance issues
Using esxtop to identify storage performance issues Details This article provides information about esxtop and latency statistics that can be used when troubleshooting performance issues with SAN-connected storage (Fibre Channel or iSCSI). Solution The interactive esxtop utility can be used to provide I/O metrics over various devices attached to a VMware ESX host. Configuring monitoring using esxtop To monitor... Continue Reading →
Vsphere 6.5 Update 1
Vcenter server must be in reversed lookup zon in dns. Or you will not able to login.