You are not logged in.

#1 2022-10-02 14:06:46

Xephobia
Member
Registered: 2021-12-29
Posts: 8

libvirt : windows guest vm not receiving IP from dhcp

Hi, i'm trying to run a windows vm with my system. I had to blacklist in connman the network interface vnet and virbr, because when starting a vm, it would drop the connection on the host.

On the windows vm, the network shows up as unidentified, and when trying `ipconfig /renew` in the cmd, i get "unable to contact your DHCP server. Request has timed out.". In virt-manager, no ip address seems to be attribued to the NIC.

here's the xml config of my network :

<network>
  <name>default</name>
  <uuid>64645aac-5869-4a50-8c8f-7d71caea1f0c</uuid>
  <forward mode="nat">
    <nat>
      <port start="1024" end="65535"/>
    </nat>
  </forward>
  <bridge name="virbr0" stp="on" delay="0"/>
  <mac address="52:54:00:6c:c5:6f"/>
  <ip address="192.168.122.1" netmask="255.255.255.0">
    <dhcp>
      <range start="192.168.122.2" end="192.168.122.254"/>
    </dhcp>
  </ip>
</network>

Interestingly, virbr0 seems down :

[(16:04:15)xeph:~]ip link
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: eno1: <NO-CARRIER,BROADCAST,MULTICAST,DYNAMIC,UP> mtu 1500 qdisc fq_pie state DOWN mode DEFAULT group default qlen 1000
    link/ether 38:f3:ab:90:47:d3 brd ff:ff:ff:ff:ff:ff
    altname enp3s0
38: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP mode DORMANT group default qlen 1000
    link/ether 48:51:c5:27:99:a8 brd ff:ff:ff:ff:ff:ff
54: wg-mullvad: <POINTOPOINT,UP,LOWER_UP> mtu 1380 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
    link/none
59: vnet8: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
    link/ether fe:54:00:ca:39:a0 brd ff:ff:ff:ff:ff:ff
61: virbr0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN mode DEFAULT group default qlen 1000
    link/ether 52:54:00:6c:c5:6f brd ff:ff:ff:ff:ff:ff

and it cant seem to be brought back up.

Offline

Board footer

Powered by FluxBB