Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm looking for a Windows equivalent of Unixish:

qemu -hda /dev/sda

How does the Windows version of it look like, assuming the device I'd like to boot is under the drive letter E:? qemu -hda E: didn't work.

share|improve this question

In our win_srv.xml config file:

<disk type='file' device='disk'>
  <driver name='qemu' type='raw' cache='none'/>
  <source file='/dev/[hostname]/win_srv_vm_data'/>
  <target dev='hdc' bus='ide'/>

On the command line it ends up looking like:

/usr/bin/kvm ... -drive file=/dev/[hostname]/win_srv_vm_data,if=ide,index=2,format=raw,cache=none 

The Windows VM picks this up as its E drive, but you could easily reconfigure the mapping in Windows to make it D or whatever you wanted.

I should also note we're using mapper and fakeRAID, so the way our drive is carved up and devices are laid out is pretty weird. the /dev/[hostname]/win_srv_vm_data should go to a raw partition, but it sounds like you already were anticipating that.

share|improve this answer
You're reffering to /usr/bin/kvm, but I'm talking about running Qemu under Windows. How does that relate? – d33tah Feb 26 '13 at 17:42
Ah, well your question wasn't very clear. It reads that you're looking to mount a raw disk from a Unix Host in a Windows VM. Or it reads any number of a dozen other ways, looking at it again. Perhaps you should clarify and you might get answers that better suit your needs. – peelman Feb 27 '13 at 16:12

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .