{"id":162,"date":"2009-05-29T12:33:09","date_gmt":"2009-05-29T11:33:09","guid":{"rendered":"http:\/\/simkin.org\/wordpress\/?p=162"},"modified":"2009-09-06T08:23:23","modified_gmt":"2009-09-06T07:23:23","slug":"esxi-cloning","status":"publish","type":"post","link":"http:\/\/simkin.org\/wordpress\/?p=162","title":{"rendered":"ESXi Cloning"},"content":{"rendered":"<p>ESXi is virtualisation for the enthusiast, the underpaid or tight-fisted. To stop you just installing at and having it all your own way it is limited in what it can do. The limits are generous except for the minor point about a lack of Telnet\/SSH support. This means no RCLI. This obviously also means that the power tweakers and tinkerers (like me) are stuck with GUI clicking.<\/p>\n<p>However, a master of the art named Andrew Bradley explains in his blog <a href=\"http:\/\/drewsrambling.blogspot.com\/2008\/10\/esxi-copy-vm-poor-mans-template.html\">how to unlock the powers of RCLI<\/a> and throws in instructions on how to clone your VMs for good measure. What a nice chap!<\/p>\n<p>For the GUI-lovers though, at least you can play with <a href=\"http:\/\/searchstorage.techtarget.com.au\/articles\/31779-Beyond-vmkfstools-alternatives-to-VMware-s-backup-tools\">SCP to backup your VMs onto another device<\/a>. Finally &#8211; robust virtual machines for people with servers in their sheds. What do you mean you DON&#8217;T have a server in your shed? Oh dear.<\/p>\n<p>So here is how I do it. I do\u00c2\u00a0 a good build of Windows XP Pro and Ubuntu and save them in a folder called &#8220;Templates&#8221; I created in datastore1 on the VI Client. Creating a new server from this template goes as follows:<\/p>\n<p>VI Client:<\/p>\n<ol>\n<li>Go to the Summary tab and right-click the datastore<\/li>\n<li>Choose browse datastore and the contents are shown<\/li>\n<li>Create a new folder (e.g. &#8216;New Server&#8217;)<\/li>\n<li>Use VI Client to copy the VMDK from the template machine to this folder. In this case I\u00e2\u20ac\u2122m copying from \u00e2\u20ac\u0153\\templates\\windowsxp.vmdk\u00e2\u20ac\u009d to \u00e2\u20ac\u0153\\New Server\\\u00e2\u20ac\u009d<\/li>\n<\/ol>\n<p>PuTTy<\/p>\n<ol>\n<li>SSH onto the ESX server directly<\/li>\n<li>cd &#8216;\/vmfs\/volumes\/datastore1\/New Server&#8217;<\/li>\n<li>mv &#8216;WindowsXP.vmdk&#8217; &#8216;New Server.vmdk&#8217;<\/li>\n<li>mv &#8216;WindowsXP-flat.vmdk&#8217; &#8216;New Server-flat.vmdk&#8217;<\/li>\n<li>vi \u00e2\u20ac\u02dcNew Server.vmdk\u00e2\u20ac\u2122<\/li>\n<li>change the -flat.vmdk filename for the Extent Description to be the new filename<\/li>\n<li>[Esc] :wq! to save\/exit vi<\/li>\n<\/ol>\n<p>Back to VI Client:<\/p>\n<ol><!--[if !mso]>\n\n\n\n<style>\nv\\:* {behavior:url(#default#VML);}\no\\:* {behavior:url(#default#VML);}\nw\\:* {behavior:url(#default#VML);}\n.shape {behavior:url(#default#VML);}\n<\/style>\n\n<![endif]--><!--[if gte mso 9]><xml> <w:WordDocument> <w:View>Normal<\/w:View> <w:Zoom>0<\/w:Zoom> <w:PunctuationKerning \/> <w:ValidateAgainstSchemas \/> <w:SaveIfXMLInvalid>false<\/w:SaveIfXMLInvalid> <w:IgnoreMixedContent>false<\/w:IgnoreMixedContent> <w:AlwaysShowPlaceholderText>false<\/w:AlwaysShowPlaceholderText> <w:Compatibility> <w:BreakWrappedTables \/> <w:SnapToGridInCell \/> <w:WrapTextWithPunct \/> <w:UseAsianBreakRules \/> <w:DontGrowAutofit \/> <\/w:Compatibility> <w:BrowserLevel>MicrosoftInternetExplorer4<\/w:BrowserLevel> <\/w:WordDocument> <\/xml><![endif]--><!--[if gte mso 9]><xml> <w:LatentStyles DefLockedState=\"false\" LatentStyleCount=\"156\"> <\/w:LatentStyles> <\/xml><![endif]--> <!--[if gte mso 10]>\n\n\n\n<style>\n \/* Style Definitions *\/\n table.MsoNormalTable\n\t{mso-style-name:\"Table Normal\";\n\tmso-tstyle-rowband-size:0;\n\tmso-tstyle-colband-size:0;\n\tmso-style-noshow:yes;\n\tmso-style-parent:\"\";\n\tmso-padding-alt:0cm 5.4pt 0cm 5.4pt;\n\tmso-para-margin:0cm;\n\tmso-para-margin-bottom:.0001pt;\n\tmso-pagination:widow-orphan;\n\tfont-size:10.0pt;\n\tfont-family:\"Times New Roman\";\n\tmso-ansi-language:#0400;\n\tmso-fareast-language:#0400;\n\tmso-bidi-language:#0400;}\n<\/style>\n\n<![endif]--><span style=\"font-size: 12pt; font-family: \"><!--[if gte vml 1]><v:shapetype id=\"_x0000_t75\"  coordsize=\"21600,21600\" o:spt=\"75\" o:preferrelative=\"t\" path=\"m@4@5l@4@11@9@11@9@5xe\"  filled=\"f\" stroked=\"f\"> <v:stroke joinstyle=\"miter\" \/> <v:formulas> <v:f eqn=\"if lineDrawn pixelLineWidth 0\" \/> <v:f eqn=\"sum @0 1 0\" \/> <v:f eqn=\"sum 0 0 @1\" \/> <v:f eqn=\"prod @2 1 2\" \/> <v:f eqn=\"prod @3 21600 pixelWidth\" \/> <v:f eqn=\"prod @3 21600 pixelHeight\" \/> <v:f eqn=\"sum @0 0 1\" \/> <v:f eqn=\"prod @6 1 2\" \/> <v:f eqn=\"prod @7 21600 pixelWidth\" \/> <v:f eqn=\"sum @8 21600 0\" \/> <v:f eqn=\"prod @7 21600 pixelHeight\" \/> <v:f eqn=\"sum @10 21600 0\" \/> <\/v:formulas> <v:path o:extrusionok=\"f\" gradientshapeok=\"t\" o:connecttype=\"rect\" \/> <o:lock v:ext=\"edit\" aspectratio=\"t\" \/> <\/v:shapetype><v:shape id=\"_x0000_i1025\" type=\"#_x0000_t75\" style=\"width:415.5pt;  height:191.25pt\" mce_style=\"width:415.5pt;  height:191.25pt\"> <v:imagedata src=\"file:\/\/\/C:\\Users\\Simkin\\AppData\\Local\\Temp\\msohtml1\\07\\clip_image001.png\" mce_src=\"file:\/\/\/C:\\Users\\Simkin\\AppData\\Local\\Temp\\msohtml1\\07\\clip_image001.png\"   o:title=\"\" \/> <\/v:shape><![endif]--><!--[if !vml]--><!--[endif]--><\/span><\/p>\n<li>Create a new custom VM<\/li>\n<li>Name it the same as your folder name (eg. &#8216;New Server&#8217;)<\/li>\n<li>When prompted for datastore, choose custom and browse to the newly renamed vmdk<\/li>\n<li>Finish creating the VM (note: I use buslogic adapters)<\/li>\n<li>Start the VM<\/li>\n<\/ol>\n<p>Console tab for your new VM<\/p>\n<ol>\n<li>Start, Control Panel<\/li>\n<li>System<\/li>\n<li>Under the Computer Name tab, click Change<\/li>\n<li>Give it a new name<\/li>\n<li>Restart when prompted<\/li>\n<\/ol>\n<p>All done.<\/p>\n<p>You can obviously copy your VMDK and -flat.VMDK files off to other storage from time to time so long as the VMs are turned-off. Effective if luddite backup&#8230;.<\/p>\n<p>[UPDATE: Scripted cloning for the lazy is now available: http:\/\/www.pgregg.com\/projects\/vmclone\/]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>ESXi is virtualisation for the enthusiast, the underpaid or tight-fisted. To stop you just installing at and having it all &hellip; <a class=\"more-link\" href=\"http:\/\/simkin.org\/wordpress\/?p=162\">More<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"spay_email":""},"categories":[3],"tags":[153,131,130],"jetpack_featured_media_url":"","_links":{"self":[{"href":"http:\/\/simkin.org\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/162"}],"collection":[{"href":"http:\/\/simkin.org\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/simkin.org\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/simkin.org\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/simkin.org\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=162"}],"version-history":[{"count":0,"href":"http:\/\/simkin.org\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/162\/revisions"}],"wp:attachment":[{"href":"http:\/\/simkin.org\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=162"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/simkin.org\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=162"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/simkin.org\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=162"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}