Bug fixes for VM NIC device

Description

Hi,

like explained in this thread I experienced a problem in FreeNAS 11.3 beta 1.
https://www.ixsystems.com/community/threads/11-3beta1-cannot-create-bhyve-guest-attached-to-bridge.80111/

This is what I did:

  • upgraded from 11.2U6 to 11.3Beta1

  • changed network configuration to just DHCP / autoconfig on em0 to

    • em0 without any special config

    • create vlan(5 in my case) interface with parent em0

    • create bridge and choose vlan5 with DHCP and autoconf

    • then I hit submit

slightly offtopic:
You might want to consider to extend the windows of one minute to a slightly longer period. I had to hit submit, run into the basement, change the cable to the new port which is now tagged instead of untagged. Run upstairs, try to find out the new IP, since the device receicved a new one and then login to FreeNAS again to hit the button to keep the changes. Otherwise it would have been reverted, which is per se a very nice function but it's just too short.

back to topic:
The network configuration worked very good so far. Next:

  • create a bhyve guest and choose the newly created bridge.

  • try to start the guest. It won't start though, I get this error:

[Errno 22] Invalid argument
Error: Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/middlewared/main.py", line 174, in call_method
result = await self.middleware.call_method(self, message)
File "/usr/local/lib/python3.7/site-packages/middlewared/main.py", line 1162, in call_method
return await self._call(message['method'], serviceobj, methodobj, params, app=app, io_thread=False)
File "/usr/local/lib/python3.7/site-packages/middlewared/main.py", line 1110, in _call
return await methodobj(*args)
File "/usr/local/lib/python3.7/site-packages/middlewared/schema.py", line 949, in nf
return await f(*args, **kwargs)
File "/usr/local/lib/python3.7/site-packages/middlewared/plugins/vm.py", line 1001, in start
await self._manager.start(vm)
File "/usr/local/lib/python3.7/site-packages/middlewared/plugins/vm.py", line 53, in start
list(done)[0].result()
File "/usr/local/lib/python3.7/site-packages/middlewared/plugins/vm.py", line 186, in run
await self.bridge_setup(tapname, tap, attach_iface)
File "/usr/local/lib/python3.7/site-packages/middlewared/plugins/vm.py", line 429, in bridge_setup
bridge.add_member(attach_iface)
File "netif.pyx", line 1204, in netif.BridgeInterface.add_member
File "netif.pyx", line 1222, in netif.BridgeInterface.bridge_cmd
OSError: [Errno 22] Invalid argument

Problem/Justification

None

Impact

None

duplicates

SmartDraw Connector

Katalon Manual Tests (BETA)

Activity

Show:

Peter Brille 
November 26, 2019 at 12:46 PM

Yes

Waqar 
November 24, 2019 at 12:05 PM

did you try this via the command I posted in the related ticket ?

Peter Brille 
November 24, 2019 at 9:25 AM

Hi Waquar,

I downloaded another empty debug file and tried to attach it. Jira won't accept empty files so I cannot upload it.
Have you tried to create a debug file on 11.3beta1 yourself?

Waqar 
November 22, 2019 at 3:20 AM

can you please look at my comment in the cloned ticket ? ( Generated debug is empty one - you can find it above linked )

Peter Brille 
November 19, 2019 at 4:35 PM

I'm sorry but I fear you're mixing things up. This MTU issue has nothing to do with this bug report.

Complete

Details

Assignee

Reporter

Labels

Components

Fix versions

Affects versions

Priority

More fields

Katalon Platform

Created November 9, 2019 at 8:14 PM
Updated July 1, 2022 at 4:43 PM
Resolved November 14, 2019 at 1:56 PM