<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:clearspace="http://www.jivesoftware.com/xmlns/clearspace/rss" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:opensearch="http://a9.com/-/spec/opensearch/1.1/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>VI: VMware ESXi™ 3.5 : Linked Clones script for ESXi : Comments</title>
    <link>http://communities.vmware.com/docs/DOC-9202#comments</link>
    <description>Comments on : Linked Clones script for ESXi</description>
    <language>en</language>
    <pubDate>Fri, 19 Dec 2008 16:59:44 GMT</pubDate>
    <generator>Clearspace 1.10.12 (http://jivesoftware.com/products/clearspace/)</generator>
    <dc:date>2008-12-19T16:59:44Z</dc:date>
    <dc:language>en</dc:language>
    <item>
      <title>RE: Linked Clones script for ESXi</title>
      <link>http://communities.vmware.com/docs/DOC-9202#comments-10371</link>
      <description>Forgot to mention, you can also find more scripts/resources located at:&lt;br /&gt;
&lt;br /&gt;
&lt;a class="jive-link-external" href="http://engineering.ucsb.edu/~duonglt/vmware/"&gt;http://engineering.ucsb.edu/~duonglt/vmware/&lt;/a&gt;</description>
      <pubDate>Fri, 19 Dec 2008 16:59:44 GMT</pubDate>
      <author>lamw</author>
      <guid>http://communities.vmware.com/docs/DOC-9202#comments-10371</guid>
      <dc:date>2008-12-19T16:59:44Z</dc:date>
      <clearspace:dateToText>11 months, 1 week ago</clearspace:dateToText>
    </item>
    <item>
      <title>RE: Linked Clones script for ESXi</title>
      <link>http://communities.vmware.com/docs/DOC-9202#comments-10734</link>
      <description>Thanks for sharing this script I tested it and its worked great job!&lt;br /&gt;
&lt;p /&gt;
but after creating a snapshot or more of linked clone it's not possible to delete the snapshot.&lt;br /&gt;
I got this error message:&lt;br /&gt;
&lt;p /&gt;
an attempt was made to write to a read-only file &lt;br /&gt;
&lt;br /&gt;
actually I checked the snapshot file properties and  change it to  0755 but keep the same error.&lt;br /&gt;
&lt;br /&gt;
can you help me please?</description>
      <pubDate>Wed, 18 Feb 2009 08:41:13 GMT</pubDate>
      <author>b.yucel</author>
      <guid>http://communities.vmware.com/docs/DOC-9202#comments-10734</guid>
      <dc:date>2009-02-18T08:41:13Z</dc:date>
      <clearspace:dateToText>9 months, 1 week ago</clearspace:dateToText>
    </item>
    <item>
      <title>RE: Linked Clones script for ESXi</title>
      <link>http://communities.vmware.com/docs/DOC-9202#comments-10762</link>
      <description>What issues are you having? Once you've created your pristine image and generated the Linked Clones off of that base image, you can use the following documentation for further configurations to make each LC unique: &lt;a class="jive-link-external" href="http://communities.vmware.com/docs/DOC-9201"&gt;http://communities.vmware.com/docs/DOC-9201&lt;/a&gt; , this is the implementation that my colleague Tuan and I have deployed into production at UCSB. &lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;
=========================================================================&lt;br /&gt;
--William&lt;br /&gt;
VMware ESX/ESXi scripts and resources at: &lt;a class="jive-link-external" href="http://engineering.ucsb.edu/~duonglt/vmware/"&gt;http://engineering.ucsb.edu/~duonglt/vmware/&lt;/a&gt;</description>
      <pubDate>Wed, 18 Feb 2009 16:34:08 GMT</pubDate>
      <author>lamw</author>
      <guid>http://communities.vmware.com/docs/DOC-9202#comments-10762</guid>
      <dc:date>2009-02-18T16:34:08Z</dc:date>
      <clearspace:dateToText>9 months, 1 week ago</clearspace:dateToText>
    </item>
    <item>
      <title>RE: Linked Clones script for ESXi</title>
      <link>http://communities.vmware.com/docs/DOC-9202#comments-10787</link>
      <description>this is the situation&lt;br /&gt;
&lt;br /&gt;
I have created 10 Linked clones of a golden image, I can start all of them and it's working, also I can take 1 or more snapshots from each linked clones but i can not remove the snapshots. &lt;br /&gt;
&lt;br /&gt;
I got this error message:&lt;br /&gt;
an attempt was made to write to a read-only file.</description>
      <pubDate>Wed, 18 Feb 2009 19:03:18 GMT</pubDate>
      <author>b.yucel</author>
      <guid>http://communities.vmware.com/docs/DOC-9202#comments-10787</guid>
      <dc:date>2009-02-18T19:03:18Z</dc:date>
      <clearspace:dateToText>9 months, 1 week ago</clearspace:dateToText>
    </item>
    <item>
      <title>RE: Linked Clones script for ESXi</title>
      <link>http://communities.vmware.com/docs/DOC-9202#comments-10797</link>
      <description>Are you creating the new snapshots using the VI Client or through the console? What version of ESXi are you running? In either case, we've not heard or run into this issue before, if I get some time will try to test but I'll be pretty busy with some new projects. &lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;
=========================================================================&lt;br /&gt;
--William&lt;br /&gt;
VMware ESX/ESXi scripts and resources at: &lt;a class="jive-link-external" href="http://engineering.ucsb.edu/~duonglt/vmware/"&gt;http://engineering.ucsb.edu/~duonglt/vmware/&lt;/a&gt;</description>
      <pubDate>Wed, 18 Feb 2009 20:16:39 GMT</pubDate>
      <author>lamw</author>
      <guid>http://communities.vmware.com/docs/DOC-9202#comments-10797</guid>
      <dc:date>2009-02-18T20:16:39Z</dc:date>
      <clearspace:dateToText>9 months, 1 week ago</clearspace:dateToText>
    </item>
    <item>
      <title>RE: Linked Clones script for ESXi</title>
      <link>http://communities.vmware.com/docs/DOC-9202#comments-10798</link>
      <description>yes through  VI Client  , I don't no how through console.&lt;br /&gt;
&lt;br /&gt;
I'm using ESXi 3i, 3.5.0, 123629 &lt;br /&gt;
also we have ESX server 3.5 same problem.</description>
      <pubDate>Wed, 18 Feb 2009 20:38:53 GMT</pubDate>
      <author>b.yucel</author>
      <guid>http://communities.vmware.com/docs/DOC-9202#comments-10798</guid>
      <dc:date>2009-02-18T20:38:53Z</dc:date>
      <clearspace:dateToText>9 months, 6 days ago</clearspace:dateToText>
    </item>
    <item>
      <title>RE: Linked Clones script for ESXi</title>
      <link>http://communities.vmware.com/docs/DOC-9202#comments-11414</link>
      <description>I had the same problem and it turned out that the clone was in a template mode.&lt;br /&gt;
&lt;a class="jive-link-external" href="http://hash-depot.blogspot.com/2009/05/vmwares-esxi-snapshot-removal-problem.html"&gt;http://hash-depot.blogspot.com/2009/05/vmwares-esxi-snapshot-removal-problem.html&lt;/a&gt;&lt;br /&gt;
Check advanced settings for templateVM and if its set to "true" change it to "false". Worked for me.</description>
      <pubDate>Fri, 15 May 2009 23:42:26 GMT</pubDate>
      <author>hashATsage</author>
      <guid>http://communities.vmware.com/docs/DOC-9202#comments-11414</guid>
      <dc:date>2009-05-15T23:42:26Z</dc:date>
      <clearspace:dateToText>6 months, 1 week ago</clearspace:dateToText>
    </item>
    <item>
      <title>RE: Linked Clones script for ESXi</title>
      <link>http://communities.vmware.com/docs/DOC-9202#comments-11599</link>
      <description>This is really good stuff. Thought I'd share a wee gotcha.  If you dowhload the script using the obvious wget from the esxi commandline it turns up with ^M at the end of each line and the shell script falls over. Took me a while to work out what was going on.&lt;br /&gt;
&lt;br /&gt;
Mike</description>
      <pubDate>Mon, 22 Jun 2009 16:17:36 GMT</pubDate>
      <author>mgn</author>
      <guid>http://communities.vmware.com/docs/DOC-9202#comments-11599</guid>
      <dc:date>2009-06-22T16:17:36Z</dc:date>
      <clearspace:dateToText>5 months, 3 days ago</clearspace:dateToText>
    </item>
    <item>
      <title>RE: Linked Clones script for ESXi</title>
      <link>http://communities.vmware.com/docs/DOC-9202#comments-12144</link>
      <description>just changed the script a bit, thought i might share back &lt;img class="jive-emoticon" border="0" src="http://communities.vmware.com/images/emoticons/happy.gif" alt=":)" /&gt;&lt;br /&gt;
&lt;br /&gt;
vmdks_count=`grep ^scsi "${GOLDEN_VM}" | grep fileName | awk -F "\"" '{print $2}' | wc -l`&lt;br /&gt;
vmdks=`grep ^scsi "${GOLDEN_VM}" | grep fileName | awk -F "\"" '{print $2}'`&lt;br /&gt;
&lt;br /&gt;
what changed : I changed the grep scsi to ^scsi&lt;br /&gt;
why : I had a floppy mounted vmscsi*.flp that contains the drivers to install xp. This blocked me from doing linked clones even after i detached the floppy, because it was still in the config. Grepping on ^scsi makes more sense because this is the pattern you are looking for&lt;br /&gt;
&lt;br /&gt;
macfile() {&lt;br /&gt;
#grab mac addresses of newly created VMs (file to populate dhcp static config)&lt;br /&gt;
if &lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=&amp;subject=+-f+%24%7BLC_CREATED_VMS%7D+"&gt; -f ${LC_CREATED_VMS} &lt;/a&gt;; then&lt;br /&gt;
        for i in `cat ${LC_CREATED_VMS}`;&lt;br /&gt;
        do&lt;br /&gt;
                TMP_LIST=${LC_EXECUTION_DIR}/vm_list.$$&lt;br /&gt;
                VM_P=`echo ${i##*/}`&lt;br /&gt;
                VM_NAME=`echo ${VM_P%.vmx*}`&lt;br /&gt;
                VM_MAC=`grep ethernet0.generatedAddress "${i}" | awk '{print $3}' | sed 's/\"//g' | head -1 | sed 's/://g'`&lt;br /&gt;
                while &lt;br /&gt;
                do&lt;br /&gt;
                        sleep 1&lt;br /&gt;
                        VM_MAC=`grep ethernet0.generatedAddress "${i}" | awk '{print $3}' | sed 's/\"//g' | head -1 | sed 's/://g'`&lt;br /&gt;
                        echo $(grep ethernet $i)&lt;br /&gt;
                done&lt;br /&gt;
                echo "${VM_NAME}  ${VM_MAC}" &amp;gt;&amp;gt; ${TMP_LIST}&lt;br /&gt;
        done&lt;br /&gt;
        LCS_OUTPUT="lcs_created_on-`date +%F-%H%M%S`"&lt;br /&gt;
        echo -e "Linked clones VM MAC addresses stored at:"&lt;br /&gt;
        cat ${TMP_LIST} | sed 's/[&lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=&amp;subject=%3Adigit%3A%5D"&gt;:digit:]&lt;/a&gt;/ &amp;#38;/1' | sort -k2n | sed 's/ //1' &amp;gt; "${LCS_OUTPUT}"&lt;br /&gt;
        echo -e "\t${LCS_OUTPUT}"&lt;br /&gt;
fi&lt;br /&gt;
}&lt;br /&gt;
#mac generation is done after the vm powers up. if you want to generate this file you will need to power on the vms first&lt;br /&gt;
#macfile()&lt;br /&gt;
&lt;br /&gt;
what changed : Made a function to generate the file with static macs &lt;br /&gt;
why : Here in my version the mac addresses where only generated after the machine was powered on. This meant that the script kept looking and waiting for the mac address to be written to the vmx file. Since I don't need these mac addresses i just disabled it.&lt;br /&gt;
&lt;br /&gt;
Hope it helps &lt;img class="jive-emoticon" border="0" src="http://communities.vmware.com/images/emoticons/happy.gif" alt=":)" /&gt;</description>
      <pubDate>Fri, 21 Aug 2009 09:06:24 GMT</pubDate>
      <author>Timothy@Corismo</author>
      <guid>http://communities.vmware.com/docs/DOC-9202#comments-12144</guid>
      <dc:date>2009-08-21T09:06:24Z</dc:date>
      <clearspace:dateToText>3 months, 3 days ago</clearspace:dateToText>
    </item>
  </channel>
</rss>

