<html><body><div style="font-family: times new roman, new york, times, serif; font-size: 12pt; color: #000000"><div><br></div><hr id="zwchr"><blockquote style="border-left:2px solid #1010FF;margin-left:5px;padding-left:5px;color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;"><div dir="ltr"><div>While building a virtual machine we ran into an error "Not enough MAC addresses left in MAC Address Pool." &nbsp;In the engine log I see this message.</div><div><br></div><div>2013-10-26 14:47:16,590 WARN &nbsp;[org.ovirt.engine.core.bll.network.vm.AddVmInterfaceCommand] (ajp--127.0.0.</div><div>1-8702-12) [6fc05fa4] CanDoAction of action AddVmInterface failed. Reasons:VAR__TYPE__INTERFACE,VAR__ACTI</div><div>ON__ADD,MAC_POOL_NOT_ENOUGH_MAC_ADDRESSES</div><div>2013-10-26 14:47:16,591 ERROR [org.ovirt.engine.api.restapi.resource.AbstractBackendResource] (ajp--127.0</div><div>.0.1-8702-12) Operation Failed: [Not enough MAC addresses left in MAC Address Pool.]</div><div><br></div><div>This led me to look at the engine config where I see these</div><div>MacPoolRanges: 00:1A:4A:97:5E:00-00:1A:4A:97:5E:FF version: general</div><div>MaxMacsCountInPool: 100000 version: general</div><div><br></div><div>The MacPoolRange would seem to be the limiting factor here, cutting us off at 256 MAC addresses, which happens to be the number of virtual machine we currently have. I assume that updating the MacPoolRange and restarting the engine would resolve this issue. Has anybody experienced this issue? &nbsp;Why would the pool size have 256 and the Max entry be set to 100000, that seems like a large difference.</div></div></blockquote><div>Hi Thomas,<br></div><div><br></div><div>The MacPoolRanges is preset to what range was reserved initially when oVirt was being developed.</div><div>Of course, in a LAN this doesn't make much difference as the possibility of MAC "hijack" from a hardware vendor is extremely low.<br></div><div>The 3 first bytes in a MAC specify the vendor ID, and the 3 last bytes the "card" address (explained in <a href="http://en.wikipedia.org/wiki/MAC_address">http://en.wikipedia.org/wiki/MAC_address</a>), so I'm not sure why this was limited to 256 addresses but you can of course change the limit.<br></div><div>I'm guessing it was set not to interfere with addresses used by libvirt that you may have running in the LAN which use the same vendor ID.<br></div><div><br></div><div>Also please notice you can have multiple ranges separated by comma</div><div>e.g. MacPoolRanges: 00:1A:4A:97:5E:00-00:1A:4A:97:5E:FF,00:1A:4A:97:5F:00-00:1A:4A:97:5F:FF<br></div><div><br></div><div>Now the other value, MaxMacsCountInPool simply limits the MAC pool size so if you have a pool that is too big the engine won't start.<br></div><div>So for example if you have pools 00:1A:4A:97:5E:00-00:1A:4A:97:5E:FF,00:1A:4A:97:5F:00-00:1A:4A:97:5F:FF it's OK since there are 256 + 256 = 512 &lt; 100000 MACs<br>But, if you have pools 00:1A:4A:00:00:00-00:1A:4A:00:FF:FF,00:1A:4A:01:00:00-00:1A:4A:01:FF:FF it will fail since there are 65536 + 65536 = 131072 &gt; 100000 MACs<br><br>Hope this helps,<br></div><div>Mike</div></div></body></html>