Virtualizacion con XCP-NG y Xen Orchestra
=
Descripción
Prerequistos
Instalación
Configuración
1. Una accion
2. Segunda accion
Trucos
1. Comandos utiles
Listar maquinas virtuales
xe vm-list
xe vm-list | grep name-label | awk '{print $4}'
xe vm-list | grep ^uuid | awk '{print $5}'
Listar snapshots
xe snapshot-list
xe snapshot-list snapshot-off=vmuuid
Hacer snapshots
xe vm-snapshot vm=uuuiddd new-name-label=$nombre-$FECHA“ ;
Borrar snapshots
xe snapshot-uninstall uuid=uuuuudiidd force=true
Cambiar parametros de memoria
xe vm-memory-limits-set uuid=120513b6-68ec-c0eb-ba87-b4936bbbc66f static-min=64GiB dynamic-min=64GiB dynamic-max=64GiB static-max=64GiB
Cambiar el tamaño de un disco
xe vm-disk-list vm=“aruba3”
xe vdi-resize uuid=3eeb4ad4-0887-4354-8c6a-447da860bf1b disk-size=60GiB
https://support.citrix.com/article/CTX125405
2. Backups
Copiar un disco duro
*** esto lo probe y NO FUNCIONA
Busque el uuid del disco con el nombre de la maquina
xe vdi-list|grep -B3 cartagena
Identifique el LVM
lvscan|grep a466ae1b-80c7-4ef2-91a3-5c1ba1f6fc2f
Desactivelo
lvchange -ay <full /dev/VG_XenStorage path discovered above>
Extraigalo
sudo dd if=<full /dev/VG/Xenstorage path discovered above> | ssh <IP_OF_PROXMOX_SERVER> dd of=<LOCATION_ON_PROXMOX_THAT_HAS_ENOUGH_SPACE>/<NAME_OF_VDI_FILE>.vhdodd if='/dev/VG_XenStorage-0b3874ab-3f00-74cd-fbea-184856a046f2/VHD-ee30e038-10ff-405a-bdf3-3b94050329bf' of=/mnt/backup/cartagena.rawo comprimiendodd if='/dev/VG_XenStorage-0b3874ab-3f00-74cd-fbea-184856a046f2/VHD-ee30e038-10ff-405a-bdf3-3b94050329bf' | pbzip2 -p2 -c > /mnt/backup/cartagena.vhd.bz2 https://techblog.jeppson.org/2018/01/migrate-xenserver-proxmox/
Problemas
1. Si el instale_mrtg.sh no le funciona
-
Referencias
- Linea de comandos: https://docs.citrix.com/es-es/citrix-hypervisor/command-line-interface.html
- Backups manuales https://serverfault.com/questions/489184/export-xenserver-snapshot-as-file-via-console
- Comandos para snapshots https://docs.citrix.com/en-us/citrix-hypervisor/dr/snapshots.html
- Como entender el manejo de discos https://ndeepak.com/posts/2017-02-01-xsvdi/
FIN
Advertencia
Este documento es privado y es de u so exclusivo de sus autores y de SKINA TECH. Cualquier uso sin una autorización escrita es contra la ley de derechos de autor y de propiedad intelectual, y será motivo de una acción legal.
15-Marzo-2006 J.E.Gomez v1.0 Primera version