-
Notifications
You must be signed in to change notification settings - Fork 141
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Inconsistent time in "Waiting for SSH" during build process #265
Comments
@MyroTk that involves That first phase is rather fragile, and a lot can go wrong. If the auto isntall "breaks' then the guest will simply sit idle waiting for a user to fix the problem. In the case of robotic installs, that means waiting till the timeout is hit, and aborting. Finding and fixing issues can be tricky, so I try to keep the auto-install step as simple as possible, and do as much configuration as possible using Bash scripts after the reboot. That said, common issues are overloaded systems messing up the timing of the boot command entry. Having IPv6 enabled, and the guest installer not supporting it properly. Mismatched virtual hardware, for example the config could be expecting a SCSI device as In terms of why 16.04 is more reliable than 22.04, that's easy. Ubuntu used to release server install ISOs based on the Debian installer. And it provided a reliable automated install framework. Alas, 20.04 was the last release to provide those ISOs, so the 20.10+ configs all use the "live:" install media, and that requires using the Cloudfront autoinstall framework, which in my experience is a poorly designed piece of software with many+many flaws. In all fairness, it much newer, and being actively developed, so it may eventually have improved by the time someone reads this. Three hints. You can easily check the CPU usage/virtual disk size (and possibly guest network usage), to see if the install is running. If those numbers don't show signs of life for an extended period, the guest is likely stuck. Second, you can try using (or looking at) the Finally, Parallels/Hyper-V/VirtualBox and VMWare all have GUI managers which making connecting to the virtual console of a running VM simple, if you have trouble connecting up via a CLI. But that only let's you troubleshoot a generic non-hypervisor specific install issue... And 50% of the time, problems are specific to the platform. Unfortunately the libvirt boxes are built using standalone QEMU instances, so you can't use the GUI tools to connect up with them, and how you connect varies depending on what you have installed/setup/configured. Although on most of my systems, I believe it uses exposes a VNC port, and Finally, if you do find a problem, and figure out how to solve it, please submit a PR. I try to make the configs as robust as possible, but I can only test them against the host OS+hypervisor versions I have access to. And, especially with libvirt, the defaults can vary widely between distros, and QEMU versions ( |
Thanks you for the response, will continue debugging on my end. |
While building the
generic-ubuntu2204-libvirt
box, I have encountered a range of time spent at theWaiting for SSH...
step, anywhere between 2-4+ hours. For comparison, thegeneric-ubuntu1604-libvirt
build consistently stays within the default 1 hour ssh timeout.I was hoping you could provide insight as to what this step is doing and how to bring the time down/make it more consistent.
Thank you in advance.
The text was updated successfully, but these errors were encountered: