Fix opensuse on virtualbox

This commit is contained in:
Greg Hellings
2024-01-09 22:18:34 -06:00
parent a61c4cb08c
commit 3aef715e85
3 changed files with 11 additions and 2 deletions
+2
View File
@@ -7,7 +7,9 @@ iso = {
boot_command = [ boot_command = [
"e<wait>", "e<wait>",
"<down><down><down><down><end><wait>", "<down><down><down><down><end><wait>",
"<bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs>",
" autoyast=http://{{ .HTTPIP }}:{{ .HTTPPort }}/autoinst.xml textmode=1<wait>", " autoyast=http://{{ .HTTPIP }}:{{ .HTTPPort }}/autoinst.xml textmode=1<wait>",
"<leftCtrlOn>x<leftCtrlOff>" "<leftCtrlOn>x<leftCtrlOff>"
] ]
http_directory = "distros/opensuse/15.5/http/" http_directory = "distros/opensuse/15.5/http/"
vbox_os_type = "OpenSUSE_Leap_64"
+5
View File
@@ -104,6 +104,11 @@ variable "efi_dir" {
default = env("EFI_DIR") default = env("EFI_DIR")
} }
variable "vbox_os_type" {
type = string
default = "Linux_64"
}
locals { locals {
name = "${var.distro}-${var.version}" name = "${var.distro}-${var.version}"
description = templatefile("../README.box.md", { description = templatefile("../README.box.md", {
+4 -2
View File
@@ -19,13 +19,15 @@ source "virtualbox-iso" "amd64" {
memory = local.memory memory = local.memory
headless = var.headless headless = var.headless
firmware = "efi" firmware = "efi"
guest_os_type = "Linux_64" guest_os_type = var.vbox_os_type
guest_additions_url = "http://download.virtualbox.org/virtualbox/7.0.10/VBoxGuestAdditions_7.0.10.iso" guest_additions_url = "http://download.virtualbox.org/virtualbox/7.0.10/VBoxGuestAdditions_7.0.10.iso"
guest_additions_sha256 = "bbabd89b8fff38a257bab039a278f0c4dc4426eff6e4238c1db01edb7284186a" guest_additions_sha256 = "bbabd89b8fff38a257bab039a278f0c4dc4426eff6e4238c1db01edb7284186a"
nic_type = "virtio"
gfx_vram_size = 128
vboxmanage = [ vboxmanage = [
["modifyvm", "{{ .Name }}", "--uart1", "0x3F8", "4"], ["modifyvm", "{{ .Name }}", "--uart1", "0x3F8", "4"],
#["modifyvm", "{{ .Name }}", "--uartmode1", "file", "output/vritualbox/serial-${var.arch}-${var.distro}-${var.version}"], #["modifyvm", "{{ .Name }}", "--uartmode1", "file", "output/vritualbox/serial-${var.arch}-${var.distro}-${var.version}"],
["modifyvm", "{{ .Name }}", "--nat-localhostreachable1", "on"], ["modifyvm", "{{ .Name }}", "--nat-localhostreachable1", "on"]
] ]
http_content = var.http_files http_content = var.http_files