Other relevant data:
I’ve tried to speed up network based provision (using default mirrors takes really long) and to do so i made ftp server and copied there files from the mirror. Except for above errors in the booted machine i’m getting:
“The file needed for preconfiguration could not be retrieved from …”
What’s more when i try to review templates for this host, all of them return 404 pages. So:
What am i missing here?
Whats the best and fastest way to provision new hosts? I’ve used image based however i read thats a really bad idea to use the same image for multiple hosts. And i kinda want to automate provisioning, so i dont really like the idea of cloning image every time i want to create new host.
Dont know if its relevant but i use libvirt and ubuntu OS.
On I think Smart Proxy no longer supports non-http(s) installation media URLs. We used to use wget to download the files, newer versions now use pure Ruby HTTP client. You will need to publish your mirror via HTTP.
Yeah i can download files via wget + normal browser. Will check with http instead of ftp and will come back with results. Thanks for the help so far.
BTW what about my 2nd question?I know it prolly depends on specific use-case, but whats the fastet way (that doesnt cause concurrency problems like image based)? Installing ubuntu from official mirror takes like 30mins.
Fastest will be always image-based provisioning. Not sure what you mean by concurrency issue, but if you have problems with many servers overloading your download site, you can try our mass bare-metal image-based provisioning using discovery:
On your server with image, send the image to one or multiple nodes
Reboot the servers
We want to allow remote execution plugin on discovered servers to automate this, you can do this ad-hoc for now.
Also A/B image-based provisioning is very fast, that’s what CoreOS updater does. You can achieve the same by creating two volumes and mirroring the other partition from your server using HTTP or udpcast or bittorrent or even rsync/casync.
If the smart proxy can’t download over https it sounds like a regression as it used to ignore certs and still download. I guess it’s not a common usage case hence went undetected
PXE installations of Ubuntu have always been slow in my experience - even without Foreman, I’ve seen it take 45 mins to install Ubuntu from a netboot ISO. I don’t think it’s something on the user side, it’s more likely something inherent to Ubuntu - Debian installs on the same network take far less time.
By concurrency i meant there might be some problems with using the same image for starting multiple machines, or am i wrong here ?
Also, changing ftp to http worked.