VirtualBox

source: vbox/trunk/src/VBox/Main/UnattendedTemplates/ol_ks.cfg

Last change on this file was 94132, checked in by vboxsync, 3 years ago

Main/Unattended: ​​bugref:9781. Re-enabling unsupported_hardware command in OL kickstart file template which has been commented out with r140545.

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

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