How to import Hard Disks into Virtual Media Manager?

This is for discussing general topics about how to use VirtualBox.
Post Reply
seandarcy
Posts: 6
Joined: 21. Apr 2009, 22:33
Primary OS: Fedora other
VBox Version: OSE self-compiled
Guest OSses: xp w7

How to import Hard Disks into Virtual Media Manager?

Post by seandarcy »

My fedora server died. But I had all XP and W7 vb machines on attached raid storage. Parent folder VirtualBox, subfolders: HardDrives, Machines, Shared.

I got a new server, installed 4.0.2. Go to Machine -> Add. Pick a machine in the Machines folder. But that doesn't work, I get a uuid error because it can't find the associated hard drive. And there doesn't seem to be any way to tell it which folder it's in. I did look in the Machine xml file, but didn't see anything there, just the uuid. The Virtual Media Manager seems to have no way way to add drives.

Then I created a new machine, using the existing hard drive. That worked. Then went back to Machine-> Add, used an old machine with THAT hard drive, and that worked! Now I removed the new machine, and the Hard Drive disappears from Media Manager, and the old machine no longer works.

So it appears if you remove the first machine that attached a hard drive, the hard drive is no longer available to machines that were subsequently attached.

Now have one virtual machine - "HardDrives" - that has attached all the old hard drives. And all the old machines work.

Shouldn't VMM be able to manage this?

sean
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

Re: How to import Hard Disks into Virtual Media Manager?

Post by mpack »

VBox v4 no longer has a global media registry (at least not one that gets saved); this is one of the penalties for moving to a more portable VM (folder based) configuration. Each VM now has its own registry stored in its own XML file - and it's these (v4 compatible) xml files that Machine|Add expects. If you try to add a v3 or earlier xml file then of course it will be missing its hard disk register.

Basically, you need a thorough knowledge of where VBox keeps things if you want to manipulate xml and image files directly. Perhaps import/export would suit you better.
seandarcy
Posts: 6
Joined: 21. Apr 2009, 22:33
Primary OS: Fedora other
VBox Version: OSE self-compiled
Guest OSses: xp w7

Re: How to import Hard Disks into Virtual Media Manager?

Post by seandarcy »

Well exporting and then importing wouldn't work unless you knew when the server would fail.

Can you import if you haven't exported? How would that work?

Is there a way to convert a 3.x <Machine.xml> file to a 4.0 <Machine.vbox> file?

sean
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: How to import Hard Disks into Virtual Media Manager?

Post by Perryg »

Read the second section down. Is this what you are looking for http://blogs.sun.com/fatbloke/ ?
seandarcy
Posts: 6
Joined: 21. Apr 2009, 22:33
Primary OS: Fedora other
VBox Version: OSE self-compiled
Guest OSses: xp w7

Re: How to import Hard Disks into Virtual Media Manager?

Post by seandarcy »

Very interesting. Thanks for the link.

I've now exported and imported a W7 vm. Sadly W7 now thinks it's a counterfeit machine! So I'll need to keep the fake harddisks machine, and run the original W7's. All 12 of them.

sean
Post Reply