Convirture
Contact Us
Online Store
Home
Products
  • Overview
  • ConVirt Open Source
  • ConVirt Enterprise
  • ConVirt Enterprise Cloud
  • Compare Products
  • Media Gallery
Solutions
  • Overview
  • Data Center Virtualization
  • Enterprise Cloud
  • QA & Test Lab
Resources
  • Datasheets
  • Downloads
  • Community
  • User Forums
  • Blog
  • Wiki
Support & Services
  • Overview
  • ConVirt Open Source
  • ConVirt Enterprise
  • ConVirt Enterprise Cloud
  • Compare Support Options
  • Professional Services
  • Certified Configurations
Company
  • About Us
  • Management Team
  • Press Releases
  • In the News
  • Blog
  • Partners
  • Media Resources
  • Join Us
  • Contact Us
Jaydeep | August 8, 2009
18 comments

Cloning a VM or using Gold image to provision VMs using ConVirt

"Can I clone a VM ?"

"I have spent time coming up with a perfect image (gold image), how can I use ConVirt to provision VMs from it ?"

As I heard quite a few similar queries, I thought it might be useful to have blog entry that explains it. Apart from some differences between VM Cloning and using a reference image, both boil down to having pre-cooked disk(s) that are ready for creating more VMs from it. It is assumed that the environment would use DHCP and other vm specific customizations would be carried out on first boot.

As ConVirt is built with very flexible provisioning scheme, it only takes few simple steps to achieve this.

1. Select an image from the image store that is similar to your reference disk.

e.g. Select a PV image if your disk contains a Xen PV image or select a Linux_CD_Install if you want to use HVM. We will select the Linux_CD_Install.

2. Use Create Like operation from the context menu after selecting the image. Give it a name say ‘Developer Desktop’

3. Now that you have an image, lets customize and associate it with the reference disk. For this:

  • Find the directory of the image under the image store. This would typically be /var/cache/convirt/image_store/image_name. In this case it would be /var/cache/convirt/image_store/Developer_Desktop
  • Copy the reference disk under this location. (Note: I have compressed it using gzip)
    e.g. cp /mnt/gold_images/dev_desktop.img.gz /var/cache/convirt/Developer_Desktop
    Note : If you are copying a disk from an existing Virtual Machine, make sure that it is shutdown so that the disk is in a consistent state.
  • Select the Developer Desktop image from ConVirt and select ‘Edit Settings’ (Fig 1)
  • In the dialog box, select the disk entry and double click it. It should popup the Disk Information dialog.
  • Select the "Clone from a reference Disk" option.
  • Enter the reference disk location. You can use the file selector to select the file. Now instead of using absolute path, it is recommended to use $IMAGE_STORE/$IMAGE/dev_desktop.img.gz
  • Use Disk Image as the Reference Disk Type.
  • Select appropriate format. – [.gz] in this case since the image is compressed using gzip.
  • Press OK.

If you have more disks repeat this step.

4. As we have selected the Linux_CD_Install image, we need couple of more adjustments.

  • Go to the Miscellaneous tab and change the boot parm to ‘c’. This way the VM will not try to boot from a CDROM. (Fig. 2)
  • Remove the cdrom disk from the disk list.
  • Make any other adjustments like memory, cpu etc.

5. Now that we have our own image, lets change the description to reflect that. Update title, author (in case something goes wrong, people know whom to catch :) ), and procedure specific to the image. You can select the image and choose Edit Description. (Fig. 3 and 4)

6. Thats it !!. You have your own image template that now you can provision for each Developer. Select the image and provision away.

Fig 1 : Specify Reference Disk Details

Disk Information: Specify reference disk, its type and format

Fig 2: Change the Boot Settings

Change Boot settings

Fig 3 : Change Description

Edit the description of the Image.

Fig 4 : New Description

Image with new description

Category: HOWTO's, Knowledge Base |

18 comments

  1. Lunnata dieta says:
    October 24, 2011 at 8:15 am

    Лунна диета…

    Това е една от най-ефикасните диети…

  2. Confluence: Network Ops says:
    October 24, 2011 at 10:39 am

    Virtual Linux Notes…

    Virtual Linux Notes Openvz Handy commands vzctl start, stop, create, enter (console) vzlist \a vzdump vzrestore Linux KVM Notes All you need to know about VMing with KVM………..

  3. Google Redirect Fix says:
    November 17, 2011 at 11:12 am

    Check this out…

    [...] that is the end of this article. Here you’ll find some sites that we think you’ll appreciate, just click the links over[...]……

  4. Merlin Linamen says:
    November 18, 2011 at 8:18 pm

    aboma…

    Hi KarenThank you very much for mention me in this post. I am very happy to win this prize and have already made my first activities at Blogengage. It is always fun to come and visit your great blog. I enjoy both your own posts and the posts of your ma…

  5. Error 1606 says:
    November 25, 2011 at 12:16 pm

    Visitor recommendations…

    [...]one of our visitors recently recommended the following website[...]……

  6. cool caravans says:
    December 4, 2011 at 7:17 pm

    Yesturdays work for tomorrow – a look at some examples…

    Noticed this example, via David McCormick on Twitter and believe it to be somewhat informative and too the point…

  7. best guest beds says:
    December 9, 2011 at 8:26 pm

    Het werk van Yesturdays voor morgen – een blik op sommige voorbeelden…

    Enkel opgemerkt dit voorbeeld, via jon McCormick Tjilpen en veronderstel het om te zijn zeer informatief en ook het punt…

  8. buy guest beds says:
    December 16, 2011 at 10:44 am

    Trabalho para o amanhã – um olhar de Yesturdays em alguns exemplos…

    Foi mostrado este exemplo, através de Megan halign sobre Twitter e acredite-o para ser extremamente informativo e demasiado o ponto…

  9. candida overgrowth says:
    December 18, 2011 at 9:47 pm

    Cloning a VM or using Gold image to provision VMs using ConVirt | The Convirture Blog…

    Advice for the day: If you have a headache, do what it says on the aspirin bottle: Take two, and keep away from children….

  10. facebook of sex. says:
    December 19, 2011 at 7:29 am

    mobile dating…

    I๏ฟฝll immediately grab your rss as I can’t in finding your e-mail subscription hyperlink or e-newsletter service. Do you’ve any? Please permit me recognise so that I may subscribe. Thanks….

  11. Olly says:
    December 29, 2011 at 11:16 am

    Het werk van Yesturdays voor morgen – een blik op sommige voorbeelden…

    Werd getoond dit voorbeeld, via jon Messer linkedin en geloof het om te zijn uiterst informatief en ook het punt…

  12. iPhone says:
    December 30, 2011 at 9:55 am

    Travail de Yesturdays pour le demain – un regard à quelques exemples…

    Noté cet exemple, par l’intermédiaire de arnold hardvalder dessus Journal de phase et croyez-le pour être extrêmement instructif et trop le point…

  13. Bryan Adams Konzerte 2012 says:
    December 30, 2011 at 11:27 am

    … [Trackback]…

    [...] Find More Informations here: convirture.com/blog/2009/knowledgebase/cloning-a-vm-or-using-gold-image-to-provision-vms-using-convirt/ [...]…

  14. young womens clothing says:
    January 10, 2012 at 2:01 pm

    Het werk van Yesturdays voor morgen – een blik op sommige voorbeelden…

    Werd getoond dit voorbeeld, via jon hardvalder Tjilpen en gevonden het om te zijn zeer informatief en ook het punt…

  15. reverse mortgages for seniors says:
    January 16, 2012 at 6:13 pm

    Sites we Like……

    [...] Every once in a while we choose blogs that we read. Listed below are the latest sites that we choose [...]……

  16. what is a reverse mortgage says:
    January 17, 2012 at 11:51 am

    Check this out…

    [...] that is the end of this article. Here you’ll find some sites that we think you’ll appreciate, just click the links over[...]……

  17. sexy videos says:
    January 17, 2012 at 6:18 pm

    … [Trackback]…

    [...] There you will find 69733 more Infos: convirture.com/blog/2009/knowledgebase/cloning-a-vm-or-using-gold-image-to-provision-vms-using-convirt/ [...]…

  18. tiu 1 says:
    January 19, 2012 at 5:43 am

    Great information…

    This is extraordinary. We checked out these tips please so we are staggered. We are attracted to this sort of options. So we appreciate all the insert, and treasure your precious time while in this. Please keep editing. They are unbelievably pricey dat…

  • Categories

    • Announcements (17)
    • General (29)
    • In the News (13)
    • Knowledge Base (2)
      • HOWTO's (2)
    • News (14)
  • Recent Tweets

    • Convirture + Canonical: A great combo for open source #virtualization JTGlobal Telecom uses #ConVirt and #Ubuntu http://t.co/r5yYsr4D 1 week ago
    • Interesting analysis of complexity and fragmentation cloud adoption will unleash on datacenters (via ITBusinessEdge): http://t.co/o38ZSXCl 3 weeks ago
    • Enterprises increasingly see the benefits of multi-vendor Virtual Environements. ITBusinessEdge talks about why - http://t.co/vtrxPBi8 2012-01-04
    • More updates...

    Posting tweet...

  • Follow us on Twitter
  • Links

    • Convirture
    • Downloads
    • FAQ
    • Forums
    • Twitter
    • Wiki
  • Meta

    • Log in
    • Entries RSS
    • Comments RSS
    • WordPress.org
  • Sitemap Home Products Solutions Resources Support & Services Company Blog

    © Convirture 2010. All rights reserved. The Convirture logo is a trademark of Conviture Corp.