Difference between revisions of "Turn your physical computer into a virtual one"

From Linuxintro
imported>ThorstenStaerk
imported>ThorstenStaerk
(Comments)
Line 26: Line 26:
 
* you can now use your vmware image to boot your virtual guest computer.
 
* you can now use your vmware image to boot your virtual guest computer.
  
[http://www.facebook.com/sharer.php?u=http%3A%2F%2Fwww.linuxintro.org%2Fwiki%2Fvirtualize_your_computer&t=Virtualize%20your%20Computer&src=sp Share on Facebook]
+
= Comments =
 +
<comments />
  
 
[[Category:Guides]]
 
[[Category:Guides]]

Revision as of 19:43, 14 January 2012

Imagine you want your physical computer to run as a virtual machine, maybe because you want to try some dangerous changes, maybe because you want to sell one of your two laptops. That's what this article is about. Your computer can be on Windows or Linux, no matter.

How to

Let's call the computer you want to virtualize moon and the computer you want to use as a host for the virtual machine earth.

  • Get an image of moon's harddisk. Do one of the following:

Either: store on a USB disk

  • Use a USB disk to store an image of the hard disk:
  • dd if=/dev/sda of=/mnt/usb/hdimage.img

This can be used if your harddisk is /dev/sda and you want your image file at /hdimage.img.

Or: Transfer over network

  • Transfer moon's image over the network:
  • dd if=/dev/sda | ssh root@earth "cat > hdimage.img"

  • Download and install VmWare on your host computer.
  • use qemu-img from the qemu package to transform your harddisk image to a vmware image:
qemu-img convert /mnt/usb/hdimage.img -O vmdk ~/hdimage.vmdk
  • you can now use your vmware image to boot your virtual guest computer.

Comments

<comments />