Skip to content

Commit 5a7f393

Browse files
committed
add example.xml for using setup_system.py to create up vms
1 parent d118e0e commit 5a7f393

File tree

2 files changed

+26
-1
lines changed

2 files changed

+26
-1
lines changed

.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ test.py
88
venv
99
scripts/shell/conf.json
1010
scripts/shell/cookie
11-
example.xml
11+
etc/example.xml

example.xml

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<servers xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="">
2+
3+
<SERVER serverIp="192.168.1.17" user="root" passwd="123456">
4+
<!--VM element: vmname, template is required, others are options, if you want to keep those options params same with that in template, don't set it here -->
5+
<VM vmname="createViaXml" cpucores="2" cpumax="4" memory="2" maxMemory="4" template="NewTemplate">
6+
<!--IP element: vifIndex and ip is required, device/network/bridge is options, if no device/network/bridge, will choose manage network as default -->
7+
<IP vifIndex="0" ip="192.168.1.240" network="xenbr1" />
8+
<!--DISK element: size is required, storage is options, is no storage, it will choose the storage which has largest free size -->
9+
<DISK size="2" storage="Local storage" />
10+
</VM>
11+
</SERVER>
12+
<!--here you can add another server -->
13+
<SERVER serverIp="192.168.1.15" user="root" passwd="123456">
14+
<!--VM element: vmname, template is required, others are options -->
15+
<VM vmname="createViaXml2" cpucores="1" cpumax="2" minMemory="1" memory="2" maxMemory="3" template="NewTemplate">
16+
<!--IP element: vifIndex and ip is required, device/network/bridge is options, if no device/network/bridge, will choose manage network as default -->
17+
<IP vifIndex="0" ip="192.168.1.239" device="eth1" />
18+
<IP vifIndex="1" ip="192.168.1.241" network="xenbr1" />
19+
<IP vifIndex="2" ip="192.168.1.242" bridge="xenbr1" />
20+
<!--DISK element: size is required, storage is options, is no storage, it will choose the storage which has largest free size -->
21+
<DISK size="2" />
22+
</VM>
23+
</SERVER>
24+
25+
</servers>

0 commit comments

Comments
 (0)