S
S
sindrom2011-10-26 19:35:02
Virtualization
sindrom, 2011-10-26 19:35:02

Moving a virtual machine to a physical hard drive

I want to install Ubuntu in vrtualbox. Can I then somehow transfer the resulting vdi image with the configured system to my physical hard drive as a separate logical partition?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
E
Evengard, 2011-10-26
@Evengard

Under Linux, vdimount should help. It provides just "virtual block devices" of a virtual disk, sort of. Well, you can overtake it with the help of dd.

T
TimID, 2011-10-26
@TimID

Yes, in principle, there should be no problems with Linux at all.
Use Acronis True Image by running it in a configured virtual machine. Make a disk image and put it on FlashDisk.
Well, after that you can deploy the image to a clean machine with resizing the partition with the same True Image.
There shouldn't be any problems - it's not Windows, but it's better to play it safe and turn off the graphical mode before creating the image, and then, on the new machine, configure all the settings in the configs.

X
xandr0s, 2011-10-26
@xandr0s

Once upon a time I tried to do this with windows. True, the images seemed to be vhd. So I found out that Windows is tied to hardware, Linux has fewer problems with this - theoretically it should work. Another option is to use an image in the virtual machine in the form of a real physical disk (.vmdk extension), then probably cut the MBR. (not sure if the second method works)

Y
YourChief, 2011-10-27
@YourChief

problems may arise, namely, there may not be modules for new hardware in the initrd. solved by booting from a CD, chroot into the environment of the existing OS and rebuilding the initrd. how to mount is described in man mkinitrd

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question