顯示具有 vmware 標籤的文章。 顯示所有文章
顯示具有 vmware 標籤的文章。 顯示所有文章

2019年12月19日 星期四

解決 ESXi Server 密碼遺忘的狀況

依照官方說法,若  ESXi Server 的 root 密碼忘了,是沒有辦法復原的,只能重灌系統,只是,重灌 ESXi 並不是解決問題的方法,重要的是裡頭的 guest 系統。
網路查到可以解決,主要動作如下:
  1. 若 ESXi Server  主機已開機,由於沒有 root 密碼,無法正常關機,只能強制重新啟動主機。因此,在強制重新啟動主機之前,若能先連到 guest OS 關機,記得要先處理這個動作。
  2. 在 ESXi Server 那台,使用 Live USB (Ubuntu or Linux Mint) 開機,依序的指令參考如下。
  3.  sudo fdisk -l
    主要確認 /sda5 的分割區。 
  4. sudo mkdir /mnt/sda5
  5. sudo mount /dev/sda5  /mnt/sda5
  6. sudo cp /mnt/sda5/state.tgz  ~/
  7. tar  zxf state.tgz
  8. tar zxf local.tgz
  9. vi etc/shadow
  10. 刪除 root 帳號後的密碼欄位
  11. rm -rf *.tgz
  12. tar zcf local.tgz etc/
  13. tar zcf state.tgz local.tgz
  14. sudo cp state.tgz /mnt/sda5
  15. sudo shutdown -r now
重新啟動後,就可以不用密碼登入,記得要設定一個好記的密碼。



2019年9月17日 星期二

指令模式下啟動 VirtualBox VMs


以下指令可以在指令模式下,先列出目前的 VirtualBox VMs 的項目有那些:
VBoxManage list vms

若要啟動其中某一個 vm 的話,可以用下方的方式:
VBoxManage startvm "Ubuntu Server" --type headless

ref:  https://www.techrepublic.com/article/how-to-run-virtualbox-virtual-machines-from-the-command-line/

2015年4月25日 星期六

Enable 3D HW acceleration on VMWare Workstation 10 on Ubuntu 14.04


ref: http://askubuntu.com/questions/537787/enable-3d-hw-acceleration-on-vmware-workstation-10-on-ubuntu-14-04

在 ubuntu 1404 版本裡,使用 vmware 時, 要將其中的系統啟用 3D 加速功能,如果只是勾選設定檔的 3D 加速,可能還是沒有作用, 必須手動指定。
參考前述連結, 使用 gedit ~/.vmware/preferences 編輯檔案, 加上 mks.gl.allowBlacklistedDrivers = TRUE 這一行, 再重新啟動 vm 裡的系統,就可以支援 3D 加速了。


2012年7月6日 星期五

在 ubuntu 12.04 安裝 vmware workstation 8.0.4 的問題

在 ubuntu 12.04 安裝 vmware workstation 8.0.4 ,會發生無法順利安裝的狀況,請依以下的動作處理。

  1. 首先,先執行「sudo apt-get install patch」,安裝 patch 套件,接著再執行以下動作。
  2. mkdir vmw_patch
  3. cd vmw_patch
  4. wget -O- http://weltall.heliohost.org/wordpress/wp-content/uploads/2012/01/vmware802fixlinux320.tar.gz
  5. tar xzf vmware802fixlinux320.tar.gz
  6. sed -i -e 's/8.0.2/8.0.4/g' patch-modules_3.2.0.sh
  7. ./patch-modules_3.2.0.sh 
  8. 再重新執行 vmware ,就可以正常囉~~


參考資料來源: http://askubuntu.com/questions/157529/how-do-i-get-vmware-workstation-8-0-4-working-on-ubuntu-12-04-64-bit



2011年6月16日 星期四

無法使用 firefox 連到 vmware server 開啟 guest os 的畫面

解決前個問題後,firefox 可以連線到 vmware server,很開心的新增主機,按了power on,要開啟 console 視窗時,又發生了問題!
vmware server 會要求我們安裝 vmware remote console套件,安裝後再重新啟動 firefox ,結果還是無法開啟 guest console畫面,顯示以下錯誤訊息:
Cannot access virtual machine console. The request timed out.

查詢資料後,發現似乎無解,但可以使用 VMware vSphere Client (簡稱 VI Client ) 來協助管理,vi client 原本是管理 esx server or esxi server 的軟體,也可以管理 vmware server。不過,問題還是持續出現,使用目前的 esx server 所附的 vi client ,是 4.x 版的,不能直接管理 vmware server,網路上有高手解決這個問題,參考網址:
http://www.linux.com/community/blogs/accessing-vmware-server-2-with-vsphere-client-the-unsupported-way.html

主要的動作是由 http://sites.google.com/site/andreabenini/support/2.5.rar?attredirects=0&d=1 這裡下載檔案,將檔案解壓縮後放在 vi client 的目錄裡,以 xp 系統為例,就是將解開的 2.5 資料夾直接 copy 放在 C:\Program Files\VMware\Infrastructure\Virtual Infrastructure Client 這個資料夾底下。

重新開啟 vi client 後,主機位址是 https://IP:8333,再輸入管理員權限密碼,就可以登入管理囉!

在 vmware server 裡,若只開啟 902, 8222, 8333 port 似乎不夠,再試試開啟 port 8307 。

CentOS 5.x 安裝 VMware Server 2.x 的問題

CentOS 5.x 安裝 VMware Server 2.x 版本,在使用 http://IP:8222 連線後,會發現網頁出不來,但連到 http://IP 很正常,不是 apache 的問題。測試不同的環境,在 Windows 裡使用 IE ,可以顯示登入、登入後的畫面。
後來在 Server 的 /var/log/vmware 裡的 log 檔案看到 SSL Handshake on client connection failed: SSL Exception 的錯誤訊息。有了方向,就表示快找到解決的方式了。
果然,Google 一下就找到 http://planetvm.net/blog/?p=1087 這篇。作者也測試了各種不同的可能性,原來應該是 ssl 連線的問題,另一位網友提供了解決的方式,如下:

Dayworker replied to the forum post and made a remark about how-to fix the issue on firefox 3.6. It turns out that SSL2 is disabled in Firefox 3.6, this turned out to be my problem on the default firefox 3.0.x setup as well… He referred to a post in a german VMware forum where shecki found out about this little tid bit.

So if you encounter this then try changing the following in about:config

security.enable.ssl2 from false into true 

For me it solved my firefox problem completely. Thanks guys for sharing this.


簡單來說,就是在 firefox 裡連到 about:config ,尋找 security.enable_ssl2 將這裡的值改為 true ,再連到 http://IP:8222 就可以使用囉!

2011年6月7日 星期二

vmware server

目前在 vmware player 環境裡的 centos ,這也是在一個 vm 環境,如果要安裝 vmware server 的系統做測試,在安裝時,有幾個問題要注意:
  1. 安裝 centos 時,不能安裝虛擬環境,例如 xen 就不能安裝。若安裝 xen 的話,在 vmware server 安裝的動作就會失敗。
  2. 當 centos 安裝完成後,不要安裝 vmware tools。若安裝 vmware tools 的話,在安裝 vmware server 完成後,還需要執行 vmware-config.pl 的這個動作,會顯示系統己安裝 xxx 模組的訊息,而造成 vmware-config.pl 的設定動作無法繼續執行。
  3. 連結時,使用 http://localhost:902 是 remote connect ,使用 http://localhost:8222 是 standard http connection 或 http://localhost:8333 是使用 secure http connection 方式連結管理。
  4. 由於 port 不同,所以,記得要在 system-config-security 增加上述的幾個 tcp port ,才能從其它台遠端連線管理。

以下是參考資料:
http://www.vmware.com/support/pubs/server_pubs.html
http://blog.pmail.idv.tw/index.php?load=read&id=511
http://blog.lyhdev.com/2009/09/vmware-server-201-linux.html