From f033dca19093d53d85bd7d5d202f02bab9a9d620 Mon Sep 17 00:00:00 2001 From: Max Erenberg Date: Fri, 24 Nov 2023 09:56:11 -0500 Subject: [PATCH] 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. --- pkg/distros/ubuntu.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/distros/ubuntu.go b/pkg/distros/ubuntu.go index 631c355..8ff676b 100644 --- a/pkg/distros/ubuntu.go +++ b/pkg/distros/ubuntu.go @@ -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) }