couldn't you just use dd?

so do something like:

dd /dev/sda myimage.raw bs=1M

then use qemu-img to convert to .vmdk (virtualbox can read these):

qemu-img convert -f raw myimage.raw -O vmdk

then rename if qemu-img doesnt:

mv myimage.raw myimage.vmdk

start up virtualbox, create your machine, set the hard drive to myimage.vmdk
and pray

*NOTE: as i'm not sure about the instructions above, you might want to check
out the man pages on them. but might work... worth a shot atleast :)

goodluck

On Fri, Nov 21, 2008 at 6:21 PM, Mauro Condarelli <[EMAIL PROTECTED]> wrote:

> Marc Herbert ha scritto:
> > Mauro Condarelli a écrit :
> >
> >> I need to convert an existing Linux (ubuntu) installation to a virtual
> machine.
> >>
> >> Is this possible?
> >
> > This is more or less equivalent to pulling the hard drive out of one real
> machine and inserting it into another real machine. So yes this is possible,
> but might not always work out of the box. Typically you can have booting
> issues, for instance because your hard disk is numbered differently. In
> simple cases it should just work.
> >
> >
> >> Can someone point me in the right direction, please?
> >
> > Look out for documentation explaining how to create disk images from
> non-empty content.
> Sorry.
> I really feel dumb.
> I have been unable to find any relevant info.
> Pretty please, send me a URL where I can find instructions to clone a
> whole partition (ext3) into a virtual disk.
> I currently have a "real" server I would like to convert to a virtual
> server on another machine.
> Should I physically move the hard drive to the Host machine?
> Can I clone it over the net?
> What should I do to clone it into a .vdk (possibly after relocating it
> to the new Host)?
>
> TiA
> Mauro
>
> _______________________________________________
> vbox-users mailing list
> [email protected]
> http://vbox.innotek.de/mailman/listinfo/vbox-users
>
_______________________________________________
vbox-users mailing list
[email protected]
http://vbox.innotek.de/mailman/listinfo/vbox-users

Reply via email to