ser2net conflict
Issue Background
Issues surrounding why my vm doesn't work with the wiki instructions and setting the vm ip address in the telnet script
Issue description
On 2017-05-23 10:33, Robert Marshall wrote:
Don Brown don.brown@codethink.co.uk writes:
On 2017-05-23 07:57, Robert Marshall wrote:
Don Brown don.brown@codethink.co.uk writes:
On 2017-05-23 06:43, Robert Marshall wrote:
On the host /sbin/ifconfig eth0 Link encap:Ethernet HWaddr 3c:97:0e:14:ff:18 inet addr:10.24.3.102 Bcast:10.24.255.255 Mask:255.255.0.0 inet6 addr: fe80::3e97:eff:fe14:ff18/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:97110594 errors:0 dropped:418 overruns:0 frame:0 TX packets:15782118 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:135759645443 (126.4 GiB) TX bytes:10362564307 (9.6 GiB) Interrupt:20 Memory:f2500000-f2520000
lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:65536 Metric:1 RX packets:97424 errors:0 dropped:0 overruns:0 frame:0 TX packets:97424 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:70246759 (66.9 MiB) TX bytes:70246759 (66.9 MiB)
wlan0 Link encap:Ethernet HWaddr 60:67:20:03:83:5a UP BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
robertmarshall@ct-lt-579:~/devel/CI/release/kernelci-build$ ip addr 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo valid_lft forever preferred_lft forever inet6 ::1/128 scope host valid_lft forever preferred_lft forever
2: wlan0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN group default qlen 1000 link/ether 60:67:20:03:83:5a brd ff:ff:ff:ff:ff:ff
3: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000 link/ether 3c:97:0e:14:ff:18 brd ff:ff:ff:ff:ff:ff inet 10.24.3.102/16 brd 10.24.255.255 scope global dynamic eth0 valid_lft 14135sec preferred_lft 14135sec inet6 fe80::3e97:eff:fe14:ff18/64 scope link valid_lft forever preferred_lft forever 4: vboxnet0: <BROADCAST,MULTICAST> mtu 1500 qdisc pfifo_fast state DOWN group default qlen 1000 link/ether 0a:00:27:00:00:00 brd ff:ff:ff:ff:ff:ff
on the vm:
vagrant@jessie:~$ ip addr 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo valid_lft forever preferred_lft forever inet6 ::1/128 scope host valid_lft forever preferred_lft forever 2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000 link/ether 08:00:27:e1:6e:c5 brd ff:ff:ff:ff:ff:ff inet 10.0.2.15/24 brd 10.0.2.255 scope global eth0 valid_lft forever preferred_lft forever inet6 fe80::a00:27ff:fee1:6ec5/64 scope link valid_lft forever preferred_lft forever 3: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000 link/ether 08:00:27:04:35:d2 brd ff:ff:ff:ff:ff:ff inet 10.24.3.126/16 brd 10.24.255.255 scope global eth1 valid_lft forever preferred_lft forever inet6 fe80::a00:27ff:fe04:35d2/64 scope link valid_lft forever preferred_lft forever vagrant@jessie:~$ /sbin/ifconfig eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 inet 10.0.2.15 netmask 255.255.255.0 broadcast 10.0.2.255 inet6 fe80::a00:27ff:fee1:6ec5 prefixlen 64 scopeid 0x20 ether 08:00:27:e1:6e:c5 txqueuelen 1000 (Ethernet) RX packets 1995 bytes 326117 (318.4 KiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 1554 bytes 410331 (400.7 KiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
eth1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 inet 10.24.3.126 netmask 255.255.0.0 broadcast 10.24.255.255 inet6 fe80::a00:27ff:fe04:35d2 prefixlen 64 scopeid 0x20 ether 08:00:27:04:35:d2 txqueuelen 1000 (Ethernet) RX packets 146621 bytes 37926317 (36.1 MiB) RX errors 0 dropped 1 overruns 0 frame 0 TX packets 33413 bytes 38419316 (36.6 MiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536 inet 127.0.0.1 netmask 255.0.0.0 inet6 ::1 prefixlen 128 scopeid 0x10 loop txqueuelen 0 (Local Loopback) RX packets 382650 bytes 144931491 (138.2 MiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 382650 bytes 144931491 (138.2 MiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
and 10.24.3.102 works for me with the expect script
Robert
Hi Robert,
Please help me out here. From what I can see everything matches.
One your Host machine you have: eth0 - 10.24.3.102 wlan0 - It looks like it is disabled since it doesn't have an IP address assigned to it.
Correct
Your VM has eth0 - 10.0.2.15 eth1 - 10.24.3.126
What is the IP Address of your BBB?
My BBB is 10.24.1.189
If you were to telnet to 10.24.3.102 from within your VM, you are just connecting to your host machine.
though port 8020 gets sent to the BBB because of the settings in ser2net, does that mean you're not using the serial connection to connect to the BBB within the health check?
Am I not understanding something here? (It is early and I've only had 1 cup of coffee...)
Let me know.
Or am I confused?
I've been putting the ip address of my laptop in mybbb.dat and hence to the device dictionary and using
/vagrant/scripts/connectBBB.sh ipaddress 8020 root lavauser123
only gets me logged into the BBB if I use the ip of my laptop
Robert
Oh! Then we have had a misunderstanding. First, yes I am using the serial-to-USB cable like you are.
My host IP eth0: 10.0.0.3
My VM eth0: 10.0.2.15 eth1: 10.0.0.23
My BBB eth0: 10.0.0.50
So to connect to my BBB from the VM I use: $ /vagrant/scripts/connectBBB.sh 10.0.0.23 8020 root lavauser123
I must have missed it somewhere along the way when you told me you were putting your LAPTOP (host) IP Address in the connectBBB.sh command.
This may be a silly question, but have you tried it with the IP of the VM? (asks to myself) Why on earth would putting the host IP ever WORK in the first place!? Unless... Do you have ser2net installed on your host? If so, do you have port 8020 redirected to the Serial-to-USB port (/dev/ttyUSB0)? That might be why it worked...
Let me know, I'll keep checking in. Yes as I say above
though port 8020 gets sent to the BBB because of the settings in ser2net, does that mean you're not using the serial connection to connect to the BBB within the health check?
and that's what we step the users through on the BBB page?
The ip address that I get from ip stat on the vm gives me an immediate error
Robert
Woah, please double-check the instructions on the Wiki. I don't think that's what we want to do. Again, this may be one of my stupid-days, so please make sure.
1.) The Bash Shell scripts we call in the Vagrantfile install ser2net on the VM, not the host. Then we modify the VM's copy of /etc/ser2net.conf to add the 8020 line. We don't add it to the host. 2.) I can't get to the instructions on the Wiki right now, but I will double-check them when I get home today. 3.) Please open an Issue on this and copy the conversation into it. We will continue this discussion in the Issue on GitHub.
Luckily we still have time to check this out with the License issue being debated. I hope we can solve it quickly.