Skip to content

Commit

Permalink
Merge pull request #319 from IBM/vmbridge
Browse files Browse the repository at this point in the history
Vmbridge
  • Loading branch information
Catherine2019 authored Jun 1, 2021
2 parents b0e98f2 + 58da46d commit 9999897
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions scripts/kvm/oc_vm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,7 @@ while [ $i -lt $nvlan ]; do
jq .security <<< $metadata | ./attach_nic.sh $ID $vlan $ip $mac
let i=$i+1
done
#brctl addbr brfake
nmcli con add type bridge ifname brfake
ip link add brfake type bridge
virsh attach-interface $vm_ID bridge brfake --model virtio --mac 52:54:11:22:33:44 --config
virsh start $vm_ID
[ $? -eq 0 ] && state=running && ./replace_vnc_passwd.sh $ID
Expand Down

0 comments on commit 9999897

Please sign in to comment.