Use regular cloud image for Ubuntu

The "KVM-optimized" image does not have CONFIG_VT enabled in the kernel,
which prevents a getty from starting on tty1.
This commit is contained in:
Max Erenberg 2023-11-24 09:56:11 -05:00
parent 716d8b8293
commit f033dca190
1 changed files with 1 additions and 1 deletions

View File

@ -74,7 +74,7 @@ func (mgr *UbuntuTemplateManager) GetLatestVersion() (version string, codename s
// DownloadTemplate downloads the cloud image for the given Ubuntu codename,
// and returns the filename to which it was written.
func (mgr *UbuntuTemplateManager) DownloadTemplate(version, codename string) (path string, err error) {
filename := fmt.Sprintf("%s-server-cloudimg-amd64-disk-kvm.img", codename)
filename := fmt.Sprintf("%s-server-cloudimg-amd64.img", codename)
url := fmt.Sprintf("https://cloud-images.ubuntu.com/%s/current/%s", codename, filename)
return mgr.DownloadTemplateGeneric(filename, url)
}