-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hallo Community, i have a "little" Problem with the new Debian Whezzy (Kernel: 3.9-0.bpo.1-amd64) and the IPv6 for the DomU`s. The Dom0 is okay, IPv6 Adress is configure and the Ping (ping6 ipv6.google.com) work: PING ipv6.google.com(ham02s12-in-x13.1e100.net) 56 data bytes 64 bytes from ham02s12-in-x13.1e100.net: icmp_seq=1 ttl=56 time=10.5 ms 64 bytes from ham02s12-in-x13.1e100.net: icmp_seq=2 ttl=56 time=10.6 ms 64 bytes from ham02s12-in-x13.1e100.net: icmp_seq=3 ttl=56 time=10.5 ms I create the DomU with IPv4 Adress and add the IPv6 later: /etc/xen/test1.cfg bootloader = '/usr/lib/xen-4.1/bin/pygrub' vcpus = '1' memory = '512' root = '/dev/xvda2 ro' disk = [ 'phy:/dev/lvm/test1-disk,xvda2,w', 'phy:/dev/lvm/test1-swap,xvda1,w', ] name = 'test1' vif = [ 'ip=x.x.x.x x:x:x:x::11,mac=00:16:3E:BF:1E:43,vifname=test1' ] on_poweroff = 'destroy' on_reboot = 'restart' on_crash = 'restart' When i am started the DomU, i become this message: Error: Device 0 (vif) could not be connected. /etc/xen/scripts/vif-route failed; error detected. In the Syslog File is the output: logger: /etc/xen/scripts/block: add XENBUS_PATH=backend/vbd/7/51714 logger: /etc/xen/scripts/block: add XENBUS_PATH=backend/vbd/7/51713 logger: /etc/xen/scripts/vif-route: online type_if=vif XENBUS_PATH=backend/vif/7/0 kernel: [13106.404640] IPv6: ADDRCONF(NETDEV_UP): nagios1: link is not ready logger: /etc/xen/scripts/vif-route: Writing backend/vif/7/0/hotplug-error /etc/xen/scripts/vif-route failed; error detected. backend/vif/7/0/hotplug-status error to xenstore. logger: /etc/xen/scripts/block: Writing backend/vbd/7/51714/physical-device fe:1 to xenstore. logger: /etc/xen/scripts/vif-route: /etc/xen/scripts/vif-route failed; error detected. logger: /etc/xen/scripts/block: Writing backend/vbd/7/51714/hotplug-status connected to xenstore. logger: /etc/xen/scripts/block: Writing backend/vbd/7/51713/physical-device fe:0 to xenstore. logger: /etc/xen/scripts/block: Writing backend/vbd/7/51713/hotplug-status connected to xenstore. logger: /etc/xen/scripts/xen-hotplug-cleanup: XENBUS_PATH=backend/console/7/0 logger: /etc/xen/scripts/block: remove XENBUS_PATH=backend/vbd/7/51714 logger: /etc/xen/scripts/block: remove XENBUS_PATH=backend/vbd/7/51713 logger: /etc/xen/scripts/vif-route: offline type_if=vif XENBUS_PATH=backend/vif/7/0 logger: /etc/xen/scripts/xen-hotplug-cleanup: XENBUS_PATH=backend/vbd/7/51713 logger: /etc/xen/scripts/xen-hotplug-cleanup: XENBUS_PATH=backend/vbd/7/51714 logger: /etc/xen/scripts/vif-route: ip route del x.x.x.x dev nagios1 src x.x.x.x failed logger: /etc/xen/scripts/vif-route: ip route del x:x:x:x::11 dev nagios1 src x.x.x.x failed logger: /etc/xen/scripts/vif-route: Successful vif-route offline for nagios1. logger: /etc/xen/scripts/xen-hotplug-cleanup: XENBUS_PATH=backend/vif/7/0 I read the instruction on the german site (http://www.pug.org/mediawiki/index.php/IPV6/xen-route) and I test it, but the DomU isn`t started (I changed the /etc/xen/scripts/vif-route). Have any idea, where is problem? Thank you for help. Best regards Ronny -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.13 (MingW32) Comment: Using gpg4o v3.1.32.3098 - http://www.gpg4o.de/ Charset: utf-8 iQGcBAEBAgAGBQJR29l2AAoJEB1lYcD99gJyAzQL/0cKYwgc8/H/AHS4Evtl4FY1 Z/jKN/nfc5ST5pE0tRJZn5DsKB0LmQAnq8rQYgnI2sazclYGriDuzT8VWM4NMbCQ zKo1SMU2SGQJQDXXzOzXfUOIWbbcFmLIE+j96pCrqO1uuTUIaf5UKX72LmN0VTkH 6XWRtg5n6ZQiod4//U68hyjZiQ4sf3qWV99BAbPgkgrKXorExSX8ME90T6JnDfEZ UkRjxJYuxeTwLjB4oMZFUwD7bl8O+yZOm2NQmI4VZaLn6qOquXr2nHJYUxAJJ+Xp EX24Bnoj71jx9YL8THAdY+B81T2bvr0CLRKvuzLC6DLqOC1WdmA3hpiHqcypAFe0 aaWnCARpBka/uLa/jsgIN7BaU1GW543Y/RGii8FOkKzyr2jR0hU9ynfj2FP8mffr FcihfhQk9zfuAgf56JTPek6Wj+kiGuTghrzT6gtDKSO/dQhNfbJXW+kgnGFsCjtq YPVVzWaxt8nji63SOfUzz6qaHKXm6aPziE3lQZAV/g==9ede -----END PGP SIGNATURE----- _______________________________________________ Xen-users mailing list Xen-users@lists.xen.org http://lists.xen.org/xen-users
On Tue, 2013-07-09 at 09:35 +0000, Ronny Wagner wrote:> logger: /etc/xen/scripts/vif-route: Writing backend/vif/7/0/hotplug-error /etc/xen/scripts/vif-route failed; error detected. backend/vif/7/0/hotplug-status error to xenstore.This suggests that an error message was written to xenstore. What was it?> [...]> I read the instruction on the german site > (http://www.pug.org/mediawiki/index.php/IPV6/xen-route) and I test it, > but the DomU isn`t started (I changed the /etc/xen/scripts/vif-route).Unless you tell us how you have changed it I don''t know how we can help. I suggest using "set -x" and "exec >>/tmp/hotplug.log; exec 2>&1" at the top of your script to log exactly what it is doing and where it is failing, from there debugging your script might be possible. Ian.
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi Ian, Thank you for your help. I replace the "vif-route" script with the entry on the website and add the debug entry too. Here is the output. Debug-Log: ++ dirname /etc/xen/scripts/vif-route + dir=/etc/xen/scripts + . /etc/xen/scripts/vif-common.sh +++ dirname /etc/xen/scripts/vif-route ++ dir=/etc/xen/scripts ++ . /etc/xen/scripts/xen-hotplug-common.sh ++++ dirname /etc/xen/scripts/vif-route +++ dir=/etc/xen/scripts +++ . /etc/xen/scripts/hotplugpath.sh ++++ SBINDIR=/usr/sbin ++++ BINDIR=/usr/bin ++++ LIBEXEC=/usr/lib/xen-/bin ++++ LIBDIR=/usr/lib ++++ SHAREDIR=/usr/share ++++ PRIVATE_BINDIR=/usr/lib/xen-/bin ++++ XENFIRMWAREDIR=/usr/lib/xen-/boot ++++ XEN_CONFIG_DIR=/etc/xen ++++ XEN_SCRIPT_DIR=/etc/xen/scripts ++++ XEN_LOCK_DIR=/var/lock +++ . /etc/xen/scripts/logging.sh +++ . /etc/xen/scripts/xen-script-common.sh ++++ set -e +++ . /etc/xen/scripts/locking.sh ++++ LOCK_SLEEPTIME=1 ++++ LOCK_SPINNING_RETRIES=5 ++++ LOCK_RETRIES=100 ++++ LOCK_BASEDIR=/var/run/xen-hotplug +++ exec ++ dirname /etc/xen/scripts/vif-route + dir=/etc/xen/scripts + . /etc/xen/scripts/vif-common.sh +++ dirname /etc/xen/scripts/vif-route ++ dir=/etc/xen/scripts ++ . /etc/xen/scripts/xen-hotplug-common.sh ++++ dirname /etc/xen/scripts/vif-route +++ dir=/etc/xen/scripts +++ . /etc/xen/scripts/hotplugpath.sh ++++ SBINDIR=/usr/sbin ++++ BINDIR=/usr/bin ++++ LIBEXEC=/usr/lib/xen-/bin ++++ LIBDIR=/usr/lib ++++ SHAREDIR=/usr/share ++++ PRIVATE_BINDIR=/usr/lib/xen-/bin ++++ XENFIRMWAREDIR=/usr/lib/xen-/boot ++++ XEN_CONFIG_DIR=/etc/xen ++++ XEN_SCRIPT_DIR=/etc/xen/scripts ++++ XEN_LOCK_DIR=/var/lock +++ . /etc/xen/scripts/logging.sh +++ . /etc/xen/scripts/xen-script-common.sh ++++ set -e +++ . /etc/xen/scripts/locking.sh ++++ LOCK_SLEEPTIME=1 ++++ LOCK_SPINNING_RETRIES=5 ++++ LOCK_RETRIES=100 ++++ LOCK_BASEDIR=/var/run/xen-hotplug +++ exec What do you see here? See you the Problem? I am not. Thank you Ronny - -----Ursprüngliche Nachricht----- Von: Ian Campbell [mailto:ian.campbell@citrix.com] Gesendet: Dienstag, 9. Juli 2013 13:26 An: Ronny Wagner Cc: Xen-users@lists.xen.org Betreff: Re: [Xen-users] Debian whezzy & Xen 4.1 & IPv6 On Tue, 2013-07-09 at 09:35 +0000, Ronny Wagner wrote:> logger: /etc/xen/scripts/vif-route: Writing backend/vif/7/0/hotplug-error /etc/xen/scripts/vif-route failed; error detected. backend/vif/7/0/hotplug-status error to xenstore.This suggests that an error message was written to xenstore. What was it?> [...]> I read the instruction on the german site > (http://www.pug.org/mediawiki/index.php/IPV6/xen-route) and I test it, > but the DomU isn`t started (I changed the /etc/xen/scripts/vif-route).Unless you tell us how you have changed it I don''t know how we can help. I suggest using "set -x" and "exec >>/tmp/hotplug.log; exec 2>&1" at the top of your script to log exactly what it is doing and where it is failing, from there debugging your script might be possible. Ian. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.13 (MingW32) Comment: Using gpg4o v3.1.32.3098 - http://www.gpg4o.de/ Charset: utf-8 iQGcBAEBAgAGBQJR2/iiAAoJEB1lYcD99gJy7EsL/jNLiSkO8nqY9bhe1gvjUtBV 1AI9mm1wMZ89L3O4cAxso8b1wxs/LHGzIENmFAJa/nbC/eJ/AfhWuclV6HLHNsIn yQthRqm76PNZZnljtkhzeEFbYjFt+ssf6cT1c5+1Za0OTU7Co7Vr1jDVIaJuzZCi SrIfNIY933UT6dNCLrGw/SuQDQVzuRtgT9hvRd/+SsYsYoISaLJCJXw2mzPAZ+Uq e1vvME/uQ48SY6SzkHCMv62x33Vz3daHoGMeeRGkBYSKs+Wl/LmHglXporO0Tdfx bIk2BvZl8e3D3Ah/TvYjYRbap/21p4LtmI8lpr8V0Bx8NyrMrY/uO6ElMTzjCqWX cW4R7T/AqhH5JoXLeR2t+c4qU7J7xHjrmE/9PtAtpS7RhW7lHbMoBTbj7oa/KiGE V+t1o8d5fkJnq9w8dFKEsEXgOI7JUVe7knWIA6rOCP6lMgkoACUFqh8hXd0kYBW4 i8ZRH5GYc8JGmF/A6yFa3SmyqsDzeJ5HTv3s4+E/0g==3D+R -----END PGP SIGNATURE----- _______________________________________________ Xen-users mailing list Xen-users@lists.xen.org http://lists.xen.org/xen-users
On Tue, 2013-07-09 at 11:48 +0000, Ronny Wagner wrote:> Hi Ian, > > Thank you for your help. I replace the "vif-route" script with the entry on the website and add the debug entry too. Here is the output. > Debug-Log: > ++ dirname /etc/xen/scripts/vif-route > + dir=/etc/xen/scripts > + . /etc/xen/scripts/vif-common.sh > +++ dirname /etc/xen/scripts/vif-route > ++ dir=/etc/xen/scripts > ++ . /etc/xen/scripts/xen-hotplug-common.sh > ++++ dirname /etc/xen/scripts/vif-route > +++ dir=/etc/xen/scripts > +++ . /etc/xen/scripts/hotplugpath.sh > ++++ SBINDIR=/usr/sbin > ++++ BINDIR=/usr/bin > ++++ LIBEXEC=/usr/lib/xen-/bin > ++++ LIBDIR=/usr/lib > ++++ SHAREDIR=/usr/share > ++++ PRIVATE_BINDIR=/usr/lib/xen-/bin > ++++ XENFIRMWAREDIR=/usr/lib/xen-/boot > ++++ XEN_CONFIG_DIR=/etc/xen > ++++ XEN_SCRIPT_DIR=/etc/xen/scripts > ++++ XEN_LOCK_DIR=/var/lock > +++ . /etc/xen/scripts/logging.sh > +++ . /etc/xen/scripts/xen-script-common.sh > ++++ set -e > +++ . /etc/xen/scripts/locking.sh > ++++ LOCK_SLEEPTIME=1 > ++++ LOCK_SPINNING_RETRIES=5 > ++++ LOCK_RETRIES=100 > ++++ LOCK_BASEDIR=/var/run/xen-hotplug > +++ exec > ++ dirname /etc/xen/scripts/vif-route > + dir=/etc/xen/scripts > + . /etc/xen/scripts/vif-common.sh > +++ dirname /etc/xen/scripts/vif-route > ++ dir=/etc/xen/scripts > ++ . /etc/xen/scripts/xen-hotplug-common.sh > ++++ dirname /etc/xen/scripts/vif-route > +++ dir=/etc/xen/scripts > +++ . /etc/xen/scripts/hotplugpath.sh > ++++ SBINDIR=/usr/sbin > ++++ BINDIR=/usr/bin > ++++ LIBEXEC=/usr/lib/xen-/bin > ++++ LIBDIR=/usr/lib > ++++ SHAREDIR=/usr/share > ++++ PRIVATE_BINDIR=/usr/lib/xen-/bin > ++++ XENFIRMWAREDIR=/usr/lib/xen-/boot > ++++ XEN_CONFIG_DIR=/etc/xen > ++++ XEN_SCRIPT_DIR=/etc/xen/scripts > ++++ XEN_LOCK_DIR=/var/lock > +++ . /etc/xen/scripts/logging.sh > +++ . /etc/xen/scripts/xen-script-common.sh > ++++ set -e > +++ . /etc/xen/scripts/locking.sh > ++++ LOCK_SLEEPTIME=1 > ++++ LOCK_SPINNING_RETRIES=5 > ++++ LOCK_RETRIES=100 > ++++ LOCK_BASEDIR=/var/run/xen-hotplug > +++ exec > > What do you see here? See you the Problem? I am not.me neither, but then this log doesn''t seem to contain much "meat" i.e. it doesn''t appear like the script is actually doing anything. I expect it is really and we simply haven''t captured the right bits. You might want to test out my suggested exec runes in a test script, perhaps I got the syntax wrong. Or just add your own "echo foo > file" tests to the script to try and track it down that way. Ian.
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi Ian, here is the config file "vif-route": #!/bin/bash # Read from the store: # ip list of IP networks for the vif, space-separated (default given in # this script). IPv6 should also work. #=========================================================================== exec 1>>/tmp/vif-route.log; exec 2>&1 echo "$0 $@ at `date`" set -x dir=$(dirname "$0") . "$dir/vif-common.sh" ip6_of() { ip -6 addr show "$1" | perl -wane ''/scope global/ && /inet6 (([0-9a-f]+:*)+)/ && print $1;'' } dom0_ip6() { local nd=${netdev:-eth0} local result=$(ip6_of "$nd") if [ -z "$result" ] then "" else echo "$result" fi } is_ipv6() { echo "$1" | perl -wane ''/:/ && print "yes"'' } main_ip=$(dom0_ip) main_ip6=$(dom0_ip6) case "$command" in online) log info "[vif-route] online request, ip ${ip} with main_ip ${main_ip} and main_ip6 ${main_ip6} for $vif." ifconfig ${vif} ${main_ip} netmask 255.255.255.255 up if [ ! -z "${main_ip6}" ]; then ip -6 addr add ${main_ip6} dev ${vif} echo 1 >/proc/sys/net/ipv6/conf/${vif}/proxy_ndp fi echo 1 >/proc/sys/net/ipv4/conf/${vif}/proxy_arp ipcmd=''add'' cmdprefix='''' ;; offline) do_without_error ifdown ${vif} ipcmd=''del'' cmdprefix=''do_without_error'' ;; esac if [ "${ip}" ] ; then # 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 result=$(is_ipv6 "${addr}") if [ -z "${result}" ] ; then log info "[vif-route] Adding IPv4 address ${addr} with src ${main_ip} for $vif." result=`${cmdprefix} ip route ${ipcmd} ${addr} dev ${vif} src ${main_ip} 2>&1` log info "[vif-route] Result: ${result}" else log info "[vif-route] Adding IPv6 address ${addr} with src ${main_ip6} for $vif." result=`${cmdprefix} ip -6 route ${ipcmd} ${addr} dev ${vif} src ${main_ip6} 2>&1` log info "[vif-route] Result: ${result}" log info "[vif-route] Adding IPv6 proxy ${addr} on ${netdev:-eth0}." result=`${cmdprefix} ip -6 neighbor ${ipcmd} proxy ${addr} dev ${netdev:-eth0} 2>&1` log info "[vif-route] Result: ${result}" fi done fi handle_iptable log debug "Successful vif-route $command for $vif." if [ "$command" = "online" ] then success fi And when I understand you correct, you need the output from the log file /var/log/xen/xen-hotplug.log: +++ export PATH=/usr/bin:/usr/sbin:/usr/lib/xen-/bin:/usr/lib/xen-/bin:/sbin:/bin:/usr/bin:/usr/sbin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin +++ PATH=/usr/bin:/usr/sbin:/usr/lib/xen-/bin:/usr/lib/xen-/bin:/sbin:/bin:/usr/bin:/usr/sbin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin +++ export LANG=POSIX +++ LANG=POSIX ++++ set ++++ grep ''^LC_'' ++++ cut -d= -f1 +++ unset +++ trap sigerr ERR +++ log debug netdev=eth0 online type_if=vif XENBUS_PATH=backend/vif/13/0 +++ local level=debug +++ shift +++ logger -p daemon.debug -- /etc/xen/scripts/vif-route: netdev=eth0 online type_if=vif XENBUS_PATH=backend/vif/13/0 ++ . /etc/xen/scripts/xen-network-common.sh +++ which ifup ++ findCommand netdev=eth0 online type_if=vif ++ for arg in ''"$@"'' ++ expr index netdev=eth0 ++ for arg in ''"$@"'' ++ expr index online ++ command=online ++ return ++ ''['' online ''!='' online '']'' ++ evalVariables netdev=eth0 online type_if=vif ++ for arg in ''"$@"'' ++ expr index netdev=eth0 = ''>'' 1 ++ eval netdev=eth0 +++ netdev=eth0 ++ for arg in ''"$@"'' ++ expr index online = ''>'' 1 ++ for arg in ''"$@"'' ++ expr index type_if=vif = ''>'' 1 ++ eval type_if=vif +++ type_if=vif ++ : vif ++ case "$type_if" in ++ dev=vif13.0 ++ case "$command" in ++ test vif ''!='' vif ++ ''['' vif = vif '']'' ++ XENBUS_PATH=backend/vif/13/0 ++ dev=vif13.0 +++ xenstore_read_default backend/vif/13/0/vifname '''' +++ xenstore-read backend/vif/13/0/vifname ++ vifname=nagios1 ++ ''['' nagios1 '']'' ++ ''['' online == online '']'' ++ ip link show nagios1 ++ do_or_die ip link set vif13.0 name nagios1 ++ ip link set vif13.0 name nagios1 ++ dev=nagios1 ++ ip+++ xenstore_read_default backend/vif/13/0/ip '''' +++ xenstore-read backend/vif/13/0/ip ++ ip=''x.x.x.x x:x:x:x::11'' ++ dom0_ip ++ local nd=eth0 +++ ip_of eth0 +++ sed -n ''1 s,/.*,,p'' +++ awk ''/^.*inet.*eth0$/{print $2}'' +++ ip addr show eth0 ++ local result++ ''['' -z '''' '']'' ++ fatal ++ _xenstore_write backend/vif/13/0/hotplug-error '''' backend/vif/13/0/hotplug-status error ++ log debug ''Writing backend/vif/13/0/hotplug-error'' '''' backend/vif/13/0/hotplug-status ''error to xenstore.'' ++ local level=debug ++ shift ++ logger -p daemon.debug -- /etc/xen/scripts/vif-route: ''Writing backend/vif/13/0/hotplug-error'' '''' backend/vif/13/0/hotplug-status ''error to xenstore.'' ++ xenstore-write backend/vif/13/0/hotplug-error '''' backend/vif/13/0/hotplug-status error ++ log err ++ local level=err ++ shift ++ logger -p daemon.err -- /etc/xen/scripts/vif-route: ++ exit 1 + main_ip++ sigerr ++ fatal ''/etc/xen/scripts/vif-route failed; error detected.'' ++ _xenstore_write backend/vif/13/0/hotplug-error ''/etc/xen/scripts/vif-route failed; error detected.'' backend/vif/13/0/hotplug-status error ++ log debug ''Writing backend/vif/13/0/hotplug-error'' ''/etc/xen/scripts/vif-route failed; error detected.'' backend/vif/13/0/hotplug-status ''error to xenstore.'' ++ local level=debug ++ shift ++ logger -p daemon.debug -- /etc/xen/scripts/vif-route: ''Writing backend/vif/13/0/hotplug-error'' ''/etc/xen/scripts/vif-route failed; error detected.'' backend/vif/13/0/hotplug-status ''error to xenstore.'' ++ xenstore-write backend/vif/13/0/hotplug-error ''/etc/xen/scripts/vif-route failed; error detected.'' backend/vif/13/0/hotplug-status error ++ log err ''/etc/xen/scripts/vif-route failed; error detected.'' ++ local level=err ++ shift ++ logger -p daemon.err -- /etc/xen/scripts/vif-route: ''/etc/xen/scripts/vif-route failed; error detected.'' ++ exit 1 +++ export PATH=/usr/bin:/usr/sbin:/usr/lib/xen-/bin:/usr/lib/xen-/bin:/sbin:/bin:/usr/bin:/usr/sbin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin +++ PATH=/usr/bin:/usr/sbin:/usr/lib/xen-/bin:/usr/lib/xen-/bin:/sbin:/bin:/usr/bin:/usr/sbin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin +++ export LANG=POSIX +++ LANG=POSIX ++++ set ++++ cut -d= -f1 ++++ grep ''^LC_'' +++ unset +++ trap sigerr ERR +++ log debug netdev=eth0 offline type_if=vif XENBUS_PATH=backend/vif/13/0 +++ local level=debug +++ shift +++ logger -p daemon.debug -- /etc/xen/scripts/vif-route: netdev=eth0 offline type_if=vif XENBUS_PATH=backend/vif/13/0 ++ . /etc/xen/scripts/xen-network-common.sh +++ which ifup ++ findCommand netdev=eth0 offline type_if=vif ++ for arg in ''"$@"'' ++ expr index netdev=eth0 ++ for arg in ''"$@"'' ++ expr index offline ++ command=offline ++ return ++ ''['' offline ''!='' online '']'' ++ ''['' offline ''!='' offline '']'' ++ evalVariables netdev=eth0 offline type_if=vif ++ for arg in ''"$@"'' ++ expr index netdev=eth0 = ''>'' 1 ++ eval netdev=eth0 +++ netdev=eth0 ++ for arg in ''"$@"'' ++ expr index offline = ''>'' 1 ++ for arg in ''"$@"'' ++ expr index type_if=vif = ''>'' 1 ++ eval type_if=vif +++ type_if=vif ++ : vif ++ case "$type_if" in ++ dev=nagios1 ++ case "$command" in ++ test vif ''!='' vif ++ ''['' vif = vif '']'' ++ XENBUS_PATH=backend/vif/13/0 ++ dev=nagios1 +++ xenstore_read_default backend/vif/13/0/vifname '''' +++ xenstore-read backend/vif/13/0/vifname ++ vifname=nagios1 ++ ''['' nagios1 '']'' ++ ''['' offline == online '']'' ++ dev=nagios1 ++ ip+++ xenstore_read_default backend/vif/13/0/ip '''' +++ xenstore-read backend/vif/13/0/ip ++ ip=''x.x.x.x x:x:x:x::11'' ++ dom0_ip ++ local nd=eth0 +++ ip_of eth0 +++ ip addr show eth0 +++ awk ''/^.*inet.*eth0$/{print $2}'' +++ sed -n ''1 s,/.*,,p'' ++ local result++ ''['' -z '''' '']'' ++ fatal ++ _xenstore_write backend/vif/13/0/hotplug-error '''' backend/vif/13/0/hotplug-status error ++ log debug ''Writing backend/vif/13/0/hotplug-error'' '''' backend/vif/13/0/hotplug-status ''error to xenstore.'' ++ local level=debug ++ shift ++ logger -p daemon.debug -- /etc/xen/scripts/vif-route: ''Writing backend/vif/13/0/hotplug-error'' '''' backend/vif/13/0/hotplug-status ''error to xenstore.'' ++ xenstore-write backend/vif/13/0/hotplug-error '''' backend/vif/13/0/hotplug-status error ++ log err ++ local level=err ++ shift ++ logger -p daemon.err -- /etc/xen/scripts/vif-route: ++ exit 1 + main_ip++ sigerr ++ fatal ''/etc/xen/scripts/vif-route failed; error detected.'' ++ _xenstore_write backend/vif/13/0/hotplug-error ''/etc/xen/scripts/vif-route failed; error detected.'' backend/vif/13/0/hotplug-status error ++ log debug ''Writing backend/vif/13/0/hotplug-error'' ''/etc/xen/scripts/vif-route failed; error detected.'' backend/vif/13/0/hotplug-status ''error to xenstore.'' ++ local level=debug ++ shift ++ logger -p daemon.debug -- /etc/xen/scripts/vif-route: ''Writing backend/vif/13/0/hotplug-error'' ''/etc/xen/scripts/vif-route failed; error detected.'' backend/vif/13/0/hotplug-status ''error to xenstore.'' ++ xenstore-write backend/vif/13/0/hotplug-error ''/etc/xen/scripts/vif-route failed; error detected.'' backend/vif/13/0/hotplug-status error ++ log err ''/etc/xen/scripts/vif-route failed; error detected.'' ++ local level=err ++ shift ++ logger -p daemon.err -- /etc/xen/scripts/vif-route: ''/etc/xen/scripts/vif-route failed; error detected.'' ++ exit 1 What do you think? Thank you Ronny - -----Ursprüngliche Nachricht----- Von: Ian Campbell [mailto:ian.campbell@citrix.com] Gesendet: Dienstag, 9. Juli 2013 18:19 An: Ronny Wagner Cc: Xen-users@lists.xen.org Betreff: Re: [Xen-users] Debian whezzy & Xen 4.1 & IPv6 On Tue, 2013-07-09 at 11:48 +0000, Ronny Wagner wrote:> Hi Ian, > > Thank you for your help. I replace the "vif-route" script with the entry on the website and add the debug entry too. Here is the output. > Debug-Log: > ++ dirname /etc/xen/scripts/vif-route > + dir=/etc/xen/scripts > + . /etc/xen/scripts/vif-common.sh > +++ dirname /etc/xen/scripts/vif-route > ++ dir=/etc/xen/scripts > ++ . /etc/xen/scripts/xen-hotplug-common.sh > ++++ dirname /etc/xen/scripts/vif-route > +++ dir=/etc/xen/scripts > +++ . /etc/xen/scripts/hotplugpath.sh > ++++ SBINDIR=/usr/sbin > ++++ BINDIR=/usr/bin > ++++ LIBEXEC=/usr/lib/xen-/bin > ++++ LIBDIR=/usr/lib > ++++ SHAREDIR=/usr/share > ++++ PRIVATE_BINDIR=/usr/lib/xen-/bin > ++++ XENFIRMWAREDIR=/usr/lib/xen-/boot > ++++ XEN_CONFIG_DIR=/etc/xen > ++++ XEN_SCRIPT_DIR=/etc/xen/scripts > ++++ XEN_LOCK_DIR=/var/lock > +++ . /etc/xen/scripts/logging.sh > +++ . /etc/xen/scripts/xen-script-common.sh > ++++ set -e > +++ . /etc/xen/scripts/locking.sh > ++++ LOCK_SLEEPTIME=1 > ++++ LOCK_SPINNING_RETRIES=5 > ++++ LOCK_RETRIES=100 > ++++ LOCK_BASEDIR=/var/run/xen-hotplug > +++ exec > ++ dirname /etc/xen/scripts/vif-route > + dir=/etc/xen/scripts > + . /etc/xen/scripts/vif-common.sh > +++ dirname /etc/xen/scripts/vif-route > ++ dir=/etc/xen/scripts > ++ . /etc/xen/scripts/xen-hotplug-common.sh > ++++ dirname /etc/xen/scripts/vif-route > +++ dir=/etc/xen/scripts > +++ . /etc/xen/scripts/hotplugpath.sh > ++++ SBINDIR=/usr/sbin > ++++ BINDIR=/usr/bin > ++++ LIBEXEC=/usr/lib/xen-/bin > ++++ LIBDIR=/usr/lib > ++++ SHAREDIR=/usr/share > ++++ PRIVATE_BINDIR=/usr/lib/xen-/bin > ++++ XENFIRMWAREDIR=/usr/lib/xen-/boot > ++++ XEN_CONFIG_DIR=/etc/xen > ++++ XEN_SCRIPT_DIR=/etc/xen/scripts > ++++ XEN_LOCK_DIR=/var/lock > +++ . /etc/xen/scripts/logging.sh > +++ . /etc/xen/scripts/xen-script-common.sh > ++++ set -e > +++ . /etc/xen/scripts/locking.sh > ++++ LOCK_SLEEPTIME=1 > ++++ LOCK_SPINNING_RETRIES=5 > ++++ LOCK_RETRIES=100 > ++++ LOCK_BASEDIR=/var/run/xen-hotplug > +++ exec > > What do you see here? See you the Problem? I am not.me neither, but then this log doesn''t seem to contain much "meat" i.e. it doesn''t appear like the script is actually doing anything. I expect it is really and we simply haven''t captured the right bits. You might want to test out my suggested exec runes in a test script, perhaps I got the syntax wrong. Or just add your own "echo foo > file" tests to the script to try and track it down that way. Ian. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.13 (MingW32) Comment: Using gpg4o v3.1.32.3098 - http://www.gpg4o.de/ Charset: utf-8 iQGcBAEBAgAGBQJR3PefAAoJEB1lYcD99gJyJ5IMAIKiCEyYMKVzxY1fc8ut0YBr NH+XAcR1aaOTorubsCaId1/c8O1M7XYXwk8hnWFwB5drhuKav/tGX6oqYjjRbXZG Hew/dVZd1Ht+JidJvKYpn65hNRWuElfj+Iuduc44kK8b/SdmXG3H6yl8aUVwBCnB 5wYY96U7vPpjWru8kySAOFACKA0YVOFIPwPphDNLtJVBzpk9KHOCaxoL44li0SYR /uopvYE5igGtTV8IdzVLAbjd62oqmE3RWYZfB2+lhitD0/Wiz9M6fnglUe7Y3A0v ccDPa2nsSgVNjJ5KsNF/6e9M97N/pgCK2tVO4xQRZgCQYwWbGVNRfh2mfdyIlgFe n9l5LkIlv1EsJwrHg/EwsVk2Sr+D7UV+wjGUc31dFtzGOVnTgxPoob+Rx4JHSnpg DnP0szy+9lmnOZCsmZgr+abil+Jk4pusDlhOWrzMo3mSAZ6j+V27LzpPFQda9NUP NNGgwaHqg6laoBK8LCqXAi2i9qD2cMreGLip7UEY/Q==Tw+I -----END PGP SIGNATURE----- _______________________________________________ Xen-users mailing list Xen-users@lists.xen.org http://lists.xen.org/xen-users
On Wed, 2013-07-10 at 05:56 +0000, Ronny Wagner wrote:> [...] > ++ dom0_ip > ++ local nd=eth0 > +++ ip_of eth0 > +++ sed -n ''1 s,/.*,,p'' > +++ awk ''/^.*inet.*eth0$/{print $2}'' > +++ ip addr show eth0 > ++ local result> ++ ''['' -z '''' '']'' > ++ fatalThis looks like the issue -- your script appears to want to find an IP address on eth0. Ian.
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi Ian, sry for my late answer, i was sick the last days. I change some files and the DomU started with ipv6: nano /etc/xen/xend-config.sxp Old: (network-script ''network-route netdev=eth0'') (vif-script ''vif-route netdev=eth0'') New: (network-script network-route) (vif-script vif-route) nano /etc/xen/scripts/vif-common.sh Old: ip_of() { ip addr show "$1" | awk "/^.*inet.*$1\$/{print \$2}" | sed -n ''1 s,/.*,,p'' } New: ip_of() { ip -4 -o addr show primary dev $1 | awk ''$3 == "inet" {print $4; exit}'' | sed ''s#/.*##'' } But now, I can ping from the DomU to the Dom0 and not to the gateway or the the internet. Do you have a tip how I can fix this? Some entry I change in the file /etc/sysctl.conf: net.ipv4.conf.all.rp_filter = 1 net.ipv4.icmp_echo_ignore_broadcasts = 1 net.ipv4.ip_forward = 1 net.ipv4.conf.eth0.proxy_arp = 1 net.ipv6.conf.all.forwarding = 1 net.ipv6.conf.all.proxy_ndp = 1 net.ipv4.conf.default.proxy_arp = 1 ipv4 is not a problem, this ist okay, but ipv6 not. Traceroute: traceroute to ipv6.google.com (2a00:1450:4005:808::1012), 30 hops max, 80 byte packets 1 IPv6 Dom0 (IPv6 Dom0) 0.207 ms 0.149 ms 0.135 ms 2 IPv6 Dom0 (IPv6 Dom0) 2999.852 ms !H 2999.809 ms !H 2999.759 ms !H Thank you very much - -----Ursprüngliche Nachricht----- Von: Ian Campbell [mailto:ian.campbell@citrix.com] Gesendet: Mittwoch, 10. Juli 2013 14:51 An: Ronny Wagner Cc: Xen-users@lists.xen.org Betreff: Re: AW: [Xen-users] Debian whezzy & Xen 4.1 & IPv6 On Wed, 2013-07-10 at 05:56 +0000, Ronny Wagner wrote:> [...] > ++ dom0_ip > ++ local nd=eth0 > +++ ip_of eth0 > +++ sed -n ''1 s,/.*,,p'' > +++ awk ''/^.*inet.*eth0$/{print $2}'' > +++ ip addr show eth0 > ++ local result> ++ ''['' -z '''' '']'' > ++ fatalThis looks like the issue -- your script appears to want to find an IP address on eth0. Ian. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.13 (MingW32) Comment: Using gpg4o v3.1.32.3098 - http://www.gpg4o.de/ Charset: utf-8 iQGcBAEBAgAGBQJR5S25AAoJEB1lYcD99gJy6AcMAJIUFRNgK4urojfgJfMoPeUG QAnqfrMCdhVP8Y06XZlju3NQvNo8u3wYzN+vZKBlcgCA5by+0O85KxvGARemuAn5 1lHwpKstFU2IcU4p5s3t8oQiGEqgp/+31SVbNOqHEOEnkblGBMCcmVqvOfOyMELl a3SvZ6Rh1KfWr1wQZFGXPeusP87yOoThQsqa+4XnesI3k0QsqJcRjNLpr7olCqJg r1amNKV8+Tu7I2AAF1osbGqWEJ6GNegvIHwALnuE3O2aKruMe4qdd1zSO4SGUEbd uEnaowUovtRZwvm1ILWr2I+lJTlcdt3m8bwX2R4eP6Zw47WbQc1PmTSCDrrwPstH puWJxX6yXWuTrrrA4zAvJ9RCACN3NzvGpRWFpmAmGwPUC80Sr6B62ipfGzwCvikW +b8LlDhNr1JnpMhWzTNeQR7lm9tyNhdp1KCSjz2S2mcRNtsvRJ1xnhad1OrZvT8X snTVPS1614s/a/bfJyyV7NNRntAttrinNOsVfudGSA==SM+5 -----END PGP SIGNATURE----- _______________________________________________ Xen-users mailing list Xen-users@lists.xen.org http://lists.xen.org/xen-users
On Tue, 2013-07-16 at 11:25 +0000, Ronny Wagner wrote:> Hi Ian, > > sry for my late answer, i was sick the last days. > > I change some files and the DomU started with ipv6: > nano /etc/xen/xend-config.sxp > Old: > (network-script 'network-route netdev=eth0') > (vif-script 'vif-route netdev=eth0') > New: > (network-script network-route) > (vif-script vif-route) > > nano /etc/xen/scripts/vif-common.sh > Old: > ip_of() > { > ip addr show "$1" | awk "/^.*inet.*$1\$/{print \$2}" | sed -n '1 s,/.*,,p' > } > New: > ip_of() > { > ip -4 -o addr show primary dev $1 | awk '$3 == "inet" {print $4; exit}' | sed 's#/.*##' > } > > But now, I can ping from the DomU to the Dom0 and not to the gateway > or the the internet. Do you have a tip how I can fix this?I'm afraid not, I've never setup a system with IPv6 and know very little about the specifics of how one would do so. You issues seem to be getting more into the realm of firewall/networking specific rather than issues with Xen as such. Perhaps someone else on the list has done this and can advise. Ian.> > Some entry I change in the file /etc/sysctl.conf: > net.ipv4.conf.all.rp_filter = 1 > net.ipv4.icmp_echo_ignore_broadcasts = 1 > net.ipv4.ip_forward = 1 > net.ipv4.conf.eth0.proxy_arp = 1 > net.ipv6.conf.all.forwarding = 1 > net.ipv6.conf.all.proxy_ndp = 1 > net.ipv4.conf.default.proxy_arp = 1 > > ipv4 is not a problem, this ist okay, but ipv6 not. > Traceroute: > traceroute to ipv6.google.com (2a00:1450:4005:808::1012), 30 hops max, 80 byte packets > 1 IPv6 Dom0 (IPv6 Dom0) 0.207 ms 0.149 ms 0.135 ms > 2 IPv6 Dom0 (IPv6 Dom0) 2999.852 ms !H 2999.809 ms !H 2999.759 ms !H > > Thank you very much > > -----Ursprüngliche Nachricht----- > Von: Ian Campbell [mailto:ian.campbell@citrix.com] > Gesendet: Mittwoch, 10. Juli 2013 14:51 > An: Ronny Wagner > Cc: Xen-users@lists.xen.org > Betreff: Re: AW: [Xen-users] Debian whezzy & Xen 4.1 & IPv6 > > On Wed, 2013-07-10 at 05:56 +0000, Ronny Wagner wrote: > > [...] > > ++ dom0_ip > > ++ local nd=eth0 > > +++ ip_of eth0 > > +++ sed -n '1 s,/.*,,p' > > +++ awk '/^.*inet.*eth0$/{print $2}' > > +++ ip addr show eth0 > > ++ local result> > ++ '[' -z '' ']' > > ++ fatal > > This looks like the issue -- your script appears to want to find an IP > address on eth0. > > Ian. > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xen.org > http://lists.xen.org/xen-users_______________________________________________ Xen-users mailing list Xen-users@lists.xen.org http://lists.xen.org/xen-users