vmware-guestd --cmd "vmx.set_option synctime 0 1"
tools.syncTime = "TRUE"
vmrun -T server -h 'https://localhost:8333/sdk' -u root -p 'secret' list vmrun -T server -h 'https://localhost:8333/sdk' -u root -p 'secret' start "[] /vmfs/server_centos5/CentOS5.vmx" vmrun -T server -h 'https://localhost:8333/sdk' -u root -p 'secret' stop "[] /vmfs/server_centos5/CentOS5.vmx"
vmware-mount -p maildata.vmdk 1 /tmp/t
vmware-mount: error while loading shared libraries: libfuse.so.2: cannot open shared object file: No such file or directory
表示需要額外安裝 FUSE, 安裝程序如下:
wget http://superb-west.dl.sourceforge.net/sourceforge/fuse/fuse-2.6.5.tar.gz tar -zxvf fuse-2.6.5.tar.gz cd fuse-2.6.5 ./configure make make install vi /etc/ld.so.conf.d/fuse.conf ---- /usr/local/lib ---- ldconfig
<ConfigRoot>
<ConfigEntry id="0000">
<objID>16</objID>
<vmxCfgPath>/vmfs/WebSrv/WebSrv.vmx</vmxCfgPath>
</ConfigEntry>
<ConfigEntry id="0001">
<objID>32</objID>
<vmxCfgPath>/vmfs/firewall/WebSrv.vmx</vmxCfgPath>
</ConfigEntry>
<ConfigRoot>
<ConfigEntry id="0000">
<objID>16</objID>
<vmxCfgPath>/vmfs/WebSrv/WebSrv.vmx</vmxCfgPath>
</ConfigEntry>
<ConfigEntry id="0001">
<objID>32</objID>
<vmxCfgPath>/vmfs/firewall/WebSrv.vmx</vmxCfgPath>
</ConfigEntry>
</ConfigRoot>[root@ag320-mail hostd]# cat vmAutoStart.xml
<ConfigRoot>
<AutoStartOrder>
<_length>2</_length>
<_type>vim.host.AutoStartManager.AutoPowerInfo[]</_type>
<e id="0">
<_type>vim.host.AutoStartManager.AutoPowerInfo</_type>
<key>
<_type>vim.VirtualMachine</_type>
<moid>32</moid>
</key>
<startAction>PowerOn</startAction>
<startDelay>-1</startDelay>
<startOrder>1</startOrder>
<stopAction>SystemDefault</stopAction>
<stopDelay>-1</stopDelay>
<waitForHeartbeat>systemDefault</waitForHeartbeat>
</e>
<e id="1">
<_type>vim.host.AutoStartManager.AutoPowerInfo</_type>
<key>
<_type>vim.VirtualMachine</_type>
<moid>16</moid>
</key>
<startAction>PowerOn</startAction>
<startDelay>-1</startDelay>
<startOrder>-1</startOrder>
<stopAction>SystemDefault</stopAction>
<stopDelay>-1</stopDelay>
<waitForHeartbeat>systemDefault</waitForHeartbeat>
</e>
</AutoStartOrder>
<SystemDefaults>
<_type>vim.host.AutoStartManager.SystemDefaults</_type>
<enabled>true</enabled>
<startDelay>120</startDelay>
<stopAction>PowerOff</stopAction>
<stopDelay>120</stopDelay>
<waitForHeartbeat>false</waitForHeartbeat>
</SystemDefaults>
:
<e id="1">
<_type>vim.host.AutoStartManager.AutoPowerInfo</_type>
<key>
<_type>vim.VirtualMachine</_type>
<moid>16</moid>
</key>
<startAction>None</startAction>
<startDelay>-1</startDelay>
<startOrder>-1</startOrder>
<stopAction>SystemDefault</stopAction>
<stopDelay>-1</stopDelay>
<waitForHeartbeat>systemDefault</waitForHeartbeat>
</e>
: