Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
libvirt
提交
d78c0a68
L
libvirt
项目概览
openeuler
/
libvirt
通知
3
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
L
libvirt
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
d78c0a68
编写于
7月 11, 2008
作者:
D
Daniel P. Berrange
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Convert test driver to new domain XML apis
上级
c422fd12
变更
6
展开全部
隐藏空白更改
内联
并排
Showing
6 changed file
with
505 addition
and
623 deletion
+505
-623
ChangeLog
ChangeLog
+7
-0
docs/testdomfc4.xml
docs/testdomfc4.xml
+1
-1
docs/testnodeinline.xml
docs/testnodeinline.xml
+110
-0
src/test.c
src/test.c
+383
-621
src/test.h
src/test.h
+1
-1
tests/read-non-seekable
tests/read-non-seekable
+3
-0
未找到文件。
ChangeLog
浏览文件 @
d78c0a68
Fri Jul 11 17:39:59 BST 2008 Daniel P. Berrange <berrange@redhat.com>
* src/test.c, src/test.h: Convert to the new domain XML apis
* docs/testdomfc4.xml: Update for new syntax
* docs/testnodeinline.xml: Demo of inline domain & network XML
* tests/read-non-seekable: Update to have OS block
Fri Jul 11 17:37:59 BST 2008 Daniel P. Berrange <berrange@redhat.com>
* src/test.c: Convert to the new network XML apis
...
...
docs/testdomfc4.xml
浏览文件 @
d78c0a68
...
...
@@ -2,7 +2,7 @@
<name>
fc4
</name>
<uuid>
EF86180145B911CB88E3AFBFE5370493
</uuid>
<os>
<type>
linux
</type>
<type>
xen
</type>
<kernel>
/boot/vmlinuz-2.6.15-1.43_FC5guest
</kernel>
<initrd>
/boot/initrd-2.6.15-1.43_FC5guest.img
</initrd>
<root>
/dev/sda1
</root>
...
...
docs/testnodeinline.xml
0 → 100644
浏览文件 @
d78c0a68
<?xml version="1.0"?>
<node>
<!-- This file gives an example config for the mock 'test' backend
driver to libvirt. This is intended to allow relible unit testing
of applications using libvirt. To use this with virsh, run something
like:
virsh -connect test:////path/to/this/dir/testnode.xml nodeinfo
-->
<domain
type=
"test"
>
<name>
fv0
</name>
<uuid>
4dea22b31d52d8f32516782e98ab3fa0
</uuid>
<os>
<type>
hvm
</type>
<loader>
/usr/lib/xen/boot/hvmloader
</loader>
<boot
dev=
"hd"
/>
</os>
<memory>
524288
</memory>
<maxMemory>
1524288
</maxMemory>
<vcpu>
4
</vcpu>
<on_poweroff>
destroy
</on_poweroff>
<on_reboot>
restart
</on_reboot>
<on_crash>
restart
</on_crash>
<features>
<pae/>
<acpi/>
<apic/>
</features>
<devices>
<emulator>
/usr/lib/xen/bin/qemu-dm
</emulator>
<interface
type=
"bridge"
>
<source
bridge=
"xenbr0"
/>
<mac
address=
"00:16:3e:5d:c7:9e"
/>
<script
path=
"vif-bridge"
/>
</interface>
<disk
type=
"file"
>
<source
file=
"/root/fv0"
/>
<target
dev=
"hda"
/>
</disk>
<disk
type=
"file"
device=
"cdrom"
>
<source
file=
"/root/fc5-x86_64-boot.iso"
/>
<target
dev=
"hdc"
/>
<readonly/>
</disk>
<disk
type=
"file"
device=
"floppy"
>
<source
file=
"/root/fd.img"
/>
<target
dev=
"fda"
/>
</disk>
<graphics
type=
"vnc"
port=
"5904"
/>
</devices>
</domain>
<domain
type=
"test"
>
<name>
fc4
</name>
<uuid>
EF86180145B911CB88E3AFBFE5370493
</uuid>
<os>
<type>
xen
</type>
<kernel>
/boot/vmlinuz-2.6.15-1.43_FC5guest
</kernel>
<initrd>
/boot/initrd-2.6.15-1.43_FC5guest.img
</initrd>
<root>
/dev/sda1
</root>
<cmdline>
ro selinux=0 3
</cmdline>
</os>
<memory>
261072
</memory>
<currentMemory>
131072
</currentMemory>
<vcpu>
1
</vcpu>
<devices>
<disk
type=
"file"
>
<source
file=
"/u/fc4.img"
/>
<target
dev=
"sda1"
/>
</disk>
<interface
type=
"bridge"
>
<source
bridge=
"xenbr0"
/>
<mac
address=
"aa:00:00:00:00:11"
/>
<script
path=
"/etc/xen/scripts/vif-bridge"
/>
</interface>
<console
tty=
"/dev/pts/5"
/>
</devices>
</domain>
<network>
<name>
private
</name>
<uuid>
004b22212d78c30f5aa5f03c87d21e69
</uuid>
<bridge
name=
"brpriv"
/>
<ip
address=
"192.168.124.1"
netmask=
"255.255.255.0"
>
<dhcp>
<range
start=
"192.168.124.128"
end=
"192.168.124.253"
/>
</dhcp>
</ip>
</network>
<network>
<name>
default
</name>
<uuid>
004b96e12d78c30f5aa5f03c87d21e69
</uuid>
<bridge
name=
"brdefault"
/>
<forward
dev=
"eth0"
/>
<ip
address=
"192.168.122.1"
netmask=
"255.255.255.0"
>
<dhcp>
<range
start=
"192.168.122.128"
end=
"192.168.122.253"
/>
</dhcp>
</ip>
</network>
<cpu>
<mhz>
6000
</mhz>
<model>
i986
</model>
<active>
50
</active>
<nodes>
4
</nodes>
<sockets>
4
</sockets>
<cores>
4
</cores>
<threads>
2
</threads>
</cpu>
<memory>
8192000
</memory>
</node>
src/test.c
浏览文件 @
d78c0a68
此差异已折叠。
点击以展开。
src/test.h
浏览文件 @
d78c0a68
...
...
@@ -24,7 +24,7 @@
#ifndef __VIR_TEST_INTERNAL_H__
#define __VIR_TEST_INTERNAL_H__
#include "
libvirt/virterror
.h"
#include "
internal
.h"
#ifdef __cplusplus
extern
"C"
{
...
...
tests/read-non-seekable
浏览文件 @
d78c0a68
...
...
@@ -31,6 +31,9 @@ cat <<\EOF > dom
<uuid>004b96e1-2d78-c30f-5aa5-000000000000</uuid>
<memory>8388608</memory>
<vcpu>2</vcpu>
<os>
<type>xen</type>
</os>
<on_reboot>restart</on_reboot>
<on_poweroff>destroy</on_poweroff>
<on_crash>restart</on_crash>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录