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

2010年4月21日 星期三

VM中用Crontab排程跑 ntpdate校時筆記

環境:CentOS5.5
方式:/etc/cron.hourly/ntpdate.sh
記錄檔:/var/log/cron ,及 mail 到 root …一到兩小時記錄一次 (!?)


環境:SLES10
方式:crontab -e,跑 /root/stdtime.sh
crontab -e 裡的 job
有錯會寄信到root
記錄檔:/var/log/messages

環境:SLES10
方式:/etc/cron.hourly/stdtime.sh
/etc/cron.hourly/stdtime.sh 中自訂 echo訊息做記錄....
/usr/sbin/ntpdate clock.stdtime.gov.tw
echo "update time hourly log $(date) " /root/ntpdate-hourly.log
記錄檔:mail 到 root 及自定的log


http://figaro.neo-info.net/?p=666

Cron 執行時通常都會透過 Mail 告訴使用者該排程的執行狀態,若是不想收到這些訊息時,則可以透過下列方式來完成:
1. 以該使用者身份登入後,執行 crontab -e
2. 在所有排程的最上端輸入一行描述
MAILTO=""
這樣便不會再收到相關的郵件訊息了



Host Power Management Causes Problems with Guest Timekeeping (Windows Hosts)

2010年2月5日 星期五

VMware server 防火牆要開的 port

主要目的為一台裝 VMware server (1.x版) 另一台client 只裝 console 連進去,分散 loading
預設 port 是 902

http://www.vmware.com/support/gsx3/doc/manage_portnum_gsx.html





http://www.electrictoolbox.com/vmware-server-console-connection-refused/



The error message we are looking at in this post is shown in the screenshot below, "Unable to connect to the remote host: Cannot connect to host x.y.z.a: Connection refused":
The reason for this error is likely to be caused by VMWare Server listening on a different port than the default (or that you got the IP address incorrect and are trying to connect to some other server!) By default, VMWare Server will listen on port 902, and VMWare Server Console will attempt to connect on port 902. However, it's possible that you or VMWare Server will have configured itself to listen on a different port number. This happened to me when I was setting up a VMWare Server and it offered to listen on port 904 instead.
To connect to VMWare Server using VMWare Server Console on a non-standard port, you simply add : followed by the port number after the "host name" setting as shown in the example screenshot below. In my example I have used the IP address 10.1.1.22 and the port 904, resulting in a host name of 10.1.1.22:904.



2010年2月1日 星期一

從 VMware ESXi Server 挖出 VMware Tools iso

http://communities.vmware.com/thread/213106

http://professionalvmware.com/2009/05/unsupported-console-and-ssh-on-esxi-4/


將 esxi 4 的 sshd 打開:

Unsupported Console and SSH on ESXi 4

This will likely not generate as much fanfare as it did for the 3.5 release of ESXi, however I can confirm that it does indeed still work in vSphere ESXi 4. This is the procedure I used to get it up and running on my “Lab” box.
  1. alt-f1 (Note: As pointed out below, you will not see your typing on this screen, just trust us, it is there).
  2. unsupported
  3. root pw
  4. vi /etc/inetd.conf
  5. delete the “#” from ssh
  6. services.sh restart
I’ve also poked around a bit, and found that while scp works, sftp does not. Also note that some commenters had to do the following to get this to work: ps aux |grep inetd (getting the PID) and then kill -HUP PID


自己的案例是找到
/vmfs/volumes/Hypervisor3/packages/4.0.0/vmtools/liinux.iso
copy 到 /vmfs/{掛給VM用的storage}

再用vSphere Client 開 VM ,掛上ISO 檔, copy 安裝到Guest機裡,解壓縮安裝

BloggerAds