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