Mount image on host and have it available in disk managment.

Discussions related to using VirtualBox on Windows hosts.
Post Reply
hyphenpipe
Posts: 14
Joined: 15. Jul 2009, 16:06
Primary OS: Linux other
VBox Version: OSE other
Guest OSses: Windows Server 2003, Arch Linux

Mount image on host and have it available in disk managment.

Post by hyphenpipe »

Is it possible to mount a VDI image into the host OS and have it available in disk management?

I am aware of ImDisk and Winmount and I am successful in getting the image to mount and accessing files on the guest OS, however the drive does not show up in disk management and thus will not show up in partition magic.

Here is the deal, I am currently iscsi booting Windows XP and I was successful in getting VirtualBox to iscsi boot this install without a hitch. However I am interested in getting this particular Windows installation in a VDI image and using it that way rather than iscsi booting it through VirtualBox.

So I would like to create a blank VDI image, mount it, connect to my iscsi target and copy the partition over.

I hope someone here gets the gist of what I am talking about, and any information or help is appreciated.

Thanks!
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: Mount image on host and have it available in disk managment.

Post by Sasquatch »

Why don't you start PM or other tools, like CloneZilla, from the Guest itself? It's not advised to write to Host-mounted VDI files, as it can corrupt them.
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.
MarkCranness
Volunteer
Posts: 875
Joined: 10. Oct 2009, 06:27
Primary OS: MS Windows 7
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows Server 2008 R2; Ubuntu 11.04; Windows 2000 Server; Windows XP

Re: Mount image on host and have it available in disk managment.

Post by MarkCranness »

Perhaps the <cough>Microsoft</cough> VHD format when mounted can be seen by Disk Management?
Mounting (VHD) virtual hard disks at the command line
... then clonehd or CloneVDI the VDH to a VDI.
Edit: Deleted silly idea...

I agree with Sasquatch that doing the partition copy inside the guest (Clonezilla/ubcd4win/...) would be easiest, or at least create the partition in the guest.

I have a sudden urge to mash parts of VirtualBox OSE and ImDisk together :twisted:
hyphenpipe
Posts: 14
Joined: 15. Jul 2009, 16:06
Primary OS: Linux other
VBox Version: OSE other
Guest OSses: Windows Server 2003, Arch Linux

Re: Mount image on host and have it available in disk managment.

Post by hyphenpipe »

Sasquatch wrote:Why don't you start PM or other tools, like CloneZilla, from the Guest itself? It's not advised to write to Host-mounted VDI files, as it can corrupt them.
Thanks, I'll give that a try. Sounds like I was trying to make it more complicated than it actually is, which I am wont to do sometimes, LOL.
hyphenpipe
Posts: 14
Joined: 15. Jul 2009, 16:06
Primary OS: Linux other
VBox Version: OSE other
Guest OSses: Windows Server 2003, Arch Linux

Re: Mount image on host and have it available in disk managment.

Post by hyphenpipe »

Thanks Sasquatch, worked like a charm.

/me kicks self in head.
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: Mount image on host and have it available in disk managment.

Post by Sasquatch »

hyphenpipe wrote:Thanks Sasquatch, worked like a charm.

/me kicks self in head.
Oh, flexible legs you've got there :lol:.
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.
Post Reply