- qemu_guest_agent: install setup image_copy unattended_install.cdrom single_driver_install.with_vioserial only Fedora, RHEL, Windows no Fedora.8, Fedora.9, Fedora.10, Fedora.11, Fedora.12, Fedora.13, Fedora.14, Fedora.15 type = qemu_guest_agent gagent_name = "org.qemu.guest_agent.0" gagent_install_cmd = "yum install -y qemu-guest-agent" gagent_start_cmd = "service qemu-guest-agent start" gagent_stop_cmd = "service qemu-guest-agent stop" gagent_status_cmd = "service qemu-guest-agent status" gagent_pkg_check_cmd = "rpm -q qemu-guest-agent" Windows: gagent_src_type = url cdroms += " virtio" cdrom_virtio = isos/windows/virtio-win.iso ga_username = "Administrator" i386: qemu_ga_pkg = qemu-ga-x86.msi x86_64: qemu_ga_pkg = qemu-ga-x64.msi gagent_download_cmd = "wget https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/latest-qemu-ga/${qemu_ga_pkg} -P /tmp/" gagent_host_path = "/tmp/${qemu_ga_pkg}" gagent_guest_dir = "C:\qemu-ga" gagent_install_cmd = "start /wait %s /quiet" gagent_uninstall_cmd = "start /wait msiexec /uninstall %s /quiet" gagent_start_cmd = "net start qemu-ga" gagent_stop_cmd = "net stop qemu-ga" gagent_status_cmd = sc query qemu-ga |findstr "RUNNING" gagent_pkg_check_cmd = wmic product get name |findstr "QEMU guest agent" gagent_remove_service_cmd = "net stop qemu-ga & del /f C:\qemu-ga\${qemu_ga_pkg} & echo done" RHEL.6: gagent_start_cmd = "service qemu-ga start" gagent_stop_cmd = "service qemu-ga stop" gagent_status_cmd = "service qemu-ga status" variants: - gagent_install: gagent_check_type = install - gagent_install_uninstall: only Windows gagent_check_type = install_uninstall repeat_times = 50 - gagent_stop_start: gagent_check_type = stop_start repeat_times = 100 - check_sync: gagent_check_type = sync - check_powerdown: gagent_check_type = powerdown - check_reboot: gagent_check_type = reboot # This config would be overriden in guest-os.cfg. gagent_guest_reboot_pattern = "Restarting system" Windows: gagent_guest_reboot_pattern = "" - check_halt: gagent_check_type = halt # This config would be overriden in guest-os.cfg. gagent_guest_shutdown_pattern = "System halted" Windows: gagent_guest_shutdown_pattern = "" - check_sync_delimited: gagent_check_type = sync_delimited - check_set_user_password: gagent_check_type = set_user_password image_snapshot = yes variants: - no_crypto: new_password = "Abc_123" - crypto: no Windows new_password = "123456" crypted = "yes" - check_get_vcpus: no Windows gagent_check_type = get_vcpus - check_set_vcpus: no Windows gagent_check_type = set_vcpus - check_get_time: gagent_check_type = get_time get_guest_time_cmd = `command -v python python3 | head -1` -c "import time; print(int(time.time()))" - check_memory_leak: only Windows gagent_check_type = memory_leak repeats = 1000000 test_command = guest-info memory_usage_cmd = "tasklist | findstr /I qemu-ga.exe" - check_set_time: image_snapshot = yes gagent_check_type = set_time get_guest_time_cmd = `command -v python python3 | head -1` -c "import time; print(int(time.time()))" move_time_cmd = "date --rfc-3339=seconds --utc; date --set='now - 1 week' > /dev/null; date --rfc-3339=seconds --utc" - check_fstrim: no Windows gagent_check_type = fstrim start_vm = no disk_size = 1024 pre_command = "set -e; modprobe -r scsi_debug; modprobe scsi_debug dev_size_mb=${disk_size} lbpws=1; set +e" post_command = "modprobe -r scsi_debug" mount_point = "/var/test" mount_disk_cmd = "mkdir -p ${mount_point} && mount -o discard DISK ${mount_point}" format_disk_cmd = "yes|mkfs.ext4 DISK" write_disk_cmd = "dd if=/dev/zero of=${mount_point}/file bs=1M count=800 oflag=direct" delete_file_cmd = "rm ${mount_point}/file -f; sync" - check_get_interfaces: no Windows gagent_check_type = get_interfaces - check_fsfreeze: # fsfreeze series commands can't run on windows guest. no Windows gagent_check_type = fsfreeze gagent_fs_test_cmd = "rm -f /tmp/foo; echo foo > /tmp/foo" - check_reboot_shutdown_fsfreeze: gagent_check_type = reboot_shutdown - check_snapshot: # fsfreeze series commands can't run on windows guest. 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" - check_suspend: type = qemu_guest_agent_suspend services_up_timeout = 30 extra_params += " -global PIIX4_PM.disable_s3=0" extra_params += " -global PIIX4_PM.disable_s4=0" # 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 Windows: # Windows guest only works with qxl driver. vga = "qxl" - check_thaw_unfrozen: gagent_check_type = thaw_unfrozen variants: - virtio_serial: gagent_serial_type = virtio virtio_ports += " org.qemu.guest_agent.0" virtio_port_type_org.qemu.guest_agent.0 = "serialport" - isa_serial: # Windows guests don't support isa serial, disable it directly. no Windows # isa-serial is only supported on x86 only i386, x86_64 gagent_serial_type = isa serials += " org.qemu.guest_agent.0" gagent_start_cmd = "pgrep qemu-ga || qemu-ga -d -m isa-serial -p /dev/ttyS1"