Fix opensuse on virtualbox
This commit is contained in:
@@ -7,7 +7,9 @@ iso = {
|
||||
boot_command = [
|
||||
"e<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>",
|
||||
"<leftCtrlOn>x<leftCtrlOff>"
|
||||
]
|
||||
http_directory = "distros/opensuse/15.5/http/"
|
||||
vbox_os_type = "OpenSUSE_Leap_64"
|
||||
|
||||
@@ -104,6 +104,11 @@ variable "efi_dir" {
|
||||
default = env("EFI_DIR")
|
||||
}
|
||||
|
||||
variable "vbox_os_type" {
|
||||
type = string
|
||||
default = "Linux_64"
|
||||
}
|
||||
|
||||
locals {
|
||||
name = "${var.distro}-${var.version}"
|
||||
description = templatefile("../README.box.md", {
|
||||
|
||||
@@ -19,13 +19,15 @@ source "virtualbox-iso" "amd64" {
|
||||
memory = local.memory
|
||||
headless = var.headless
|
||||
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_sha256 = "bbabd89b8fff38a257bab039a278f0c4dc4426eff6e4238c1db01edb7284186a"
|
||||
nic_type = "virtio"
|
||||
gfx_vram_size = 128
|
||||
vboxmanage = [
|
||||
["modifyvm", "{{ .Name }}", "--uart1", "0x3F8", "4"],
|
||||
#["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
|
||||
|
||||
Reference in New Issue
Block a user