Hey everyone!
I’m in need of some assistance setting up unattended flashing over ethernet. I’m trying to follow the documentation found here:
Firstly, I’m operating on the assumption that the DNS option found under “Custom Image Server without Local Media” is not a necessary step, its just an option, correct?
If that’s correct, then I’m not sure where I’m going wrong with getting this to work. I have been able to use the images serve command in TorizonCore Builder to send autoinstall images over http, so there shouldn’t be anything about the network that’s incorrect.
Here’s my setup so far: I am using an Ubuntu VM with nginx installed. under /etc/nginx/sites-available/default, I have the following:
server {
listen 80 default_server;
listen [::]:80 default_server;
root /var/www/html;
index index.html index.htm index.nginx-debian.html;
server_name _;
location / {
try_files $uri $uri/ =404;
}
}
Then, after running " $ sudo ln -s /etc/nginx/sites-available/default /etc/nginx/sites-enabled/default", I get the following:
root@Testing:/etc/nginx/sites-available# sudo ln -s /etc/nginx/sites-available/default /etc/nginx/sites-enabled/default
ln: failed to create symbolic link '/etc/nginx/sites-enabled/default': File exists
root@Testing:/etc/nginx/sites-available#
which I assume means that the link is correct?
under the filepath “/var/www/html/image_list.json” I have:
{
"config_format": 1,
"images": [
"testing/image.json"
]
}
So my image name is “testing”, which I have put in this directory (/var/www/html/testing). The autoinstall in the iamge.json file in testing is set to true. After restarting nginx, I expect my board, which has tezi installer on it currently, to be able to see the image and start downloading it, but it doesn’t. Does anyone see where I went wrong?
After this, I have another question concerning this server. Is it possible using this server (or some other service like the cloud) to automatically install an updated image? I have used the torizon cloud to manually update units both in house and out in the field, I was curious if there would be a way to automate this so that once a new image is made, a board could automatically be updated. For context, our workflow is to load a version of our software when we initially set up the boards, but by the time a board is installed on our equipment, our latest version of the software may be newer.
Thanks!