FedoraForum.org - Fedora Support Forums and Community
Results 1 to 3 of 3
  1. #1
    Join Date
    Jan 2008
    Posts
    44
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How to boot a physical hard drive with qemu?

    Hello every one,

    I have installed both Windows Vista and Fedora Core 8.0 on the same
    hard drive, and I use

    Code:
    /dev/sda1   is my  Windows partition
    /dev/sda2   is my  linux partition
    I read on some HOWTo that it is possible to virtualize a physical hard drive
    by using qemu, but when I run this (as a normal user and not root),
    Code:
    $ qemu  -snapshot  -boot c -hda /dev/sda
    I see the qemu emulator opens, and for a moment I see the
    Grub interface where you choose Windows or Linux, but just after
    that qemu stops and does nothing, and you have to Ctrl + C to quit.
    I checked the kernel and all of the qemu and kqemu modules are there
    and activated.
    Any idea??

    Thanks,

  2. #2
    Join Date
    Oct 2004
    Location
    London, UK
    Posts
    4,991
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Increase the grub timeout and make sure you do not select your linux installation for boot (You cannot boot a virtual session on your currently booted partition sda2, even if it worked it would probably cause disk corruption) ie you have to select the windows boot.

    Even then , I'm not sure how safe this is. Really you ought to set up a separate hardware profile for qemu in windows first. See this howto, for how it is done in vmware
    http://forums.fedoraforum.org/forum/...d.php?t=166890

    You should also specify the memory to use, at least 256Mb (the default is 128mb)

    Code:
    qemu -snapshot -m 256 -boot c -hda /dev/sda &

  3. #3
    Join Date
    Jan 2008
    Posts
    44
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks for your answer, however I still have the same problem. But I think
    you are right about the hardware profile, I have to install Windows on another
    hard disk, this will be safer and besides, as Linux and Windows are on the same
    physical hard drive /dev/sda, this means that the hard drive is already mounted
    while I'm using Linux.

    May be this causes the problem.

    Thanks for your answer

Similar Threads

  1. grub.conf on hard drive, boot usb drive
    By badwolf001 in forum Installation, Upgrades and Live Media
    Replies: 9
    Last Post: 17th November 2007, 03:58 AM
  2. Creating a logical volume out of multiple physical hard drives
    By gpierce in forum Installation, Upgrades and Live Media
    Replies: 1
    Last Post: 1st July 2007, 04:14 PM
  3. Will not boot from 2nd hard drive
    By davfel in forum Installation, Upgrades and Live Media
    Replies: 6
    Last Post: 29th December 2006, 04:31 AM
  4. Questions about dual booting using one physical hard drive
    By Zseven in forum Installation, Upgrades and Live Media
    Replies: 7
    Last Post: 21st August 2006, 03:25 AM
  5. Replies: 20
    Last Post: 5th February 2006, 05:53 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •