<div dir="ltr">Hi!<div><br></div><div>First, thanks for answering.</div><div><br></div><div>Yes, the network is already started, and I think I have installed the tools needed (as I previously installed qemu, qemu-kvm, libvirt-bin, bridge utils, virt-manager and stuff), so I think I get them. About the bridge, yeah! The vribr2 exists and is created once I use the virsh commands I said in the previous message, And, if I use the brctl show commands, I see that my VM's interface is already attached to the bridge, so that's why I do not understand what can be happening.</div><div><br></div><div>Thanks!</div></div><div id="DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2"><br> <table style="border-top:1px solid #d3d4de">
        <tr>
      <td style="width:55px;padding-top:18px"><a href="https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail" target="_blank"><img src="https://ipmcdn.avast.com/images/icons/icon-envelope-tick-round-orange-animated-no-repeat-v1.gif" alt="" width="46" height="29" style="width: 46px; height: 29px;"></a></td>
                <td style="width:470px;padding-top:17px;color:#41424e;font-size:13px;font-family:Arial,Helvetica,sans-serif;line-height:18px">Libre de virus. <a href="https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail" target="_blank" style="color:#4453ea">www.avast.com</a>               </td>
        </tr>
</table>
<a href="#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2" width="1" height="1"></a></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">El vie., 17 abr. 2020 a las 3:05, Daniel Romero (<<a href="mailto:romero.cl@gmail.com">romero.cl@gmail.com</a>>) escribió:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Hi,</div><div><br></div><div>I've seen this before. <br></div><div><br></div><div>First,  the simple steps:<br></div><div><br></div><div>have you started that network? (virsh start network-name)<br></div><div>do you have installed the tools to work with bridges in your OS?<br></div><div>can you check if the bridge exist in your OS and if the vm's interface is attached to it? In rhel you use the command brctl to do that, don't know about ubuntu...</div><div><br></div><div><br></div><div><div><div dir="ltr">Best Regards,</div><div>DR<br></div></div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Apr 16, 2020 at 7:32 PM Computers Issues <<a href="mailto:computerslover123@gmail.com" target="_blank">computerslover123@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hello there,<div><br></div><div>I wanted to share a problem I'm having with libvirt, for the case someone here could know how to solve it. </div><div><br></div><div>I'm using an Ubuntu 18.04 LTS, I have libvirtd already installed and I think I got all the dependencies installed. So, I'm using virsh net-create to create this network:</div><div><br></div><div><network><br>    <name>pepito</name><br>    <forward mode='nat'/><br>    <bridge name='virbr2' stp='on' delay='0'/><br>    <ip address='192.168.150.1' netmask='255.255.255.0'><br>        <dhcp><br>            <range start='192.168.150.2' end='192.168.150.254'/><br>        </dhcp><br>    </ip><br></network><br></div><div><br></div><div>And then I create a domain with this xml:</div><div><br></div><div><domain type='qemu' xmlns:qemu='<a href="http://libvirt.org/schemas/domain/qemu/1.0" target="_blank">http://libvirt.org/schemas/domain/qemu/1.0</a>'><br>  <name>ARM</name><br>  <memory unit='KiB'>262144</memory><br>  <currentMemory unit='KiB'>262144</currentMemory><br>  <os><br>    <type arch='armv7l' machine='virt-2.9'>hvm</type><br>    <kernel>~/zImage</kernel><br>    <cmdline>console=ttyAMA0 root=/dev/vda</cmdline><br>    <boot dev='hd'/><br>  </os><br> <br>  <on_poweroff>destroy</on_poweroff><br>  <on_reboot>restart</on_reboot><br>  <on_crash>destroy</on_crash><br>  <devices><br>    <emulator>/usr/bin/qemu-system-aarch64</emulator><br>      <disk type='file' device='disk'><br>      <driver name='qemu' type='qcow2'/><br>      <source file='

~/rootfs.qcow2'/><br>      <target dev='hda' bus='virtio'/><br>      </disk><br>    <controller type='virtio-serial' index='0'><br>      <address type='virtio-mmio'/><br>    </controller><br>    <interface type='network'><br>      <mac address='52:54:00:09:a4:37'/><br>      <model type='virtio'/><br>      <source network='pepito'/><br>      <address type='virtio-mmio'/><br>    </interface><br> </devices><br><qemu:commandline><br>       <qemu:arg value='-device'/><br>        <qemu:arg value='virtio-net-pci'/><br>        <qemu:arg value='-netdev'/><br>        <qemu:arg value='user,id=net1'/><br>  </qemu:commandline><br></domain><br></div><div><br></div><div>They both work as I created them in a different computer and everything works. But I'm trying it on my other Ubuntu machine, and once virsh creates the network and the domain, my VM never get an IP from that DHCP range. This is libvirtd log:</div><div><br></div><div>abr 17 00:48:11 usuario-System-Product-Name dnsmasq-dhcp[13741]: DHCP, IP range 192.168.150.2 -- 192.168.150.254, lease time 1h<br>abr 17 00:48:11 usuario-System-Product-Name dnsmasq-dhcp[13741]: DHCP, sockets bound exclusively to interface virbr2<br>abr 17 00:48:11 usuario-System-Product-Name dnsmasq[13741]: reading /etc/resolv.conf<br>abr 17 00:48:11 usuario-System-Product-Name dnsmasq[13741]: using nameserver 127.0.0.53#53<br>abr 17 00:48:11 usuario-System-Product-Name dnsmasq[13741]: read /etc/hosts - 7 addresses<br>abr 17 00:48:11 usuario-System-Product-Name dnsmasq[13741]: read /var/lib/libvirt/dnsmasq/pepito.addnhosts - 0 addresses<br>abr 17 00:48:11 usuario-System-Product-Name dnsmasq-dhcp[13741]: read /var/lib/libvirt/dnsmasq/pepito.hostsfile<br></div><div><br></div><div><br></div><div>Does anybody know why it could be that the VM never gets an IP from the range I defined? As I said, exactly the same configuration worked in a different machine, I don't know why it does not work here.</div><div><br></div><div>Thank you so much!!</div></div><div id="gmail-m_1529389328306967443gmail-m_-9208904238504833900DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2"><br> <table style="border-top:1px solid rgb(211,212,222)">
        <tbody><tr>
      <td style="width:55px;padding-top:18px"><a href="https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail" target="_blank"><img src="https://ipmcdn.avast.com/images/icons/icon-envelope-tick-round-orange-animated-no-repeat-v1.gif" alt="" style="width: 46px; height: 29px;" width="46" height="29"></a></td>
                <td style="width:470px;padding-top:17px;color:rgb(65,66,78);font-size:13px;font-family:Arial,Helvetica,sans-serif;line-height:18px">Libre de virus. <a href="https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail" style="color:rgb(68,83,234)" target="_blank">www.avast.com</a>          </td>
        </tr>
</tbody></table>
<a href="#m_1529389328306967443_m_-9208904238504833900_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2" width="1" height="1"></a></div>
</blockquote></div>
</blockquote></div>