Hello,<br><br>I'm trying to create and use leases on virtual network. My issue is that I'm not able to associate lease with virtual machines.<br><br>My virtual network template:<br>NAME = "MYNet"<br>TYPE = FIXED <br>
BRIDGE = br191<br>LEASE =[ IP=X.X.X.2,MAC=02:00:0A:01:5B:02]<br>LEASE =[ IP=X.X.X.3,MAC=02:00:0A:01:5B:03]<br>LEASE =[ IP=X.X.X.4,MAC=02:00:0A:01:5B:04]<br><br>Virtual network creation seems to be ok, but If I do a "onevnet show ID -x", I can see that my leases existing in virtual network template, but not as a free lease.<br>
<br>Here is my vm template NIC section:<br>NIC = [ NETWORK_UID=4,<br> MODEL=virtio, <br> MAC=02:00:0a:01:5b:02]<br><br>where NETWORK_UID is the network id defined above.<br><br>After starting VM, lease is still seen as a template.<br>
As I manually create lease with onevnet addleases command, I'm able to see lease as a free lease, but after starting VM, lease is still seen as free lease.<br>
<br>Purpose of using lease is to prevent multiple vm started with same MAC/IP.<br><br>Did I miss something?<br><br clear="all">Thanks in advance <br>-- <br>Stéphane Bulot<br><b><img src="http://www.altern-it.fr/wp-content/uploads/2011/10/logo-doc.png" width="56" height="63"></b><b><br>
</b><i>44, avenue Dumotel<br>94230 CACHAN<br><br>Tél: 01 83 62 06 87<br>Mob: 06 87 02 73 79<br>
web: <a href="http://www.altern-it.com/" target="_blank">http://www.altern-it.fr</a><br>e-mail: <a href="mailto:stephane@altern-it.com" target="_blank">stephane@altern-it.com</a></i><b><br><br></b><br>