An Interest In:
Web News this Week
- March 20, 2024
- March 19, 2024
- March 18, 2024
- March 17, 2024
- March 16, 2024
- March 15, 2024
- March 14, 2024
openEuler 20.03 LTS SP3 Kickstart Automatic Installation on VMware Workstation
Introduction
As openEuler also uses Redhat Anaconda as its OS installer, we can use Kickstart for Automatic Installation. However, the guides provided in the previous documentation officially are not straightforward enough for Linux newbies who tend to use virtual machines for installation. So in this blog, I'm going to show you how to perform openEuler 20.03 LTS SP3 Kickstart Automatic Installation on VMware Workstation with only a single ISO file referring to the CentOS Kickstart Installations Documentation.
Steps
Create the Kickstart file
Copy the following code into a file named ks.cfg
at somewhere on your computer.
#version=DEVEL# Use graphical installgraphical%packages@^minimal-environment@standard%end# Keyboard layoutskeyboard --xlayouts='cn'# System languagelang zh_CN.UTF-8# Network informationnetwork --bootproto=dhcp --device=ens160 --onboot=off --ipv6=auto --activatenetwork --hostname=localhost.localdomain# Use CDROM installation mediacdrom# Run the Setup Agent on first bootfirstboot --enable# System servicesservices --enabled="chronyd"ignoredisk --only-use=nvme0n1autopart# Partition clearing informationclearpart --none --initlabel# System timezonetimezone Asia/Shanghai --utc# Root passwordrootpw openeuleruser --groups=wheel --name=openeuler --password=openeuler --gecos="openEuler"%addon com_redhat_kdump --disable --reserve-mb='128'%end%anacondapwpolicy root --minlen=8 --minquality=1 --strict --nochanges --notemptypwpolicy user --minlen=8 --minquality=1 --strict --nochanges --emptyokpwpolicy luks --minlen=8 --minquality=1 --strict --nochanges --notempty%end
The above Kickstart file will set Chinese as the default language, and set the root password to openeuler
, with an additional account name and password both openeuler
.
If you want to create your own Kickstart file, you can firstly perform a manual installation you would like, after successfully installing and logging into the system, get the generated Kickstart file that corresponds to the manual installation just performed at /root/anaconda-ks.cfg
, rename it to ks.cfg
.
Generate the ISO file
- If you are on Linux, run mkisofs for ISO generation:
cd <the folder where you store your ks.cfg>mkisofs -JR -V OEMDRV -o auto-installation.iso ks.cfg
- If you are on Windows, you can use UltraISO for ISO generation:
- open UltraISO, click on the
New
button, rename the disk intoOEMDRV
. - Press
F3
to add fileks.cfg
into the ISO, then click on theSave
button to save the ISO file asauto-installation.iso
.
Configure the Virtual Machine
Please first create the virtual machine on VMware Workstation for openEuler 20.03 LTS SP3. If you don't know how to do this, please refer to the VMware Workstation documentation or related blogs as there're already many tutorials that exist.
- In the Virtual Machine's tab, click on the
Edit virtual machine settings
. - On the prompted
Virtual Machine Settings
window, click on theAdd...
button. - On the prompted
Add Hardware Wizard
dialogue, chooseCD/DVD Drive
, click on theFinish
button. - Then for the newly added CD/DVD Device, choose
Use ISO image file:
, and click on theBrowse...
button to select the ISO fileauto-installation.iso
just created in the last step, finally click on theOK
button.
At last, start your virtual machine and enjoy Kickstart automatic installation!
Original Link: https://dev.to/hollowman6/openeuler-2003-lts-sp3-kickstart-automatic-installation-on-vmware-workstation-m0c
Dev To
An online community for sharing and discovering great ideas, having debates, and making friendsMore About this Source Visit Dev To