qemu_guest_agent.cfg 3.9 KB
Newer Older
1
- qemu_guest_agent: install setup image_copy unattended_install.cdrom
2 3
    only Fedora, RHEL, Windows
    no 8, 9, 10, 11, 12, 13, 14, 15
4 5 6
    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"
7
    Windows:
8
        gagent_host_dep_install_cmd = "yum install -y mingw32-glib2"
9 10
        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"
11 12 13 14
        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"
15
        gagent_host_path = "/usr/share/qemu-kvm/qemu-ga-win32/qemu-ga.exe"
16 17
        gagent_guest_dir = "C:\qemu-ga"
        gagent_remove_service_cmd = "net stop qemu-ga & del /f C:\qemu-ga\qemu-ga.exe & echo done"
18 19 20 21 22 23 24 25 26
    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
27 28
            # This config would be overriden in guest-os.cfg.
            gagent_guest_reboot_pattern = "Restarting system"
29 30
            Windows:
                gagent_guest_reboot_pattern = ""
31 32
        - check_halt:
            gagent_check_type = halt
33 34
            # This config would be overriden in guest-os.cfg.
            gagent_guest_shutdown_pattern = "System halted"
35 36
            Windows:
                gagent_guest_shutdown_pattern = ""
37
        - check_fsfreeze:
38 39
            # fsfreeze series commands can't run on windows guest.
            no Windows
40 41 42
            gagent_check_type = fsfreeze
            gagent_fs_test_cmd = "rm -f /tmp/foo; echo foo > /tmp/foo"
        - check_snapshot:
43 44
            # fsfreeze series commands can't run on windows guest.
            no Windows
45 46 47 48
            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"
49 50
        - check_suspend:
            type = qemu_guest_agent_suspend
51
            services_up_timeout = 30
52 53
            extra_params += " -global PIIX4_PM.disable_s3=0"
            extra_params += " -global PIIX4_PM.disable_s4=0"
54 55 56 57 58
            # 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
59 60 61
            Windows:
                # Windows guest only works with qxl driver.
                vga = "qxl"
62 63 64 65 66 67
    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"
68 69
            RHEL.6:
                gagent_start_cmd = "service qemu-ga start"
70 71
            Windows:
                gagent_start_cmd = "net start qemu-ga"
72
        - isa_serial:
73 74
            # Windows guests don't support isa serial, disable it directly.
            no Windows
75 76
            # ppc64 platform doesn't support isa serial 
            no ppc64
77
            gagent_serial_type = isa
78
            serials += " org.qemu.guest_agent.0"
79
            gagent_start_cmd = "pgrep qemu-ga || qemu-ga -d -m isa-serial -p /dev/ttyS1"