{"id":63,"date":"2008-04-11T13:50:37","date_gmt":"2008-04-11T12:50:37","guid":{"rendered":"http:\/\/www.amikkelsen.com\/?p=63"},"modified":"2008-04-11T13:50:37","modified_gmt":"2008-04-11T12:50:37","slug":"quick-rename-of-vm","status":"publish","type":"post","link":"https:\/\/www.amikkelsen.com\/?p=63","title":{"rendered":"Quick rename of VM"},"content":{"rendered":"<p>Duncan over at YelloBricks.com posted a nice easy howto on renaming a VM from within VC and from the service console.<\/p>\n<p><span style=\"font-family: &quot;Calibri&quot;,&quot;sans-serif&quot;;\">There are a couple of ways to rename a Virtual Machine, but there are two in my opinion that stand out:<\/span><\/p>\n<ol type=\"1\">\n<li class=\"MsoNormal\"><span style=\"font-family: &quot;Calibri&quot;,&quot;sans-serif&quot;;\">Shutdown      the VM<\/span><\/li>\n<li class=\"MsoNormal\"><span style=\"font-family: &quot;Calibri&quot;,&quot;sans-serif&quot;;\">Rename      the VM in VirtualCenter<\/span><\/li>\n<li class=\"MsoNormal\"><span style=\"font-family: &quot;Calibri&quot;,&quot;sans-serif&quot;;\">Migrate      the VM and move it to another Datastore<\/span><\/li>\n<li class=\"MsoNormal\"><span style=\"font-family: &quot;Calibri&quot;,&quot;sans-serif&quot;;\">done!<\/span><\/li>\n<\/ol>\n<p><span style=\"font-family: &quot;Calibri&quot;,&quot;sans-serif&quot;;\">And from the service console:<\/span><\/p>\n<ol type=\"1\">\n<li class=\"MsoNormal\"><span style=\"font-family: &quot;Calibri&quot;,&quot;sans-serif&quot;;\">vmware-cmd      -s unregister \/vmfs\/volumes\/datastore\/vm\/vmold.vmx<\/span><\/li>\n<li class=\"MsoNormal\"><span style=\"font-family: &quot;Calibri&quot;,&quot;sans-serif&quot;;\">mv      \/vmfs\/volumes\/datastore\/vm-old \/vmfs\/volumes\/datastore\/vm-new<\/span><\/li>\n<li class=\"MsoNormal\"><span style=\"font-family: &quot;Calibri&quot;,&quot;sans-serif&quot;;\">cd      \/vmfs\/volumes\/datastore\/vm-new<\/span><\/li>\n<li class=\"MsoNormal\"><span style=\"font-family: &quot;Calibri&quot;,&quot;sans-serif&quot;;\">vmkfstools      -E vm-old.vmdk vm-new.vmdk<\/span><\/li>\n<li class=\"MsoNormal\"><span style=\"font-family: &quot;Calibri&quot;,&quot;sans-serif&quot;;\">find .      -name \u00e2\u20ac\u02dc*.vmx*\u00e2\u20ac\u2122 -print -exec sed -e \u00e2\u20ac\u2122s\/vm-old\/vm-new\/g\u00e2\u20ac\u2122 {} \\;<\/span><\/li>\n<li class=\"MsoNormal\"><span style=\"font-family: &quot;Calibri&quot;,&quot;sans-serif&quot;;\">mv      vm-old.vmx vm-new.vmx<br \/>\nfor every file that hasn\u00e2\u20ac\u2122t been renamed (.vmsd etc.)<\/span><\/li>\n<li class=\"MsoNormal\"><span style=\"font-family: &quot;Calibri&quot;,&quot;sans-serif&quot;;\">vmware-cmd      -s register \/vmfs\/volumes\/datastore\/vm-new\/vm-new.vmx<\/span><\/li>\n<\/ol>\n<p><span style=\"font-size: 12pt; font-family: &quot;Calibri&quot;,&quot;sans-serif&quot;;\"><br \/>\n<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Duncan over at YelloBricks.com posted a nice easy howto on renaming a VM from within VC and from the service console. There are a couple of ways to rename a Virtual Machine, but there are two in my opinion that stand out: Shutdown the VM Rename the VM in VirtualCenter Migrate the VM and move\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.amikkelsen.com\/?p=63\">Read More &raquo;<\/a><\/span><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[17,12,16],"tags":[],"class_list":["post-63","post","type-post","status-publish","format-standard","hentry","category-esx-i","category-virtual-center","category-esx-x"],"_links":{"self":[{"href":"https:\/\/www.amikkelsen.com\/index.php?rest_route=\/wp\/v2\/posts\/63","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.amikkelsen.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.amikkelsen.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.amikkelsen.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.amikkelsen.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=63"}],"version-history":[{"count":0,"href":"https:\/\/www.amikkelsen.com\/index.php?rest_route=\/wp\/v2\/posts\/63\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.amikkelsen.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=63"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.amikkelsen.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=63"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.amikkelsen.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=63"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}