install-centos-6.5-alternate.sikuli

(Download this script)
vm_name = "centos-test"
# root password
password = "password"


def start_text_mode():
    '''Select non-gui (text mode) install mode'''
    wait(, 30)
    App.focus(vm_name)
    type(Key.TAB)
    type(" text")
    type(Key.ENTER)

def skip_media_check():
    wait(, 20)
    App.focus(vm_name)
    type(Key.RIGHT)
    type(Key.ENTER)

def splash_screen():
    wait(, 30)
    App.focus(vm_name)
    type(Key.ENTER)

def select_language():
    wait(, 5)
    App.focus(vm_name)
    type(Key.ENTER)
    wait(, 5)
    type(Key.ENTER)

def reinitialise():
    try:
        wait(, 5)
        App.focus(vm_name)
        type(Key.TAB)
        type(Key.TAB)
        type(Key.TAB)
        type(Key.ENTER)
    except:
        pass

def time():
    wait(, 5)
    App.focus(vm_name)
    type(Key.TAB)
    for _ in range(32):
        type(Key.PAGE_DOWN)
    type(Key.UP)
    type(Key.UP)
    type(Key.UP)
    type(Key.UP)
    type(Key.TAB)
    type(Key.ENTER)

def set_password():
    wait(, 5)
    App.focus(vm_name)
    type(password)
    type(Key.TAB)
    type(password)
    type(Key.TAB)
    type(Key.ENTER)
    if exists():
        type(Key.TAB)
        type(Key.ENTER)

def partitioning():
    wait(, 10)
    App.focus(vm_name)
    type(Key.UP)
    type(Key.TAB)
    type(Key.TAB)
    type(Key.ENTER)
    # Confirmation window
    wait(, 2)
    type(Key.TAB)
    type(Key.ENTER)


start_text_mode()
skip_media_check()
splash_screen()
select_language()
reinitialise()
time()
set_password()
partitioning()