From nobody Mon Jan 15 11:27:16 2024 X-Original-To: xen@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4TD8xc4vPTz56hmF for ; Mon, 15 Jan 2024 11:27:16 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TD8xc24cHz4KLB for ; Mon, 15 Jan 2024 11:27:16 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1705318036; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=h2mqz3XmfkZwZIJ/YSQEZVVEWiSNCOIufoGroD06OLc=; b=lHMfjZbexc5RbIAs2HTdOdCA9SPQU25Dzg4qnnFeR3PXZogx/NaT/Hi/9RDMhn5xBMTCzT T3J68akr7wHG2n3Q/YVEwvQuBbCY3pexuL7uYbygQ98OXlnivUALHCivoSFzvrjwWbiOw4 vQyOoURKoM18Wh3hRGkci+B9cfvYJa15c5QEPe0OwjC+FJjW1QE3pQbMvm/kTkG9nqp9rw tTjoz/rdOZMCNhozinmXvfcjWWM1QdkR9J8mX8EIR2lHyQV4Vt6XFIpri09V/gRi+eC2GJ eAtK7jopcJHaaxFyaCNnRRpYJRoiyCZaaxR80IVVaxaLr0nhz9B2f43NMyASRw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1705318036; a=rsa-sha256; cv=none; b=B2gE49u9LYxKzojbKBZou3zJCCm2jpyEfkRqkI9IoksUHzw+ZewPaTupyFGnhmPwcvH/9K Ys/fQyHvNWEJRBZEG6c9N5826EXQj7lLIgTky6IZFFuT5Xi2YR0L3G1JyItQruaqgnM/6U ZF65qcuXF1cJj95JevrDI7BFMl8SyqhVvz9OxjumCSw0lRXMo878kt/YZHgh+1sko5arzS XwI/RP0VKsJhySiKxjb+aMdf3BT0GqTUnjMOIbi04Cr5Y2CcqO/SzCuwYBD6ETcqMKxDJ+ BUxc8nocP7wqbcGbO35fzHM5m0TfpMjaLblXqFJAokP7BceIYWlwXGBBVE7s1A== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4TD8xc10MNzv9G for ; Mon, 15 Jan 2024 11:27:16 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 40FBRGlR006262 for ; Mon, 15 Jan 2024 11:27:16 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 40FBRGR6006253 for xen@FreeBSD.org; Mon, 15 Jan 2024 11:27:16 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: xen@FreeBSD.org Subject: [Bug 188990] [xen] dhclient(8) does not accept DHCP Offer on FreeBSD 10 as Xen DomU Guest Date: Mon, 15 Jan 2024 11:27:16 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 10.0-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: marietto2008@gmail.com X-Bugzilla-Status: In Progress X-Bugzilla-Resolution: X-Bugzilla-Priority: Normal X-Bugzilla-Assigned-To: xen@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Discussion List-Archive: https://lists.freebsd.org/archives/freebsd-xen List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-xen@freebsd.org X-BeenThere: freebsd-xen@freebsd.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D188990 --- Comment #33 from mario felicioni --- This is the script that I use when I boot the debian vm under xen : name=3D"debian" kernel =3D '/mnt/zroot2/zroot2/OS/Chromebook/linux-xen/domU-linux/zImage-6.1.59-stb-xe= n-cbe+' memory=3D512 vcpus=3D1 autoballon=3D"on" disk =3D [ 'debian.img,raw,xvda,w' ] vfb =3D [ 'type=3Dvnc,vnclisten=3D0.0.0.0,vncdisplay=3D1' ] vif =3D [ 'type=3Dvif,mac=3D00:16:3e:xx:xx:xx,script=3Dvif-route-local,ip= =3D192.168.1.14' ] extra =3D 'console=3Dhvc0 root=3D/dev/xvda rw init=3D/sbin/init xen-fbfront.video=3D24,1024,768' This is the script that's invoked when I launch the vm : #!/bin/bash #=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D # ${XEN_SCRIPT_DIR}/vif-route # # Script for configuring a vif in routed mode. # # Usage: # vif-route (add|remove|online|offline) # # Environment vars: # dev vif interface name (required). # XENBUS_PATH path to this device's details in the XenStore (required). # # Read from the store: # ip list of IP networks for the vif, space-separated (default given in # this script). #=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D dir=3D$(dirname "$0") . "${dir}/vif-common.sh" netdev=3Denx8cae4cd6c871 main_ip=3D$(dom0_ip) case "${command}" in add|online) echo $dev echo $ip echo $main_ip ifconfig ${dev} ${main_ip} netmask 255.255.255.255 up echo 1 >/proc/sys/net/ipv4/conf/${dev}/proxy_arp echo 1 >/proc/sys/net/ipv4/conf/${dev}/forwarding echo 1 >/proc/sys/net/ipv4/conf/enx8cae4cd6c871/forwarding echo 1 >/proc/sys/net/ipv4/conf/enx8cae4cd6c871/proxy_arp /usr/sbin/arp -i enx8cae4cd6c871 -Ds $ip enx8cae4cd6c871 pub echo "/usr/sbin/arp -i enx8cae4cd6c871 -Ds $ip enx8cae4cd6c871 pub" ipcmd=3D'add' cmdprefix=3D'' ;; remove|offline) do_without_error ifdown ${dev} ipcmd=3D'del' cmdprefix=3D'do_without_error' ;; esac case "${type_if}" in tap) metric=3D1 ;; vif) metric=3D2 ;; *) fatal "Unrecognised interface type ${type_if}" ;; esac # If we've been given a list of IP addresses, then add routes from dom0 to # the guest using those addresses. for addr in ${ip} ; do ${cmdprefix} ip route ${ipcmd} ${addr} dev ${dev} src ${main_ip} metric ${metric} done handle_iptable call_hooks vif post log debug "Successful vif-route ${command} for ${dev}." if [ "${command}" =3D "online" ] then success fi this line : echo "/usr/sbin/arp -i enx8cae4cd6c871 -Ds $ip enx8cae4cd6c871 pub" it seems wrong,but I don't understand how to fix it. $ip should be 192.168.= 1.14 and it takes it from here : vif =3D [ 'type=3Dvif,mac=3D00:16:3e:xx:xx:xx,script=3Dvif-route-local,ip= =3D192.168.1.14' ] so basically it assign to the network interface called "enx8cae4cd6c871" (that's on the host os (devuan) IP 192.168.1.14 ; it's a share that this do= es not happen. There is something wrong. I think 192.168.1.14 should be assign= ed to the vif network interface ? If it works like this,this does not haopens,because both the interfaces came out with IP 1.3 : enx8cae4cd6c871: flags=3D4163 mtu 1500 inet 192.168.1.3 netmask 255.255.255.0 broadcast 192.168.1.255 inet6 fe80::e475:9ea5:4deb:e9e6 prefixlen 64 scopeid 0x20 ether 8c:ae:4c:d6:c8:71 txqueuelen 1000 (Ethernet) RX packets 349834 bytes 476244626 (454.1 MiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 81291 bytes 22926191 (21.8 MiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 lo: flags=3D73 mtu 65536 inet 127.0.0.1 netmask 255.0.0.0 inet6 ::1 prefixlen 128 scopeid 0x10 loop txqueuelen 1000 (Local Loopback) RX packets 4307 bytes 1590600 (1.5 MiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 4307 bytes 1590600 (1.5 MiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 mlan0: flags=3D-28669 mtu 1500 ether 06:7e:6c:db:b5:f6 txqueuelen 1000 (Ethernet) RX packets 0 bytes 0 (0.0 B) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 0 bytes 0 (0.0 B) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 vif9.0: flags=3D4163 mtu 1500 inet 192.168.1.3 netmask 255.255.255.255 broadcast 192.168.1.255 ether fe:ff:ff:ff:ff:ff txqueuelen 1000 (Ethernet) RX packets 0 bytes 0 (0.0 B) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 2 bytes 286 (286.0 B) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 --=20 You are receiving this mail because: You are the assignee for the bug.=