1install 2KVM_TEST_MEDIUM 3text 4reboot 5lang en_US.UTF-8 6keyboard us 7key --skip 8network --bootproto dhcp 9rootpw 123456 10firewall --enabled --ssh 11selinux --enforcing 12timezone --utc America/New_York 13firstboot --disable 14bootloader --location=mbr --append="console=tty0 console=ttyS0,115200" 15zerombr 16clearpart --all --initlabel 17autopart 18reboot 19 20%packages 21@base 22@development-libs 23@development-tools 24ntpdate 25 26%post --interpreter /usr/bin/python 27import socket, os 28os.system('dhclient') 29os.system('chkconfig sshd on') 30os.system('iptables -F') 31os.system('echo 0 > /selinux/enforce') 32server = socket.socket(socket.AF_INET, socket.SOCK_STREAM) 33server.bind(('', 12323)) 34server.listen(1) 35(client, addr) = server.accept() 36client.send("done") 37client.close() 38