Use a real Windows hard-drive to boot off Qemu?












0















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





























    0















    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



























      0












      0








      0








      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
















      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.







      qemu






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Feb 27 '13 at 19:35







      d33tah

















      asked Feb 26 '13 at 15:57









      d33tahd33tah

      662624




      662624






















          1 Answer
          1






          active

          oldest

          votes


















          0














          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'/>
          </disk>


          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











          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "3"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f557695%2fuse-a-real-windows-hard-drive-to-boot-off-qemu%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          0














          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'/>
          </disk>


          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
















          0














          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'/>
          </disk>


          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














          0












          0








          0







          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'/>
          </disk>


          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













          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'/>
          </disk>


          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












          share|improve this answer



          share|improve this answer










          answered Feb 26 '13 at 16:45









          peelmanpeelman

          4,5201622




          4,5201622













          • 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'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'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





          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





          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


















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Super User!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f557695%2fuse-a-real-windows-hard-drive-to-boot-off-qemu%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Probability when a professor distributes a quiz and homework assignment to a class of n students.

          Aardman Animations

          Are they similar matrix