ONIE enabled VX image help


Userlevel 1
Having some issues with ONIE finding the installer on my web server, but want to clarify if my understanding of how VX ONIE binary should be used.
In my lab, I am using Virtualbox to host several VX instances. For my ONIE testing, I got to the ONIE menu ok. DHCP server and web server are on the same segment as the VX instance.

Webserver/DHCP server - 10.0.2.6
VX instance, after getting lease: 10.0.2.20
Can ping both ways no problem.
I put the file I downloaded from Cumulus: cumulus-linux-3.4.3-vx-amd64.bin in /var/www and made a sym link to it

drwxr-xr0x 14 root root 4096 Dec 13 09:19
-rwxr-xr-x 1 root root 157080022 Dec 13 09:34 cumulus-linux-3.4.3-vx-amd.bin
lrwxrwxrwx 1 root root 32 Dec 13 11:09 onie-installer -> cumulus-linux-3.4.3-vx-amd64.bin

Capturing what happens when I try to install OS via ONIE, even if I do it manually and point it at the file, gives me the same negative result. See picture for details.
It gives up on http pretty quick then tries TFTP (which i don't want to use). In the ONIE documentation on the project website, I don't see amd64 as a supported architecture but not sure if this is why I am having issues. With the onie-installer file I have in place, I don't get why the switch can't download the file.
Thanks in advance for any help
https://c:\ONIE-Capture.jpg

5 replies

Userlevel 3
Can you 'wget' that image from another server? For a lot of newer distros, you need to put the files in /var/www/html, rather than /var/www

Your picture is a link to your own local filesytem, so we can't see it. Perhaps a cut and paste from a terminal session?
Userlevel 1
Whoops, log file below:
When I try to grab the file from another host, I get 404, not found interestingly, I can get index.html from the that host and the ONIE host, but not the file i need.
Permissions on both index.html and the onie-installer are the same,
thanks
onie.log
Dec 14 19:15:16 onie local0.info onie: Starting: dropbear ssh daemon...
Dec 14 19:15:16 onie local0.info onie: done.
Dec 14 19:15:16 onie local0.info onie: Starting: telnetd...
Dec 14 19:15:16 onie local0.info onie: done.
Dec 14 19:15:16 onie local0.info onie: Starting: discover...
Dec 14 19:15:16 onie local0.info onie: done.
Dec 14 19:15:16 onie local0.info onie: Info: eth0: Checking link...
Dec 14 19:15:16 onie local0.info onie: up.
Dec 14 19:15:16 onie local0.info onie: Info: Trying DHCPv4 on interface: eth0
Dec 14 19:15:16 onie local0.info onie: ONIE: Using DHCPv4 addr: eth0: 10.0.2.20 / 255.255.255.0
Dec 14 19:15:16 onie local0.info discover: ONIE: Starting ONIE Service Discovery
Dec 14 19:15:24 onie local0.info discover: onie_neighs = 10.0.2.6,fe80::a00:27ff:fedd:92bf-eth0,fe80::a00:27ff:fe50:4232-eth0,fe80::a00:27ff:fe14:20c2-eth0,fe80::a00:27ff:fe53:84c-eth0,fe80::a00:27ff:fe0c:f515-eth0,
Dec 14 19:15:24 onie local0.info discover: onie_disco_router = 10.0.2.2
Dec 14 19:15:24 onie local0.info discover: onie_disco_subnet = 255.255.255.0
Dec 14 19:15:24 onie local0.info discover: onie_disco_domain = example.org
Dec 14 19:15:24 onie local0.info discover: onie_disco_interface = eth0
Dec 14 19:15:24 onie local0.info discover: onie_disco_siaddr = 10.0.2.6
Dec 14 19:15:24 onie local0.info discover: onie_disco_serverid = 10.0.2.6
Dec 14 19:15:24 onie local0.info discover: onie_disco_boot_reason = install
Dec 14 19:15:24 onie local0.info discover: onie_disco_ip = 10.0.2.20
Dec 14 19:15:24 onie local0.info discover: onie_disco_url = http://10.0.2.6/onie-installer
Dec 14 19:15:24 onie local0.info discover: onie_disco_lease = 119
Dec 14 19:15:24 onie local0.info discover: onie_disco_mask = 24
Dec 14 19:15:24 onie local0.info discover: onie_disco_opt53 = 05
Dec 14 19:15:25 onie local0.info onie-exec: Info: Fetching http://10.0.2.6/onie-installer ...
Dec 14 19:15:25 onie local0.info onie-exec: Info: Fetching http://10.0.2.6/onie-installer-x86_64-cumulus_vx-r0 ...
Dec 14 19:15:25 onie local0.info onie-exec: Info: Fetching http://10.0.2.6/onie-installer-x86_64-cumulus_vx ...
Dec 14 19:15:25 onie local0.info onie-exec: Info: Fetching http://10.0.2.6/onie-installer-cumulus_vx ...
Dec 14 19:15:25 onie local0.info onie-exec: Info: Fetching http://10.0.2.6/onie-installer-x86_64-qemu ...
Dec 14 19:15:25 onie local0.info onie-exec: Info: Fetching http://10.0.2.6/onie-installer-x86_64 ...
Dec 14 19:15:25 onie local0.info onie-exec: Info: Fetching http://10.0.2.6/onie-installer ...
Dec 14 19:15:25 onie local0.info onie-exec: Info: Fetching tftp://onie-server/08-00-27-02-e3-43/onie-installer-x86_64-cumulus_vx-r0 ...
Dec 14 19:15:25 onie local0.info onie-exec: Info: Fetching tftp://onie-server/0A000214/onie-installer-x86_64-cumulus_vx-r0 ...
Dec 14 19:15:25 onie local0.info onie-exec: Info: Fetching tftp://onie-server/0A00021/onie-installer-x86_64-cumulus_vx-r0 ...
Dec 14 19:15:25 onie local0.info onie-exec: Info: Fetching tftp://onie-server/0A0002/onie-installer-x86_64-cumulus_vx-r0 ...
Dec 14 19:15:25 onie local0.info onie-exec: Info: Fetching tftp://onie-server/0A000/onie-installer-x86_64-cumulus_vx-r0 ...
Dec 14 19:15:25 onie local0.info onie-exec: Info: Fetching tftp://onie-server/0A00/onie-installer-x86_64-cumulus_vx-r0 ...
Dec 14 19:15:25 onie local0.info onie-exec: Info: Fetching tftp://onie-server/0A0/onie-installer-x86_64-cumulus_vx-r0 ...
Dec 14 19:15:25 onie local0.info onie-exec: Info: Fetching tftp://onie-server/0A/onie-installer-x86_64-cumulus_vx-r0 ...
Dec 14 19:15:25 onie local0.info onie-exec: Info: Fetching tftp://onie-server/0/onie-installer-x86_64-cumulus_vx-r0 ...
Dec 14 19:15:25 onie local0.info onie-exec: Info: Fetching tftp://onie-server/onie-installer-x86_64-cumulus_vx-r0 ...
Dec 14 19:15:25 onie local0.info onie-exec: Info: Fetching tftp://onie-server/onie-installer-x86_64-cumulus_vx ...
Dec 14 19:15:25 onie local0.info onie-exec: Info: Fetching tftp://onie-server/onie-installer-cumulus_vx ...
Dec 14 19:15:25 onie local0.info onie-exec: Info: Fetching tftp://onie-server/onie-installer-x86_64-qemu ...
Dec 14 19:15:25 onie local0.info onie-exec: Info: Fetching tftp://onie-server/onie-installer-x86_64 ...
Dec 14 19:15:25 onie local0.info onie-exec: Info: Fetching tftp://onie-server/onie-installer ...
Dec 14 19:15:25 onie local0.info onie-exec: Info: Fetching tftp://10.0.2.6/08-00-27-02-e3-43/onie-installer-x86_64-cumulus_vx-r0 ...
Dec 14 19:15:38 onie local0.info discover: Info: Sleeping for 20 seconds
Dec 14 19:15:38 onie local0.info discover: 4..
Dec 14 19:15:43 onie local0.info discover: 3..
Dec 14 19:15:48 onie local0.info discover: 2..
Dec 14 19:15:53 onie local0.info discover: 1..
Dec 14 19:15:58 onie local0.info onie: Info: eth0: Checking link...
Dec 14 19:15:58 onie local0.info onie: up.
Dec 14 19:15:58 onie local0.info onie: Info: Trying DHCPv4 on interface: eth0
Dec 14 19:15:58 onie local0.info onie: ONIE: Using DHCPv4 addr: eth0: 10.0.2.20 / 255.255.255.0
Dec 14 19:15:58 onie local0.info discover: ONIE: Starting ONIE Service Discovery
Dec 14 19:16:00 onie local0.info onie: Stopping: discover...
Dec 14 19:16:00 onie local0.info onie: done.

Userlevel 3
You'll have to figure out the issue on your web server, then. If you can't get it from another server with wget, then onie won't be able to get it either. There could still be a problem after that, but first fix the issue that the web server won't serve the file.

The webserver logs will usually help.
Userlevel 1
Ok, so I looked at the logs, which pretty much showed the same things as ONIE log. On a whim, I decided to rename the VX binary to onie-installer-x86_64 (which gets looked for earlier) and copy it to the /var/www/html directory..... and success
ONIE successfully installed the cumulus image and got me to the login prompt.
I'm going to have to see if it was the change of name or location that did it 😮
thanks

Userlevel 1
Confirmed, looks like it was the location after all - needed to be /var/www/html as you suggested 🙂 Thanks again, Dave.