Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
tp-qemu
提交
28d33bb5
T
tp-qemu
项目概览
openeuler
/
tp-qemu
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
tp-qemu
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
28d33bb5
编写于
9月 02, 2016
作者:
S
suqinhuang
提交者:
GitHub
9月 02, 2016
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #659 from Zhengtong/guest_agent_full
update qga cmd: set-time, get-time, network-interface, fstrim
上级
be38f2ab
24270158
变更
2
展开全部
隐藏空白更改
内联
并排
Showing
2 changed file
with
342 addition
and
70 deletion
+342
-70
qemu/tests/cfg/qemu_guest_agent.cfg
qemu/tests/cfg/qemu_guest_agent.cfg
+32
-10
qemu/tests/qemu_guest_agent.py
qemu/tests/qemu_guest_agent.py
+310
-60
未找到文件。
qemu/tests/cfg/qemu_guest_agent.cfg
浏览文件 @
28d33bb5
- qemu_guest_agent: install setup image_copy unattended_install.cdrom
- 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 = "rpm -q qemu-guest-agent || yum install -y qemu-guest-agent"
Windows:
gagent_host_dep_install_cmd = "yum install -y mingw32-glib2"
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"
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"
gagent_host_path = "/usr/share/qemu-kvm/qemu-ga-win32/qemu-ga.exe"
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_install_cmd = "C:\qemu-ga\${qemu_ga_pkg} /quiet"
gagent_host_path = "/tmp/${qemu_ga_pkg}"
gagent_guest_dir = "C:\qemu-ga"
gagent_remove_service_cmd = "net stop qemu-ga & del /f C:\qemu-ga\
qemu-ga.exe
& echo done"
gagent_remove_service_cmd = "net stop qemu-ga & del /f C:\qemu-ga\
${qemu_ga_pkg}
& echo done"
variants:
- gagent_install:
gagent_check_type = install
...
...
@@ -52,6 +51,29 @@
- check_set_vcpus:
no Windows
gagent_check_type = set_vcpus
- check_get_time:
gagent_check_type = get_time
get_guest_time_cmd = python -c "import time; print int(time.time())"
- check_set_time:
image_snapshot = yes
gagent_check_type = set_time
get_guest_time_cmd = python -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
...
...
qemu/tests/qemu_guest_agent.py
浏览文件 @
28d33bb5
此差异已折叠。
点击以展开。
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录