qemu_guest_agent.cfg 3.7 KB
Newer Older
1
- qemu_guest_agent: install setup image_copy unattended_install.cdrom
2
    only Fedora.16, Fedora.17, Fedora.18, Fedora.test, Windows
3 4 5
    type = qemu_guest_agent
    gagent_name = "org.qemu.guest_agent.0"
    gagent_install_cmd = "rpm -q qemu-guest-agent || yum install -y qemu-guest-agent"
6
    Windows:
7
        gagent_host_dep_install_cmd = "yum install -y mingw32-glib2"
8 9
        gagent_host_install_cmd = "rpm -q qemu-guest-agent-win32 || rpm --ignorearch -ivh ftp://rpmfind.net/linux/centos/6.4/updates/x86_64/Packages/qemu-guest-agent-win32-0.12.1.2-2.355.el6_4_4.1.x86_64.rpm"
        gagent_install_cmd = "net stop qemu-ga & C:\qemu-ga\qemu-ga.exe -s uninstall & C:\qemu-ga\qemu-ga.exe -s install"
10 11 12 13
        gagent_dep_dlls = "/usr/i686-w64-mingw32/sys-root/mingw/bin/libglib-2.0-0.dll"
        gagent_dep_dlls += " /usr/i686-w64-mingw32/sys-root/mingw/bin/iconv.dll"
        gagent_dep_dlls += " /usr/i686-w64-mingw32/sys-root/mingw/bin/libintl-8.dll"
        gagent_dep_dlls += " /usr/i686-w64-mingw32/sys-root/mingw/bin/libgcc_s_sjlj-1.dll"
14 15 16
        gagent_host_path = "/usr/share/qemu-kvm/qemu-ga-win32/qemu-ga.exe"
        gagent_guest_dir = "C:\\qemu-ga"
        gagent_remove_service_cmd = "net stop qemu-ga & del /f C:\\qemu-ga\\qemu-ga.exe"
17 18 19 20 21 22 23 24 25
    variants:
        - gagent_install:
            gagent_check_type = install
        - check_sync:
            gagent_check_type = sync
        - check_powerdown:
            gagent_check_type = powerdown
        - check_reboot:
            gagent_check_type = reboot
26 27
            # This config would be overriden in guest-os.cfg.
            gagent_guest_reboot_pattern = "Restarting system"
28 29
            Windows:
                gagent_guest_reboot_pattern = ""
30 31
        - check_halt:
            gagent_check_type = halt
32 33
            # This config would be overriden in guest-os.cfg.
            gagent_guest_shutdown_pattern = "System halted"
34 35
            Windows:
                gagent_guest_shutdown_pattern = ""
36
        - check_fsfreeze:
37 38
            # fsfreeze series commands can't run on windows guest.
            no Windows
39 40 41
            gagent_check_type = fsfreeze
            gagent_fs_test_cmd = "rm -f /tmp/foo; echo foo > /tmp/foo"
        - check_snapshot:
42 43
            # fsfreeze series commands can't run on windows guest.
            no Windows
44 45 46 47
            type = qemu_guest_agent_snapshot
            gagent_check_type = fsfreeze
            gagent_fs_test_cmd = "rm -f /tmp/foo; echo foo > /tmp/foo"
            gagent_fs_check_cmd = "grep foo /tmp/foo"
48 49
        - check_suspend:
            type = qemu_guest_agent_suspend
50
            services_up_timeout = 30
51 52 53 54 55
            # params: s3_support_chk_cmd, s3_bg_program_setup_cmd,
            # s3_bg_program_chk_cmd, s3_bg_program_kill_cmd, s3_log_chk_cmd,
            # s3_start_cmd, s4_support_chk_cmd, s4_bg_program_setup_cmd,
            # s4_bg_program_chk_cmd, s4_bg_program_kill_cmd, s4_log_chk_cmd,
            # s4_start_cmd and services_up_timeout are set in guest-os.cfg
56 57 58
            Windows:
                # Windows guest only works with qxl driver.
                vga = "qxl"
59 60 61 62 63 64
    variants:
        - virtio_serial:
            gagent_serial_type = virtio
            virtio_ports += " org.qemu.guest_agent.0"
            virtio_port_type_org.qemu.guest_agent.0 = "serialport"
            gagent_start_cmd = "service qemu-guest-agent start"
65 66
            Windows:
                gagent_start_cmd = "net start qemu-ga"
67
        - isa_serial:
68 69
            # Windows guests don't support isa serial, disable it directly.
            no Windows
70 71 72
            gagent_serial_type = isa
            isa_serials += " org.qemu.guest_agent.0"
            gagent_start_cmd = "pgrep qemu-ga || qemu-ga -d -m isa-serial -p /dev/ttyS1"