~narindergupta/opnfv/stable-R2

« back to all changes in this revision

Viewing changes to ci/deploy.sh

  • Committer: Narinder Gupta
  • Date: 2017-01-06 22:27:21 UTC
  • Revision ID: git-v1:512a3b283ff25cad16a36605c80df4742673690b
modified to add cpu as host cpu for kvm machines.

Change-Id: Ia265021a79d5595748ec0b6b3e5988adbc3086b7
Signed-off-by: Narinder Gupta <narinder.gupta@canonical.com>

Show diffs side-by-side

added added

removed removed

Lines of Context:
81
81
    nodeexist=`maas maas nodes list hostname=node3-control`
82
82
 
83
83
    if [ $nodeexist != *node3* ]; then
84
 
        sudo virt-install --connect qemu:///system --name node3-control --ram 8192 --vcpus 4 --disk size=120,format=qcow2,bus=virtio,io=native,pool=default --network bridge=virbr0,model=virtio --network bridge=virbr0,model=virtio --boot network,hd,menu=off --noautoconsole --vnc --print-xml | tee node3-control
 
84
        sudo virt-install --connect qemu:///system --name node3-control --ram 8192 --cpu host --vcpus 4 --disk size=120,format=qcow2,bus=virtio,io=native,pool=default --network bridge=virbr0,model=virtio --network bridge=virbr0,model=virtio --boot network,hd,menu=off --noautoconsole --vnc --print-xml | tee node3-control
85
85
 
86
 
        sudo virt-install --connect qemu:///system --name node4-control --ram 8192 --vcpus 4 --disk size=120,format=qcow2,bus=virtio,io=native,pool=default --network bridge=virbr0,model=virtio --network bridge=virbr0,model=virtio --boot network,hd,menu=off --noautoconsole --vnc --print-xml | tee node4-control
 
86
        sudo virt-install --connect qemu:///system --name node4-control --ram 8192 --cpu host --vcpus 4 --disk size=120,format=qcow2,bus=virtio,io=native,pool=default --network bridge=virbr0,model=virtio --network bridge=virbr0,model=virtio --boot network,hd,menu=off --noautoconsole --vnc --print-xml | tee node4-control
87
87
 
88
88
        node3controlmac=`grep  "mac address" node3-control | head -1 | cut -d "'" -f 2`
89
89
        node4controlmac=`grep  "mac address" node4-control | head -1 | cut -d "'" -f 2`