LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Virtualization and Cloud (https://www.linuxquestions.org/questions/linux-virtualization-and-cloud-90/)
-   -   How to make Xen and KVM templates (https://www.linuxquestions.org/questions/linux-virtualization-and-cloud-90/how-to-make-xen-and-kvm-templates-835198/)

vzxen 09-29-2010 10:05 AM

How to make Xen and KVM templates
 
I wanted to make a Xen Paravirtualization OS template.
How to make this ?
Also how to make KVM templates ?

I am using LVM for the DomUs in both KVM and Xen.
How does Stacklet.com make it ?

dyasny 09-30-2010 06:03 AM

a base OS image in r/o mode and a bunch of qcow2 snapshots from it attached to the VMs. Or you can clone the base image for every VM

vzxen 10-01-2010 01:30 AM

Thanks for the suggestion, but can you point me to some guides.
Actually how to go about this ?

vzxen 10-01-2010 11:57 PM

Does no one know how to make Xen and KVM Templates ?
I found this tutorial :
http://debaan.blogspot.com/2007/04/c...plate-for.html
Its very old. Is it right though ?

dyasny 10-03-2010 06:47 AM

I have never seen any guides, just read the qemu-img manpage -- all the information is there

vzxen 10-04-2010 03:11 AM

Quote:

Originally Posted by dyasny (Post 4116239)
I have never seen any guides, just read the qemu-img manpage -- all the information is there

qemu-img is for file images right ?
How is that related to making KVM / XEN OS templates

zaitsevs 11-09-2010 08:25 PM

Quote:

Originally Posted by vzxen (Post 4116949)
qemu-img is for file images right ?
How is that related to making KVM / XEN OS templates

It's directly related to making KVM templates. They're suggesting if you learn how to use the imaging tools(qemu-img), you will be able to create 'images' or existing templates of your running machines.

vzxen 11-09-2010 11:16 PM

Ok.
I have managed to make 1GB files and it works.
The problem is I am unable to resize some of the templates when I copy them to the new LVM of a new VPS.
If I copy the 1GB templates I made to a 10GB LVM I obviously have to resize the Partitions first and then the FileSystem.
This causes the MBR to corrupt in certain OS Templates like openSUSE.

Can anyone help me on that ???


All times are GMT -5. The time now is 12:32 PM.