From: Tim <tim-qemu@sentinelchicken.org>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] booting from /dev/hd?
Date: Mon, 31 May 2004 10:10:05 -0700 [thread overview]
Message-ID: <20040531171005.GC10750@sentinelchicken.org> (raw)
Hello,
I know it is considered dangerous, but I am willing to accept the
risk... Has anyone been able to boot a virtual machine from their main
boot drive while the drive is in use?
More specifically, I have a dual boot system, win2k/debian, and I would
like to try booting windoze from this disk as a guest OS while running
the linux system from this same disk. In order to protect my disk from
erroneous writes, I planned on running the vm system with -snapshot.
I have tried this, and with basic options:
qemu -hda /dev/hda -snapshot -boot c
my bootloader (grub) comes up just fine, but once I select win2k, it
reports a disk read error. When booting Debian, it loads the kernel and
tries to begin booting, but just hangs. This may be because my kernel
is customized for my Athlon though...
I figured the windoze issue might be a geometry problem, so I ran
`fdisk -l /dev/hda' and then used that geometry:
qemu -hda /dev/hda -snapshot -boot c -hdachs 4865,255,63
and I get the same results. Perhaps I need to use a non-LBA geometry or
something? I really don't know much about disk geometry, just a
guess...
Has anyone tried doing something similar to what I am attempting? If
so, did you have any success, and what did you try that I haven't? I am
pretty sure I have permissions right in the host OS, is there anything I
am forgetting?
thanks,
tim
next reply other threads:[~2004-05-31 17:10 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-05-31 17:10 Tim [this message]
2004-05-31 17:16 ` [Qemu-devel] booting from /dev/hd? Antony T Curtis
2004-05-31 17:35 ` Tim
2004-05-31 17:37 ` Grzegorz Kulewski
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20040531171005.GC10750@sentinelchicken.org \
--to=tim-qemu@sentinelchicken.org \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).