<div dir="ltr">Hi all,<br><br>First at all, excuse if this is not the right place for sending this email.<br>I'm using ubuntu 14.04 server edition and i'm trying to deploy some virtual machines in a server in such a way that they are visible in the same network that the host machine.<br>
<br>The tools I'm using are the uvtool package and libvirt.<br>The error I'm getting is the following:<br>"uvt-kvm: error: libvirt domain 'newtest' has no NIC MACs available."<br><br>Here I'm providing the quickest way (I think) of reproducing my problem. The steps to follow would be:<br>
<br>1) Creating a bridge. This is my /etc/network/interfaces<br># This file describes the network interfaces available on your system<br># and how to activate them. For more information, see interfaces(5).<br><br># The loopback network interface<br>
auto lo<br>iface lo inet loopback<br><br>auto em1<br>iface em1 inet manual<br><br>auto br0<br>iface br0 inet static<br> address 9.109.124.62<br> network 9.109.124.0<br> netmask 255.255.255.0<br> broadcast 9.109.124.255<br>
gateway 9.109.124.1<br>#iface br0 inet dhcp<br> bridge_ports em1<br> bridge_stp off<br> bridge_fd 0<br> bridge_maxwait 0<br> dns-search xx.xx.xx.xx<br> dns-nameservers 192.168.122.1 9.0.146.50 9.0.148.50<br><br> 2) downloading a trusty tahr cloud image and run it<br>
uvt-simplestreams-libvirt sync release=precise arch=amd64<br> uvt-kvm create test release=trusty<br> <br> 3) duplicate the xml generated when running the machine in order to modify the network interface by the bridge one. In the XML I also remove the uuid and change the VM name.<br>
sudo mv /etc/libvirt/qemu/test.xml /etc/libvirt/qemu/test2.xml<br> In test 2 the most relevant change is replacing<br> <br> <interface type='network'><br> <mac address='52:54:00:86:7a:31'/><br>
<source network='default'/><br> <model type='virtio'/><br> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/><br>
</interface><br><br>by <br> <interface type='bridge'><br> <source bridge='br0'/><br> <model type='virtio'/><br> </interface><br><br> 4) Once I have my new XML, I define and start the new machine<br>
uvt-kvm destroy test<br> virsh undefine test<br> sudo virsh define /etc/libvirt/qemu/test2.xml<br> virsh start newtest (newtest is the name provided in test2.xml)<br><br> 5) Up to this point everything seems to be fine, but if i run a wait command i get the error<br>
uvt-kvm wait newtest --insecure<br> uvt-kvm: error: libvirt domain 'newtest' has no NIC MACs available.<br> <br> <br>I have checked the xml generated when defining newtest and there is a MAC in there, so it is not a problem generating a MAC address. Also the interface br0 is visible for virsh: <br>
virsh iface-list<br> Name State MAC Address<br>---------------------------------------------------<br> br0 active xx:xx:xx:xx:xx:xx<br> lo active 00:00:00:00:00:00<br>
<br> I have been googling for a while and couldn't find anything but this:<br> <a href="http://pastebin.com/em0hmy4t">http://pastebin.com/em0hmy4t</a><br> That tries something similar and falls in the same error.<br>
<br>
Any help will be very much appreciated. It is the first time i send anything to one of this mail lists, so, please, if you need me to provide any other info, tell me.<br> <br> Thanks!<br> <br> Jordi<br></div>