Difference between revisions of "Turn your physical computer into a virtual one"
From Linuxintro
imported>ThorstenStaerk |
imported>ThorstenStaerk |
||
Line 9: | Line 9: | ||
;Option 1 - USB disk | ;Option 1 - USB disk | ||
<li /> Use a [[USB]] [[disk]] to store an image of the [[hard disk]]: | <li /> Use a [[USB]] [[disk]] to store an image of the [[hard disk]]: | ||
− | + | <code> | |
+ | dd if=<i>/dev/sda</i> of=<i>/hdimage.img</i> | ||
+ | </code> | ||
This can be used if your harddisk is ''/dev/sda'' and you want your [[image]] [[file]] at ''/hdimage.img''. | This can be used if your harddisk is ''/dev/sda'' and you want your [[image]] [[file]] at ''/hdimage.img''. | ||
;OR Option 2 - Network transfer | ;OR Option 2 - Network transfer |
Revision as of 10:01, 1 September 2008
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:
- Option 1 - USB disk
- OR Option 2 - Network transfer
dd if=/dev/sda of=/hdimage.img
This can be used if your harddisk is /dev/sda and you want your image file at /hdimage.img.