FB10.4, upgrade directly with pkg upgrade, after the upgrade is complete, start the virtual machine
Waiting for VM "xp" to power on...
VBoxManage: error: The virtual machine 'xp' has terminated unexpectedly during startup with exit code 1 (0x1)
VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component MachineWrap, interface IMachine
I searched the Internet for a long time, but did not find the answer. Today, I happened to see http://jonathanmanning.com/2012/12/26/virtual-box-error-result-code-ns_error_failure-0x80004005/ It said to execute
sudo /etc/init.d/vboxdrv setup
So I went to /usr/local/etc/rc.d/ to check, there is no such thing, but there are a lot of services starting with vbox, I think there are configurations in /etc/rc.conf
vboxnet_enable="YES"
Could it be that this service is not started?
service vboxnet restart
Then restart the virtual machine and you're good to go.