HDD Image as Secondary Master

Discussions related to using VirtualBox on Linux hosts.
Post Reply
renatoriolino
Posts: 2
Joined: 7. Apr 2009, 22:06
Primary OS: Ubuntu 8.10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: XP, Linux, DOS

HDD Image as Secondary Master

Post by renatoriolino »

Hi.

I need to mount a VDI as secondary master. I know that secondary master is reserved for the virtual CD/DVD, but I'm running on primary master a real HDD with a closed proprietary system that "generate" some data output ONLY ON SECONDARY MASTER DISK (/dev/hdc on linux).

I tried to disable CD/DVD and manually edit the VB xml file forcing it to use secondary master but it didn't work.

Is there any hidden setting that allows me to remap CD/DVD to secondary slave and use secondary master as an HDD?

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: HDD Image as Secondary Master

Post by Sasquatch »

Only option to get that working, is to modify the source code yourself, compile it and run that. But you might not be up to that. I find it rediculous for a propriatary application to force it's users that kind of setup. Go complain at them that you have no authority or means to change the system setup. For Linux, hard drives aren't labed on where they are attached to, but in the order they are detected. So the Secondary Slave would be /dev/hdc. However, current releases no longer use /dev/hd* names, they use /dev/sd*.
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.
renatoriolino
Posts: 2
Joined: 7. Apr 2009, 22:06
Primary OS: Ubuntu 8.10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: XP, Linux, DOS

Re: HDD Image as Secondary Master

Post by renatoriolino »

Sasquatch wrote:Only option to get that working, is to modify the source code yourself, compile it and run that. But you might not be up to that. I find it rediculous for a propriatary application to force it's users that kind of setup. Go complain at them that you have no authority or means to change the system setup. For Linux, hard drives aren't labed on where they are attached to, but in the order they are detected. So the Secondary Slave would be /dev/hdc. However, current releases no longer use /dev/hd* names, they use /dev/sd*.
Unfortunately it's not an option since the company who made the application doesn't exist anymore. And it still uses /dev/hd* names because it still runs kernel 2.2 series.

I know how to code in C/C++ but as I'm not familiar with the project development I think it will take more time than I'd like to solve this.

I'll try to mount the system root partition using my Linux and swap the major/minor numbers from /dev/hdc* and /dev/hdd*. Since it's using kernel 2.2 I guess it doesn't have udev or similar to create those files on the fly.

Anyway, thanks for helping out.

[]'s

Renato
Post Reply