XenServer – Comandos úteis
Comandos, console…. prático, rápido, funcional…. mas se você não usa todo dia acaba esquecendo, apesar de saber que eles existem. Vou listar alguns comandos do XenServer, muito úteis, mas nem tanto utilizados.
— listar discos das vms
# xe vm-disk-list –multiple
— configurar pool para iniciar automaticamente
# xe pool-param-set uuid=uuid_pool other-config:auto_poweron=true
— configurar para vm iniciar automaticamente
# xe vm-param-set other-config:auto_poweron=true uuid=uuid_template
— Remover configuração de VM (neste caso inicialização automática)
# xe vm-param-remove param-key=auto_poweron param-name=other-config uuid=uuid_vm
— Exlcuir um template
# xe template-param-set other-config:default_template=false uuid=uuid_template
# xe template-param-set is-a-template=false uuid=uuid_template
# xe vm-destroy uuid=uuid_template
— Shutdown / Start / Export VM
xe vm-shutdown vm=nome_vm
xe vm-start vm=nome_vm
xe vm-export vm=nome_vm filename=/Caminho_arquivo.xva
— Resetar estado da vm
# xe vm-reset-powerstate uuid=<vm>
— Listar tarefas pendentes
# xe task-list
— Cancelar tarefa
# xe task-cancel uuid=<tarefa>
— Eliminar tarefas pendentes
# xe-toolstack restart
Xen realmente é um espetáculo. Aqui mudou tudo da água pro vinho.
Seus comandos ajudam muito na administração.
[]s