Vmware 2.0 – Comandos para gerenciamento das VM´s
Segue abaixo algumas dicas de como iniciar, parar, suspender e listar máquinas virtuais criadas no vmware server 2.0
Através do comando vmrun podemos realizar diversas tarefas, segue abaixo algumas delas:
Listas máquinas virtuais cadastradas:
# vmrun -T server -h https://localhost/sdk -u root -p senha list
Rodando o comando acima, terá a seguinte saida:
Total running VMs: 6
[standard] winxp/Windows XP Professional.vmx
[standard] w2k3/Windows Server 2003 Standard Edition.vmx
[standard] desenv/desenv.vmx
[standard] monitor/monitor.vmx
[standard] Windows Render/Windows Render.vmx
[standard] MySQL5/MySQL5.vmx
Inicia uma VM parada:
# vmrun -T server -h https://localhost/sdk -u root -p senha start “[standard] MySQL5/MySQL5.vmx”
Para uma VM que está rodando:
# vmrun -T server -h https://localhost/sdk -u root -p senha stop “[standard] MySQL5/MySQL5.vmx”
Suspende uma VM que está rodando:
# vmrun -T server -h https://localhost/sdk -u root -p senha start “[standard] MySQL5/MySQL5.vmx”
POWER COMMANDS PARAMETERS DESCRIPTION
start Path to vmx file Start a VM [guinogui]
stop Path to vmx file Stop a VM [hardsoft]
reset Path to vmx file Reset a VM [hardsoft]
suspend Path to vmx file Suspend a VM [hardsoft]
pause Path to vmx file Pause a VM
unpause Path to vmx file Unpause a VM
Existem muitas outras opções neste comando que são muito interessantes.
Comentarios