1install
2KVM_TEST_MEDIUM
3text
4reboot
5lang en_US.UTF-8
6langsupport --default=en_US.UTF-8 en_US.UTF-9
7keyboard us
8network --bootproto dhcp
9rootpw 123456
10firewall --enabled --ssh
11timezone America/New_York
12firstboot --disable
13bootloader --location=mbr --append="console=tty0 console=ttyS0,115200"
14clearpart --all --initlabel
15autopart
16reboot
17mouse generic3ps/2
18skipx
19
20%packages --resolvedeps
21@ base
22@ development-libs
23@ development-tools
24ntp
25
26%post --interpreter /usr/bin/python
27import socket, os
28os.system('/bin/ifconfig eth0 10.0.2.15 netmask 255.255.255.0 up')
29os.system('/bin/route add default gw 10.0.2.2')
30os.system('chkconfig sshd on')
31server = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
32server.bind(('', 12323))
33server.listen(1)
34(client, addr) = server.accept()
35client.send("done")
36client.close()
37