<?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 VM's serial number in vSphere SDK for Perl Discussions</title>
    <link>https://communities.vmware.com/t5/vSphere-SDK-for-Perl-Discussions/Change-VM-s-serial-number/m-p/1312428#M1398</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Problem is when i bring machine power on, uuid.bios change in vmx file with spaces. I just replace my uuid.bios like (uuid generated form a generator):&lt;/P&gt;&lt;P&gt;uuid.bios = "5d8cd632-9dfb-4011-94d3-3c781c8bfdca"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then booting my vm change the uuid.bios like this:&lt;/P&gt;&lt;P&gt;uuid.bios =&amp;nbsp; "56 4d 2b 7b aa 58 03 4a-d8 e3 ab 71 b4 41 bc ae"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 26 Mar 2015 14:58:18 GMT</pubDate>
    <dc:creator>marsu1983</dc:creator>
    <dc:date>2015-03-26T14:58:18Z</dc:date>
    <item>
      <title>Change VM's serial number</title>
      <link>https://communities.vmware.com/t5/vSphere-SDK-for-Perl-Discussions/Change-VM-s-serial-number/m-p/1312426#M1396</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have to deploy an automated VMware infrastructure. To made this, Y use SDK library with perl to attack my ESXis servers and create VMs. I need to use the serial number of VMs to identify servers into the Realease Management tool and then deploy. This way work pretty well with hardware servers but, i met a problem about VM's serial number. Indeed it is composed by default with VMware-uuid. But UUID is split and space are inserted which make me crazy to manage. &lt;/P&gt;&lt;P&gt;So my question is, first is to possible to get a serial number without space characters and next how to change with the SDK library ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Mar 2015 11:58:00 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/vSphere-SDK-for-Perl-Discussions/Change-VM-s-serial-number/m-p/1312426#M1396</guid>
      <dc:creator>marsu1983</dc:creator>
      <dc:date>2015-03-26T11:58:00Z</dc:date>
    </item>
    <item>
      <title>Re: Change VM's serial number</title>
      <link>https://communities.vmware.com/t5/vSphere-SDK-for-Perl-Discussions/Change-VM-s-serial-number/m-p/1312427#M1397</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It would be trivial to reformat the UUID without spaces and hyphens via Perl (of if you're using the CLI tools, awk/sed/powercli, etc).&amp;nbsp; Is there something more complicated with your UUID format in your CMDB?&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could also generate your own UUID values with an appropriate library, then add them into the VMX settings of the VirtualMachines during creation time.&amp;nbsp; Then you'd have UUIDs in the format you prefer.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Mar 2015 13:51:41 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/vSphere-SDK-for-Perl-Discussions/Change-VM-s-serial-number/m-p/1312427#M1397</guid>
      <dc:creator>stumpr</dc:creator>
      <dc:date>2015-03-26T13:51:41Z</dc:date>
    </item>
    <item>
      <title>Re: Change VM's serial number</title>
      <link>https://communities.vmware.com/t5/vSphere-SDK-for-Perl-Discussions/Change-VM-s-serial-number/m-p/1312428#M1398</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Problem is when i bring machine power on, uuid.bios change in vmx file with spaces. I just replace my uuid.bios like (uuid generated form a generator):&lt;/P&gt;&lt;P&gt;uuid.bios = "5d8cd632-9dfb-4011-94d3-3c781c8bfdca"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then booting my vm change the uuid.bios like this:&lt;/P&gt;&lt;P&gt;uuid.bios =&amp;nbsp; "56 4d 2b 7b aa 58 03 4a-d8 e3 ab 71 b4 41 bc ae"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Mar 2015 14:58:18 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/vSphere-SDK-for-Perl-Discussions/Change-VM-s-serial-number/m-p/1312428#M1398</guid>
      <dc:creator>marsu1983</dc:creator>
      <dc:date>2015-03-26T14:58:18Z</dc:date>
    </item>
    <item>
      <title>Re: Change VM's serial number</title>
      <link>https://communities.vmware.com/t5/vSphere-SDK-for-Perl-Discussions/Change-VM-s-serial-number/m-p/1312429#M1399</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That happens, yes.&amp;nbsp; I meant you can add your own custom UUID field:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;myCompany.uuid = "..."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you can access it from the API tooling later.&amp;nbsp; Is the problem that you are using non-VMware script tooling to get the UUID from the VM afterwards?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Mar 2015 15:04:39 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/vSphere-SDK-for-Perl-Discussions/Change-VM-s-serial-number/m-p/1312429#M1399</guid>
      <dc:creator>stumpr</dc:creator>
      <dc:date>2015-03-26T15:04:39Z</dc:date>
    </item>
    <item>
      <title>Re: Change VM's serial number</title>
      <link>https://communities.vmware.com/t5/vSphere-SDK-for-Perl-Discussions/Change-VM-s-serial-number/m-p/1312430#M1400</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your answer, i test by adding this line to my vmx file and my VM:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;myCompany.uuid = "toto"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It doesn't change anything. When i'm trying to get the serial number with a tool like dmidecode for exemple, it's always the same resulat i had something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;VMWARE-56 4d 2b 7b aa 58 03 4a-d8 e3 ab 71 b4 41 bc ae&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Problem is i'm using a tool that import the serial number of servers (hard and virtual) based on an agent on the server which run dmidecode (dmidecode -s chassis-serial-number). And we have problems if we have serials with spaces, so 'im looking for a solution to change this in order to delete spaces.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Mar 2015 15:35:41 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/vSphere-SDK-for-Perl-Discussions/Change-VM-s-serial-number/m-p/1312430#M1400</guid>
      <dc:creator>marsu1983</dc:creator>
      <dc:date>2015-03-26T15:35:41Z</dc:date>
    </item>
    <item>
      <title>Re: Change VM's serial number</title>
      <link>https://communities.vmware.com/t5/vSphere-SDK-for-Perl-Discussions/Change-VM-s-serial-number/m-p/1312431#M1401</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I maybe have a solution, but i don't know how to do. i explain, as said before i'm using dmidecode to get serial number of servers. Command i'm doing is&lt;/P&gt;&lt;P&gt;dmidecode -s chassis-serial-number&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and return is "none". So i need to find variable in vmx file which can give access to set this. If you have any idea ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Mar 2015 15:50:09 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/vSphere-SDK-for-Perl-Discussions/Change-VM-s-serial-number/m-p/1312431#M1401</guid>
      <dc:creator>marsu1983</dc:creator>
      <dc:date>2015-03-26T15:50:09Z</dc:date>
    </item>
    <item>
      <title>Re: Change VM's serial number</title>
      <link>https://communities.vmware.com/t5/vSphere-SDK-for-Perl-Discussions/Change-VM-s-serial-number/m-p/1312432#M1402</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you're using dmidecode, then you need the uuid set.&amp;nbsp; But, even with the hyphen format, usually dmidecode handles it -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;
&lt;P&gt;uuid.location = "56 4d 1f bc b8 82 0a af-fe c4 2b a6 e7 04 0e a5"&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;&lt;BLOCKQUOTE&gt;
&lt;P&gt;dmidecode -t system&lt;/P&gt;
&lt;P&gt;# dmidecode 2.11&lt;/P&gt;
&lt;P&gt;SMBIOS 2.4 present.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Handle 0x0001, DMI type 1, 27 bytes&lt;/P&gt;
&lt;P&gt;System Information&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Manufacturer: VMware, Inc.&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Product Name: VMware Virtual Platform&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Version: None&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Serial Number: VMware-56 4d 1f bc b8 82 0a af-fe c4 2b a6 e7 04 0e a5&lt;/P&gt;
&lt;P&gt;&amp;nbsp; UUID: 564D1FBC-B882-0AAF-FEC4-2BA6E7040EA5&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Wake-up Type: Power Switch&lt;/P&gt;
&lt;P&gt;&amp;nbsp; SKU Number: Not Specified&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Family: Not Specified&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Notice the UUID matches the uuid.location.&amp;nbsp; Have you tried &lt;STRONG&gt;dmidecode -s system-uuid&lt;/STRONG&gt;?&amp;nbsp; That number (with a little character manipulation) should get you results.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Mar 2015 18:00:46 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/vSphere-SDK-for-Perl-Discussions/Change-VM-s-serial-number/m-p/1312432#M1402</guid>
      <dc:creator>stumpr</dc:creator>
      <dc:date>2015-03-26T18:00:46Z</dc:date>
    </item>
  </channel>
</rss>

