Problems after transfer VMs to new server with other network card (Intel) etc.

Discussions related to using VirtualBox on other (unsupported) hosts like FreeBSD.
Post Reply
testit
Posts: 28
Joined: 31. Jul 2011, 14:26
Primary OS: FreeBSD
VBox Version: OSE other
Guest OSses: bisher: keine

Problems after transfer VMs to new server with other network card (Intel) etc.

Post by testit »

Hello everyone!

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 hope you can help me to get my VM running on the new machine again!
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
The new machine does have an INTEL networkcard, the former machine had a Realtek Card!!!

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>

scottgus1
Site Moderator
Posts: 20965
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux

Re: Problems after transfer VMs to new server with other network card (Intel) etc.

Post by scottgus1 »

Web-searching the CAPITALIZED_UNDERSCORE_SPACED_WORDS in the error message, with the site restrictor "site:forums.virtualbox.org", often gets topics where the error has been dealt with before.

In this case: viewtopic.php?f=6&t=29348#p132486 Uninstall Virtualbox, reboot, reinstall, paying attention to the installer options and any errors that may happen. Bridged networking is the option required for your VM's present network choice.

Then, in the VM's Network settings, change the "Name:" dropdown to the new physical Ethernet adapter, then try the VM.
testit
Posts: 28
Joined: 31. Jul 2011, 14:26
Primary OS: FreeBSD
VBox Version: OSE other
Guest OSses: bisher: keine

Re: Problems after transfer VMs to new server with other network card (Intel) etc.

Post by testit »

Hello,

thanks for your answer!

Virtualbox has - as I described above - been freshly installed on my new server. To be honest, I do not understand why I should now uninstall it again and reinstall fresh? I also do not understand the connection between the link you mentioned and the problem I currently have: On a freshly set up server with a newly installed VirtualBox, how do I include the relevant files I listed in my post in the new system?

It ran everything on the old server in bridged mode! The IP address has remained the same. Do the UUIDs need to be adjusted? Since VirtualBox is running "headless" I use phpvirtualbox for administration but can´t start the vm without an error message I described.

Kind regards
testit
scottgus1
Site Moderator
Posts: 20965
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux

Re: Problems after transfer VMs to new server with other network card (Intel) etc.

Post by scottgus1 »

testit wrote:Virtualbox has - as I described above - been freshly installed on my new server. To be honest, I do not understand why I should now uninstall it again and reinstall fresh?
frank, in the linked post, wrote:Such an error usually means that the host network driver component was not properly installed.
"freshly installed" does not preclude "properly installed".

You'll have to wait for a FreeBSD expert to help you figure out why the driver did not get installed if that is the problem. Were it Windows, an MSI log would help. Maybe there is a log made by FreeBSD for installs, so we can check if the network driver failed.
testit
Posts: 28
Joined: 31. Jul 2011, 14:26
Primary OS: FreeBSD
VBox Version: OSE other
Guest OSses: bisher: keine

Re: Problems after transfer VMs to new server with other network card (Intel) etc.

Post by testit »

Hello,

thanks for your answers!

Yes, I have read the linked posts, but I do not think that the network card driver for the I219-LM network card is not installed correctly. But I will reboot the server now again etc.

What I would like to know is: In my opinion, the whole thing cannot run on my new server with the old ".vbox" (FreeBSD 12.2 VirtIO (FreeBSD 12.2+NextC+MariaDB+phpMyAdmin).vbox) and the inappropriate information in this file, such as re0 instead of em0 and wrong UUIDs, or can it?

Kind regards
testit
scottgus1
Site Moderator
Posts: 20965
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux

Re: Problems after transfer VMs to new server with other network card (Intel) etc.

Post by scottgus1 »

"host network driver component" in the link is referring to the Virtualbox driver, not the network card driver from the card manufacturer, thus the reinstall and checking of FreeBSD host installer logging.

Here's another way to test this. In Windows, there is a list of bindings attached to the network card:

Image

Notice the "Virtualbox NDIS6 Bridged Networking Driver". This is the driver that the error message says is missing. If you can find such a list of bindings to the network card and the Virtualbox Bridged binding is not shown, then there's the problem, and a reinstall with logging is the next diagnostic step.
testit wrote:the whole thing cannot run on my new server with the old ".vbox"... and the inappropriate information in this file
Note that you may have to fix the driver problem first, but:
Yes, the inappropriate info is in the file. The fix for that has been presented twice already and here's a third time because I am a glutton for punishment:
scottgus1 wrote:in the VM's Network settings, change the "Name:" dropdown to the new physical Ethernet adapter, then try the VM.
testit
Posts: 28
Joined: 31. Jul 2011, 14:26
Primary OS: FreeBSD
VBox Version: OSE other
Guest OSses: bisher: keine

Re: Problems after transfer VMs to new server with other network card (Intel) etc.

Post by testit »

scottgus1 wrote:In this case: viewtopic.php?f=6&t=29348#p132486 Uninstall Virtualbox, reboot, reinstall, paying attention to the installer options and any errors that may happen. Bridged networking is the option required for your VM's present network choice.

Then, in the VM's Network settings, change the "Name:" dropdown to the new physical Ethernet adapter, then try the VM.
Hello,

fortunately, I did NOT have to reboot or uninstall and reinstall Virtualbox!

Here are the steps that solved my problem:

1)
I reinstalled phpvirtualbox and replaced in
/usr/local/www/phpvirtualbox/config.php
var $location = 'http://127.0.01:18083/';
with
var $location = 'http://localhost:18083/';
because sockstat -4 showed
vboxwebsrv 3817 8 tcp6::1:18083 *:*
Obviously vboxwebsrv included in the FreeBSD VirtualBox 6.1.0 Package I installed on the new server listens to the port 18083 with IPv6.

2)
After the changement to http://localhost:18083 I could log in phpvirtualbox, my VM showed up at once and I could select the physical adapter em0 like you had explained and started the VM successfully.

My open question:

But what I do not understand, and maybe one can you explain it to me again briefly:

Why does the whole thing now work without problems, although the FreeBSD 12.2 VirtIO (FreeBSD 12.2+NextC+MariaDB+phpMyAdmin).vbox is still the old one and consequently still contains the old machine and hdd UUID?

I thought until now, they had a reference to the physical components of the host (UUIDs).

Thanks again for your help and hints
testit
scottgus1
Site Moderator
Posts: 20965
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux

Re: Problems after transfer VMs to new server with other network card (Intel) etc.

Post by scottgus1 »

testit wrote:I thought until now, they had a reference to the physical components of the host (UUIDs).
No, these refer to the VM's "motherboard" and HD. All "hardware" in the VM is simulated and independent of the host's hardware, except for the physical CPU.

Glad you're up and running!
testit
Posts: 28
Joined: 31. Jul 2011, 14:26
Primary OS: FreeBSD
VBox Version: OSE other
Guest OSses: bisher: keine

Re: Problems after transfer VMs to new server with other network card (Intel) etc.

Post by testit »

Thank you very much for answering this question as well!

Kind regards
testit
Post Reply