2 Unit testing on a single vlan:
4 on the same vlan than the BSD server, choose a host (W7):
5 link local address of this host is:
6 fe80::6d19:b3a3:b8cb:6f1b
7 global address of this host is:
8 2a01:e35:8aae:bc60:a159:8fcf:7043:3278
10 on the BSD server, use the host addresses:
12 compile with debug messages
13 sysctl -w net.inet6.ndproxyconf_uplink_interface=em0
14 sysctl -w net.inet6.ndproxyconf_downlink_mac_address=00:01:23:45:67:89
15 sysctl -w net.inet6.ndproxyconf_uplink_ipv6_addresses='2a01:e35:8aae:bc60:a159:8fcf:7043:3278;fe80::6d19:b3a3:b8cb:6f1b;::'
17 tail -f /var/log/messages
19 unit testing from the host (W7):
22 ping 2a01:e35:8aae:bc60::29ff:fe9d:1234
23 netsh interface ipv6 show neig
24 and find 2a01:e35:8aae:bc60::29ff:fe9d:1234
27 netsh interface ipv6 show interface
28 ping -6 fe80::1:1:1:3%28
29 netsh interface ipv6 show neig
30 and find fe80::1:1:1:3%28
32 ------------------------------------------------------------
34 Testing with poudriere on AWS
35 create an EC2 instance of a FreeBSD version newer than the latest poudriere target to test
36 add a ZFS volume dedicated to poudriere
37 add DEVELOPER=yes to /etc/make.conf
38 zpool create ztank /dev/xbd1
39 update /usr/local/etc/poudriere.conf:
40 root@ip-172-30-1-13:/usr/local/etc # diff poudriere.conf poudriere.conf.orig
46 < FREEBSD_HOST=ftp://ftp.freebsd.org
48 > FREEBSD_HOST=_PROTO_://_CHANGE_THIS_
54 < DISTFILES_CACHE=/root/distfiles
56 > DISTFILES_CACHE=/usr/ports/distfiles
60 poudriere ports -c -F -f none -M /root/ports -p local
61 cp -rp /usr/ports /root/ports
62 rm -rf /root/ports/net/ndproxy
63 cd ~/git/ndproxy/usr/ports/net ; shar `find . -print` > /tmp/ndproxy.shar
64 cd /root/ports/net/ndproxy
67 Creation of jails for poudriere:
69 poudriere jail -c -j 12amd64 -v head@321619 -a amd64 -m svn+https (uname -a to get the svn release)
70 - with a local repository:
71 - repository downloaded with svnlite:
74 svnlite co -r 344112 https://svn.freebsd.org/base/head src
76 poudriere jail -c -j 13i386 -b -a i386 -m src=/root/svn/src -J 112 >& /tmp/poud-c-13i386.log &
77 - repository downloaded with http:
79 fetch http://ftp.freebsd.org/pub/FreeBSD/releases/amd64/11.1-RELEASE/src.txz
82 poudriere jail -c -j 111i386 -b -a i386 -m src=/root/svn/src -J 112 >& /tmp/poud-c-111i386.log &
83 Many jails can be created at the same time: (note that -b means "make build-world")
84 poudriere jail -c -j 13amd64 -b -a amd64 -m src=/root/bsd-current/src -J 112 > /tmp/poud-c-13amd64.log &
85 poudriere jail -c -j 13i386 -b -a i386 -m src=/root/bsd-current/src -J 112 >& /tmp/poud-c-13i386.log &
86 poudriere jail -c -j 12amd64 -b -a amd64 -m src=/root/bsd-12.0/src -J 112 >& /tmp/poud-c-12amd64.log &
87 poudriere jail -c -j 12i386 -b -a i386 -m src=/root/bsd-12.0/src -J 112 >& /tmp/poud-c-12i386.log &
89 Many tests can be done at the same time:
90 poudriere testport -j 13amd64 -p local -o net/ndproxy -J 112 > ~/testport-13amd64.log &
91 poudriere testport -j 13i386 -p local -o net/ndproxy -J 112 > ~/testport-13i386.log &
92 poudriere testport -j 12amd64 -p local -o net/ndproxy -J 112 > ~/testport-12amd64.log &
93 poudriere testport -j 12i386 -p local -o net/ndproxy -J 112 > ~/testport-12i386.log &
95 For CURRENT, the jail version must be less recent than the host one (see uname -a to get the host svn revision version).