Skip to content

Instantly share code, notes, and snippets.

View amkgi's full-sized avatar

Alexey Kashavkin amkgi

View GitHub Profile
@amkgi
amkgi / macos-vbmc.md
Created December 29, 2023 21:11
Solving an issue with VirtualBMC running in macOS

How to fix VirtualBMC in macOS

After installing VirtualBMC in macOS, starting the server and adding a BMC for at least one VM, and then trying to start that BMC, you get the following error:

INFO VirtualBMC [-] Started vBMC server on port 50891
ERROR VirtualBMC [-] Control server error: Can't pickle local object 'VirtualBMCManager._sync_vbmc_states..vbmc_runner'

This is because the multiprocessing module needs to specify fork as the startup method, since starting with Python 3.8 for macOS the startup method has been replaced by spawn.

@amkgi
amkgi / macos-macnat-vlan.md
Created December 31, 2023 20:58
L2 NAT for a VLAN interface with a wireless parent interface bridged to the VMs in macOS

IEEE: 802.11 (Wi-Fi), 802.1Q (VLAN tagging); bridges and VMs in macOS Sonoma

If for some reason you need to tag traffic outgoing from a vNICs of VMs bridged to a wireless interface in macOS, you can do so as follows.

I will describe this process with VLAN configuration on an OpenWrt router with DSA support.

Configuring the router:

Open the interfaces tab on the Network menu in LuCI. Switch to the Devices tab and click configure br-lan, then switch to Bridge VLAN filtering and configure as in the screenshot below.