<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Mass Import VMs to New ESX Host by .VMX files</title>
	<atom:link href="http://vmetc.com/2009/03/11/mass-import-vms-to-new-esx-host-by-vmx-files/feed/" rel="self" type="application/rss+xml" />
	<link>http://vmetc.com/2009/03/11/mass-import-vms-to-new-esx-host-by-vmx-files/</link>
	<description>Go Green with Virtualization. Go UGLY Green with vmetc.com.</description>
	<lastBuildDate>Wed, 25 Jan 2012 13:41:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Johannes</title>
		<link>http://vmetc.com/2009/03/11/mass-import-vms-to-new-esx-host-by-vmx-files/comment-page-1/#comment-3715</link>
		<dc:creator>Johannes</dc:creator>
		<pubDate>Thu, 26 Mar 2009 00:49:57 +0000</pubDate>
		<guid isPermaLink="false">http://vmetc.com/?p=3470#comment-3715</guid>
		<description>Another solution for VMs with spaces in their names might be the use of IFS (Internal Field Separator). The script then looks something like this:&lt;br&gt;&lt;br&gt;IFS=&#039; n&#039;&lt;br&gt;for i in `find /vmfs/volumes/ -name “*.vmx” `&lt;br&gt;do&lt;br&gt;echo &quot;Registering VM $i&quot;&lt;br&gt;vmware-cmd -s register $i&lt;br&gt;done&lt;br&gt;&lt;br&gt;I used IFS in a script to suspend all VMs at night for backup (they also had spaces in their names), but it should also work here (although not tested).</description>
		<content:encoded><![CDATA[<p>Another solution for VMs with spaces in their names might be the use of IFS (Internal Field Separator). The script then looks something like this:</p>
<p>IFS=&#39; n&#39;<br />for i in `find /vmfs/volumes/ -name “*.vmx” `<br />do<br />echo &#8220;Registering VM $i&#8221;<br />vmware-cmd -s register $i<br />done</p>
<p>I used IFS in a script to suspend all VMs at night for backup (they also had spaces in their names), but it should also work here (although not tested).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Johannes</title>
		<link>http://vmetc.com/2009/03/11/mass-import-vms-to-new-esx-host-by-vmx-files/comment-page-1/#comment-2257</link>
		<dc:creator>Johannes</dc:creator>
		<pubDate>Wed, 25 Mar 2009 18:49:57 +0000</pubDate>
		<guid isPermaLink="false">http://vmetc.com/?p=3470#comment-2257</guid>
		<description>Another solution for VMs with spaces in their names might be the use of IFS (Internal Field Separator). The script then looks something like this:&lt;br&gt;&lt;br&gt;IFS=&#039; n&#039;&lt;br&gt;for i in `find /vmfs/volumes/ -name “*.vmx” `&lt;br&gt;do&lt;br&gt;echo &quot;Registering VM $i&quot;&lt;br&gt;vmware-cmd -s register $i&lt;br&gt;done&lt;br&gt;&lt;br&gt;I used IFS in a script to suspend all VMs at night for backup (they also had spaces in their names), but it should also work here (although not tested).</description>
		<content:encoded><![CDATA[<p>Another solution for VMs with spaces in their names might be the use of IFS (Internal Field Separator). The script then looks something like this:</p>
<p>IFS=&#39; n&#39;<br />for i in `find /vmfs/volumes/ -name “*.vmx” `<br />do<br />echo &#8220;Registering VM $i&#8221;<br />vmware-cmd -s register $i<br />done</p>
<p>I used IFS in a script to suspend all VMs at night for backup (they also had spaces in their names), but it should also work here (although not tested).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rbrambley</title>
		<link>http://vmetc.com/2009/03/11/mass-import-vms-to-new-esx-host-by-vmx-files/comment-page-1/#comment-2162</link>
		<dc:creator>rbrambley</dc:creator>
		<pubDate>Thu, 12 Mar 2009 17:27:38 +0000</pubDate>
		<guid isPermaLink="false">http://vmetc.com/?p=3470#comment-2162</guid>
		<description>Virgil,&lt;br&gt;&lt;br&gt;One of my colleagues updated the script to work with spaces in the VM and file names. See the updated command in the body of the post.</description>
		<content:encoded><![CDATA[<p>Virgil,</p>
<p>One of my colleagues updated the script to work with spaces in the VM and file names. See the updated command in the body of the post.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rbrambley</title>
		<link>http://vmetc.com/2009/03/11/mass-import-vms-to-new-esx-host-by-vmx-files/comment-page-1/#comment-2159</link>
		<dc:creator>rbrambley</dc:creator>
		<pubDate>Thu, 12 Mar 2009 08:56:35 +0000</pubDate>
		<guid isPermaLink="false">http://vmetc.com/?p=3470#comment-2159</guid>
		<description>Virgil,&lt;br&gt;&lt;br&gt;Hmmm. Have not tested with .vmx files that have spaces in names. I strongly suggest to anyone who listens to never use spaces in Linux file names for reasons just like this. In ESX, change the VM name in the properties after it&#039;s already created, but be sure not to you spaces while building a new VM. I try to use the FQDN as my standard. If I have to account for a space I use the underscore (&quot;_&quot;). Having to work with spaces in file names at the console is always a problem or extra aggravation.</description>
		<content:encoded><![CDATA[<p>Virgil,</p>
<p>Hmmm. Have not tested with .vmx files that have spaces in names. I strongly suggest to anyone who listens to never use spaces in Linux file names for reasons just like this. In ESX, change the VM name in the properties after it&#39;s already created, but be sure not to you spaces while building a new VM. I try to use the FQDN as my standard. If I have to account for a space I use the underscore (&#8220;_&#8221;). Having to work with spaces in file names at the console is always a problem or extra aggravation.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Virgil</title>
		<link>http://vmetc.com/2009/03/11/mass-import-vms-to-new-esx-host-by-vmx-files/comment-page-1/#comment-2158</link>
		<dc:creator>Virgil</dc:creator>
		<pubDate>Thu, 12 Mar 2009 03:56:21 +0000</pubDate>
		<guid isPermaLink="false">http://vmetc.com/?p=3470#comment-2158</guid>
		<description>The concept works great, but that actually vmware-cmd register line will fail on an VMs with spaces in their names....&lt;br&gt;You need to take into account shell expansion etc.</description>
		<content:encoded><![CDATA[<p>The concept works great, but that actually vmware-cmd register line will fail on an VMs with spaces in their names&#8230;.<br />You need to take into account shell expansion etc.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

