From 60aedbcfe321dbe3887c0b1cf14c7b793ad06b23 Mon Sep 17 00:00:00 2001 From: Kevin Fenzi Date: Wed, 20 Nov 2019 17:26:48 +0000 Subject: [PATCH] inventory: asjudt virt-install commands for buildvm/buildvm_ppc64le Signed-off-by: Kevin Fenzi --- inventory/group_vars/all | 14 +++++++++++++- inventory/group_vars/buildvm | 2 +- inventory/group_vars/buildvm_ppc64le | 2 +- 3 files changed, 15 insertions(+), 3 deletions(-) diff --git a/inventory/group_vars/all b/inventory/group_vars/all index d69dfa7245..f0add6e15c 100644 --- a/inventory/group_vars/all +++ b/inventory/group_vars/all @@ -115,7 +115,19 @@ virt_install_command_one_nic_unsafe: virt-install -n {{ inventory_hostname }} --network bridge={{ main_bridge }},model=virtio,mac={{ mac_address }} --autostart --noautoconsole --watchdog default --rng /dev/random --cpu host -virt_install_command_two_nic_unsafe: virt-install --machine pseries-4.0 -n {{ inventory_hostname }} +virt_install_command_two_nic_unsafe: virt-install -n {{ inventory_hostname }} + --memory={{ mem_size }},maxmemory={{ max_mem_size }} --memballoon virtio + --disk bus=virtio,path={{ volgroup }}/{{ inventory_hostname }},cache=unsafe,io=threads + --vcpus={{ num_cpus }},maxvcpus={{ max_cpu }} -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 + ip={{ eth1_ip }}:::{{ nm }}:{{ inventory_hostname }}-nfs:eth1:none' + --network bridge={{ main_bridge }},model=virtio,mac={{ mac_address }} + --network=bridge={{ nfs_bridge }},model=virtio,mac={{ mac_address1 }} + --autostart --noautoconsole --watchdog default --rng /dev/random + +virt_install_command_ppc64le_two_nic_unsafe: virt-install --machine pseries-4.0 -n {{ inventory_hostname }} --memory={{ mem_size }},maxmemory={{ max_mem_size }} --memballoon virtio --disk bus=virtio,path={{ volgroup }}/{{ inventory_hostname }},cache=unsafe,io=threads --vcpus={{ num_cpus }},maxvcpus={{ max_cpu }} -l {{ ks_repo }} -x diff --git a/inventory/group_vars/buildvm b/inventory/group_vars/buildvm index a493d516da..990c380f0a 100644 --- a/inventory/group_vars/buildvm +++ b/inventory/group_vars/buildvm @@ -11,7 +11,7 @@ nm: 255.255.255.0 gw: 10.5.125.254 eth1_gw: 10.5.127.254 dns: 10.5.126.21 -virt_install_command: "{{ virt_install_command_two_nic }}" +virt_install_command: "{{ virt_install_command_two_nic_unsafe }}" # for systems that do not match the above - specify the same parameter in # the host_vars/$hostname file diff --git a/inventory/group_vars/buildvm_ppc64le b/inventory/group_vars/buildvm_ppc64le index 8e9a067c06..95690ad1a3 100644 --- a/inventory/group_vars/buildvm_ppc64le +++ b/inventory/group_vars/buildvm_ppc64le @@ -15,7 +15,7 @@ dns: 10.5.126.21 # main_bridge: br1 nfs_bridge: br3 -virt_install_command: "{{ virt_install_command_two_nic_unsafe }} --graphics none" +virt_install_command: "{{ virt_install_command_ppc64le_two_nic_unsafe }} --graphics none" # for systems that do not match the above - specify the same parameter in # the host_vars/$hostname file