Skip to content

Commit 216a175

Browse files
Merge pull request #122 from AmedeeBulle/ol8u9-ol9u3
Updates for OL8U9 / OL9U3
2 parents e1a285e + c6b8f06 commit 216a175

File tree

7 files changed

+20
-14
lines changed

7 files changed

+20
-14
lines changed

oracle-linux-image-tools/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ The tool currently supports:
1111

1212
- Distributions:
1313
- Oracle Linux 7 update 9 -- Slim (x86_64)
14-
- Oracle Linux 8 update 8 -- Slim (x86_64 and aarch64)
14+
- Oracle Linux 8 update 9 -- Slim (x86_64 and aarch64)
1515
__Note__: for aarch64, only Generic, OCI and UTM clouds are supported
16-
- Oracle Linux 9 update 2 -- Slim (x86_64 and aarch64)
16+
- Oracle Linux 9 update 3 -- Slim (x86_64 and aarch64)
1717
__Note__: for aarch64, only Generic, OCI and UTM clouds are supported
1818
- Clouds:
1919
- Microsoft Azure cloud
@@ -53,11 +53,11 @@ The build script requires a Linux environment and has been tested on Oracle Linu
5353
- Oracle Linux 7:
5454
`yum --enablerepo=ol7_kvm_utils group install "Virtualization Host"`
5555
or
56-
`yum --enablerepo=ol7_developer install VirtualBox-6.1`
56+
`yum --enablerepo=ol7_developer install VirtualBox-7.0`
5757
- Oracle Linux 8:
5858
`dnf module install virt`
5959
or
60-
`dnf --enablerepo=ol8_developer install VirtualBox-6.1`
60+
`dnf --enablerepo=ol8_developer install VirtualBox-7.0`
6161
1. Install `kpartx` and `qemu-img` to manipulate the artifacts
6262
- Oracle Linux 7:
6363
`yum --enablerepo=ol7_kvm_utils install kpartx qemu-img`

oracle-linux-image-tools/bin/build-image.sh

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -413,14 +413,20 @@ packer_conf() {
413413
local KS_CONFIG="http://{{ .HTTPIP }}:{{ .HTTPPort }}/${KS_FILE}"
414414
# shellcheck disable=SC2034
415415
local CONSOLE=""
416-
local modifyvm_console=""
416+
local vbox_manage=""
417417
local qemu_serial_console=""
418418
if [[ "${SERIAL_CONSOLE,,}" = "yes" ]]; then
419419
# shellcheck disable=SC2034
420420
CONSOLE=" console=tty0 console=ttyS0"
421-
modifyvm_console='["modifyvm", "{{.Name}}", "--uart1", "0x3f8", 4, "--uartmode1", "file", "'"${WORKSPACE}/${VM_NAME}"'/serial-console.txt"],'
421+
vbox_manage='["modifyvm", "{{.Name}}", "--uart1", "0x3f8", 4, "--uartmode1", "file", "'"${WORKSPACE}/${VM_NAME}"'/serial-console.txt"],'
422422
qemu_serial_console='[ "-serial", "file:'"${WORKSPACE}/${VM_NAME}"'/serial-console.txt" ]'
423423
fi
424+
# VirtualBox 7 requires flag to allow guest to reach host
425+
if common::is_vbox ; then
426+
if [[ $(vboxmanage --version) =~ ^7\. ]]; then
427+
vbox_manage+='["modifyvm", "{{.Name}}", "--nat-localhostreachable1", "on"],'
428+
fi
429+
fi
424430

425431
cat > "${WORKSPACE}/${VM_NAME}.pkrvars.hcl" <<-EOF
426432
# Variables file for ${VM_NAME}
@@ -437,7 +443,7 @@ packer_conf() {
437443
$(eval echo -e "\"$(printf ' \\"%s\\",\\n' "${BOOT_COMMAND[@]}")\"")
438444
]
439445
shutdown_command = "${SHUTDOWN_CMD}"
440-
vbox_manage = [ ${modifyvm_console} ]
446+
vbox_manage = [ ${vbox_manage} ]
441447
x2apic = "${X2APIC}"
442448
${QEMU_BINARY:+qemu_binary = ${q}$QEMU_BINARY${q}}
443449
qemu_args = [ ${qemu_serial_console} ]

oracle-linux-image-tools/distr/ol8-aarch64/env.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# env file.
44

55
# Distribution name
6-
DISTR_NAME="OL8U8_aarch64"
6+
DISTR_NAME="OL8U9_aarch64"
77

88
# Distribution release
99
readonly ORACLE_RELEASE=8
@@ -15,7 +15,7 @@ SETUP_SWAP="yes"
1515
ROOT_FS="xfs"
1616

1717
# Label of the ISO image
18-
ISO_LABEL="OL-8-8-0-BaseOS-aarch64"
18+
ISO_LABEL="OL-8-9-0-BaseOS-aarch64"
1919

2020
# Boot command
2121
# Variables MUST be escaped as they are evaluated at build time.

oracle-linux-image-tools/distr/ol8-slim/env.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# env file.
44

55
# Distribution name
6-
DISTR_NAME="OL8U8_x86_64"
6+
DISTR_NAME="OL8U9_x86_64"
77

88
# Distribution release
99
readonly ORACLE_RELEASE=8

oracle-linux-image-tools/distr/ol9-aarch64/env.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# env file.
44

55
# Distribution name
6-
DISTR_NAME="OL9U2_aarch64"
6+
DISTR_NAME="OL9U3_aarch64"
77

88
# Distribution release
99
readonly ORACLE_RELEASE=9
@@ -15,7 +15,7 @@ SETUP_SWAP="yes"
1515
ROOT_FS="xfs"
1616

1717
# Label of the ISO image
18-
ISO_LABEL="OL-9-2-0-BaseOS-aarch64"
18+
ISO_LABEL="OL-9-3-0-BaseOS-aarch64"
1919

2020
# Boot command
2121
# Variables MUST be escaped as they are evaluated at build time.

oracle-linux-image-tools/distr/ol9-slim/env.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# env file.
44

55
# Distribution name
6-
DISTR_NAME="OL9U2_x86_64"
6+
DISTR_NAME="OL9U3_x86_64"
77

88
# Distribution release
99
readonly ORACLE_RELEASE=9

oracle-linux-image-tools/packer-template/virtualbox-x86-64.pkr.hcl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ source "virtualbox-iso" "x86-64" {
1717
ssh_password = var.ssh_password
1818
ssh_private_key_file = var.ssh_private_key_file
1919
ssh_port = 22
20-
ssh_wait_timeout = "30m"
20+
ssh_wait_timeout = "60m"
2121
http_directory = local.http_directory
2222
boot_wait = "20s"
2323
boot_command = var.boot_command

0 commit comments

Comments
 (0)