XenServer/xcp-ng server upgrade

From Mana zināšanu grāmata
Revision as of 10:41, 16 April 2026 by Kaspars (talk | contribs) (1 revision imported)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

XCP-ng 7.5

Download xcp-ng.iso on virusstyle.lv server

cd /tmp
mount -o loop -t iso9660 xcp-ng.iso /mnt

 

Ejam uz direktoriju /var/www/html/xcp un izdzēšam visu saturu

Pārkopējam visu no /mnt direktorijas uz /var/www/html/xcp

 

ejam uz XCP-NG servera konsoli

xe host-list

 

xe host-call-plugin plugin=prepare_host_upgrade.py host-uuid=750d9176-6468-4a08-8647-77a64c09093e fn=testUrl args:url=http://<ip-address>/xcp/

The returned output must be true to continue.

Now tell the host to automatically boot to the ISO and upgrade itself on next reboot (using the UUID and URL from before):

xe host-call-plugin plugin=prepare_host_upgrade.py host-uuid=750d9176-6468-4a08-8647-77a64c09093e fn=main args:url=http://<ip-address>/xcp/

 

The output should also be true. It has created a temporary entry in the grub bootloader which will automatically load the upgrade ISO on the next boot. It then automatically runs the XCP-NG upgrade with no user intervention required. It will also backup your existing XenServer dom0 install to the secondary backup partition, just like the normal upgrade.

To start the process, just tell the host to reboot. It is best to watch the progress by using KVM if it’s available, but if not, it should proceed fine and boot into upgraded XCP-NG in 10 to 20 minutes.