LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   problem installing w2k with Qemu (https://www.linuxquestions.org/questions/linux-software-2/problem-installing-w2k-with-qemu-455576/)

klem 06-17-2006 12:34 AM

problem installing w2k with Qemu
 
I am trying to install Win2K usingQemu emulation
I have set up the image file and when I try to load the guest OS a new window opens and Plex86/Bochs Vgabios starts but i receive an error message

CD Rom boot failure error code 0003
Boot from CD rom failed
FATAL could not read the boot disk

I am trying to run it with the following line

qemu -boot d -hda Windows2000.img -localtime -net nic -net tap -m 192 -usb -soundhw sb16 /dev/cdrom /dev/hdc;/etc/qemu-ifdown


There is no activity on the CD rom during this

Does anyone have any ideas:confused:

xode 06-17-2006 01:54 AM

Try the following command line for qemu:
Code:

qemu Windows2000.img -cdrom /dev/cdrom -net none -boot d -soundhw sb16 -localtime
This worked for my windows NT 4.0 install. Once you have your windows 2000 installed, you will need to change qemu's startup command line.

If you type qemu at the shell prompt without any arguments, it will give you a list of options and a brief description of what each option does. That list should be enough for you to determine what qemu's startup line should be once your windows 2000 is installed. It should also allow you to understand what the line that I suggested above does as well. You might have noticed that I left out the network options. The reason is that those might interfere with your windows 2000 installation. You can later play with the network after you have windows 2000 installed and have come up with a qemu startup line that you know works.

xode 06-17-2006 03:53 AM

One more item from http://qemu.org/qemu-doc.html#SEC34

"Windows 2000 has a bug which gives a disk full problem during its installation. When installing it, use the `-win2k-hack' QEMU option to enable a specific workaround. After Windows 2000 is installed, you no longer need this option (this option slows down the IDE transfers)."

klem 06-19-2006 05:08 AM

Thanks for the replies but it is still no go
I tried the line as suggested by Xode and now receive the same error message but error number 0004

:Pengy:

xode 06-19-2006 09:59 AM

Let's start at the beginning. I just sense that you have to be able to get qemu to do something on your system, considering how it behaved on mine. First, what linux distribution are you using? Second, how did you install qemu (i.e. by package or by compiling and directly installing source)? Third, what version of qemu are you using?

klem 06-19-2006 10:06 PM

I found these instructions on another help site

I am using Fedora Core 4 and loaded Qemu by using YUM along with bridge-utils
I then created a 10gb partition for the guest OS (qemu-img create WindowsXP.img 10G)
Then I created the two files /etc/quemu-ifup and /etc/quemu-ifdown as shown below



#!/bin/sh
#
# script to bring up the tun device in QEMU in bridged mode
#
# This script bridges eth0 and tap0. First take eth0 down, then bring it up with IP 0.0.0.0
#
/sbin/ifdown eth0
/sbin/ifconfig eth0 0.0.0.0 up
#
# Bring up tap0 with IP 0.0.0.0, create bridge br0 and add interfaces eth0 and tap0
#
/sbin/ifconfig tap0 0.0.0.0 promisc up
/usr/sbin/brctl addbr br0
/usr/sbin/brctl addif br0 eth0
/usr/sbin/brctl addif br0 tap0
#
# As we have only a single bridge and loops are not possible, turn spanning tree protocol off
#
/usr/sbin/brctl stp br0 off
#
# Bring up the bridge with IP 10.0.0.7 and add the default route
#
/sbin/ifconfig br0 10.0.0.7 up
/sbin/route add default gw 10.0.0.2
#stop firewalls
/sbin/service firestarter stop
/sbin/service iptables stop



#!/bin/sh
#
# Script to bring down and delete bridge br0 when QEMU exits
#
# Bring down eth0 and br0
#
/sbin/ifdown eth0
/sbin/ifdown br0
/sbin/ifconfig br0 down
#
# Delete the bridge
#
/usr/sbin/brctl delbr br0
#
# bring up eth0 in "normal" mode
#
/sbin/ifup eth0
#start firewalls again
/sbin/service firestarter start
/sbin/service iptables start

xode 06-20-2006 01:10 PM

At this time, you want to get the "smart" package manager (http://labix.org/smart) because you want to be able to see what packages you have installed on your system and if there are any conflicts and the like. When getting "smart," be sure to also get the "smart-gui" extension package as well. You probably will have to use "rpm -i <package-name>" to install "smart."

Given that you are using FC4 (like me), the command line that I gave you should have worked.


All times are GMT -5. The time now is 05:19 PM.