-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgcp-r02.xml
181 lines (169 loc) · 4.9 KB
/
gcp-r02.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
<domain type='kvm' id='1' xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0'>
<name>r02</name>
<title>com.cisco.ios-xrv9000</title>
<memory unit='MB'>12000</memory>
<currentMemory unit='MB'>12000</currentMemory>
<vcpu placement='static'>2</vcpu>
<cpu mode='host-passthrough'/>
<os>
<type arch='x86_64' machine='pc'>hvm</type>
<boot dev='hd'/>
<bootmenu enable='yes'/>
</os>
<features>
<acpi/>
<apic/>
<pae/>
</features>
<clock offset='utc'/>
<on_poweroff>destroy</on_poweroff>
<on_reboot>restart</on_reboot>
<on_crash>restart</on_crash>
<devices>
<emulator>/usr/bin/kvm</emulator>
<disk type='file' device='disk'>
<driver name='qemu' type='qcow2'/>
<source file='/opt/images/r02.img'/>
<target dev='vda' bus='virtio'/>
<alias name='virtio-disk0'/>
</disk>
<controller type='ide' index='0'>
<alias name='ide0'/>
</controller>
<interface type='bridge'>
<source bridge='mgt_br'/>
<virtualport type='openvswitch'>
</virtualport>
<target dev='r02mgt1'/>
<model type='virtio'/>
<driver name='qemu'>
<!-- Uncomment the below to enable -->
<!--host csum='off' /-->
<!-- Uncomment the below to enable -->
<!-- guest csum='off' /-->
</driver>
<alias name='r02mgt1'/>
</interface>
<interface type='bridge'>
<source bridge='mgt_br'/>
<virtualport type='openvswitch'>
</virtualport>
<target dev='r02mgt2'/>
<model type='virtio'/>
<driver name='qemu'>
<!-- Uncomment the below to enable -->
<!--host csum='off' /-->
<!-- Uncomment the below to enable -->
<!-- guest csum='off' /-->
</driver>
<alias name='r02mgt2'/>
</interface>
<interface type='bridge'>
<source bridge='mgt_br'/>
<virtualport type='openvswitch'>
</virtualport>
<target dev='r02mgt3'/>
<model type='virtio'/>
<driver name='qemu'>
<!-- Uncomment the below to enable -->
<!--host csum='off' /-->
<!-- Uncomment the below to enable -->
<!-- guest csum='off' /-->
</driver>
<alias name='r02mgt3'/>
</interface>
<!-- Data Interface 0 (TO R0) -->
<interface type='bridge'>
<source bridge='vlt_br'/>
<target dev='r02ge0'/>
<model type='e1000'/>
<virtualport type='openvswitch'>
</virtualport>
<vlan>
<tag id='101'/>
</vlan>
<driver >
</driver>
<alias name='r02ge0'/>
</interface>
<!-- Data Interface 1 (TO R1) -->
<interface type='bridge'>
<source bridge='rtr_br'/>
<target dev='r02ge1'/>
<model type='e1000'/>
<virtualport type='openvswitch'>
</virtualport>
<vlan>
<tag id='103'/>
</vlan>
<driver >
</driver>
<alias name='r02ge1'/>
</interface>
<!-- 2nd Data Interface 0 (TO R0) -->
<interface type='bridge'>
<source bridge='rtr_br'/>
<target dev='r02ge2'/>
<model type='e1000'/>
<virtualport type='openvswitch'>
</virtualport>
<vlan>
<tag id='201'/>
</vlan>
<driver >
</driver>
<alias name='r02ge2'/>
</interface>
<!-- Data Interface 1 (TO R1) -->
<interface type='bridge'>
<source bridge='rtr_br'/>
<target dev='r02ge3'/>
<model type='e1000'/>
<virtualport type='openvswitch'>
</virtualport>
<vlan>
<tag id='203'/>
</vlan>
<driver >
</driver>
<alias name='r02ge3'/>
</interface>
<!-- SerialPortSection -->
<!-- Access: XR Console (telnet localhost 20020) -->
<serial type='tcp'>
<source mode="bind" host="0.0.0.0" service="20020"/>
<protocol type="telnet"/>
<target port="0"/>
</serial>
<!-- Access: XR Aux (telnet localhost 20021) -->
<serial type='tcp'>
<source mode="bind" host="0.0.0.0" service="20021"/>
<protocol type="telnet"/>
<target port="1"/>
</serial>
<!-- Access: Admin / Calvados (telnet localhost 20022) -->
<serial type='tcp'>
<source mode="bind" host="0.0.0.0" service="20022"/>
<protocol type="telnet"/>
<target port="2"/>
</serial>
<!-- Access: HOST VM (telnet localhost 20023) -->
<serial type='tcp'>
<source mode="bind" host="0.0.0.0" service="20023"/>
<protocol type="telnet"/>
<target port="3"/>
</serial>
<!-- virsh console instead of telnet for first serial port -->
<!-- <console type='pty'> -->
<!-- <target type='serial' port='0'/> -->
<!-- </console> -->
</devices>
<qemu:commandline>
<!-- Add extra monitor port for the virsh monitor tab -->
<qemu:arg value='-chardev'/>
<qemu:arg value='socket,id=monitor0,host=0.0.0.0,port=20024,ipv4,server,nowait,telnet'/>
<qemu:arg value='-monitor'/>
<qemu:arg value='chardev:monitor0'/>
<!-- OptionalArgs -->
</qemu:commandline>
</domain>