The general mechanism is to install CRM in Domain B, copy the MSCRM database from the SQL Server in domain A to domain B, then use Deployment Manager on the server in Domain B to import the organization from the MSCRM database. This will manage all the Active Directory work associated with the migration.
The CRM implementation guide should have some more information on this