-
Notifications
You must be signed in to change notification settings - Fork 21
/
ol8_kickstart.sh
22 lines (21 loc) · 710 Bytes
/
ol8_kickstart.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/bash
virt-install \
--virt-type kvm \
--name=ol8_ks \
--os-variant=ol8.2 \
--cpu host-passthrough \
--vcpus 2 \
--memory 2048 \
--disk path=/tmp/ol8_ks.qcow2,size=40,format=qcow2,sparse=true,bus=scsi,discard=unmap \
--controller type=scsi,model=virtio-scsi \
--network bridge=br0,model=virtio \
--channel spicevmc,target_type=virtio,name=com.redhat.spice.0 \
--channel unix,target_type=virtio,name=org.qemu.guest_agent.0 \
--graphics spice,gl.enable=no,listen=none \
--video qxl \
--console pty,target_type=virtio \
--metadata title="OL 8.4 (kickstart)" \
--location /tmp/OracleLinux-R8-U4-x86_64-dvd.iso \
--extra-args='inst.ks=file:ol8_kickstart.cfg' \
--initrd-inject=ol8_kickstart.cfg \
--noreboot