Windows Vista Tips

Windows Vista Tips > Newsgroups > Virtual PC > Re: Forcing Virtual CP to use CD-Drive

Reply
Thread Tools Display Modes

Re: Forcing Virtual CP to use CD-Drive

 
 
MikeD
Guest
Posts: n/a

 
      07-15-2010


<> wrote in message
news:d5af1cc1-6746-442c-b25c-...
> I have installed some software on Virtual Pc that requires a CD to be
> in the drive.
>
> How can I force Virtual PC 2007 to always use a physical drive as
> standard on startup ?


I don't think you can "force" it so-to-speak. This gets saved to the .vmc
file. You could possibly write a launcher program which edits the .vmc file
and then runs VPC2007. A .vmc file is just an .xml file, which itself is
just a text file. So it's easily edited. But you gotta know what to edit in
it. I experimented a bit. With an .iso file assigned to the CD drive,
there was this in the .vmc file (hope this doesn't word-wrap too badly in a
newsgroup message; you might have to copy it to Notepad and fix
line-breaks):

<ide_adapter>
<ide_controller id="1">
<location id="0">
<drive_type type="integer">2</drive_type>
<pathname>
<absolute type="string">I:\CD Images\VB\en_vb6_ent_cd1.iso</absolute>
<relative type="string">..\..\CD Images\VB\en_vb6_ent_cd1.iso</relative>
</pathname>
</location>
</ide_controller>
<ide_controller id="0">
<location id="0">
<drive_type type="integer">1</drive_type>
<pathname>
<absolute type="string">I:\Virtual PC Files\Windows XP.vhd</absolute>
<relative type="string">.\Windows XP.vhd</relative>
</pathname>
<undo_pathname>
<absolute type="string" />
<relative type="string" />
</undo_pathname>
</location>
</ide_controller>
</ide_adapter>

After I captured a physical drive (and shutdown the guest OS so the .vmc
file would get saved), it changed to this:

<ide_adapter>
<ide_controller id="1">
<location id="0">
<drive_type type="integer">2</drive_type>
<pathname>
<absolute type="string">M</absolute>
<relative type="string" />
</pathname>
</location>
</ide_controller>
<ide_controller id="0">
<location id="0">
<drive_type type="integer">1</drive_type>
<pathname>
<absolute type="string">I:\Virtual PC Files\Windows XP.vhd</absolute>
<relative type="string">.\Windows XP.vhd</relative>
</pathname>
<undo_pathname>
<absolute type="string" />
<relative type="string" />
</undo_pathname>
</location>
</ide_controller>
</ide_adapter>

Now, what this tells me is that the CD drive seems to be IDE controller 1
and to set it to a physical drive of the host OS, you simply put in the
drive letter for <absolute type> and "clear" the <relative type>.

But in all honesty, I don't see why this would be necessary. If a physical
drive was being used when the guest OS is shutdown, then that same physical
drive is going to be used when the guest OS is re-started. And of course, if
you're not shutting down the guest OS, but instead just saving the state,
then it should still be the physical drive. Of course, this assumes the user
(be it you or whomever) hasn't changed any of this while the guest OS is
running. But even if that's the case, it's still no different than having
removed the CD or putting in a different CD in a PHYSICAL computer and then
rebooting it. So...I really don't know what you're trying to solve or
accomplish.

--
Mike



 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: [Win7 x64] Move partition C to another drive R. C. White Windows 64 Bit 0 12-21-2009 04:34 PM
how to change hard drives with windows vista. bsantanu Windows Vista Performance 5 05-19-2007 02:13 AM
Vista RC2 install fails with SATA Tony Saucedo Windows Vista Installation 11 11-08-2006 08:19 PM
Installation to second drive KSchrantz Windows Vista Installation 0 08-26-2006 06:15 PM
How To Install Vista Using Virtual Drive Gaurav Windows Vista Installation 0 06-09-2006 06:31 AM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59