Skip to content

Commit

Permalink
kvm: issue warning when using macvtap
Browse files Browse the repository at this point in the history
  • Loading branch information
karmab committed Oct 25, 2024
1 parent f2c620c commit 388538e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions kvirt/providers/kvm/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -740,6 +740,7 @@ def create(self, name, virttype=None, profile='kvirt', flavor=None, plan='kvirt'
iftype = 'direct'
sourcexml = f"<source dev='{netname}' mode='bridge'/>"
need_guestagent = True
warning("Using macvtap. The vm will most likely be unaccessible from your hypervisor")
else:
return {'result': 'failure', 'reason': f"Invalid network {netname}"}
if netname in ipv6networks:
Expand Down

0 comments on commit 388538e

Please sign in to comment.