VirtualBox

source: vbox/trunk/src/VBox/Main/UnattendedTemplates/ol9_ks.cfg@ 105864

最後變更 在這個檔案從105864是 101697,由 vboxsync 提交於 13 月 前

Main/Unattended: Support OracleLinux for unattended installation, bugref:10516

  • 屬性 svn:eol-style 設為 LF
  • 屬性 svn:keywords 設為 Author Date Id Revision
檔案大小: 3.1 KB
 
1# Refer to RHEL9 kickstart reference:
2# https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/9/html/performing_an_advanced_rhel_9_installation/kickstart-commands-and-options-reference_installing-rhel-as-an-experienced-user
3
4#platform=x86, AMD64, or Intel EM64T
5#version=DEVEL
6
7# Firewall configuration
8firewall --disabled
9
10# Install OS instead of upgrade
11# Removed from kickstart file syntax in OL9
12#install
13
14# Use CDROM installation media
15cdrom
16
17# Root password
18rootpw --plaintext @@VBOX_INSERT_ROOT_PASSWORD_SH@@
19
20# auth or authconfig is deprecated in OL8
21# System authorization information
22#auth --useshadow --passalgo=sha512
23
24# Use text mode install
25text
26
27# System keyboard
28keyboard us
29
30# System language
31lang @@VBOX_INSERT_LOCALE@@
32
33# Disable the unsupported hardware popup (vmmdev?).
34# Removed from kickstart file syntax in OL9
35#unsupported_hardware
36
37# SELinux configuration
38selinux --enforcing
39
40# Deprecated in OL9
41# Installation logging level
42#logging --level=info
43
44# System timezone
45timezone@@VBOX_COND_IS_RTC_USING_UTC@@ --utc@@VBOX_COND_END@@ @@VBOX_INSERT_TIME_ZONE_UX@@
46
47# Network information
48network --bootproto=dhcp --device=link --onboot=on --hostname=@@VBOX_INSERT_HOSTNAME_FQDN_SH@@
49
50# System bootloader configuration
51bootloader --location=mbr --append="nomodeset crashkernel=auto rhgb quiet"
52zerombr
53
54# Partition clearing information
55clearpart --all --initlabel
56
57# Disk partitioning information
58@@VBOX_COND_IS_FIRMWARE_UEFI@@
59part /boot/efi --fstype=efi --grow --maxsize=200 --size=20
60part /boot --fstype=ext4 --size=512
61@@VBOX_COND_END@@
62
63part / --fstype ext4 --size 6000 --grow --asprimary
64part swap --size 1024
65
66#Initial user
67user --name=@@VBOX_INSERT_USER_LOGIN_SH@@ --password=@@VBOX_INSERT_USER_PASSWORD_SH@@ --plaintext
68
69# Reboot after installation
70# Note! Not sure exctly when the --eject option was added. Need to find out an make it optional.
71reboot --eject
72
73# Packages. We currently ignore missing packages/groups here to keep things simpler.
74%packages --ignoremissing
75@base
76@core
77@@VBOX_COND_IS_NOT_MINIMAL_INSTALLATION@@
78@development
79@basic-desktop
80@desktop-debugging
81@desktop-platform
82@fonts
83@general-desktop
84@graphical-admin-tools
85@remote-desktop-clients
86@x11
87@@VBOX_COND_END@@
88
89# Prepare building the additions kernel module, try get what we can from the cdrom as it may be impossible
90# to install anything from the post script:
91kernel-headers
92kernel-devel
93glibc-devel
94glibc-headers
95gcc
96@@VBOX_COND[${GUEST_OS_VERSION} vgt 8.0.0]@@
97elfutils-libelf-devel
98@@VBOX_COND_END@@
99dkms
100make
101bzip2
102perl
103
104#Package cloud-init is needed for possible automation the initial setup of virtual machine
105cloud-init
106
107%end
108
109# Post install happens in a different script.
110# Note! We mount the CDROM explictily here since the location differs between fedora 26 to rhel5
111# and apparently there isn't any way to be certain that anaconda didn't unmount it already.
112%post --nochroot --log=/mnt/sysimage/root/ks-post.log
113df -h
114mkdir -p /tmp/vboxcdrom
115mount /dev/cdrom /tmp/vboxcdrom
116cp /tmp/vboxcdrom/vboxpostinstall.sh /mnt/sysimage/root/vboxpostinstall.sh
117chmod a+x /mnt/sysimage/root/vboxpostinstall.sh
118/bin/bash /mnt/sysimage/root/vboxpostinstall.sh --rhel
119umount /tmp/vboxcdrom
120%end
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette