When running MAAS in a snap environment, what is the port serving the http, where are the boot image located.

I’m trying to bootstrap the networking device via ONIE. One of the option for ONIE to look for NOS image is the default-url DHCP option.

DHCP Snippet added to MAAS.

option default-url “http://50.0.0.1:5248/onie-installer”;

I’m able to successfully serve image to ONIE, when I install the MAAS natively in the machine.

I’m not able todo the same when MASS is running in SNAP. I assume the same ports are used in case of SNAP as well.

I have placed my NOS installer image
/var/snap/maas/2589/var/lib/maas/boot-resources/snapshot-20191025-181601

I’m use the same default-url to fetch.

I’m trying locally using wget to access the file and I receive a 404 error.
$ wget http://50.0.0.1:5248/pxelinux.0
Connecting to 50.0.0.1:5248… connected.
HTTP request sent, awaiting response… 404 Not Found
2019-10-25 18:27:37 ERROR 404: Not Found.

Any help would be appreciated.

I’m able to get it working using the following url.
option default-url “http://50.0.0.1:5248/images/onie-installer”;
Thanks.