Search Type:
Search for:

Language:

Product:
Category:
No categories for selected product

How to migrate Linux computer to a virtual machine?

Article ID: 6880 
Last Review: Nov,6 2009
Author: Andrey Polienko
Last updated by: Andrey Polienko APPLIES TO:
  • Parallels Desktop for Mac 3.x
  • Parallels Desktop for Mac 4.x
  • Parallels Desktop for Mac 5.x
  • Parallels Transporter

Symptoms

You have a physical PC with Linux OS installed and you want to migrate it and run in virtual machine.

Resolution

You can use Parallels Transporter to migrate physical computer to a virtual machine. Parallels Transporter is always available on our website in Download section:

Parallels Desktop for Mac  - Download Transporter Agent
Parallels Desktop for Windows and Linux - Download Transporter Agent
Parallels Server Bare Metal - Download Transporter Agent
Parallels Server for Mac - Download Transporter Agent
 
Please check system requirements for Parallels Transporter Agent and make sure that your Linux OS is supported. Parallels Transporter does not support migrating  Linux logical volumes (LVM). If the file system is not supported, Parallels Transporter copies all disk sectors successively and you may experience some problems with using the resulting virtual machine.
 



If your Linux OS is not supported by Parallels Transporter but supported in Parallels Desktop or Parallels Server you can try the workaround below:
 
1. On source Linux computer open Terminal

2. Type su - or sudo -s to gain root privileges.

3. Run command fdisk -l to get disk device name. Example output:


[root@localhost ~]# fdisk -l

Disk /dev/sda: 34.3 GB, 34360123392 bytes
255 heads, 63 sectors/track, 4177 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x0004ebf4

  Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1          26      204800   83  Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2              26        4177    33346921   8e  Linux LVM

You can see that disk where OS is installed on  is /dev/sda (we consider the whole disk, not slices /dev/sda1/ or /dev/sda2/ )

4. Attach external USB drive or network share (any destination with necessary disk space), in our sample /media/USB_drive/

5. Enter the following command that will make an image of the disk:

dd if=/dev/sda of=/media/USB_drive/ResultingImage.hdd bs=65536



Note: We are dumping the whole disk /dev/sda, not the slice /dev/sda1 or /dev/sda2 where Linux OS is installed.


6. After dd utility has finished image creation (it may take time to dump the whole drive, depending on its size.) Start Parallels Image Tool > Select ResultingImage.hdd file and convert it to a new format.

7. Create Virtual Machine configuration file using New Virtual Machine Assistant in Parallels Desktop/Server:

- OS Type = Linux
- Custom mode
- and attach ResultingImage.hdd file.

8. Try to start virtual machine.
 

Note: the .hdd file will be the same size as your  real Hard disk, i.e. if you have 250 GB hard disk where Fedora is installed so your resulting hard disk image will be 250GB in size.



Subscription for changes to this article Subscription for changes to this article

Please provide feedback on this article

Did this article help you solve your issue?
Yes
No
Partially
I do not know yet
 
Strongly Agree   Strongly Disagree
  9 8 7 6 5 4 3 2 1
The article is easy to understand
The article is accurate
Additional Comments:
*Please provide us with your email address in case we need to contact you.
* - required fields
 
 
 
 
 
 
For Home
For Business
For Hosters
For SaaS
For Developers
 
Desktop Virtualization
- Parallels Desktop Switch to Mac Edition
- Parallels Desktop for Mac
- Parallels Desktop 4 for Windows & Linux
- Parallels Workstation Extreme
- Parallels Solution for Windows 7
Server Virtualization
- Parallels Server for Mac
- Parallels Server 4 Bare Metal
- Parallels Virtuozzo Containers
Automation
- Parallels Operations Automation
- Parallels Business Automation
- Parallels Virtual Automation
- Parallels Plesk Panel Suite
More Products