Skip to content

Commit 01b0fd2

Browse files
authored
Merge pull request #90 from /issues/89-anvil-setup-doc
Anvil Set-Up documentation
2 parents 3fa5358 + d322f5a commit 01b0fd2

File tree

6 files changed

+955
-109
lines changed

6 files changed

+955
-109
lines changed

data/an-a01n01.xml

Lines changed: 230 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,230 @@
1+
<domain type='kvm' id='701' xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0'>
2+
<name>an-a01n01</name>
3+
<uuid>0d024d9b-b7b1-4f1f-b38c-bd298e3e0685</uuid>
4+
<memory unit='KiB'>8388608</memory>
5+
<currentMemory unit='KiB'>8388608</currentMemory>
6+
<vcpu placement='static'>1</vcpu>
7+
<resource>
8+
<partition>/machine</partition>
9+
</resource>
10+
<os>
11+
<type arch='x86_64' machine='pc-i440fx-2.11'>hvm</type>
12+
<bootmenu enable='yes'/>
13+
</os>
14+
<features>
15+
<acpi/>
16+
<apic/>
17+
<vmport state='off'/>
18+
</features>
19+
<cpu mode='custom' match='exact' check='full'>
20+
<model fallback='forbid'>Skylake-Client-IBRS</model>
21+
<vendor>Intel</vendor>
22+
<feature policy='require' name='ss'/>
23+
<feature policy='require' name='vmx'/>
24+
<feature policy='require' name='hypervisor'/>
25+
<feature policy='require' name='tsc_adjust'/>
26+
<feature policy='require' name='md-clear'/>
27+
<feature policy='require' name='ssbd'/>
28+
<feature policy='require' name='pdpe1gb'/>
29+
<feature policy='disable' name='mpx'/>
30+
<feature policy='disable' name='xsavec'/>
31+
<feature policy='disable' name='xgetbv1'/>
32+
</cpu>
33+
<clock offset='utc'>
34+
<timer name='rtc' tickpolicy='catchup'/>
35+
<timer name='pit' tickpolicy='delay'/>
36+
<timer name='hpet' present='no'/>
37+
</clock>
38+
<on_poweroff>destroy</on_poweroff>
39+
<on_reboot>restart</on_reboot>
40+
<on_crash>destroy</on_crash>
41+
<pm>
42+
<suspend-to-mem enabled='no'/>
43+
<suspend-to-disk enabled='no'/>
44+
</pm>
45+
<devices>
46+
<emulator>/usr/bin/qemu-kvm</emulator>
47+
<disk type='file' device='cdrom'>
48+
<target dev='hda' bus='ide'/>
49+
<readonly/>
50+
<alias name='ide0-0-0'/>
51+
<address type='drive' controller='0' bus='0' target='0' unit='0'/>
52+
</disk>
53+
<disk type='file' device='disk'>
54+
<driver name='qemu' type='qcow2'/>
55+
<source file='/var/lib/libvirt/images/an-a01n01-1.qcow2'/>
56+
<backingStore/>
57+
<target dev='vda' bus='virtio'/>
58+
<boot order='1'/>
59+
<alias name='virtio-disk0'/>
60+
<address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x0'/>
61+
</disk>
62+
<controller type='usb' index='0' model='ich9-ehci1'>
63+
<alias name='usb'/>
64+
<address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x7'/>
65+
</controller>
66+
<controller type='usb' index='0' model='ich9-uhci1'>
67+
<alias name='usb'/>
68+
<master startport='0'/>
69+
<address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0' multifunction='on'/>
70+
</controller>
71+
<controller type='usb' index='0' model='ich9-uhci2'>
72+
<alias name='usb'/>
73+
<master startport='2'/>
74+
<address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x1'/>
75+
</controller>
76+
<controller type='usb' index='0' model='ich9-uhci3'>
77+
<alias name='usb'/>
78+
<master startport='4'/>
79+
<address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x2'/>
80+
</controller>
81+
<controller type='pci' index='0' model='pci-root'>
82+
<alias name='pci.0'/>
83+
</controller>
84+
<controller type='ide' index='0'>
85+
<alias name='ide'/>
86+
<address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x1'/>
87+
</controller>
88+
<controller type='virtio-serial' index='0'>
89+
<alias name='virtio-serial0'/>
90+
<address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x0'/>
91+
</controller>
92+
<interface type='network'>
93+
<mac address='52:54:00:54:e9:8d'/>
94+
<source network='default' bridge='virbr0'/>
95+
<target dev='vnet0'/>
96+
<model type='e1000'/>
97+
<alias name='net0'/>
98+
<address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
99+
</interface>
100+
<interface type='network'>
101+
<mac address='52:54:00:e1:2c:35'/>
102+
<source network='default' bridge='virbr0'/>
103+
<target dev='vnet1'/>
104+
<model type='e1000'/>
105+
<alias name='net1'/>
106+
<address type='pci' domain='0x0000' bus='0x00' slot='0x0a' function='0x0'/>
107+
</interface>
108+
<interface type='network'>
109+
<mac address='52:54:00:78:1a:3c'/>
110+
<source network='sn1_bridge1' bridge='sn1_bridge1'/>
111+
<target dev='vnet2'/>
112+
<model type='e1000'/>
113+
<alias name='net2'/>
114+
<address type='pci' domain='0x0000' bus='0x00' slot='0x0b' function='0x0'/>
115+
</interface>
116+
<interface type='network'>
117+
<mac address='52:54:00:ad:02:61'/>
118+
<source network='sn1_bridge1' bridge='sn1_bridge1'/>
119+
<target dev='vnet3'/>
120+
<model type='e1000'/>
121+
<alias name='net3'/>
122+
<address type='pci' domain='0x0000' bus='0x00' slot='0x0c' function='0x0'/>
123+
</interface>
124+
<interface type='network'>
125+
<mac address='52:54:00:2d:8d:7a'/>
126+
<source network='bcn1_bridge1' bridge='bcn1_bridge1'/>
127+
<target dev='vnet4'/>
128+
<model type='e1000'/>
129+
<alias name='net4'/>
130+
<address type='pci' domain='0x0000' bus='0x00' slot='0x0d' function='0x0'/>
131+
</interface>
132+
<interface type='network'>
133+
<mac address='52:54:00:1e:b8:23'/>
134+
<source network='bcn1_bridge1' bridge='bcn1_bridge1'/>
135+
<target dev='vnet5'/>
136+
<model type='e1000'/>
137+
<boot order='2'/>
138+
<alias name='net5'/>
139+
<address type='pci' domain='0x0000' bus='0x00' slot='0x0e' function='0x0'/>
140+
</interface>
141+
<serial type='pty'>
142+
<source path='/dev/pts/2'/>
143+
<target type='isa-serial' port='0'>
144+
<model name='isa-serial'/>
145+
</target>
146+
<alias name='serial0'/>
147+
</serial>
148+
<console type='pty' tty='/dev/pts/2'>
149+
<source path='/dev/pts/2'/>
150+
<target type='serial' port='0'/>
151+
<alias name='serial0'/>
152+
</console>
153+
<channel type='unix'>
154+
<source mode='bind' path='/var/lib/libvirt/qemu/channel/target/domain-701-an-a01n01/org.qemu.guest_agent.0'/>
155+
<target type='virtio' name='org.qemu.guest_agent.0' state='disconnected'/>
156+
<alias name='channel0'/>
157+
<address type='virtio-serial' controller='0' bus='0' port='1'/>
158+
</channel>
159+
<channel type='spicevmc'>
160+
<target type='virtio' name='com.redhat.spice.0' state='disconnected'/>
161+
<alias name='channel1'/>
162+
<address type='virtio-serial' controller='0' bus='0' port='2'/>
163+
</channel>
164+
<input type='tablet' bus='usb'>
165+
<alias name='input0'/>
166+
<address type='usb' bus='0' port='1'/>
167+
</input>
168+
<input type='mouse' bus='ps2'>
169+
<alias name='input1'/>
170+
</input>
171+
<input type='keyboard' bus='ps2'>
172+
<alias name='input2'/>
173+
</input>
174+
<graphics type='spice' port='5900' autoport='yes' listen='127.0.0.1'>
175+
<listen type='address' address='127.0.0.1'/>
176+
<image compression='off'/>
177+
</graphics>
178+
<sound model='ich6'>
179+
<alias name='sound0'/>
180+
<address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/>
181+
</sound>
182+
<video>
183+
<model type='qxl' ram='65536' vram='65536' vgamem='16384' heads='1' primary='yes'/>
184+
<alias name='video0'/>
185+
<address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
186+
</video>
187+
<redirdev bus='usb' type='spicevmc'>
188+
<alias name='redir0'/>
189+
<address type='usb' bus='0' port='2'/>
190+
</redirdev>
191+
<redirdev bus='usb' type='spicevmc'>
192+
<alias name='redir1'/>
193+
<address type='usb' bus='0' port='3'/>
194+
</redirdev>
195+
<memballoon model='virtio'>
196+
<alias name='balloon0'/>
197+
<address type='pci' domain='0x0000' bus='0x00' slot='0x08' function='0x0'/>
198+
</memballoon>
199+
<rng model='virtio'>
200+
<backend model='random'>/dev/urandom</backend>
201+
<alias name='rng0'/>
202+
<address type='pci' domain='0x0000' bus='0x00' slot='0x09' function='0x0'/>
203+
</rng>
204+
</devices>
205+
<seclabel type='dynamic' model='selinux' relabel='yes'>
206+
<label>system_u:system_r:svirt_t:s0:c598,c852</label>
207+
<imagelabel>system_u:object_r:svirt_image_t:s0:c598,c852</imagelabel>
208+
</seclabel>
209+
<seclabel type='dynamic' model='dac' relabel='yes'>
210+
<label>+107:+107</label>
211+
<imagelabel>+107:+107</imagelabel>
212+
</seclabel>
213+
<qemu:commandline>
214+
<qemu:arg value='-chardev'/>
215+
<qemu:arg value='socket,id=ipmi0,host=127.0.0.1,port=9002,reconnect=2'/>
216+
<qemu:arg value='-device'/>
217+
<qemu:arg value='ipmi-bmc-extern,id=bmc0,chardev=ipmi0'/>
218+
<qemu:arg value='-device'/>
219+
<qemu:arg value='isa-ipmi-bt,bmc=bmc0'/>
220+
<qemu:arg value='-serial'/>
221+
<qemu:arg value='mon:tcp::9012,server,telnet,nowait'/>
222+
<qemu:arg value='-chardev'/>
223+
<qemu:arg value='socket,id=simengine-storage-tcp,host=localhost,port=50000,reconnect=2'/>
224+
<qemu:arg value='-device'/>
225+
<qemu:arg value='virtio-serial'/>
226+
<qemu:arg value='-device'/>
227+
<qemu:arg value='virtserialport,chardev=simengine-storage-tcp,name=systems.cdot.simengine.storage.net'/>
228+
</qemu:commandline>
229+
</domain>
230+

data/an-a01n02.xml

Lines changed: 168 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,168 @@
1+
<domain type='kvm' xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0'>
2+
<name>an-a01n02</name>
3+
<uuid>c68617af-1bb6-4557-b0a5-c219fbc0cca7</uuid>
4+
<memory unit='KiB'>8388608</memory>
5+
<currentMemory unit='KiB'>8388608</currentMemory>
6+
<vcpu placement='static'>1</vcpu>
7+
<os>
8+
<type arch='x86_64' machine='pc-i440fx-2.11'>hvm</type>
9+
<bootmenu enable='yes'/>
10+
</os>
11+
<features>
12+
<acpi/>
13+
<apic/>
14+
<vmport state='off'/>
15+
</features>
16+
<cpu mode='host-model' check='partial'>
17+
<model fallback='allow'/>
18+
</cpu>
19+
<clock offset='utc'>
20+
<timer name='rtc' tickpolicy='catchup'/>
21+
<timer name='pit' tickpolicy='delay'/>
22+
<timer name='hpet' present='no'/>
23+
</clock>
24+
<on_poweroff>destroy</on_poweroff>
25+
<on_reboot>restart</on_reboot>
26+
<on_crash>destroy</on_crash>
27+
<pm>
28+
<suspend-to-mem enabled='no'/>
29+
<suspend-to-disk enabled='no'/>
30+
</pm>
31+
<devices>
32+
<emulator>/usr/bin/qemu-kvm</emulator>
33+
<disk type='file' device='cdrom'>
34+
<driver name='qemu' type='raw'/>
35+
<target dev='hda' bus='ide'/>
36+
<readonly/>
37+
<address type='drive' controller='0' bus='0' target='0' unit='0'/>
38+
</disk>
39+
<disk type='file' device='disk'>
40+
<driver name='qemu' type='qcow2'/>
41+
<source file='/var/lib/libvirt/images/an-a01n02-1.qcow2'/>
42+
<target dev='vda' bus='virtio'/>
43+
<boot order='1'/>
44+
<address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x0'/>
45+
</disk>
46+
<controller type='usb' index='0' model='ich9-ehci1'>
47+
<address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x7'/>
48+
</controller>
49+
<controller type='usb' index='0' model='ich9-uhci1'>
50+
<master startport='0'/>
51+
<address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0' multifunction='on'/>
52+
</controller>
53+
<controller type='usb' index='0' model='ich9-uhci2'>
54+
<master startport='2'/>
55+
<address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x1'/>
56+
</controller>
57+
<controller type='usb' index='0' model='ich9-uhci3'>
58+
<master startport='4'/>
59+
<address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x2'/>
60+
</controller>
61+
<controller type='pci' index='0' model='pci-root'/>
62+
<controller type='ide' index='0'>
63+
<address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x1'/>
64+
</controller>
65+
<controller type='virtio-serial' index='0'>
66+
<address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x0'/>
67+
</controller>
68+
<interface type='network'>
69+
<mac address='52:54:00:fe:c8:4c'/>
70+
<source network='default'/>
71+
<model type='e1000'/>
72+
<address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
73+
</interface>
74+
<interface type='network'>
75+
<mac address='52:54:00:ba:35:33'/>
76+
<source network='default'/>
77+
<model type='e1000'/>
78+
<address type='pci' domain='0x0000' bus='0x00' slot='0x0a' function='0x0'/>
79+
</interface>
80+
<interface type='network'>
81+
<mac address='52:54:00:3f:f7:ac'/>
82+
<source network='sn1_bridge1'/>
83+
<model type='e1000'/>
84+
<address type='pci' domain='0x0000' bus='0x00' slot='0x0b' function='0x0'/>
85+
</interface>
86+
<interface type='network'>
87+
<mac address='52:54:00:36:df:00'/>
88+
<source network='sn1_bridge1'/>
89+
<model type='e1000'/>
90+
<address type='pci' domain='0x0000' bus='0x00' slot='0x0c' function='0x0'/>
91+
</interface>
92+
<interface type='network'>
93+
<mac address='52:54:00:fd:d9:3e'/>
94+
<source network='bcn1_bridge1'/>
95+
<model type='e1000'/>
96+
<address type='pci' domain='0x0000' bus='0x00' slot='0x0d' function='0x0'/>
97+
</interface>
98+
<interface type='network'>
99+
<mac address='52:54:00:91:4e:99'/>
100+
<source network='bcn1_bridge1'/>
101+
<model type='e1000'/>
102+
<boot order='2'/>
103+
<address type='pci' domain='0x0000' bus='0x00' slot='0x0e' function='0x0'/>
104+
</interface>
105+
<serial type='pty'>
106+
<target type='isa-serial' port='0'>
107+
<model name='isa-serial'/>
108+
</target>
109+
</serial>
110+
<console type='pty'>
111+
<target type='serial' port='0'/>
112+
</console>
113+
<channel type='unix'>
114+
<target type='virtio' name='org.qemu.guest_agent.0'/>
115+
<address type='virtio-serial' controller='0' bus='0' port='1'/>
116+
</channel>
117+
<channel type='spicevmc'>
118+
<target type='virtio' name='com.redhat.spice.0'/>
119+
<address type='virtio-serial' controller='0' bus='0' port='2'/>
120+
</channel>
121+
<input type='tablet' bus='usb'>
122+
<address type='usb' bus='0' port='1'/>
123+
</input>
124+
<input type='mouse' bus='ps2'/>
125+
<input type='keyboard' bus='ps2'/>
126+
<graphics type='spice' autoport='yes'>
127+
<listen type='address'/>
128+
<image compression='off'/>
129+
</graphics>
130+
<sound model='ich6'>
131+
<address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/>
132+
</sound>
133+
<video>
134+
<model type='qxl' ram='65536' vram='65536' vgamem='16384' heads='1' primary='yes'/>
135+
<address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
136+
</video>
137+
<redirdev bus='usb' type='spicevmc'>
138+
<address type='usb' bus='0' port='2'/>
139+
</redirdev>
140+
<redirdev bus='usb' type='spicevmc'>
141+
<address type='usb' bus='0' port='3'/>
142+
</redirdev>
143+
<memballoon model='virtio'>
144+
<address type='pci' domain='0x0000' bus='0x00' slot='0x08' function='0x0'/>
145+
</memballoon>
146+
<rng model='virtio'>
147+
<backend model='random'>/dev/urandom</backend>
148+
<address type='pci' domain='0x0000' bus='0x00' slot='0x09' function='0x0'/>
149+
</rng>
150+
</devices>
151+
<qemu:commandline>
152+
<qemu:arg value='-chardev'/>
153+
<qemu:arg value='socket,id=ipmi0,host=127.0.0.1,port=9102,reconnect=2'/>
154+
<qemu:arg value='-device'/>
155+
<qemu:arg value='ipmi-bmc-extern,id=bmc0,chardev=ipmi0'/>
156+
<qemu:arg value='-device'/>
157+
<qemu:arg value='isa-ipmi-bt,bmc=bmc0'/>
158+
<qemu:arg value='-serial'/>
159+
<qemu:arg value='mon:tcp::9012,server,telnet,nowait'/>
160+
<qemu:arg value='-chardev'/>
161+
<qemu:arg value='socket,id=simengine-storage-tcp,host=localhost,port=50001,reconnect=10'/>
162+
<qemu:arg value='-device'/>
163+
<qemu:arg value='virtio-serial'/>
164+
<qemu:arg value='-device'/>
165+
<qemu:arg value='virtserialport,chardev=simengine-storage-tcp,name=systems.cdot.simengine.storage.net'/>
166+
</qemu:commandline>
167+
</domain>
168+

0 commit comments

Comments
 (0)