Skip to contentSkip to conversation

winblows 2k on OSX?

Qemu-devel Jason 6 participants 14 messages Jul 22, 2004 – Jul 23, 2004

lore
Share & tools
lore

Jason

author
#0 lore raw

a friend just turned me onto the qemu and I have it installed on my powerbook running OSX. Ive run the sample linux and dos images, but how would I go about installing win2k from CD?

regards,
Jason

#1 lore raw
Quoted 3 lines · Jason

a friend just turned me onto the qemu and I have it installed on my powerbook running OSX. Ive run the sample linux and dos images, but how would I go about installing win2k from CD?

Create a disk image, e.g. w2k.img, then boot Windows 2k from the CD, e.g.:
qemu w2k.img -cdrom /dev/cdrom -boot d
I don't know what the name of the OS X CD-ROM device is; the above assumes /dev/cdrom.

After install finishes, you should be able to boot directly from the disk image, e.g.
qemu w2k.img

Signature · 2 lines
"Debian for hackers, Red Hat for suits, Slackware for loons."
--CmdrTaco <URL:http://slashdot.org/articles/99/03/22/0928207.shtml>
author
#2 lore raw

well, I was using that actually, but I just wanted to doublecheck.. I created a blank image file, and when I run that, I get

mybox:~/qemu_images root# /opt/local/bin/qemu win2k.img -cdrom /dev/disk1s0 -boot d /dev/disk1s0: Device busy
qemu: could not open hard disk image '/dev/disk1s0
mybox:~/qemu_images root#

thats after I ejected, re-inserted the win2k cdrom. Im not sure why its busy, but Im sure that /dev/disk1s0 is the CDROM on OSX.

regards,
Jason

Quoted 25 lines · Ben Pfaff
Quoted 3 lines · Jason

a friend just turned me onto the qemu and I have it installed on my powerbook running OSX. Ive run the sample linux and dos images, but how would I go about installing win2k from CD?

Create a disk image, e.g. w2k.img, then boot Windows 2k from the CD, e.g.:
qemu w2k.img -cdrom /dev/cdrom -boot d
I don't know what the name of the OS X CD-ROM device is; the above assumes /dev/cdrom.

After install finishes, you should be able to boot directly from the disk image, e.g.
qemu w2k.img

Signature · 9 lines
"Debian for hackers, Red Hat for suits, Slackware for loons."
--CmdrTaco <URL:http://slashdot.org/articles/99/03/22/0928207.shtml>



_______________________________________________
Qemu-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/qemu-devel
Signature · 5 lines
================================================
|    Jason Welsh   [email protected]        |
| http://monsterjam.org    DSS PGP: 0x5E30CC98 |
|    gpg key: http://monsterjam.org/gpg/       |
================================================
#3 lore raw
Quoted 10 lines · Jason

well, I was using that actually, but I just wanted to doublecheck.. I created a blank image file, and when I run that, I get

mybox:~/qemu_images root# /opt/local/bin/qemu win2k.img -cdrom /dev/disk1s0 -boot d /dev/disk1s0: Device busy
qemu: could not open hard disk image '/dev/disk1s0
mybox:~/qemu_images root#

thats after I ejected, re-inserted the win2k cdrom. Im not sure why its busy, but Im sure that /dev/disk1s0 is the CDROM on OSX.

I don't know how OS X works, so I don't know the correct solution for this. But if you can copy the CD-ROM to an ISO image file, then it should work to specify the ISO file as the argument to CD-ROM. This is what I always do.

Signature · 4 lines
On Perl: "It's as if H.P. Lovecraft, returned from the dead and speaking by
seance to Larry Wall, designed a language both elegant and terrifying for his
Elder Things to write programs in, and forgot that the Shoggoths didn't turn
out quite so well in the long run." --Matt Olson
author
#4 lore raw

Ok, I was thinking thats what I should do, but thanks for confirming it! ;)

Jason

Quoted 23 lines · Ben Pfaff
Quoted 10 lines · Jason

well, I was using that actually, but I just wanted to doublecheck.. I created a blank image file, and when I run that, I get

mybox:~/qemu_images root# /opt/local/bin/qemu win2k.img -cdrom /dev/disk1s0 -boot d /dev/disk1s0: Device busy
qemu: could not open hard disk image '/dev/disk1s0
mybox:~/qemu_images root#

thats after I ejected, re-inserted the win2k cdrom. Im not sure why its busy, but Im sure that /dev/disk1s0 is the CDROM on OSX.

I don't know how OS X works, so I don't know the correct solution for this. But if you can copy the CD-ROM to an ISO image file, then it should work to specify the ISO file as the argument to CD-ROM. This is what I always do.

Signature · 4 lines
On Perl: "It's as if H.P. Lovecraft, returned from the dead and speaking by
seance to Larry Wall, designed a language both elegant and terrifying for his
Elder Things to write programs in, and forgot that the Shoggoths didn't turn
out quite so well in the long run." --Matt Olson
Signature · 5 lines
================================================
|    Jason Welsh   [email protected]        |
| http://monsterjam.org    DSS PGP: 0x5E30CC98 |
|    gpg key: http://monsterjam.org/gpg/       |
================================================
#5 lore raw

Right now, it is not possible to use a live cdrom. You need to make an image.
If you directly open /dev/disk1s0, you first need to dismount it using disktool -u disk1 or the Disk Utility, but without ejecting it. In addition, a guest Windows sees it as an audio CDROM.

Quoted 44 lines · Jason

Ok, I was thinking thats what I should do, but thanks for confirming it! ;)

Jason

Quoted 23 lines · Ben Pfaff
Quoted 10 lines · Jason

well, I was using that actually, but I just wanted to doublecheck.. I created a blank image file, and when I run that, I get

mybox:~/qemu_images root# /opt/local/bin/qemu win2k.img -cdrom /dev/disk1s0 -boot d /dev/disk1s0: Device busy
qemu: could not open hard disk image '/dev/disk1s0
mybox:~/qemu_images root#

thats after I ejected, re-inserted the win2k cdrom. Im not sure why its busy, but Im sure that /dev/disk1s0 is the CDROM on OSX.

I don't know how OS X works, so I don't know the correct solution for this. But if you can copy the CD-ROM to an ISO image file, then it should work to specify the ISO file as the argument to CD-ROM. This is what I always do.

Signature · 4 lines
On Perl: "It's as if H.P. Lovecraft, returned from the dead and speaking by
seance to Larry Wall, designed a language both elegant and terrifying for his
Elder Things to write programs in, and forgot that the Shoggoths didn't turn
out quite so well in the long run." --Matt Olson
Signature · 12 lines
================================================
|    Jason Welsh   [email protected]        |
| http://monsterjam.org    DSS PGP: 0x5E30CC98 |
|    gpg key: http://monsterjam.org/gpg/       |
================================================



_______________________________________________
Qemu-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/qemu-devel
#6 lore raw
In reply to Jason

Am 22.07.2004 um 20:39 schrieb Jason:

Quoted 10 lines

well, I was using that actually, but I just wanted to doublecheck.. I created a blank image file, and when I run that, I get

mybox:~/qemu_images root# /opt/local/bin/qemu win2k.img -cdrom /dev/disk1s0 -boot d /dev/disk1s0: Device busy
qemu: could not open hard disk image '/dev/disk1s0
mybox:~/qemu_images root#

thats after I ejected, re-inserted the win2k cdrom. Im not sure why its busy, but Im sure that /dev/disk1s0 is the CDROM on OSX.

I tried booting qnx 6.2.1 with -cdrom /dev/disk1 on ibook (got device name out of system profiler) and cdrom mounted in finder. Could not access cd0 from qnx, but unmounting the cdrom drive by the finder did not eject it also!! So i guess it was used by qnx now. All of your variants with -cdrom /dev/disk xy resulted in "could not open hard disk image....", but booting with /dev/disk1 worked til "could not read boot disk" by bios-screen. I cannot try this with a bootable cd, because i justed moved and cannot find my w98 and w2k cds. But i will have a look and post....

Quoted 28 lines

regards,
Jason

Quoted 21 lines · Ben Pfaff
Quoted 3 lines · Jason

a friend just turned me onto the qemu and I have it installed on my powerbook running OSX. Ive run the sample linux and dos images, but how would I go about installing win2k from CD?

Create a disk image, e.g. w2k.img, then boot Windows 2k from the CD, e.g.:
qemu w2k.img -cdrom /dev/cdrom -boot d
I don't know what the name of the OS X CD-ROM device is; the above assumes /dev/cdrom.

After install finishes, you should be able to boot directly from the disk image, e.g.
qemu w2k.img

Signature · 2 lines
"Debian for hackers, Red Hat for suits, Slackware for loons."
--CmdrTaco <URL:http://slashdot.org/articles/99/03/22/0928207.shtml>
Quoted 20 lines
Quoted 4 lines

_______________________________________________
Qemu-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/qemu-devel

Signature · 12 lines
================================================
|    Jason Welsh   [email protected]        |
| http://monsterjam.org    DSS PGP: 0x5E30CC98 |
|    gpg key: http://monsterjam.org/gpg/       |
================================================



_______________________________________________
Qemu-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/qemu-devel

-----------------------------------------------------
Qemu on Mac OS X Tutorial
http://cordney.com/mymacintosh/doku.php?id=wiki:qemu
Please add patches and screenshots
-----------------------------------------------------

#7 lore raw

I tried running a CD straight from the block device node and it failed *every time*, irregardless of the permissions or the user I tried running QEMU from. So I'd say you can't do it, as simple as that (but I haven't tried booting straight as the root user on OS X; that might work but I seriously doubt it). Images always work, though.

André

Quoted 50 lines · René Korthaus

Am 22.07.2004 um 20:39 schrieb Jason:

Quoted 9 lines

well, I was using that actually, but I just wanted to doublecheck.. I created a blank image file, and when I run that, I get

mybox:~/qemu_images root# /opt/local/bin/qemu win2k.img -cdrom /dev/disk1s0 -boot d
/dev/disk1s0: Device busy
qemu: could not open hard disk image '/dev/disk1s0 mybox:~/qemu_images root#

Quoted 3 lines

thats after I ejected, re-inserted the win2k cdrom. Im not sure why its busy,
but Im sure that /dev/disk1s0 is the CDROM on OSX.

I tried booting qnx 6.2.1 with -cdrom /dev/disk1 on ibook (got device name out of system profiler) and cdrom mounted in finder. Could not access cd0 from qnx, but unmounting the cdrom drive by the finder did not eject it also!! So i guess it was used by qnx now. All of your variants with -cdrom /dev/disk xy resulted in "could not open hard disk image....", but booting with /dev/disk1 worked til "could not read boot disk" by bios-screen. I cannot try this with a bootable cd, because i justed moved and cannot find my w98 and w2k cds. But i will have a look and post....

Quoted 24 lines

regards,
Jason

Quoted 17 lines · Ben Pfaff
Quoted 5 lines · Jason

a friend just turned me onto the qemu and I have it installed on my powerbook
running OSX. Ive run the sample linux and dos images, but how would I go about
installing win2k from CD?

Create a disk image, e.g. w2k.img, then boot Windows 2k from the CD, e.g.:
qemu w2k.img -cdrom /dev/cdrom -boot d
I don't know what the name of the OS X CD-ROM device is; the above assumes /dev/cdrom.

After install finishes, you should be able to boot directly from the disk image, e.g.
qemu w2k.img

Signature · 3 lines
"Physics is not a religion. If it were, we'd have a much easier time
raising money"
-Leon Lenderman
#8 lore raw

Am 22.07.2004 um 21:13 schrieb André Braga:

Quoted 6 lines

I tried running a CD straight from the block device node and it failed *every time*, irregardless of the permissions or the user I tried running QEMU from. So I'd say you can't do it, as simple as that (but I haven't tried booting straight as the root user on OS X; that might work but I seriously doubt it). Images always work, though.

Someone just said some days ago, that you have to unmount the disk first, so i tried but it failed. Now i tried sudo umount /dev/disk1s1s2 and it worked. It still appears in the finder window, but clicking on it exits in an error (original not found...). Now starting Qemu with -cdrom /dev/disk1 lets the cdrom drive start running (can hear it), it lasts 3/4 seconds and qemu starts. boot failure 0003. But i guess thats because i still havent found bootable disk. Please try yourself and tell me.

Thanks.

Quoted 50 lines

André

Quoted 47 lines · René Korthaus

Am 22.07.2004 um 20:39 schrieb Jason:

Quoted 9 lines

well, I was using that actually, but I just wanted to doublecheck.. I created a blank image file, and when I run that, I get

mybox:~/qemu_images root# /opt/local/bin/qemu win2k.img -cdrom /dev/disk1s0 -boot d
/dev/disk1s0: Device busy
qemu: could not open hard disk image '/dev/disk1s0 mybox:~/qemu_images root#

Quoted 3 lines

thats after I ejected, re-inserted the win2k cdrom. Im not sure why its busy,
but Im sure that /dev/disk1s0 is the CDROM on OSX.

I tried booting qnx 6.2.1 with -cdrom /dev/disk1 on ibook (got device name out of system profiler) and cdrom mounted in finder. Could not access cd0 from qnx, but unmounting the cdrom drive by the finder did not eject it also!! So i guess it was used by qnx now. All of your variants with -cdrom /dev/disk xy resulted in "could not open hard disk image....", but booting with /dev/disk1 worked til "could not read boot disk" by bios-screen. I cannot try this with a bootable cd, because i justed moved and cannot find my w98 and w2k cds. But i will have a look and post....

Quoted 21 lines

regards,
Jason

Quoted 14 lines · Ben Pfaff
Quoted 5 lines · Jason

a friend just turned me onto the qemu and I have it installed on my powerbook
running OSX. Ive run the sample linux and dos images, but how would I go about
installing win2k from CD?

Create a disk image, e.g. w2k.img, then boot Windows 2k from the CD, e.g.:
qemu w2k.img -cdrom /dev/cdrom -boot d
I don't know what the name of the OS X CD-ROM device is; the above assumes /dev/cdrom.

Quoted 18 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

After install finishes, you should be able to boot directly from the disk image, e.g.
qemu w2k.img

Signature · 9 lines
"Physics is not a religion. If it were, we'd have a much easier time
raising money"
-Leon Lenderman


_______________________________________________
Qemu-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/qemu-devel

-----------------------------------------------------
Qemu on Mac OS X Tutorial
http://cordney.com/mymacintosh/doku.php?id=wiki:qemu
Please add patches and screenshots
-----------------------------------------------------

#9 lore raw

I did that too, because I created the CD image using 'sudo umount' and 'dd' :)

Exactly same symptoms And my CD is definitely bootable... So I still stand by my position that you can't make QEMU read the block device node for the CD-ROM yet.

Quoted 9 lines · René Korthaus

Someone just said some days ago, that you have to unmount the disk first, so i tried but it failed. Now i tried sudo umount /dev/disk1s1s2 and it worked. It still appears in the finder window, but clicking on it exits in an error (original not found...). Now starting Qemu with -cdrom /dev/disk1 lets the cdrom drive start running (can hear it), it lasts 3/4 seconds and qemu starts. boot failure 0003. But i guess thats because i still havent found bootable disk. Please try yourself and tell me.

--
"Logic: merely enables one to be wrong with authority" -Doctor Who

#10 lore raw

As I said, under Win98, I have been able to mount a CD from the block device, but it appears as an Audio CD, so I guess the problem is in the device code that does not interface correctly with Darwin. I'd like to know if somebody has been able to do it with Darwin/x86.

Lga.

Quoted 30 lines · André Braga

I did that too, because I created the CD image using 'sudo umount' and 'dd' :)

Exactly same symptoms And my CD is definitely bootable... So I still stand by my position that you can't make QEMU read the block device node for the CD-ROM yet.

Quoted 9 lines · René Korthaus

Someone just said some days ago, that you have to unmount the disk first, so i tried but it failed. Now i tried sudo umount /dev/disk1s1s2 and it worked. It still appears in the finder window, but clicking on it exits in an error (original not found...). Now starting Qemu with -cdrom /dev/disk1 lets the cdrom drive start running (can hear it), it lasts 3/4 seconds and qemu starts. boot failure 0003. But i guess thats because i still havent found bootable disk. Please try yourself and tell me.

--
"Logic: merely enables one to be wrong with authority" -Doctor Who

_______________________________________________
Qemu-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/qemu-devel

author
#11 lore raw
In reply to René Korthaus

thanks folks, Ive got win2k installing.. but it appears to hang at the "installing devices" screen.. suggestions? Ive restarted the install and tried to rescue/repair the session, but it still seems to hang at that spot. Or does it just take a ridiculously long time? ;)

Jason

#12 lore raw
Quoted 1 line · Jason

spot. Or does it just take a ridiculously long time? ;)

Umm.. yes :p) (Mine takes nearly 2 hours on a 2Ghz Athlon)

Brad

author
#13 lore raw

yes, it was VERY slow.. but I got it running.. thanks for the help folks.. keep up the great work!

Jason

Quoted 13 lines · Brad Campbell
Quoted 1 line · Jason

spot. Or does it just take a ridiculously long time? ;)

Umm.. yes :p) (Mine takes nearly 2 hours on a 2Ghz Athlon)

Brad

_______________________________________________
Qemu-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/qemu-devel

Signature · 5 lines
================================================
|    Jason Welsh   [email protected]        |
| http://monsterjam.org    DSS PGP: 0x5E30CC98 |
|    gpg key: http://monsterjam.org/gpg/       |
================================================