Applicable to:
- SolusVM
Question
How to create a Xen PV custom template from Xen PV VM?
Answer
- Create XenPV VPS that will be used as a source for the template. Set the disk size as small as possible
- Stop the VPS
- Find path to the LVM image
# cat /home/xen/vmID/vmID.cfg | grep phy disk = ['phy:/dev/name_of_lvg/vmID_img,xvda1,w', 'phy:/dev/name_of_lvg/vmID_swap,xvda2,w']
replace vmID with actual VPS ID
- Mount the VPS image to the mount point:
# mount /dev/name_of_lvg/vmID_img /home/xen/vmID/mnt
- Change directory to the mount point:
# cd /home/xen/vmID/mnt
- Create a template file, e.g. for CentOS 7 + Plesk VPS:
# tar -cpvzf /root/centos-7-plesk-latest-x64.tar.gz .
Warning: the dot should not be missed at the end of the line above
- Add the template to the SolusVM
Comments
0 commentsPlease sign in to leave a comment.