This article is inspired and prepared on the forked Cloudmin Xen script updated for Debian 10. However, the following procedures to be followed as precuationary before executing the updated script, which is available in this post in below section.
PHASE-I Prepare Environment for XEN
INSTALLING THE XEN HYPERVISOR AND HOST/CONTROL DOMAIN (“DOM0”)
In this step we install the Xen Project hypervisor software package, and configure the Dom0 virtual machine by way of the Debian base operating system. Once all preliminary configuration is complete, we will reboot the computer and automatically boot into the Xen hypervisor/Dom0 virtual machine to explore the new system.
INSTALL XEN HYPERVISOR
If you need to add a non-root user, the sudo package, non-free firmware, a firewall, or other necessary packages, now is the time.
Use apt-get to update the Debian base operating system package index files, and upgrade all currently installed packages. As root (or using sudo) run the following command:
# apt-get update && apt-get upgrade
Next, use apt-get to install the Xen Project hypervisor meta-package. Run the following command as root, adjusting the architecture suffix to suit your hardware: