[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-users] Deploying new VMs
On Sun, Dec 16, 2012 at 10:41 AM, Lloyd Dizon <thecarrionkind@xxxxxxxxx> wrote: Hi, Lloyd, Â ÂI don't use straight Xen anymore but I used to have a 1000 line script that managed large groups of machines (creating, deleting) etc. It was based around what I did in this tutorialÂhttp://grantmcwilliams.com/item/410-centos-5-virtual-machine-64-bit-installation-on-xenÂwhich is fairly easy to script. This is for a new installation. If you host the OS repo yourself inside of a Xen network so if your VMs are accessing it across the virtual network the install goes VERY fast.Â
However, another method I used in my script was to create "Golden Images" using the tutorial above along with some manual tweaking after it was installed. Then my script would make copies of the base disk image, and copies of the xen config changing the MAC address and whatever else needed to be changed using sed. Then it would start the VM up.Â
The bottleneck to method #1 is that it takes time to install. The bottleneck to method #2 is that it takes time to copy disk images. For 8GB OS images I used to give it about 10 minutes to be safe. If I started more than 4 at a time I'd get all kinds of blktap issues that would eventually require a reboot. Also using sparse disk images isÂdefinitelyÂworth your time if you're going to be cloning them. The tutorial shows you how to do that with dd.
I now use XCP and creating a new VM from scratch and booting it takes under 1 minute. Grant McWilliams http://grantmcwilliams.com/ Some people, when confronted with a problem, think "I know, I'll use Windows."Â Now they have two problems. _______________________________________________ Xen-users mailing list Xen-users@xxxxxxxxxxxxx http://lists.xen.org/xen-users
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |