You could enter the domain name manually before you begin the migration. As Virtualmin fails to detect the domain name, your entering the domain name in the form will override Virtualmin’s domain name detection and consequently the error that is being generated.
Oh, also clarify if the error message was “Could not work out the default IP address” as per the topic of this thread or “Could not work out the default domain” as per the screenshot you have provided.