-
-
Notifications
You must be signed in to change notification settings - Fork 11
new_version_migration
Alonso Cárdenas edited this page Aug 10, 2026
·
8 revisions
- All virtual machines must be stopped
- A bhyvemgrd installation from FreeBSD ports or packages
- A bhyvemgr installation updated to v2.0.0
- A bhyvemgr config files backup
If you are using Dnsmasq support, some changes must be applied to dnsmasq setting /usr/local/etc/dnsmasq.conf:
Remove the line:
conf-dir=/usr/local/etc/dnsmasq.d/bhyvemgr/,*.conf
Add the following lines:
dhcp-hostsdir=/usr/local/etc/dnsmasq.d/bhyvemgr-dhcp/
hostsdir=/usr/local/etc/dnsmasq.d/bhyvemgr-host/
Create the new configuration directories:
# install -d -m 775 /usr/local/etc/dnsmasq.d/bhyvemgr-dhcp
# chown root:bhyvemgrd /usr/local/etc/dnsmasq.d/bhyvemgr-dhcp
# install -d -m 775 /usr/local/etc/dnsmasq.d/bhyvemgr-host
# chown root:bhyvemgrd /usr/local/etc/dnsmasq.d/bhyvemgr-host
Copy virtual machines configuration files to new directories
# cp -p /usr/local/etc/dnsmasq/bhyvemgr/* /usr/local/etc/dnsmasq/bhyvemgr-dhcp/
# cp -p /usr/local/etc/dnsmasq/bhyvemgr/* /usr/local/etc/dnsmasq/bhyvemgr-host/
Apply new changes to configuration files
# cd /usr/local/etc/dnsmasq/bhyvemgr-dhcp/
# chmod 644 *.conf
# chown :bhyvemgrd *.conf
# find * -type f -name "*.conf" -exec sed -i "" -e '/^host-record=/d' -e 's|dhcp-host=||g' "{}" \;
# cd /usr/local/etc/dnsmasq/bhyvemgr-host
# chmod 644 *.conf
# chown :bhyvemgrd *.conf
# find * -type f -name "*.conf" -exec sed -i "" -e '/^dhcp-host=/d' -e 's|host-record=||g' "{}" \;
# find * -type f -name "*.conf" -empty -delete -o -type f -name "*.conf" -exec sed -i "" 's/^\([^,]*\),\([^,]*\)$/\2 \1/' {} \;
We need apply new changes to virtual machines directories and files. In this example, VM directory was defined to /zroot/bhyvemgr
# cd /zroot/bhyvemgr
# chown -R :bhyvemgrd *
# find * -type f -exec chmod 640 "{}" \;
# find * -type d -exec chmod 750 "{}" \;
The new bhyvemgr configuration file is ~/.config/gui.conf
The bhyvemgrd configuration file is stored at: /usr/local/etc/bhyvrmgrd/daemon.conf
The common configuration file used by bhyvemgr adn bhyvemgrd stored at: /usr/local/etc/bhyvrmgrd/common.conf
TODO