Try this to work around sites with limited memory.
This commit is contained in:
parent
65699b531d
commit
fc4311d14a
2 changed files with 7 additions and 6 deletions
|
@ -52,9 +52,9 @@ main_bridge: br0
|
|||
nfs_bridge: br1
|
||||
|
||||
virt_install_command_one_nic: virt-install -n {{ inventory_hostname }}
|
||||
--memory={{ mem_size }},maxmemory={{ mem_size * 5 }} --memballoon virtio
|
||||
--memory={{ mem_size }},maxmemory={{ max_mem_size|defaut('mem_size * 5') }} --memballoon virtio
|
||||
--disk bus=virtio,path={{ volgroup }}/{{ inventory_hostname }}
|
||||
--vcpus={{ num_cpus }},maxvcpus={{ num_cpus * 5 }} -l {{ ks_repo }} -x
|
||||
--vcpus={{ num_cpus }},maxvcpus={{ max_mem_size|default('num_cpus * 5') }} -l {{ ks_repo }} -x
|
||||
'net.ifnames=0 ksdevice=eth0 ks={{ ks_url }} console=tty0 console=ttyS0
|
||||
hostname={{ inventory_hostname }} nameserver={{ dns }}
|
||||
ip={{ eth0_ip }}::{{ gw }}:{{ nm }}:{{ inventory_hostname }}:eth0:none'
|
||||
|
@ -62,9 +62,9 @@ virt_install_command_one_nic: virt-install -n {{ inventory_hostname }}
|
|||
--autostart --noautoconsole --watchdog default
|
||||
|
||||
virt_install_command_two_nic: virt-install -n {{ inventory_hostname }}
|
||||
--memory={{ mem_size }},maxmemory={{ mem_size * 5 }} --memballoon virtio
|
||||
--memory={{ mem_size }},maxmemory={{ max_mem_size|default('mem_size * 5') }} --memballoon virtio
|
||||
--disk bus=virtio,path={{ volgroup }}/{{ inventory_hostname }}
|
||||
--vcpus={{ num_cpus }},maxvcpus={{ num_cpus * 5 }} -l {{ ks_repo }} -x
|
||||
--vcpus={{ num_cpus }},maxvcpus={{ max_mem_size|default('num_cpus * 5') }} -l {{ ks_repo }} -x
|
||||
'net.ifnames=0 ksdevice=eth0 ks={{ ks_url }} console=tty0 console=ttyS0
|
||||
hostname={{ inventory_hostname }} nameserver={{ dns }}
|
||||
ip={{ eth0_ip }}::{{ gw }}:{{ nm }}:{{ inventory_hostname }}:eth0:none
|
||||
|
@ -73,9 +73,9 @@ virt_install_command_two_nic: virt-install -n {{ inventory_hostname }}
|
|||
--autostart --noautoconsole --watchdog default
|
||||
|
||||
virt_install_command_rhel6: /usr/sbin/virt-install -n {{ inventory_hostname }}
|
||||
--memory={{ mem_size }},maxmemory={{ mem_size * 5 }}
|
||||
--memory={{ mem_size }},maxmemory={{ max_mem_size|default('mem_size * 5') }}
|
||||
--disk bus=virtio,path={{ volgroup }}/{{ inventory_hostname }}
|
||||
--vcpus={{ num_cpus }},maxvcpus={{ num_cpus * 5 }} -l {{ ks_repo }} -x
|
||||
--vcpus={{ num_cpus }},maxvcpus={{ max_mem_size|default('num_cpus * 5') }} -l {{ ks_repo }} -x
|
||||
"ksdevice=eth0 ks={{ ks_url }} ip={{ eth0_ip }} netmask={{ nm }}
|
||||
gateway={{ gw }} dns={{ dns }} console=tty0 console=ttyS0
|
||||
hostname={{ inventory_hostname }}"
|
||||
|
|
|
@ -24,4 +24,5 @@ nrpe_procs_warn: 1200
|
|||
nrpe_procs_crit: 1400
|
||||
|
||||
mem_size: 16384
|
||||
max_mem_size: 20000
|
||||
num_cpus: 8
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue