Skip to content

Multipass does not recognize Hyper-V instances as bridged #3489

@ricab

Description

@ricab

Describe the bug
The Multipass daemon keeps thinking that bridged instances aren't bridged, when the bridged-network is set to an non-bridge interface, in Hyper-V. If asked to set bridge=true again, it will then duplicate the bridged interface.

The problem is that the bridge is not associated with the interface here. This appears to be a forgotten placeholder and shouldn't be hard to fix.

VirtualBox doesn't have a dedicated implementation, but I think we don't need bridges there and just pass the end interface, so this shouldn't apply there.

To Reproduce

C:\> multipass get local.bridged-network
Ethernet Instance 0
C:\> multipass get local.glad-menhaden.bridged
false
C:\> multipass set local.glad-menhaden.bridged=true
C:\> multipass get local.glad-menhaden.bridged
false
C:\> multipass set -vvvv local.glad-menhaden.bridged=true
C:\> multipass set -vvvv local.glad-menhaden.bridged=true

The instance now has 3 new bridged networks.

Expected behavior
The bridge would be recognized and a second attempt to make the setting true would be a no op.

Additional info

  • OS: Windows
  • multipass version
  • multipass get local.driver=hyper-v

Metadata

Metadata

Assignees

Labels

bugmediumMedium priority. Combine with "low" or "high" to signal intermediate priority.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions