I have made a move to a new server (FreeBSD) with new hardware (faster CPU, larger hard drive, other network card (INTEL instead Realtek) etc.) while keeping the IPv4 addresses.
VirtualBox is virtualbox-ose-6.1.30. OS: FreeBSD 13
Now I get a coredump an the new server:
VBoxHeadless -s "FreeBSD 12.2 VirtIO (FreeBSD 12.2+NextC+MariaDB+phpMyAdmin)"
Code: Select all
Oracle VM VirtualBox Headless Interface 6.1.30
(C) 2008-2022 Oracle Corporation
All rights reserved.
Starting virtual machine:
Operation failed: NS_ERROR_FAILURE
Error: failed to start machine. Error message: Failed to open/create the internal network 'HostInterfaceNetworking-re0' (VERR_SUPDRV_COMPONENT_NOT_FOUND).
Failed to attach the network LUN (VERR_SUPDRV_COMPONENT_NOT_FOUND)
Segmentation fault (core dumped)
I guess I have to adapt UUIDs and the network interface names.
Maybe I have to recreate a VirtualBox.xml?
Thanks for your help in advance and kind regards
testit
DETAILS
I had researched in advance what I need to backup to continue running my VirtualBox VM on the new machine. Unfortunately, I apparently had missed that I should have also backed up the /root/.VirtualBox/VirtualBox.xml.
I made a backup of /root/VirtualBox VMs/FreeBSD 12.2 VirtIO Clone (incl. /logs und /snapshots)
/root/VirtualBox VMs/FreeBSD 12.2 VirtIO Clone contains:
Code: Select all
/root/VirtualBox VMs/FreeBSD 12.2 VirtIO Clone/FreeBSD 12.2 VirtIO (FreeBSD 12.2+NextC+MariaDB+phpMyAdmin).vbox
/root/VirtualBox VMs/FreeBSD 12.2 VirtIO Clone/FreeBSD 12.2 VirtIO (FreeBSD 12.2+NextC+MariaDB+phpMyAdmin).vbox-prev
/root/VirtualBox VMs/FreeBSD 12.2 VirtIO Clone/FreeBSD 12.2 VirtIO Clone-disk1.vhd
ifconfig on new machine shows:
Code: Select all
em0: flags=8863<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=481249b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,LRO,WOL_MAGIC,VLAN_HWFILTER,NOMAP>
ether 90:1b:0e:92:38:ef
inet 1.2.3.4 netmask 0xffffffe0 broadcast 1.2.3.9
media: Ethernet autoselect (1000baseT <full-duplex>)
status: active
nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
options=680003<RXCSUM,TXCSUM,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6>
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2
inet 127.0.0.1 netmask 0xff000000
groups: lo
nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
I registred the VM on the new machine.
Afterwards vboxmanage list vms shows:
"FreeBSD 12.2 VirtIO (FreeBSD 12.2+NextC+MariaDB+phpMyAdmin)" {f6112874-f3b8-4bf3-a65b-f53c98753ccb}
FreeBSD 12.2 VirtIO (FreeBSD 12.2+NextC+MariaDB+phpMyAdmin).vbox on the new machine contains:
NOTICE: I tried to replace "re0" by "em0" because the new machine doesn´t have a Realtek network card anymore but always got similar error messages!
Code: Select all
<?xml version="1.0"?>
<!--
** DO NOT EDIT THIS FILE.
** If you make changes to this file while any VirtualBox related application
** is running, your changes will be overwritten later, without taking effect.
** Use VBoxManage or the VirtualBox Manager GUI to make changes.
-->
<VirtualBox xmlns="http://www.virtualbox.org/" version="1.15-freebsd">
<Machine uuid="{f6112874-f3b8-4bf3-a65b-f53c98753ccb}" name="FreeBSD 12.2 VirtIO (FreeBSD 12.2+NextC+MariaDB+phpMyAdmin)" OSType="FreeBSD_64" currentSnapshot="{67aaee73-a208-47dc-b2c6-ea4018bc8062}" snapshotFolder="Snapshots" lastStateChange="2022-01-18T08:34:31Z" aborted="true">
<Description>MyVM</Description>
<MediaRegistry>
<HardDisks>
<HardDisk uuid="{e3d8e16a-e513-40fc-939d-9d49d24af288}" location="FreeBSD 12.2 VirtIO Clone-disk1.vhd" format="VHD" type="Normal">
<HardDisk uuid="{adb4279f-153c-454f-9514-599f1d663b7e}" location="Snapshots/{adb4279f-153c-454f-9514-599f1d663b7e}.vhd" format="VHD"/>
</HardDisk>
</HardDisks>
</MediaRegistry>
<ExtraData>
<ExtraDataItem name="GUI/FirstRun" value="no"/>
<ExtraDataItem name="GUI/SaveMountedAtRuntime" value="yes"/>
<ExtraDataItem name="VBoxAuthSimple/users/admin" value="fbc0c48894da4db9037093dd1329023dc69d9266"/>
<ExtraDataItem name="phpvb/sso/owner" value="admin"/>
</ExtraData>
<Snapshot uuid="{67aaee73-a208-47dc-b2c6-ea4018bc8062}" name="Snapshot 1:;r rspamd-WebIF" timeStamp="2021-12-09T09:19:30Z" stateFile="Snapshots/2021-12-09T09-19-30-771727000Z.sav">
<Hardware>
<CPU count="2">
<PAE enabled="true"/>
<LongMode enabled="true"/>
<HardwareVirtExLargePages enabled="true"/>
</CPU>
<Memory RAMSize="1024"/>
<Boot>
<Order position="1" device="HardDisk"/>
<Order position="2" device="None"/>
<Order position="3" device="None"/>
<Order position="4" device="None"/>
</Boot>
<Display VRAMSize="4"/>
<VideoCapture screens="1" fps="25"/>
<RemoteDisplay>
<VRDEProperties>
<Property name="TCP/Address" value="127.0.0.1"/>
<Property name="TCP/Ports" value="40000"/>
<Property name="VNCPassword" value="%Bh66!!&"/>
</VRDEProperties>
</RemoteDisplay>
<BIOS>
<IOAPIC enabled="true"/>
</BIOS>
<Network>
<Adapter slot="0" enabled="true" MACAddress="005056010F6E" cable="true" type="virtio">
<DisabledModes>
<InternalNetwork name="intnet"/>
<HostOnlyInterface name="re0"/>
<NATNetwork name="NatNetwork"/>
</DisabledModes>
<BridgedInterface name="re0"/>
</Adapter>
<Adapter slot="1" MACAddress="080027F78349" cable="true" type="82540EM">
<DisabledModes>
<InternalNetwork name="intnet"/>
<NATNetwork name="NatNetwork"/>
</DisabledModes>
<HostOnlyInterface name="vboxnet0"/>
</Adapter>
<Adapter slot="2" MACAddress="0800270D8162" cable="true" type="82540EM"/>
<Adapter slot="3" MACAddress="0800270FA139" cable="true" type="82540EM"/>
<Adapter slot="4" MACAddress="0800273B3AC2" cable="true" type="82540EM"/>
<Adapter slot="5" MACAddress="0800271D1CB6" cable="true" type="82540EM"/>
<Adapter slot="6" MACAddress="08002727151A" cable="true" type="82540EM"/>
<Adapter slot="7" MACAddress="0800278389AF" cable="true" type="82540EM"/>
</Network>
<LPT>
<Port slot="1" enabled="false" IOBase="0x378" IRQ="7"/>
</LPT>
<AudioAdapter driver="OSS" enabled="false"/>
<RTC localOrUTC="UTC"/>
<Clipboard/>
<GuestProperties>
<GuestProperty name="/VirtualBox/GuestAdd/Revision" value="147628" timestamp="1636207374922643000" flags=""/>
<GuestProperty name="/VirtualBox/GuestAdd/Version" value="6.1.28" timestamp="1636207374922460000" flags=""/>
<GuestProperty name="/VirtualBox/GuestAdd/VersionExt" value="6.1.28" timestamp="1636207374922546000" flags=""/>
<GuestProperty name="/VirtualBox/GuestInfo/Net/0/MAC" value="005056010F6E" timestamp="1636207374939385000" flags=""/>
<GuestProperty name="/VirtualBox/GuestInfo/Net/0/Status" value="Up" timestamp="1636207374939475000" flags=""/>
<GuestProperty name="/VirtualBox/GuestInfo/Net/0/V4/Broadcast" value="255.255.255.224" timestamp="1636207374939099000" flags=""/>
<GuestProperty name="/VirtualBox/GuestInfo/Net/0/V4/IP" value="1.2.3.5" timestamp="1636207374938995000" flags=""/>
<GuestProperty name="/VirtualBox/GuestInfo/Net/0/V4/Netmask" value="255.0.0.0" timestamp="1636207374939207000" flags=""/>
<GuestProperty name="/VirtualBox/GuestInfo/Net/Count" value="1" timestamp="1639041565497910000" flags=""/>
<GuestProperty name="/VirtualBox/GuestInfo/OS/LoggedInUsers" value="1" timestamp="1639036916349867000" flags="TRANSIENT, TRANSRESET"/>
<GuestProperty name="/VirtualBox/GuestInfo/OS/LoggedInUsersList" value="root" timestamp="1639036916349632000" flags="TRANSIENT, TRANSRESET"/>
<GuestProperty name="/VirtualBox/GuestInfo/OS/NoLoggedInUsers" value="false" timestamp="1639036916350086000" flags="TRANSIENT, TRANSRESET"/>
<GuestProperty name="/VirtualBox/GuestInfo/OS/Product" value="FreeBSD" timestamp="1636207374921880000" flags=""/>
<GuestProperty name="/VirtualBox/GuestInfo/OS/Release" value="12.2-RELEASE-p7" timestamp="1636207374922127000" flags=""/>
<GuestProperty name="/VirtualBox/GuestInfo/OS/Version" value="FreeBSD 12.2-RELEASE-p7 GENERIC" timestamp="1636207374922272000" flags=""/>
</GuestProperties>
</Hardware>
<StorageControllers>
<StorageController name="SATA" type="AHCI" PortCount="2" useHostIOCache="true" Bootable="true" IDE0MasterEmulationPort="0" IDE0SlaveEmulationPort="1" IDE1MasterEmulationPort="2" IDE1SlaveEmulationPort="3">
<AttachedDevice type="HardDisk" hotpluggable="false" port="0" device="0">
<Image uuid="{e3d8e16a-e513-40fc-939d-9d49d24af288}"/>
</AttachedDevice>
</StorageController>
</StorageControllers>
</Snapshot>
<Hardware>
<CPU count="2">
<PAE enabled="true"/>
<LongMode enabled="true"/>
<HardwareVirtExLargePages enabled="true"/>
</CPU>
<Memory RAMSize="1024"/>
<Boot>
<Order position="1" device="HardDisk"/>
<Order position="2" device="None"/>
<Order position="3" device="None"/>
<Order position="4" device="None"/>
</Boot>
<Display VRAMSize="4"/>
<VideoCapture screens="1" fps="25"/>
<RemoteDisplay>
<VRDEProperties>
<Property name="TCP/Address" value="127.0.0.1"/>
<Property name="TCP/Ports" value="40000"/>
<Property name="VNCPassword" value="%Bh66!!&"/>
</VRDEProperties>
</RemoteDisplay>
<BIOS>
<IOAPIC enabled="true"/>
</BIOS>
<Network>
<Adapter slot="0" enabled="true" MACAddress="005056010F6E" cable="true" type="virtio">
<DisabledModes>
<InternalNetwork name="intnet"/>
<HostOnlyInterface name="re0"/>
<NATNetwork name="NatNetwork"/>
</DisabledModes>
<BridgedInterface name="re0"/>
</Adapter>
<Adapter slot="1" MACAddress="080027F78349" cable="true" type="82540EM">
<DisabledModes>
<InternalNetwork name="intnet"/>
<NATNetwork name="NatNetwork"/>
</DisabledModes>
<HostOnlyInterface name="vboxnet0"/>
</Adapter>
<Adapter slot="2" MACAddress="0800270D8162" cable="true" type="82540EM"/>
<Adapter slot="3" MACAddress="0800270FA139" cable="true" type="82540EM"/>
<Adapter slot="4" MACAddress="0800273B3AC2" cable="true" type="82540EM"/>
<Adapter slot="5" MACAddress="0800271D1CB6" cable="true" type="82540EM"/>
<Adapter slot="6" MACAddress="08002727151A" cable="true" type="82540EM"/>
<Adapter slot="7" MACAddress="0800278389AF" cable="true" type="82540EM"/>
</Network>
<LPT>
<Port slot="1" enabled="false" IOBase="0x378" IRQ="7"/>
</LPT>
<AudioAdapter driver="OSS" enabled="false"/>
<RTC localOrUTC="UTC"/>
<Clipboard/>
<GuestProperties>
<GuestProperty name="/VirtualBox/GuestAdd/Revision" value="147628" timestamp="1636207374922643000" flags=""/>
<GuestProperty name="/VirtualBox/GuestAdd/Version" value="6.1.28" timestamp="1636207374922460000" flags=""/>
<GuestProperty name="/VirtualBox/GuestAdd/VersionExt" value="6.1.28" timestamp="1636207374922546000" flags=""/>
<GuestProperty name="/VirtualBox/GuestInfo/Net/0/MAC" value="005056010F6E" timestamp="1636207374939385000" flags=""/>
<GuestProperty name="/VirtualBox/GuestInfo/Net/0/Status" value="Up" timestamp="1636207374939475000" flags=""/>
<GuestProperty name="/VirtualBox/GuestInfo/Net/0/V4/Broadcast" value="255.255.255.224" timestamp="1636207374939099000" flags=""/>
<GuestProperty name="/VirtualBox/GuestInfo/Net/0/V4/IP" value="1.2.3.5" timestamp="1636207374938995000" flags=""/>
<GuestProperty name="/VirtualBox/GuestInfo/Net/0/V4/Netmask" value="255.0.0.0" timestamp="1636207374939207000" flags=""/>
<GuestProperty name="/VirtualBox/GuestInfo/Net/Count" value="1" timestamp="1639041565497910000" flags=""/>
<GuestProperty name="/VirtualBox/GuestInfo/OS/Product" value="FreeBSD" timestamp="1636207374921880000" flags=""/>
<GuestProperty name="/VirtualBox/GuestInfo/OS/Release" value="12.2-RELEASE-p7" timestamp="1636207374922127000" flags=""/>
<GuestProperty name="/VirtualBox/GuestInfo/OS/Version" value="FreeBSD 12.2-RELEASE-p7 GENERIC" timestamp="1636207374922272000" flags=""/>
</GuestProperties>
</Hardware>
<StorageControllers>
<StorageController name="SATA" type="AHCI" PortCount="2" useHostIOCache="true" Bootable="true" IDE0MasterEmulationPort="0" IDE0SlaveEmulationPort="1" IDE1MasterEmulationPort="2" IDE1SlaveEmulationPort="3">
<AttachedDevice type="HardDisk" hotpluggable="false" port="0" device="0">
<Image uuid="{adb4279f-153c-454f-9514-599f1d663b7e}"/>
</AttachedDevice>
</StorageController>
</StorageControllers>
<Groups>
<Group name="/New group"/>
</Groups>
</Machine>
</VirtualBox>