<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Change a directory name on ESX in VI: VMware ESX™ 3.5 Discussions</title>
    <link>https://communities.vmware.com/t5/VI-VMware-ESX-3-5-Discussions/Change-a-directory-name-on-ESX/m-p/2042028#M104692</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is a VM copy command floating around the forums that will do this for you. The only way to really do it, is to edit the files by hand or via a script to change the names appropriately within the configuration and metadata files.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Best regards,&lt;/P&gt;&lt;P&gt;Edward L. Haletky&lt;/P&gt;&lt;P&gt;VMware Communities User Moderator&lt;/P&gt;&lt;P&gt;====&lt;/P&gt;&lt;P&gt;Author of the book 'VMWare ESX Server in the Enterprise: Planning and Securing Virtualization Servers', Copyright 2008 Pearson Education. &lt;/P&gt;&lt;P&gt;CIO Virtualization Blog: &lt;A href="http://www.cio.com/blog/index/topic/168354" target="test_blank"&gt;http://www.cio.com/blog/index/topic/168354&lt;/A&gt;&lt;/P&gt;&lt;P&gt;As well as the Virtualization Wiki at &lt;A href="http://www.astroarch.com/wiki/index.php/Virtualization" target="test_blank"&gt;http://www.astroarch.com/wiki/index.php/Virtualization&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 13 Aug 2008 18:26:23 GMT</pubDate>
    <dc:creator>Texiwill</dc:creator>
    <dc:date>2008-08-13T18:26:23Z</dc:date>
    <item>
      <title>Change a directory name on ESX</title>
      <link>https://communities.vmware.com/t5/VI-VMware-ESX-3-5-Discussions/Change-a-directory-name-on-ESX/m-p/2042027#M104691</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi all.  I have a vm that I scp'd while it was down to another VMware server.  Problem is, how do I change the directory name to reflect the new name I want?  When I change the name of the directory manually, the vmx file still has all the references to the original directory.  Is there a way to do this automatically?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; /volumename/server_name&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to change it to /volumename/newserver_name&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Thanks! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Aug 2008 18:23:17 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VI-VMware-ESX-3-5-Discussions/Change-a-directory-name-on-ESX/m-p/2042027#M104691</guid>
      <dc:creator>soleblazer</dc:creator>
      <dc:date>2008-08-13T18:23:17Z</dc:date>
    </item>
    <item>
      <title>Re: Change a directory name on ESX</title>
      <link>https://communities.vmware.com/t5/VI-VMware-ESX-3-5-Discussions/Change-a-directory-name-on-ESX/m-p/2042028#M104692</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is a VM copy command floating around the forums that will do this for you. The only way to really do it, is to edit the files by hand or via a script to change the names appropriately within the configuration and metadata files.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Best regards,&lt;/P&gt;&lt;P&gt;Edward L. Haletky&lt;/P&gt;&lt;P&gt;VMware Communities User Moderator&lt;/P&gt;&lt;P&gt;====&lt;/P&gt;&lt;P&gt;Author of the book 'VMWare ESX Server in the Enterprise: Planning and Securing Virtualization Servers', Copyright 2008 Pearson Education. &lt;/P&gt;&lt;P&gt;CIO Virtualization Blog: &lt;A href="http://www.cio.com/blog/index/topic/168354" target="test_blank"&gt;http://www.cio.com/blog/index/topic/168354&lt;/A&gt;&lt;/P&gt;&lt;P&gt;As well as the Virtualization Wiki at &lt;A href="http://www.astroarch.com/wiki/index.php/Virtualization" target="test_blank"&gt;http://www.astroarch.com/wiki/index.php/Virtualization&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Aug 2008 18:26:23 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VI-VMware-ESX-3-5-Discussions/Change-a-directory-name-on-ESX/m-p/2042028#M104692</guid>
      <dc:creator>Texiwill</dc:creator>
      <dc:date>2008-08-13T18:26:23Z</dc:date>
    </item>
    <item>
      <title>Re: Change a directory name on ESX</title>
      <link>https://communities.vmware.com/t5/VI-VMware-ESX-3-5-Discussions/Change-a-directory-name-on-ESX/m-p/2042029#M104693</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this thread:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://communities.vmware.com/message/822788;jsessionid=F44C51342768E9B02B25A12A26A4571D" target="test_blank"&gt;http://communities.vmware.com/message/822788;jsessionid=F44C51342768E9B02B25A12A26A4571D&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; I found that creating a new vm with the name, and pulling in the disk from the old VM works. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Aug 2008 18:34:27 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VI-VMware-ESX-3-5-Discussions/Change-a-directory-name-on-ESX/m-p/2042029#M104693</guid>
      <dc:creator>Mr_Flibble1</dc:creator>
      <dc:date>2008-08-13T18:34:27Z</dc:date>
    </item>
    <item>
      <title>Re: Change a directory name on ESX</title>
      <link>https://communities.vmware.com/t5/VI-VMware-ESX-3-5-Discussions/Change-a-directory-name-on-ESX/m-p/2042030#M104694</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note, to crawl through things on the command line to perform a rename you can use the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;find ./ -type f -exec sed -i 's/vmname/newvmname/' {} \;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have used this command often in Linux, (great for fixing oracle hostnames etc.) I honestly have never tried it on a VM, but the concept should work. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Aug 2008 18:39:29 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VI-VMware-ESX-3-5-Discussions/Change-a-directory-name-on-ESX/m-p/2042030#M104694</guid>
      <dc:creator>Mr_Flibble1</dc:creator>
      <dc:date>2008-08-13T18:39:29Z</dc:date>
    </item>
    <item>
      <title>Re: Change a directory name on ESX</title>
      <link>https://communities.vmware.com/t5/VI-VMware-ESX-3-5-Discussions/Change-a-directory-name-on-ESX/m-p/2042031#M104695</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Renaming the directory on the shell with the standard unix commands isnt the preferred way and also messing around in the vmx is also not bullet proof.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI level="1" type="ol"&gt;&lt;P&gt;Remove the VM from your inventory&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ol"&gt;&lt;P&gt;Use the Datastore browser to rename the directory&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ol"&gt;&lt;P&gt;If you would like to change the name of the vmdks too you have to use  vmkfstools-i old-name.vmdk new-name.vmdk on the shell&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ol"&gt;&lt;P&gt;Import the VM by right- clicking on the vmx file and choose your new name&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ol"&gt;&lt;P&gt;Remove the old disk and add a new one which points to the existing vmdk&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Most of the tasks can be scripted i think.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: Renaming a VM with VI Client in VC does only change the display name and not the directory in the Filesystem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Joerg &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Aug 2008 20:07:14 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VI-VMware-ESX-3-5-Discussions/Change-a-directory-name-on-ESX/m-p/2042031#M104695</guid>
      <dc:creator>IRIX201110141</dc:creator>
      <dc:date>2008-08-13T20:07:14Z</dc:date>
    </item>
    <item>
      <title>Re: Change a directory name on ESX</title>
      <link>https://communities.vmware.com/t5/VI-VMware-ESX-3-5-Discussions/Change-a-directory-name-on-ESX/m-p/2042032#M104696</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN __default_attr="Times New Roman" __jive_macro_name="font"&gt;&lt;SPAN __default_attr="3" __jive_macro_name="size"&gt;Another option is to Clone the VM to the new name.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN __default_attr="Times New Roman" __jive_macro_name="font"&gt;&lt;SPAN __default_attr="3" __jive_macro_name="size"&gt;This will make a copy, and change the directory and filenames for you.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN __default_attr="Times New Roman" __jive_macro_name="font"&gt;&lt;SPAN __default_attr="3" __jive_macro_name="size"&gt;Once completed, delete the source VM and you're done.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Aug 2008 23:26:28 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VI-VMware-ESX-3-5-Discussions/Change-a-directory-name-on-ESX/m-p/2042032#M104696</guid>
      <dc:creator>VTorque</dc:creator>
      <dc:date>2008-08-13T23:26:28Z</dc:date>
    </item>
    <item>
      <title>Re: Change a directory name on ESX</title>
      <link>https://communities.vmware.com/t5/VI-VMware-ESX-3-5-Discussions/Change-a-directory-name-on-ESX/m-p/2042033#M104697</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you can do this another way, rename the VM in the VI Client, then cold migrate it to a new datastore. This may also work with Storage VMotion rather than the cold migration.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Scott.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Aug 2008 00:10:22 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VI-VMware-ESX-3-5-Discussions/Change-a-directory-name-on-ESX/m-p/2042033#M104697</guid>
      <dc:creator>scott28tt</dc:creator>
      <dc:date>2008-08-14T00:10:22Z</dc:date>
    </item>
    <item>
      <title>Re: Change a directory name on ESX</title>
      <link>https://communities.vmware.com/t5/VI-VMware-ESX-3-5-Discussions/Change-a-directory-name-on-ESX/m-p/2042034#M104698</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's an easy way to do it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI level="1" type="ol"&gt;&lt;P&gt;Rename the VM something totally different.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ol"&gt;&lt;P&gt;Migrate it to another Host.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ol"&gt;&lt;P&gt;Change the name to what you want it&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ol"&gt;&lt;P&gt;Migrate it back to the original Host.&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As long as you've never had a VM with that name/directory name on that Host, it will name it to the name of the VM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jase McCarty&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.jasemccarty.com/"&gt;http://www.jasemccarty.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG src="http://www.jasemccarty.com/images/footer.jpg" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Aug 2008 02:39:40 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VI-VMware-ESX-3-5-Discussions/Change-a-directory-name-on-ESX/m-p/2042034#M104698</guid>
      <dc:creator>Jasemccarty</dc:creator>
      <dc:date>2008-08-14T02:39:40Z</dc:date>
    </item>
    <item>
      <title>Re: Change a directory name on ESX</title>
      <link>https://communities.vmware.com/t5/VI-VMware-ESX-3-5-Discussions/Change-a-directory-name-on-ESX/m-p/2042035#M104699</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; I ended up just copying the .vmdk and -flate vmdk files to a directory on the  server and then created a new vm with no hard disk, copied the files into the shell directory and then added the hard disk.  This seems to work pretty good.  The only reason I'm not using templates is bc the VC server is not setup yet and I'm under the gun to get 5 or 6 vm's done.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Thanks all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; -JC &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Aug 2008 13:06:36 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VI-VMware-ESX-3-5-Discussions/Change-a-directory-name-on-ESX/m-p/2042035#M104699</guid>
      <dc:creator>soleblazer</dc:creator>
      <dc:date>2008-08-14T13:06:36Z</dc:date>
    </item>
  </channel>
</rss>

