2016-11-09 1 views
-1

Ich habe Probleme beim Einrichten einer PXE-VM. Es sendet DHCP-Anfragen und der Server sendet Antworten, aber die VM scheint die Antwort nicht zu verarbeiten. Ich bin mir nicht sicher über die Ursache.libvirt DHCP schlägt vom Host fehl

Ich habe bestätigt, dass physische Maschinen mit den gleichen DHCP- und PXE-Einstellungen einwandfrei funktionieren und die DHCP-Anforderungen und -Antworten identisch mit denen der VM sind.

Der DHCP-Server wird von MaaS bereitgestellt und befindet sich auf dem Host.

Unten ist ein Bild des Fehlers.

error

der VM erzeugt wird mit: virt-install --name=maas-node-1 --connect=qemu:///system --ram=15360 --vcpus=8 --hvm --virt-type=kvm --pxe --boot network,hd --os-variant=ubuntu16.04 --graphics vnc --os-type=linux --accelerate --disk=/var/lib/libvirt/images/maas-node-1.qcow2,bus=virtio,format=qcow2,cache=none,sparse=true,size=60 --network=bridge:br0,model=virtio

Das Netzwerk konfiguriert sind, als:

auto br0 
iface br0 inet static 
    address 192.168.10.2 
    network 192.168.10.0 
    broadcast 192.168.10.255 
    netmask 255.255.255.0 
    gateway 192.168.10.1 
    dns-nameservers 192.168.10.2 
    bridge_ports bond0 
    bridge_stp off 
    bridge_fd 0 
    bridge_maxwait 0 


auto bond0 
iface bond0 inet manual 
    mtu 1500 
    bond-miimon 100 
    bond-downdelay 200 
    bond-updelay 200 
    bond-mode 0 
    bond-slaves none 
    post-up ifenslave bond0 eno1 eno2 eno3 eno4 
    pre-down ifenslave bond0 eno1 eno2 eno3 eno4 
... 

DHCP-Anforderung ist:

steel.maas.bootpc > 255.255.255.255.bootps: [udp sum ok] BOOTP/DHCP, Request from 18:03:73:f8:ea:c9 (oui Unknown), length 257, xid 0xf97e014f, Flags [Broadcast] (0x8000) 
     Client-Ethernet-Address 18:03:73:f8:ea:c9 (oui Unknown) 
     Vendor-rfc1048 Extensions 
     Magic Cookie 0x63825363 
     DHCP-Message Option 53, length 1: Discover 
     Client-ID Option 61, length 6: ieee1394 03:73:f8:ea:c9 
     Parameter-Request Option 55, length 3: 
      Default-Gateway, Subnet-Mask, Domain-Name-Server 

DHCP-Antwort ist:

steel.maas.bootps > 255.255.255.255.bootpc: [udp sum ok] BOOTP/DHCP, Reply, length 300, xid 0xf97e014f, Flags [Broadcast] (0x8000) 
     Your-IP steel.maas 
     Server-IP steel.maas 
     Client-Ethernet-Address 18:03:73:f8:ea:c9 (oui Unknown) 
     file "pxelinux.0" 
     Vendor-rfc1048 Extensions 
     Magic Cookie 0x63825363 
     DHCP-Message Option 53, length 1: Offer 
     Server-ID Option 54, length 4: steel.maas 
     Lease-Time Option 51, length 4: 600 
     Subnet-Mask Option 1, length 4: 255.255.255.0 
     Default-Gateway Option 3, length 4: 192.168.10.1 
     Domain-Name-Server Option 6, length 4: steel.maas 

Antwort