1
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

kvm+kickstart

Last updated at Posted at 2020-01-06

qemu-img create -f raw /home/hiroki/vm/hiroki-kickstart.img 20G

sudo virt-install \

--name hiroki-kickstart
--hvm
--os-variant=rhel8.0
--vcpu=1
--ram 1024
--graphics none
--serial pty
--console pty
--disk=/home/hiroki/vm/hiroki-kickstart.img
--location=/home/hiroki/vm/CentOS-8-x86_64-1905-dvd1.iso
--initrd-inject /home/hiroki/vm/ks/anaconda-ks.cfg
--extra-args "inst.ks=file:/anaconda-ks.cfg console=ttyS0,115200n8"

version=RHEL8

ignoredisk --only-use=vda

Partition clearing information

clearpart --all --initlabel

Use graphical install

graphical

text
cmdline
skipx
repo --name="AppStream" --baseurl=file:///run/install/repo/AppStream

Use CDROM installation media

cdrom

Keyboard layouts

keyboard --vckeymap=jp --xlayouts='jp'

System language

lang ja_JP.UTF-8

Network information

network --bootproto=dhcp --device=enp1s0 --ipv6=auto --activate
network --hostname=hiroki-kickstart

Root password

rootpw --iscrypted $6$4myf402P9EDDeU6Y$K3NSp7lJryOeEM2GKj8Fk7hpjPwfpKgSS.LPYn8kNxitEPlXGUzpTDEKn7utsbFmbgtEaxlHh1CAmc.axaCFQ.

X Window System configuration information

xconfig --startxonboot

Run the Setup Agent on first boot

firstboot --disabled

System services

services --disabled="chronyd"
selinux --disabled
firewall --disabled

System timezone

timezone Asia/Tokyo --isUtc --nontp
user --groups=wheel --name=hiroki --password=$6$/2KfmGnHvg5i6oRp$NFNGF4UmBkMbOuQMt7H8fhpFdt9SXGKm80KG5Zi4DEgw3hsG.mOYyqVdci8/2I.aTxW3WEx5VD8oyjSobk3of1 --iscrypted --gecos="hiroki"

Disk partitioning information

part pv.221 --fstype="lvmpv" --ondisk=vda --size=19455
part /boot --fstype="ext4" --ondisk=vda --size=1024
volgroup vg00 --pesize=4096 pv.221
logvol swap --fstype="swap" --size=2047 --name=swap --vgname=vg00
logvol / --fstype="xfs" --grow --size=1 --name=root --vgname=vg00

reboot --eject

%packages
@^graphical-server-environment
@debugging
@development
@dotnet-core
@ftp-server
@legacy-unix
@performance
@remote-system-management
@rpm-development-tools
@security-tools
@virtualization-client
@virtualization-hypervisor
@virtualization-tools
@web-server
kexec-tools

%end

%addon com_redhat_kdump --enable --reserve-mb='auto'

%end

%anaconda
pwpolicy root --minlen=6 --minquality=1 --notstrict --nochanges --notempty
pwpolicy user --minlen=6 --minquality=1 --notstrict --nochanges --emptyok
pwpolicy luks --minlen=6 --minquality=1 --notstrict --nochanges --notempty
%end

1
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?