[VMware] How to install vCSA 6.5 & 6.7 on Workstation

step01. extract vCSA iso , into \vcsa\VMware-vCenter-Server-Appliance-6.7.0.12000-8832884_OVF10.ova

step02. Workstation open %\vcsa\VMware-vCenter-Server-Appliance-6.7.0.12000-8832884_OVF10.ova

step03.
匯入好之後暫不要開機

step04.
編輯 .vmx加入
——————————————————————————————-
guestinfo.cis.appliance.net.addr.family = “ipv4″
guestinfo.cis.appliance.net.mode = “static"
guestinfo.cis.appliance.net.pnid = “vcsa67.homelab.local"
guestinfo.cis.appliance.net.addr = “10.1.110.88″
guestinfo.cis.appliance.net.prefix = “24″
guestinfo.cis.appliance.net.gateway = “10.1.110.253″
guestinfo.cis.appliance.net.dns.servers = “10.1.130.1″
guestinfo.cis.appliance.root.passwd = “P@ssw0rd"
guestinfo.cis.appliance.ssh.enabled = “True"
guestinfo.cis.deployment.autoconfig = “True"
guestinfo.cis.appliance.ntp.servers = “time4.google.com"
guestinfo.cis.vmdir.password = “P@ssw0rd"
guestinfo.cis.vmdir.site-name = “default-site"
guestinfo.cis.vmdir.domain-name = “homelab.local"
——————————————————————————————-
PS: 發現以上有餵食失敗幾行 e.g.
guestinfo.cis.appliance.root.passwd = “P@ssw0rd"
guestinfo.cis.vmdir.password = “P@ssw0rd"
在開機後會發現密碼無法登入需重新reset

step05.Power-on vCSA

step06.Waiting os enter success

step07.Reset root password

step08.登入時看到畫面按下 ‘e’

step09.在 Linux開頭最後面按下 end 跳到後面 加入 rw init=/bin/bash

step10.按下 ‘F10’ boot

step11. // 建議作一下免後重置密碼無效
> ls -sh /var/log/audit
rm /var/log/audit/*.log

step12.
> whoami // check account is root
> passwd

step13.
umount /

step14.
reboot -f

step15.
confirm root account can login

step17.
https://10.1.110.88:5480 // start initiate

step18.
需調入 SSO domain , 最後即需一段時間即完成stage2

Done.


Reference:

  1. vmwarearena – How to Deploy vCenter Server appliance 6.5 on VMware Workstation 14
  2. enterprisedaddy – Deploy VCSA 6.5 on Workstation
  3. VMware KB: 2147144 – How to reset the lost or forgotten root password in vCenter Server Appliance 6.5

[VMware] import VDP 6.1.x error ‘The OVF package is signed with an invalid certificate ( 簽署 OVF 套件所用的憑證無效 )

在滙入 vDP 6.1.4時發生如下畫面錯誤訊息 " The OVF package is signed with an invalid certificate ( 簽署 OVF 套件所用的憑證無效 ) "

試解無效:

1.匯入"Publisher EMC Corporation"提供憑證也無解

2.匯入vCenter提供也是不行.

尋求Google大神總結有三個方式

vdp-error-invalid-certificate.jpg

Method#1. 改用 HTML5方式來匯入是最快方式

Method#2. 用7-zip 打開 .ova刪除裡頭的 .mf檔案

Method#3. 利用 ovftool工具轉換 , 載點
ovftool.exe –skipManifestCheck c:\tmp\vSphereDataProtection-6.1.5.ova c:\vdpfix.ova

[VMware] Cannot power-on VM ‘A general system error occurred: No connection could be made because the target machine actively refused it(發生一般系統錯誤:無法連線,因為目標電腦拒絕連線)

有人反應一台虛擬機器匯人後無法開機,會出現如下錯誤訊息

Solution:

~vCS~

services.msc > VMware vCenter workflow manager service > Start

~vCSA~
> service vmware-vpx-workflow restart

> shell.set –enabled true
> service-control –status vmware-vpx-workflow // check status
> service-control –start vmware-vpx-workflow

最後再試著Power-on VM , enjoy


Reference:

  1. VMware KB 2118319 : A general system error occurred: No connection could be made because the target machine actively refused it” error when powering on VMs on vCenter Server 6.0
  2. ISHM Blog : VM 在 vCenter 6 無法開機,發生 A general system error occurred: Connection refused

[VMware] VDP change backup transport method

VDP預設 transport method優先順序是先採用 1.Hot-Add 接著是 2.NBDSSL ,其次是 3.NBD

~Solution~

step01. vi /usr/local/avamarclient/var/avvcbimage.cmd

step02. add as below , 利用":"來區隔開
————————————————–
–transport=hotadd:nbd:nbdssl
————————————————–

step03. restart service
service avagent restart // VDP 5.x
service avagent-vmware restart  // VDP 6.x


Reference :
VMware KB: 2061083 – Changing the default and alternate transport methods in vSphere Data Protection (VDP)

[VERITAS] Backup Exec 2012 error ‘0xe00095a7 作業失敗,因為vCenter 或 ESX 伺服器報告虛擬機器的組態無效 ‘

客戶反應BE2012備份ESXi5.1 fail as below screen
BE-error-0xE00095A7.jpg

Solution#1
Restart the Vmware tools service on the Guest Virtual machine being backed up and try to run the Backup job

Solution#2
Disable the VMware Filesystem Sync Driver and Volume Shadow Copy Services Support on the affected Guest VM and try the job

step01. Start the VMware Tools Install/Upgrade from the vCenter/vSphere console/client
step02. interactive Tools Upgrade
step03. modify
step04. expand “VMware Device Drivers (VMware裝置驅動程式)"
step05. uninstall / cancel
(x) “Volume Shadow Copy Services Support(磁碟區陰影複製服務支援)"
(x)"Filesystem Sync Driver (文件系統同步驅動程式)" // <–這僅在ESX4.1前才會有

Solution#3 (若Media Server是虛擬機器的話)
1. Uninstall the Agent for VMWare Virtual Infrastructure(AVVI) option from Tools-> Install Options And License Keys On This Media Server
2. Reinstall the AVVI option from Tools-> Install Options And License Keys On This Media Server
3. Run the backup job again

 


Reference :

  1. VERITAS Article ID: 100002894
  2. VMware KB: 2087880

[VMware] How to Enable VMs eachother Clipboard Copy and Paste function

Solution#1 for A-VM with B-VM eachother

Modify 2 VMs .vmx add as below
————————————————————————
isolation.tools.copy.disable   FALSE
isolation.tools.paste.disable FALSE
————————————————————————

Solution#2 for All VMs of the Hosts

step01. login ESX/ESXi host

step02. cp /etc/vmware/config /etc/vmware/config.bak // before modify to backup it!

step03. vi /etc/vmware/config , Add these entries to the file
——————————————————————————————–
isolation.tools.copy.disable="FALSE"
isolation.tools.paste.disable="FALSE"
——————————————————————————————–

 


 

Reference :
VMware KB 1026437 – Clipboard Copy and Paste does not work in vSphere Client 4.1 and later

[VMware] Automatic Install VMware-Tools like unattached mode

若在作LAB是Linux environment時,除了template virtual machine  或 .ova/ovf 檔案匯入;安裝Linux後免不了要手動安裝vmware-tools.pl 一直按enter什麼都不想改是可以安裝完畢。但懶人法解開VMwareTools-x.x.x-xxxxxxx.tar.gz後執行

# ./vmware-install.pl -d default


 

Reference :
1. virtuallyGhetto – Automating silent installation of VMware Tools on Linux w/Automatic Kernel Modules

[VMware] Consolidation failed for disk node ‘scsi0:0’:5 (Input/output error)

當客戶反應說他們因儲存設備某一個LUN有問題;需立即將某台虛擬機器搬離這個有問題的LUN。但卻無法搬離開且有些怪異現象出現!

狀況查看:
1.  該台VM service運作正常。
2. 但用備份方式是都有錯誤狀況. e.g.
# use export to .ova/ovf > 失敗 (Failed to eport Virtual Machine: Unable to read data from the transport connection: The connection was closed.)
# use vmkfstools clone vmdk > 失敗 ( clone: 100% done.Failed to clone disk: Input/output error (327689).)
# use Backup (HPE VM explorer) > 失敗 (Failed: <VM/VM-000005-deltavmdk cannot be downloaded. ‘HTTP/1.1500 internal Server error’)
# use VMware Data Protect backup > 失敗 (整併磁碟節點 ‘scsi0:0’ 失敗:5 (input/output error).)
# 該VM瀏覽Datastore會發現大量 vm-000001.vmdk 增長到vm-000009.vmdk(快照檔案) ; 但由snapshot manager查看是無任何快照記錄.
# vMotion 搬移失敗.
# 指令 ‘esxcli storage core path stats get‘ 查看到僅有對應有問題的LUN,有所謂(Failed Read Operations: 74 / Failed Write Opterations: 2 )

由以上種種現象來看確實Storage volume有些狀況;但FibreChannel Switch & HBA是沒什麼問題.

最後解決客戶這問題僅能有OS level來處理;我則是用Acronis 11.7 offline backup all disk (ignore error才能成功) , then Create new VM and rexovery that image .

Done.

 

[VMware] Enable VMware vSphere Replication 6.0.x Appliance SSH service

step01. /usr/bin/enable-sshd.sh

step02. vi /etc/ssh/sshd_config // check “AllowGroups root"

step03. service sshd start // start ssh service

step04. chkconfig sshd on // on-deamon ssh service


Reference :
Connecting to VMware vSphere Replication 6.0.x Appliance (2112307)

[VMware] 執行VMware vSphere PowerCLI發生錯誤 ‘ 檔案無法載入,因為這個系統已停用指令碼執行 ‘

當在執行VMware vSphere PowerCLI 錯誤訊息 ‘ 檔案無法載入,因為這個系統已停用指令碼執行 ‘
因安全性原則無法執行載入..

workaround :

step1.以系統管理員身份執行 ‘ powershell ‘

step2.type as below command

$ Set-ExecutionPolicy RemoteSigned

or 

$ Set-ExecutionPolicy Bypass

or
$ Set-ExecutionPolicy Unrestricted // 沒有任何限制意謂著安全性....呃!小心服用

Reference:

1. http://asika.windspeaker.co/post/3500-powershell-remotesigned

2. https://dotblogs.com.tw/gelis/2010/10/23/18532

3. https://dotblogs.com.tw/sungnoone/2013/04/12/101523