You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The max cpu cores can be configured when VM is power off only, and it affect the upper limit when set the cpu cores lively
153
160
154
-
##### 2.4). <b>**Create a new VM with memory size:**<b>
155
-
-`--memory=MEMORY_SIZE` Config the target memory size in GB.
156
-
-`--min-mem=MIN_MEMORY` Config the min static memory size in GB.
157
-
-`--max-mem=MAX_MEMORY` Config the max static memory size in GB.
161
+
##### 2.4). <b>**Create a new VM with memory size:**<b>
162
+
163
+
-`--memory=MEMORY_SIZE` Config the target memory size in GB.
164
+
-`--min-mem=MIN_MEMORY` Config the min static memory size in GB.
165
+
-`--max-mem=MAX_MEMORY` Config the max static memory size in GB.
158
166
159
167
<b>There are static memory and dynamic memory. The static memory can be set only when VM is power off, and dynamic memory
160
168
can be set when VM is running or stop. Memory limits must satisfy: *min_static_memory <= min_dynamic_memory <= max_dynamic_memory <= max_static_memory*. The max_static_memory will affect the upper limit when set the dynamic memory lively when VM is running.<b>
161
169
162
-
163
-
-`--memory will set the min dynamic memory and max dynamic memory to the target one, when VM power on, it runs at that memory size`
164
-
-`--min-mem will set the min static memory `
165
-
-`--max-mem will set the max static memory `
170
+
-`--memory will set the min dynamic memory and max dynamic memory to the target one, when VM power on, it runs at that memory size`
if `--force` is set, then the additional disk on vm will also be deleted, this feature is only support on kvm now.
181
191
182
192
## 4. config_vm.py
183
-
#### The IP and memory configuration is same as that in create VM.
184
-
-`--list-vif` List the virtual interface device in guest VM
185
-
-`--list-pif` List the interface device in the host
186
-
-`--list-network` List the bridge/switch network in the host
187
-
-`--list-SR` List the storage repository information in the host
193
+
194
+
#### The IP and memory configuration is same as that in create VM
195
+
196
+
-`--list-vif` List the virtual interface device in guest VM
197
+
-`--list-pif` List the interface device in the host
198
+
-`--list-network` List the bridge/switch network in the host
199
+
-`--list-SR` List the storage repository information in the host
188
200
189
201
##### 4.1). <b>**Config a VM's interface, add a VIF, delete a VIF, config a VIF(will delete old one if exist, otherwise create it newly), and the *--ip*, *--device*, *--network* is same as that when create vm**<b>
190
-
-`--add-vif=ADD_INDEX` Add a virtual interface device to guest VM
191
-
-`--del-vif=DEL_INDEX` Delete a virtual interface device from guest VM
192
-
-`--vif=VIF_INDEX` Configure on a virtual interface device
202
+
203
+
-`--add-vif=ADD_INDEX` Add a virtual interface device to guest VM
204
+
-`--del-vif=DEL_INDEX` Delete a virtual interface device from guest VM
205
+
-`--vif=VIF_INDEX` Configure on a virtual interface device
## 6. dump_vm.py, ist the memory, CPU, Disk, and system information of VM
222
-
-`--list` List the cpu and memory information
223
-
-`--list-disk` List the virtual disk size
224
-
-`--list-vifs` List all the VIFs information
238
+
239
+
-`--list` List the cpu and memory information
240
+
-`--list-disk` List the virtual disk size
241
+
-`--list-vifs` List all the VIFs information
225
242
226
243
**if no options, will list all basic informations, include, cpu, memory, os, disk, interface mac and IP**
227
244
228
245
**Note: a problem is that the VIF index given to xenserver, but it is not always the index of eth in VM guest, it depend on the create sequence of virtual interface.**
229
246
230
247
## 7. dump_host.py, list the memory, CPU, Disk, and system information of server
231
-
-`--list-sr` List all the storage information
232
-
-`--list-pif` List all the interface information
233
-
-`--list-bond` List all the bond information
234
-
-`--list-vm` List all the vms
235
-
-`--list-templ` List all the templates in the server.
236
-
-`--list-network` List the network in the host (in Xenserver, it is same as bridge)
237
-
-`--list-bridge` List the bridge/switch names in the host
248
+
249
+
-`--list-sr` List all the storage information
250
+
-`--list-pif` List all the interface information
251
+
-`--list-bond` List all the bond information
252
+
-`--list-vm` List all the vms
253
+
-`--list-templ` List all the templates in the server.
254
+
-`--list-network` List the network in the host (in Xenserver, it is same as bridge)
255
+
-`--list-bridge` List the bridge/switch names in the host
0 commit comments