[Solved] Could vbox do a p2v like this?

This is for discussing general topics about how to use VirtualBox.
Post Reply
cat2005
Posts: 52
Joined: 11. Aug 2009, 03:45
Primary OS: Ubuntu other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Linux & Windows
Location: Kansas City, MO

[Solved] Could vbox do a p2v like this?

Post by cat2005 »

Could vbox do a p2v like this?

http://www.howtoforge.com/how-to-virtua ... ux-machine

It "sounds" easy, but I have never heard of this approach.
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Re: Could vbox do a p2v like this?

Post by Sasquatch »

It can be done that way, but I've never done it like that. Only thing that comes close to what I've done, was to rescue my installation from a near-death hard disk. I copied all the files with security preservation from one partition (the near-death disk) to the new partition using a Live-CD and mounted both partitions in it. Then I changed the correct files so it would boot properly with the right partition UUID and that was it.
This is a bit more extensive though.

One thing you can also do, if you're not very sure of things, is to use CloneZilla and create an image of the Linux installation, store the image on some Samba share (Windows or other) and restore the image inside the VM. After that, drop to the rescue console like in the howto.

There are several ways to achieve a goal, pick the one you're most confident with.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
cat2005
Posts: 52
Joined: 11. Aug 2009, 03:45
Primary OS: Ubuntu other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Linux & Windows
Location: Kansas City, MO

Re: Could vbox do a p2v like this?

Post by cat2005 »

Sasquatch wrote:It can be done that way, but I've never done it like that. Only thing that comes close to what I've done, was to rescue my installation from a near-death hard disk. I copied all the files with security preservation from one partition (the near-death disk) to the new partition using a Live-CD and mounted both partitions in it. Then I changed the correct files so it would boot properly with the right partition UUID and that was it.
This is a bit more extensive though.

One thing you can also do, if you're not very sure of things, is to use CloneZilla and create an image of the Linux installation, store the image on some Samba share (Windows or other) and restore the image inside the VM. After that, drop to the rescue console like in the howto.

There are several ways to achieve a goal, pick the one you're most confident with.


So I would load my clonezilla image (presumably ISO) into the vm when it asks for either a CD or ISO, correct?
vbox4me2
Volunteer
Posts: 5218
Joined: 21. Nov 2008, 20:27
Location: Rotterdam
Contact:

Re: Could vbox do a p2v like this?

Post by vbox4me2 »

Sort of, you boot the CZ iso, which eventually will ask (when selected) where you want to load an image from.
cat2005
Posts: 52
Joined: 11. Aug 2009, 03:45
Primary OS: Ubuntu other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Linux & Windows
Location: Kansas City, MO

Re: Could vbox do a p2v like this?

Post by cat2005 »

vbox4me2 wrote:Sort of, you boot the CZ iso, which eventually will ask (when selected) where you want to load an image from.

vbox4me2,

I used clonezilla today (nice tool). I had an option to make an "image" and "recovery" copy of the partition in question. The "image" resulted in folder ending "img" (does not have period before it) while the "recovery" resulted in a single file ending ".iso" (does have period before it).

I had assumed all images were iso. I must have been wrong.

Questions: Would it matter which of these I use to load into vbox? Also, what exactly is the difference between them?

Thank you again.
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Re: Could vbox do a p2v like this?

Post by Sasquatch »

Maybe the recovery.iso file is bootable on it's own and can be restored without the need of the CZ disc (it's build in the ISO that's generated). Give it a try and see what happens. The end result should be the same.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
cat2005
Posts: 52
Joined: 11. Aug 2009, 03:45
Primary OS: Ubuntu other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Linux & Windows
Location: Kansas City, MO

Re: Could vbox do a p2v like this?

Post by cat2005 »

Sasquatch wrote:Maybe the recovery.iso file is bootable on it's own and can be restored without the need of the CZ disc (it's build in the ISO that's generated). Give it a try and see what happens. The end result should be the same.
Thanks. You may mark this thread "solved".
Post Reply