LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 06-17-2006, 12:34 AM   #1
klem
LQ Newbie
 
Registered: Jun 2006
Posts: 4

Rep: Reputation: 0
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
 
Old 06-17-2006, 01:54 AM   #2
xode
Member
 
Registered: Aug 2003
Distribution: Mandrake 9.0; FC4; FC8; SUSE 10.3; SUSE 12.1
Posts: 551
Blog Entries: 1

Rep: Reputation: 44
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.
 
Old 06-17-2006, 03:53 AM   #3
xode
Member
 
Registered: Aug 2003
Distribution: Mandrake 9.0; FC4; FC8; SUSE 10.3; SUSE 12.1
Posts: 551
Blog Entries: 1

Rep: Reputation: 44
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)."
 
Old 06-19-2006, 05:08 AM   #4
klem
LQ Newbie
 
Registered: Jun 2006
Posts: 4

Original Poster
Rep: Reputation: 0
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

 
Old 06-19-2006, 09:59 AM   #5
xode
Member
 
Registered: Aug 2003
Distribution: Mandrake 9.0; FC4; FC8; SUSE 10.3; SUSE 12.1
Posts: 551
Blog Entries: 1

Rep: Reputation: 44
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?
 
Old 06-19-2006, 10:06 PM   #6
klem
LQ Newbie
 
Registered: Jun 2006
Posts: 4

Original Poster
Rep: Reputation: 0
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
 
Old 06-20-2006, 01:10 PM   #7
xode
Member
 
Registered: Aug 2003
Distribution: Mandrake 9.0; FC4; FC8; SUSE 10.3; SUSE 12.1
Posts: 551
Blog Entries: 1

Rep: Reputation: 44
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Qemu with kqemu support problem luke-indul Ubuntu 2 05-31-2006 02:35 PM
qemu problem with Win2k goldfish Linux - Software 7 12-10-2005 07:29 PM
Installing QEmu on Ubuntu tribalmasters Linux - Software 1 08-17-2005 04:02 PM
qemu: qemu stopped right after command exec bitpicker Linux - Software 1 03-04-2005 11:25 PM
Installing Mandrake 8.0 on W2k zosocelt Linux - Software 3 11-19-2001 05:37 PM


All times are GMT -5. The time now is 08:39 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration