{"id":868,"date":"2011-03-03T22:05:06","date_gmt":"2011-03-04T05:05:06","guid":{"rendered":"http:\/\/www.apolonio.com\/blog\/?p=868"},"modified":"2011-03-03T22:05:57","modified_gmt":"2011-03-04T05:05:57","slug":"embracing-esxi-snapshots","status":"publish","type":"post","link":"https:\/\/www.apolonio.com\/blog\/?p=868","title":{"rendered":"Embracing ESXi snapshots"},"content":{"rendered":"<p>I like virtualization and have been using vmware server for several years now.\u00a0 There is something called vmware esxi which is free and a lot better and managing resources. Vmware server is good in that it runs on top of an operating system.\u00a0 In my case Linux.\u00a0 I use the Linux tools of LVM, snapshots and software RAID to prevent data loss on the virtual machines in case of disk failure.<\/p>\n<p>ESXi is its own OS, it has strict hardware requirements and will not do software raid or snapshots.\u00a0 Although I do run production VM&#8217;s on ESXi, I treat the VM&#8217;s like physical machines and back them up the same way.<\/p>\n<p>I have found a way to back them up using snapshots using the tools built into ESXi<\/p>\n<p>Here are the commands I used to back up a VM to an NFS mount<\/p>\n<pre>\r\ncp \/vmfs\/volumes\/datastore1\/myvm\/*.vmx* \/vmfs\/volumes\/nfs\/myvm\/\r\nvim-cmd vmsvc\/snapshot.create \/vmfs\/volumes\/datastore1\/myvm\/myvm.vmx backup \\\r\n\"Temp Backup Created for copying\" quiesced\r\nvmkfstools -d thin -i \/vmfs\/volumes\/datastore1\/myvm\/myvm.vmdk \\\r\n\/vmfs\/volumes\/nfs\/myvm\/myvm.vmdk\r\nvim-cmd vmsvc\/snapshot.remove \/vmfs\/volumes\/datastore1\/myvm\/myvm.vmx backup\r\n<\/pre>\n<p>Still feeling sick and I think this is a relapse, will go to bed early.\u00a0 Got so much work to do.\u00a0 I really should get some sleep though.<\/p>\n<p>Just doing pushups and situps.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I like virtualization and have been using vmware server for several years now.\u00a0 There is something called vmware esxi which is free and a lot better and managing resources. Vmware server is good in that it runs on top of &hellip; <a href=\"https:\/\/www.apolonio.com\/blog\/?p=868\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11,3,12],"tags":[],"class_list":["post-868","post","type-post","status-publish","format-standard","hentry","category-technical","category-training","category-virtualization"],"_links":{"self":[{"href":"https:\/\/www.apolonio.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/868","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.apolonio.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.apolonio.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.apolonio.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.apolonio.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=868"}],"version-history":[{"count":2,"href":"https:\/\/www.apolonio.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/868\/revisions"}],"predecessor-version":[{"id":870,"href":"https:\/\/www.apolonio.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/868\/revisions\/870"}],"wp:attachment":[{"href":"https:\/\/www.apolonio.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=868"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.apolonio.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=868"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.apolonio.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=868"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}