Skip to content

Commit

Permalink
Macvtap mode
Browse files Browse the repository at this point in the history
  • Loading branch information
kroese committed May 11, 2023
1 parent f38cd62 commit ab2cc51
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions run/network.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ configureDHCP() {

# Create a macvtap network for the VM guest

{ ip link add link "${VM_NET_DEV}" name "${VM_NET_TAP}" address "${VM_NET_MAC}" type macvtap mode bridge ; rc=$?; } |:

{ ip link add link "${VM_NET_DEV}" name "${VM_NET_TAP}" address "${VM_NET_MAC}" type macvtap mode bridge ; rc=$?; } || :
if (( rc != 0 )); then
error "Cannot create macvtap interface. Please make sure the network type is 'macvlan' and not 'ipvlan',"
error "and that the NET_ADMIN capability has been added to the container config: --cap-add NET_ADMIN" && exit 16
Expand Down

0 comments on commit ab2cc51

Please sign in to comment.