<?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>VMware Communities: Message List - Hard-coding static MAC address for VM..do I need to</title>
    <link>http://communities.vmware.com/community/vmtn/vi/esx2-vc1?view=discussions</link>
    <description>Most recent forum messages</description>
    <language>en</language>
    <pubDate>Mon, 09 Jul 2007 16:31:38 GMT</pubDate>
    <generator>Clearspace 1.10.12 (http://jivesoftware.com/products/clearspace/)</generator>
    <dc:date>2007-07-09T16:31:38Z</dc:date>
    <dc:language>en</dc:language>
    <item>
      <title>Re: Hard-coding static MAC address for VM..do I need to</title>
      <link>http://communities.vmware.com/message/691262?tstart=0#691262</link>
      <description>Typically cold migrations are used for VM's that are on local storage, if the VM was on shared storage most people vmotion it hot to another ESX host. So yes if you do a cold migration and the VM does not change locations then the MAC address will not change.</description>
      <pubDate>Mon, 09 Jul 2007 16:31:38 GMT</pubDate>
      <author>esiebert7625</author>
      <guid>http://communities.vmware.com/message/691262?tstart=0#691262</guid>
      <dc:date>2007-07-09T16:31:38Z</dc:date>
      <clearspace:dateToText>2 years, 4 months ago</clearspace:dateToText>
    </item>
    <item>
      <title>Re: Hard-coding static MAC address for VM..do I need to</title>
      <link>http://communities.vmware.com/message/690881?tstart=0#690881</link>
      <description>Hi Eric, you've stated&lt;br /&gt;
&lt;p /&gt;
"During a cold migration the location of the VM does change so the MAC address of the VM will change."&lt;br /&gt;
&lt;br /&gt;
Whenever I do a cold migration with virtual center (ie. power off the VM, right click, migrate), the MAC address definitely does not change, I've just tried it again to check. During my cold migrations the vmx path stays the same (eg. /home/vmware/servername/servername.vmx), so I'm assuming that's why the MAC isn't changing.  So as long as the filepath to the vmx file stays the same it doesn't matter that it's moved to a different host, and the MAC will stay the same.  Would you agree?&lt;br /&gt;
&lt;br /&gt;
Thankyou&lt;br /&gt;
Michael&lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;/b&gt;</description>
      <pubDate>Mon, 09 Jul 2007 09:43:22 GMT</pubDate>
      <author>mikeyboy</author>
      <guid>http://communities.vmware.com/message/690881?tstart=0#690881</guid>
      <dc:date>2007-07-09T09:43:22Z</dc:date>
      <clearspace:dateToText>2 years, 4 months ago</clearspace:dateToText>
      <clearspace:replyCount>1</clearspace:replyCount>
    </item>
    <item>
      <title>Re: Hard-coding static MAC address for VM..do I need to</title>
      <link>http://communities.vmware.com/message/669357?tstart=0#669357</link>
      <description>Here's some documentation I wrote on this...&lt;br /&gt;
&lt;br /&gt;
&lt;a class="jive-link-external" href="http://vmware-land.com/Vmware_Tips.html#Net3"&gt;http://vmware-land.com/Vmware_Tips.html#Net3&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
How can I set a static MAC address for my VM?&lt;br /&gt;
This is useful for software that is licensed by the MAC address of the server it is running on or if you migrate a physical server to virtual and want to keep the same MAC address. A VMs MAC address will change if the location of the VM changes, ie. different path on the same host. During a hot migration (Vmotion) the location of the VM does not change, this is also true of a VM that changes hosts due to HA/DRS migration. During a cold migration the location of the VM does change so the MAC address of the VM will change.&lt;br /&gt;
&lt;br /&gt;
MAC addresses are hex values and consist of six groups of hex numbers. The first 3 octets of the MAC address is a unique code assigned to each NIC vendor, this is also called the Organizationally Unique Identifier (OUI), VMwares OUI is 00:50:56. The last 3 octets are assigned to all of the NICs for that vendor. Each MAC address must be unique to avoid conflicts with other network devices. You do not have to use the VMware assigned range (00:50:56) for your NICs. If you are coming from a physical server you can use the previous NICs range instead, (ie. HP/Compaq NICs use 00:08:02) as the first 3 octets. Just make sure the physical NIC and virtual NIC with the same MAC address are not active on the same physical network at the same time. There are several methods for setting a static MAC address on a VM which are listed below. If you use the first method you must stay inside VMwares allowed MAC addresses (00:50:56:00:00:00  00:50:56:3F:FF:FF) or the VM will not start&lt;br /&gt;
&lt;br /&gt;
Editing the VMX file of the VM:&lt;br /&gt;
 Edit the VMX file of the VM&lt;br /&gt;
 Change the following line from ethernetN.addressType="vpx" to ethernetN.addressType="static" (N is the number of your ethernet adapter, usually 0)&lt;br /&gt;
 Next change the line ethernetN.GeneratedAddress to ethernetN.address and then change the current MAC address to 00:50:56:XX:YY:ZZ (again N is the number of your ethernet adapter and XX is a valid hex number between 00 and 3F, and YY and ZZ are valid hex numbers between 00 and FF. The value for XX must not be greater than 3F in order to avoid conflict with MAC addresses that are generated by the VMware Workstation and VMware GSX Server products.)&lt;br /&gt;
 Power your VM back on. Login to the OS, go to the CMD prompt and type ipconfig /all, your manually assigned MAC address should be listed for the NIC that you changed&lt;br /&gt;
&lt;br /&gt;
Setting the NIC properties in Windows:&lt;br /&gt;
 Edit the Local Area Connection propeties for the NIC you want to change&lt;br /&gt;
 Click the Configure button next to the NIC name&lt;br /&gt;
 On the Advanced tab select NetworkAddress&lt;br /&gt;
 In the Value field enter a new value for the MAC address, enter only numbers or letters, no spaces, dashes or colons. This MAC address can be any valid hex numbers between 00 and FF for any of the octets&lt;br /&gt;
 Click OK and thats it, the new MAC address takes effect immediately and will override any MAC address set by Vmware&lt;br /&gt;
&lt;br /&gt;
Fyiif you find this post helpful, please award points using the Helpful/Correct buttons.&lt;br /&gt;
-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=-&lt;br /&gt;
  Thanks, Eric&lt;br /&gt;
  Visit my website: &lt;a class="jive-link-external" href="http://vmware-land.com"&gt;http://vmware-land.com&lt;/a&gt;&lt;br /&gt;
-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=-</description>
      <pubDate>Wed, 13 Jun 2007 12:51:10 GMT</pubDate>
      <author>esiebert7625</author>
      <guid>http://communities.vmware.com/message/669357?tstart=0#669357</guid>
      <dc:date>2007-06-13T12:51:10Z</dc:date>
      <clearspace:dateToText>2 years, 5 months ago</clearspace:dateToText>
      <clearspace:replyCount>2</clearspace:replyCount>
    </item>
    <item>
      <title>Re: Hard-coding static MAC address for VM..do I need to</title>
      <link>http://communities.vmware.com/message/669274?tstart=0#669274</link>
      <description>Hi &lt;br /&gt;
&lt;br /&gt;
You will need to add/alter the following lines within the VMX file to the following:&lt;br /&gt;
&lt;br /&gt;
Removing the two lines that begin with the following:&lt;br /&gt;
ethernet[n].generatedAddress = "00:0c:29:xx:yy:zz"&lt;br /&gt;
ethernet[n].generatedAddressOffset = "0"&lt;br /&gt;
&lt;br /&gt;
Edit the following line:&lt;br /&gt;
ethernet[n].addressType = "generated"&lt;br /&gt;
Change to &lt;br /&gt;
ethernet[n].addressType = "static"&lt;br /&gt;
&lt;br /&gt;
and add the following line:&lt;br /&gt;
ethernet[n].address = "00:50:56:xx:yy:zz"&lt;br /&gt;
&lt;br /&gt;
In these options, [n] is the number of the virtual Ethernet adapter  for example ethernet0.&lt;br /&gt;
&lt;br /&gt;
That way it will not change MAC.&lt;br /&gt;
&lt;br /&gt;
Cheers</description>
      <pubDate>Wed, 13 Jun 2007 11:28:17 GMT</pubDate>
      <author>VMNU</author>
      <guid>http://communities.vmware.com/message/669274?tstart=0#669274</guid>
      <dc:date>2007-06-13T11:28:17Z</dc:date>
      <clearspace:dateToText>2 years, 5 months ago</clearspace:dateToText>
    </item>
    <item>
      <title>Re: Hard-coding static MAC address for VM..do I need to</title>
      <link>http://communities.vmware.com/message/669104?tstart=0#669104</link>
      <description>The manual says "After the MAC address has been generated, it does not change unless the virtual machine is moved to a different location, for example, to a different path on the same server. "&lt;br /&gt;
&lt;br /&gt;
Try this, to see if you can make it change.</description>
      <pubDate>Wed, 13 Jun 2007 07:31:49 GMT</pubDate>
      <author>MR-T</author>
      <guid>http://communities.vmware.com/message/669104?tstart=0#669104</guid>
      <dc:date>2007-06-13T07:31:49Z</dc:date>
      <clearspace:dateToText>2 years, 5 months ago</clearspace:dateToText>
    </item>
    <item>
      <title>Re: Hard-coding static MAC address for VM..do I need to</title>
      <link>http://communities.vmware.com/message/669097?tstart=0#669097</link>
      <description>You can change ethernetN.GeneratedAddress to ethernetN.address in the VMX if you want to prevent a change, but when you upgrade to ESX 3.0 the VMware OUI range will change to start with 00:50:56.&lt;br /&gt;
&lt;br /&gt;
You can also set the MAC manually on a Windows host if you bring up the properties for the NIC and then set the NetworkAddress field on the Advanced tab.</description>
      <pubDate>Wed, 13 Jun 2007 07:23:17 GMT</pubDate>
      <author>Dave.Mishchenko</author>
      <guid>http://communities.vmware.com/message/669097?tstart=0#669097</guid>
      <dc:date>2007-06-13T07:23:17Z</dc:date>
      <clearspace:dateToText>2 years, 5 months ago</clearspace:dateToText>
    </item>
    <item>
      <title>Hard-coding static MAC address for VM..do I need to</title>
      <link>http://communities.vmware.com/message/669093?tstart=0#669093</link>
      <description>Hi, please can anyone advise.  We have an ESX Server 2.5.2 farm and we sometimes migrate VMs between hosts with Virtual Center (we power them off first and cold-migrate them, we don't use VMotion). &lt;br /&gt;
&lt;br /&gt;
We have an app that requires a static MAC address; if it ever changes we will have problems. &lt;br /&gt;
&lt;br /&gt;
I know that by default the MAC address is automatically generated when a VM is created and stored in the .vmx file in the ethernet0.generatedaddress parameter.   I have done some testing where I have powered off the VM in question (which has an automatically generated MAC) and moved it from host to host and powered back on. I've done this a number of times and that MAC address has never changed.  I've also looked at some other VMs we have that rely on a static MAC address which I know have moved about in the past, and we've never had a problem with MAC addresses changing.  Which is what I want. &lt;br /&gt;
&lt;br /&gt;
However...I have read some posts and KB articles stating that the MAC address *might* change and therefore I should be looking to 'hard-code' that MAC address as a static address.....is that correct for ESX 2.5.2, and under what circumstances might it change (bearing in mind that I've not seen any instances in my environment where the automatically generated MAC address has ever changed)?   &lt;br /&gt;
&lt;br /&gt;
Thankyou&lt;br /&gt;
Michael</description>
      <pubDate>Wed, 13 Jun 2007 07:13:43 GMT</pubDate>
      <author>mikeyboy</author>
      <guid>http://communities.vmware.com/message/669093?tstart=0#669093</guid>
      <dc:date>2007-06-13T07:13:43Z</dc:date>
      <clearspace:dateToText>2 years, 5 months ago</clearspace:dateToText>
      <clearspace:replyCount>6</clearspace:replyCount>
    </item>
  </channel>
</rss>

