* Chaning disks from IDE to SCSI on a Windows VM
@ 2008-04-14 18:07 Alberto Treviño
2008-04-15 6:41 ` Felix Leimbach
2008-04-16 7:58 ` Elmar Haneke
0 siblings, 2 replies; 7+ messages in thread
From: Alberto Treviño @ 2008-04-14 18:07 UTC (permalink / raw)
To: kvm-devel
Anthony Liguori provided patches that allowed booting from SCSI disks
back in December of 2005. He also reported the following:
> I have successfully booted Linux, Win2k, and WinXP from SCSI with
> this patch. Windows takes a bit of prep work to be able to boot from
> SCSI. For win2k, you just need to make sure you have the right driver
> installed. WinXP, however, seems to require that it be installed on
> SCSI to boot from SCSI. If anyone knows how to modify WinXP after
> the fact, please let me know.
I think I figured it out for both Windows XP and 2003 server. It's
pretty straight forward.
1. Create a new HD image. It doesn't have to be very big (8 MB will
do) and you don't have to format it.
2. Start the Windows VM and add this second hard drive to the VM:
qemu-system-x86_64 -m 256 -hda hda.img \
-drive file=new.img,if=scsi,bus=0,index=0,media=disk,boot=off ...
At this point, Windows should start, find the new drive, and install
all the drivers for it.
3. Shut down the VM. This time, don't include the new temporary image
from step 1 and define your disk(s) as SCSI disks:
qemu-system-x86_64 -m 256 \
-drive file=hda.img,if=scsi,bus=0,index=0,media=disk,boot=off ...
At this point, the Windows VM should boot from the SCSI drive without
a blue screen. Verify that the drive is now a SCSI disk by going to
the Device Manager and making sure the model of the hard drive
includes the word SCSI.
That's it. If anyone can attest to this procedures and report, it would
be greatly appreciated.
Along those lines, if anyone knows how to grab an existing Windows VM
that was set up in VMware and make it run in Qemu (KVM), I would
really, really appreciate it. Everytime I try I get blue screens. :-(
--
Alberto Treviño
alberto@byu.edu
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Chaning disks from IDE to SCSI on a Windows VM
2008-04-14 18:07 Chaning disks from IDE to SCSI on a Windows VM Alberto Treviño
@ 2008-04-15 6:41 ` Felix Leimbach
2008-04-15 6:57 ` Jun Koi
2008-04-16 7:58 ` Elmar Haneke
1 sibling, 1 reply; 7+ messages in thread
From: Felix Leimbach @ 2008-04-15 6:41 UTC (permalink / raw)
To: Alberto Treviño; +Cc: kvm-devel
On 14.04.2008 Alberto Treviño wrote:
> If anyone can attest to this procedures and report, it would be
greatly appreciated.
Hello Alberto,
I can confirm that this method works on Windows 2003 Server.
> Along those lines, if anyone knows how to grab an existing Windows VM
that
> was set up in VMware and make it run in Qemu (KVM), I would really,
really
> appreciate it. Everytime I try I get blue screens. :-(
Have done that before, here is how:
http://www.mail-archive.com/kvm-devel@lists.sourceforge.net/msg14818.html
regards,
Felix
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Chaning disks from IDE to SCSI on a Windows VM
2008-04-15 6:41 ` Felix Leimbach
@ 2008-04-15 6:57 ` Jun Koi
2008-04-15 16:29 ` Alberto Treviño
0 siblings, 1 reply; 7+ messages in thread
From: Jun Koi @ 2008-04-15 6:57 UTC (permalink / raw)
To: Felix Leimbach; +Cc: Alberto Treviño, kvm-devel
On Tue, Apr 15, 2008 at 3:41 PM, Felix Leimbach <felix.leimbach@gmx.net> wrote:
> On 14.04.2008 Alberto Treviño wrote:
> > If anyone can attest to this procedures and report, it would be
> greatly appreciated.
>
> Hello Alberto,
>
> I can confirm that this method works on Windows 2003 Server.
Looks like a problem, however. In his instruction, part 3:
>3. Shut down the VM. This time, don't include the new temporary image
> from step 1 and define your disk(s) as SCSI disks:
>
> qemu-system-x86_64 -m 256 \
> -drive file=hda.img,if=scsi,bus=0,index=0,media=disk,boot=off ...
I think above should have "boot=on", rather than "boot=off".
Otherwise, you cannot boot from scsi disk, right?
I tried the above instructions with WinXP, but WinXP cannot boot
successfully: it stops somewhere in the middle, and hang there.
Regards,
Jun
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Chaning disks from IDE to SCSI on a Windows VM
2008-04-15 6:57 ` Jun Koi
@ 2008-04-15 16:29 ` Alberto Treviño
2008-04-16 1:28 ` Jun Koi
0 siblings, 1 reply; 7+ messages in thread
From: Alberto Treviño @ 2008-04-15 16:29 UTC (permalink / raw)
To: kvm-devel
On Tuesday 15 April 2008 12:57:45 am Jun Koi wrote:
> Looks like a problem, however. In his instruction, part 3:
> >3. Shut down the VM. This time, don't include the new temporary
> > image from step 1 and define your disk(s) as SCSI disks:
> >
> > qemu-system-x86_64 -m 256 \
> > -drive file=hda.img,if=scsi,bus=0,index=0,media=disk,boot=off
> > ...
>
> I think above should have "boot=on", rather than "boot=off".
> Otherwise, you cannot boot from scsi disk, right?
You are right! That's what happens when you copy and paste code. :-)
> I tried the above instructions with WinXP, but WinXP cannot boot
> successfully: it stops somewhere in the middle, and hang there.
I tried it on a vanilla install of WinXP SP2, no updates. I guess I
should try using a fully patched version of XP and see what that does.
In step #2, did the Device Manager show the SCSI disk?
--
Alberto Treviño
alberto@byu.edu
Testing Center
Brigham Young University
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Chaning disks from IDE to SCSI on a Windows VM
2008-04-15 16:29 ` Alberto Treviño
@ 2008-04-16 1:28 ` Jun Koi
2008-04-16 6:09 ` Felix Leimbach
0 siblings, 1 reply; 7+ messages in thread
From: Jun Koi @ 2008-04-16 1:28 UTC (permalink / raw)
To: Alberto Treviño; +Cc: kvm-devel
On Wed, Apr 16, 2008 at 1:29 AM, Alberto Treviño <alberto@byu.edu> wrote:
> On Tuesday 15 April 2008 12:57:45 am Jun Koi wrote:
> > Looks like a problem, however. In his instruction, part 3:
> > >3. Shut down the VM. This time, don't include the new temporary
> > > image from step 1 and define your disk(s) as SCSI disks:
> > >
> > > qemu-system-x86_64 -m 256 \
> > > -drive file=hda.img,if=scsi,bus=0,index=0,media=disk,boot=off
> > > ...
> >
> > I think above should have "boot=on", rather than "boot=off".
> > Otherwise, you cannot boot from scsi disk, right?
>
> You are right! That's what happens when you copy and paste code. :-)
>
>
> > I tried the above instructions with WinXP, but WinXP cannot boot
> > successfully: it stops somewhere in the middle, and hang there.
>
> I tried it on a vanilla install of WinXP SP2, no updates.
My WinXP is fully updated.
> In step #2, did the Device Manager show the SCSI disk?
Yes, it does.
If you have any progress on this, please let us know.
Many thanks,
Jun
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Chaning disks from IDE to SCSI on a Windows VM
2008-04-16 1:28 ` Jun Koi
@ 2008-04-16 6:09 ` Felix Leimbach
0 siblings, 0 replies; 7+ messages in thread
From: Felix Leimbach @ 2008-04-16 6:09 UTC (permalink / raw)
To: Jun Koi; +Cc: Alberto Treviño, kvm-devel
Jun, what happens when you boot into Windows' safe mode?
It usually displays the drivers as it loads them. Would be interesting
to see where it hangs.
Also try this:
* Boot with the IDE disk which works and the dummy SCSI disk attached as
per Alberto's instructions
* After you confirmed that the SCSI controller and disk are in device
manager: delete the currently in use IDE controller from device manager
* Reboot into the SCSI setup
Good luck,
Felix
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Chaning disks from IDE to SCSI on a Windows VM
2008-04-14 18:07 Chaning disks from IDE to SCSI on a Windows VM Alberto Treviño
2008-04-15 6:41 ` Felix Leimbach
@ 2008-04-16 7:58 ` Elmar Haneke
1 sibling, 0 replies; 7+ messages in thread
From: Elmar Haneke @ 2008-04-16 7:58 UTC (permalink / raw)
To: kvm-devel
[-- Attachment #1: Type: text/plain, Size: 450 bytes --]
> That's it. If anyone can attest to this procedures and report, it would
> be greatly appreciated.
I did try to do so But I do get an "disk read error".
kvm is invoked via
qemu-system-x86_64 \
-m 768 \
-drive file=Vista.img,if=scsi,bus=0,index=0,media=disk,boot=on \
-net nic,model=e1000,macaddr=52:54:00:12:34:$ifnum \
-net tap,ifname=$iface,script=no \
-k de \
-usb \
-usbdevice tablet \
-monitor stdio
What's going wrong?
Elmar
[-- Attachment #2: screen.png --]
[-- Type: image/png, Size: 4574 bytes --]
[-- Attachment #3: Type: text/plain, Size: 320 bytes --]
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
[-- Attachment #4: Type: text/plain, Size: 158 bytes --]
_______________________________________________
kvm-devel mailing list
kvm-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/kvm-devel
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2008-04-16 7:58 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-04-14 18:07 Chaning disks from IDE to SCSI on a Windows VM Alberto Treviño
2008-04-15 6:41 ` Felix Leimbach
2008-04-15 6:57 ` Jun Koi
2008-04-15 16:29 ` Alberto Treviño
2008-04-16 1:28 ` Jun Koi
2008-04-16 6:09 ` Felix Leimbach
2008-04-16 7:58 ` Elmar Haneke
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox