is it possible to create a running OS from a vdi file?

Discussions related to using VirtualBox on Windows hosts.
Post Reply
Kwnstantinos1980
Posts: 2
Joined: 22. Oct 2008, 21:40

is it possible to create a running OS from a vdi file?

Post by Kwnstantinos1980 »

hi,

I am new to VirtualBox. I wonder if I can use a .vdi file in any way to "extract" the containing operating system to use it on my hard disk.

tnx in advance
TerryE
Volunteer
Posts: 3572
Joined: 28. May 2008, 08:40
Primary OS: Ubuntu other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Ubuntu 10.04 & 11.10, both Svr&Wstn, Debian, CentOS
Contact:

Post by TerryE »

Yes you can but its rather convolved to do so. Basically you need to use the createrawvmdk (see User Guide) to create a virtual disk which maps onto a host raw partition. You can then create a temporary VM using Gparted LiveCD or equivalent (see my tutorial All about VDIs for more details) to copy the VDI partition to raw partition. You then need to fix the bootstrap in the host, plus sort out the driver issues in the imaged OS -- complicated but doable if you know what you are doing.
Read the Forum Posting Guide
Google your Q site:VirtualBox.org or search for the answer before posting.
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

Post by Sasquatch »

You could also try some imaging software that has network setup, create a network share on your Host and set that as the image location for the backup you will make of the OS installed on the VDI. When that is done, reboot your PC and boot that same imaging program and point to the created image to restore.
Software I know that can do this, is Acronis True Image. However, you have to pay for it. CloneZilla might have network support too and is free. I'm sure there is more software with these features.

Both methods are kind of convolved as Terry said. It would be faster to do a clean install, unless you have a lot of settings done that take a lot of time to restore.
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.
Kwnstantinos1980
Posts: 2
Joined: 22. Oct 2008, 21:40

Post by Kwnstantinos1980 »

thank you very much. It really sounds that installing a fresh copy is less difficult and safes time. But it would be very helpfull to have such an automated procedure for applying .vdi files to a harddisk.

thanks guys!
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Mostly XP

Post by mpack »

Kwnstantinos1980 wrote:it would be very helpfull to have such an automated procedure for applying .vdi files to a harddisk.
Such a procedure would involve trashing a host hard disk partition. The potential for catastrophe is great, so IMHO there is no way VBox should ever provide this as an easily reached feature! It should remain cumbersome, something a user has to work hard to do.
Post Reply