Running Microsoft Windows inside Debian: qemu
Posted by Steve on Sun 7 Nov 2004 at 22:51
There are many legitimate reasons for a Debian GNU/Linux user to wish to run Microsoft Windows applications. One approach involves using the wine program to run a single Windows executable in a fake Windows environment. An alternative is to run an entire Windows operating system within a Debian host. Qemu is a procesor emulator and virtualization program which allows you to do just that.
Qemu is available for Debian's unstable distribution, and can be installed from the source code available on its homepage for Woody. It is comparible to the commercial software VMWare albeit with a few features missing and a lower performance.
On the plus side it is evolving fast, and doesnt require complicated setup or kernel patching. It is also free - although if you wish to run an installation of Windows you will need a valid license to do so.
Qemu is a complete CPU and peripheral emulator which can be used to run entire operating systems as a user process, supported operating systems include Linux distributions such as Debian, RedHat, SuSE, varieties of Microsoft Windows such as Windows 98, Windows 2000, and Windows XP and BSD based operating systems. There are some disk images available from the Free OS Zoo website.
Whilst it's not as fast as running an operating system directly on the same hardware because of the overhead of virtualising running as a guest operating system is suprisingly responsive on my AMD XP 2800+ machine, once the slow installation is achieved.
This brief guide will walk you through installing Windows 2000 as a guest operating system on your Debian box.
First of all you need to install qemu, by running as root:
apt-get install qemu
Once this is done we're ready to start the installation process.
As qemu is a virtualization program it doesnt touch your real discs, instead you give it a big file and tell the system to use that for it's C:.
As a simple start we'll set aside a blank 2Gb file for Windows to install into, we can create that easily enough:
skx@undecided:~$ dd of=hd.img bs=1024 seek=2000000 count=0 0+0 records in 0+0 records out 0 bytes transferred in 0.000493 seconds (0 bytes/sec)
That's given us a file called hd.img which is 2000000 bytes long, close enough to 2Gb for us to proceed.
The next thing we need to do is have a Windows 2000 CD-ROM handy, we have two choices here either place it in your CD-ROM drive, or use an ISO image.
We'll go with the former.
We want to tell the system that it's first hard drive should be the big empty file we have just created, that the CD-ROM drive should be read from the drive we have - and that it should boot from CD-ROM.
skx@undecided:~$ qemu -boot d -cdrom /dev/cdrom -hda hd.img QEMU 0.6.0 monitor - type 'help' for more information
The '-boot d' flag tells the system to boot from the CD-ROM drive we've specified, the '-hda hd.img' tells the system that the first hard drive should be the contents of the file hd.img which we created previously.
This should bring up a window upon your desktop within which you'll see Windows boot. You can click in the window to give it focus, and when you wish to return the mouse to your desktop press "Ctrl + Shift". Pressing Ctrl + Shift + f will toggle you between fullscreen and windowed mode.
Now you can sit back and install Windows as you normally would. Some parts will be very slow, other parts such as formatting the drive will be lightening fast!
Whilst using the guest operating system is acceptably responsive for me the actual installation took a couple of hours. Most of this is waiting for the thing to finish, but it's something to be aware of.
I found that when I installed Windows 2000 it seemed to go faster if I ran it fullscreen and shut down as many open programs as I could.
When it came to networking I found that Debian doesn't allow non-root users to write to the tun driver by default, as root run:
chgrp users /dev/net/tun chmod g+w /dev/net/tun
(If you don't have that device file you will need to run these commands, this assumes you're running Kernel 2.6.x)
mkdir -p /dev/net mknod /dev/net/tun c 10 200
Finally we add in the module to enable the device :
modprobe tun echo 'tun' >> /etc/modules
Now that you're installed the operating system you can create a backup of the image by simply copying the 'hd.img' file which is being used as the disk drive:
skx@undecided:~$ cp hd.img pristine.img
Any time you wish to restore back simply overwrite the hd.img with the pristine one - you'll never have to reinstall again!
Now that we've done the installation we can start the system for real with:
skx@undecided:~$ qemu -hda hd.img -boot c
From bootup to login prompt takes me 39 seconds, which is pretty impressive.
Networking should be setup properly for you in the sense that on the host machine you will have the interface tun0 setup.
Once that's done you need to setup some way for the emulated machine to talk to the world, or it's host at least.
I chose to give the host machine an IP address on it's own network. We do this by first setting up an address on the host, then on the guest.
I use 10.0.0.1 for the host, and 10.0.0.2 for the Windows system.
On the host run:
root@undecided:~# ifconfig tun0 10.0.0.1 up
Then on the host adjust the networking so that the Windows operating system has the ip address 10.0.0.2, with the gateway set to point to 10.0.0.1.
This should allow you to ping both the guest from the host, and vice versa.
If you wish the host to be able to talk to the internet generally run the following on the host:
root@undecided:~# iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE root@undecided:~# echo "1" >/proc/sys/net/ipv4/ip_forward
This is a very helpful article for me. I had always been shy of even touching this sort of thing; now that I have seen it here, I am a little more brave.
I have somewhat a different problem --i.e. the solution I need does not involve running an up-to-data OS, but plain old DOS, MS DOS 6.22.
We have a machine that runs on DOS ever since 386/486 days. Damn thing never died so I cant just replace it :) What it does is to serve G-Code data (i.e. CAM files) to a controller over a serial port. Serial port bit is easy to solve, but the it uses its own sofware communication protocol, which means I am stuck with it. And, as the vendor is long dead and gone, I ended up the one keeping the memories alive ;)
Since it is DOS, it is limited to local files only --I did try all sorts of networking possibilities but the software running on it uses every last bit of memory --i.e. NIC drivers etc will simply not fit.
So, after that long prelude, what I am looking for is a solution that lets me run DOS under, say, qemu *and* have access to a local linux partition (FAT16) so that we can handle the file transfers in Linux and DOS thing thinks it is using just another disk.
Does anyone, by any chance, know how to do this --or have pointers to how it can be done.
Thank you, again.
Cheers,
Adem
[ Parent | Reply to this comment ]
[ Parent | Reply to this comment ]
[ Parent | Reply to this comment ]
[ Parent | Reply to this comment ]
[ Parent | Reply to this comment ]
[ Parent | Reply to this comment ]
before you can do a 'ifconfig tun0 ...' you gotta
1) apt-get install uml-utilities ( this contains 'tunctl' command which we're gonna need )
2) tunctl -u 'user' -t tun0 ( to create the 'tun0' interface owned by 'user' )
3) only then 'ifconfig tun0 10.0.0.1 up' will work, otherwise you'll get
utumno:/# ifconfig tun0 10.0.0.1 up
SIOCSIFADDR: No such device
tun0: ERROR while getting interface flags: No such device
tun0: ERROR while getting interface flags: No such device
See
http://www.linode.com/forums/archive/o_t/t_764/dummy_ip_interface .html
for a longer description of this problem.
BTW, this comment-submission scripts are a bit buggy, man. I cannot type a '>' , I gotta type '& g t' without the spaces. Also, there is a problem with pasting larger blocks of text...
[ Parent | Reply to this comment ]
[ Parent | Reply to this comment ]
I have some problem to share internet connection to guest os.
The guestOs isn't windows, but I hope you can help me howeaver
I followed this instructions and both guest and host OS ping each other, but the guest os don't ping anythings else.
I added route to the guest os configuration with no result As guestos i tried both debian and openbsd.
Anyone can help me?
Thanks
ps. sorry for my bad english
[ Parent | Reply to this comment ]
[ Send Message | View Steve's Scratchpad | View Weblogs ]
Perhaps add -user-net when running qemu and seeing how that works?
Steve
-- Steve.org.uk
[ Parent | Reply to this comment ]
I need only internet netwirking and I really don't know why it don't works...
I used also a live cd as guestOS with no result, than the problem is qemu or the host system.
Any ideas?
Thanks
[ Parent | Reply to this comment ]
[ Parent | Reply to this comment ]
and user-mode net in qemu:
-net nic,vlan=0,macaddr=00:ff:22:cf:da:eb -net user,vlan=0 (or other macaddr)
Look at: http://www.cnpbagwell.com/QEMU/HomePage (section User Mode Networking)
[ Parent | Reply to this comment ]
qemu-img hd.img 2Gyour file will start empty (check it with du) and grow when you write in it, up to 2GB.
[ Parent | Reply to this comment ]
[ Parent | Reply to this comment ]
[ Parent | Reply to this comment ]
I've got a problem when I try to restart qemu, I've got a message like "NTLR ..." and the boot freeze.
Any idea ?
Thanks
Max.
P.S Excuse my English, I'm french ;).
[ Parent | Reply to this comment ]
The CVS version works perfectly for me
[ Parent | Reply to this comment ]
All seems to work fine during instalation but when windows is booting an error message appears: "disk reading error. Press ctrl+alt+supr to reboot"
I'd like to know which could be the problem. Perhaps qemu doens't like winxp or perhaps something is wrong on my system.
Anyone can help me?
[ Parent | Reply to this comment ]
(K)Ubuntu uses QEMU 0.6.1 which had this problem. Deinstall qemu with synaptic, download qemu 0.7.0 from www.qemu.org, install it and run the installation of Win XP again. Or, you can use the image you already created.
Good luck!
[ Parent | Reply to this comment ]
Any idea?
Sergio.
[ Parent | Reply to this comment ]
[ Parent | Reply to this comment ]
Anyone think this will work?
--IK
[ Parent | Reply to this comment ]
http://fabrice.bellard.free.fr/qemu/faq.html
Can I use a real disk, floppy or CDROM in QEMU ? Yes, at least with Linux. For the floppy, use /dev/fd0 as image filename. For the cdrom, use /dev/cdrom. For a real hard disk, first ensure that you have read-only permission to the device (it is very dangerous to leave write access to the device because in case of problems you can trash your hard disk). Then use /dev/hda to use the hard disk 0. As QEMU will have read-only access to the device, all the changes will be discarded at the end of the QEMU session. For more safety if you do not know the access rights of the hard disk device, always use the -snapshot option: qemu -snapshot /dev/hda
[ Parent | Reply to this comment ]
Does anyone know how to solve these problems because installation then interrupt qemu reboots.
Thanks
Marek
[ Parent | Reply to this comment ]
Thank you very much!!
[ Parent | Reply to this comment ]
[ Parent | Reply to this comment ]
[ Send Message | View Steve's Scratchpad | View Weblogs ]
Looks like there are still some copies of it around. I'm not sure which is more official/reliable:
Steve
-- Steve.org.uk
[ Parent | Reply to this comment ]
[ Parent | Reply to this comment ]
[ Parent | Reply to this comment ]
Am having the same issue.
Trying to install into the WINDOZE XP VM and am finding that the install spans two cdroms. After rebooting with the first cdrom in the tray, I eject it to put in the next one and find that it is not recognizing it.
Anyone see this?
Thanks
Rick
[ Parent | Reply to this comment ]
Running Debian inside qemu using console
[ Parent | Reply to this comment ]
[ Parent | Reply to this comment ]
[ Send Message | View Steve's Scratchpad | View Weblogs ]
What did you do, exactly?
If you ran with "--user-net" that should be sufficient. If you tried to use bridging make sure you have the bridge-utils package installed.
Did you add any routing to your gateway? Or on the host machine to allow it to route?
Steve
-- Steve.org.uk
[ Parent | Reply to this comment ]
thanks shane sspike124@earthlink.net
[ Parent | Reply to this comment ]
[ Send Message | View Steve's Scratchpad | View Weblogs ]
I'm happy to clarify things that aren't obvious from articles. I can also offer more specific assistance in other cases.
But I'm afraid I don't have the time to go through things from start to finish with every person who has problems, which probably isn't the best thing to hear if you're new at all this :S
First of all I'd suggest you run Qemu with the "--user-net" flag and see if that helps. If you followed the instructions in the comments/article you should have the "tun" module loaded, and that might be enough for you.
The manpage which you can read with "man qemu" explains what this flag does, and shows other options. If you use the user-networking you should just setup the Windows installation to have IP address 172.20.0.2, and set its gateway to 172.20.0.1. That will most likely be enough - if you don't have any complicated routing going on.
Secondly if that doesn't help I'd suggest reading the documentation on the Qemu website - there are several good pieces of documentation available there.
Steve
-- Steve.org.uk
[ Parent | Reply to this comment ]
[ Parent | Reply to this comment ]
[ Parent | Reply to this comment ]
used apt to grab qemu and install.....all was good.
Ran your commands verbatim and all was good.
Then I get to the Win2K setup piece and it tells me i don't have enough space to install Windows (says there's 0 space at all left).
Any ideas?
I used the 2GB image that you suggested to create....
Thanks,
C.
[ Parent | Reply to this comment ]
[ Send Message | View Steve's Scratchpad | View Weblogs ]
Qemu bug.
The most recent version of Qemu has a new command line option -win2k-hack. Usage is described in this Qemu documentation page.
Seems to be sporadic; I've never experienced it but some people do consistently.
Upgrade qemu and use the flag when installing and all should be well.
[ Parent | Reply to this comment ]
Thanks,
C.
[ Parent | Reply to this comment ]
Connected to host network interface: tun0
Could not open '/dev/kqemu' - QEMU acceleration layer not activated
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified
Could not initialize SDL - exiting
Not sure what's up now.
Any ideas?
C.
[ Parent | Reply to this comment ]
I found a topic at http://lists.progeny.com/archive/cl-workers/200503/msg00043.html
that suggested doing a "xhost +" in a shell as a normal user.
Did that and qemu started normally and the Win2K installer is going so far.
C.
[ Parent | Reply to this comment ]
[ Parent | Reply to this comment ]
[ Send Message | View Steve's Scratchpad | View Weblogs ]
Run "qemu -help" and the version will be displayed at the top of the output.
Compare that with the version on the Qemu website, which is currently 0.7.1.
Steve
-- Steve.org.uk
[ Parent | Reply to this comment ]
That command won't do anything.
Just gives me an "invalid option" error.
I followed the instructions verbatim.
Now I can't seem to get the newer version to back off and go back to the apt package I installed previously, if I could do so, to try to install XP instead....
C.
[ Parent | Reply to this comment ]
[ Send Message | View Steve's Scratchpad | View Weblogs ]
[ Parent | Reply to this comment ]
I suppose a different image install of XP should remedy that, but I still have lots of issues.....CDs being mounted when qemu is started, then ejected, and the next cd having to be mounted by restarting qemu.....etc....unless I'm missing something huge..
Any ideas?
C.
[ Parent | Reply to this comment ]
[ Send Message | View Steve's Scratchpad | View Weblogs ]
Sorry I've never seen problems like that.
I'd suggest a mail to one of the qemu mailing lists instead, it seems like you have it installed correctly but issues with it running after all.
Steve
-- Steve.org.uk
[ Parent | Reply to this comment ]
Installed qemu on kubuntu 6.10 (edgy), and proceeded with Windows 2000 install. Everything seems to work, including access to the network and the internet.
When I try to install something it fails. Even the service packs, or MS IE 6.
Any solution to this?
[ Parent | Reply to this comment ]
To get IE 6 installed, I created a new image from the start, using the -win2k-hack option for qemu. When the installation is finished, this parameter is not needed.
When I tried to install an application, InstallShield complains and gives an error (0x80040706). Googling the error message shows that InstallShield needs to be upgraded for applications to install.
Check here http://consumer.installshield.com/kb.asp?id=Q110641 and http://consumer.installshield.com/kb.asp?id=Q108322
Service Pack 4 still refuses to install though. It goes through the verification, and copies the file then fails with a dialog box that does not say much.
[ Parent | Reply to this comment ]
Installing Windows 2000 Service Pack 4 in QEMU gives error.
Solution:
Install Service Pack 3 first. Do NOT reboot/restart. Install Service Pack 4 immediately.
(I installed the service packs from downloads not through Windows Update).
[ Parent | Reply to this comment ]
I gather one problem both suffer from is a bug in the Windows hard disk driver, that tends to show up under virtualisation were the virtual hard disk is MUCH faster than a real one would be, hence the -win2k-hack for Qemu and a similar option for VirtualBox.
--
"It's Not Magic, It's Work"
Adam
[ Parent | Reply to this comment ]
The good news is that this bug seems to be limited to qemu running without the benefit of the kqemu accelerator. Although you can't use the -kernel-kqemu option while installing, making sure the kqemu module is available and in-use (qemu needs to be compiled to support it) seems to avoid the corruption problems and I was able to get a stable Win2000 installation that way.
Once you're installed you can make a backup of the disk image and enable -kernel-kqemu for greater speed.
[ Parent | Reply to this comment ]
Cannot initialize sdl
How can i give an user permission to sdl?( root runs it great )
[ Parent | Reply to this comment ]
Thanks for this guide, it proved MOST useful.
See our wiki page for some of the stuff that we got involved in: http://www.hants.lug.org.uk/cgi-bin/wiki.pl?LinuxHints/QemuEmulat ion
--
"It's Not Magic, It's Work"
Adam
[ Parent | Reply to this comment ]
Thanks
[ Parent | Reply to this comment ]
[ Send Message | View Steve's Scratchpad | View Weblogs ]
See the Qemu FAQ - it mentions using a real disk / partition.
"For a real hard disk, first ensure that you have read-only permission to the device (it is very dangerous to leave write access to the device because in case of problems you can trash your hard disk). Then use "-hda /dev/hda" to use the hard disk 0"
I'd expect using /dev/hda[1-9] rather than using the whole disk - but I guess the mailing list would help you ...
Steve
--
[ Parent | Reply to this comment ]
When I run the command qemu /dev/sda1 I get a window which states
Plex86/Bochs VGABios current-cvs 11 Jul 2005
This VGA/VBE Bios is released under the GNU LGPL
Please visit :
. http://bochs.sourgeforge.net
. http://www.nongnu.org/vgabios
Bochs VBE Display Adapter enabled
Bochs Bios, 1 cpu, $Revison: 1.121 $ $Date:2004/10/15 15:34:44 $
ata0 master: QEMU HARDISK ATA-2 Hard-disk (30718 MBytes)
ata0 slave: Unknown device
ata1 master: QEMU CD-ROM ATAPI-¤ CD-rom/DVD-Rom
ata1 slave: Unknown device
Booting from Hard Disk...
Then nothing seems to happen except the the cpu goes up to 100%.
I was wondering if you might have an ides or be able to point me in the right direction. I tried to find the mailing list but the only one I found was qemu-devel.
Thanks
[ Parent | Reply to this comment ]
[ Send Message | View Steve's Scratchpad | View Weblogs ]
Sorry I think this is where I give up - I've no experience with anything but disk images.
I'd be interested to know if you can boot to Linux from grub though? If so that suggests that the Windows stuff is broken, rather than the Qemu disk reading.
Steve
--
[ Parent | Reply to this comment ]
Thanks for your help
[ Parent | Reply to this comment ]
dd if=/dev/hda1 of=xp_clone.img
and then try to open it with qemu's -hda option
qemu -hda xp_clone.img
I could be horrible wrong, but I don't see why this won't work. (/me prepares for the flames)
[ Parent | Reply to this comment ]
[ Parent | Reply to this comment ]
$ fdisk -l
Disk /dev/hda: 60.0 GB, 60011642880 bytes
255 heads, 63 sectors/track, 7296 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hda1 * 1 3442 27647833+ 7 HPFS/NTFS
/dev/hda2 3443 3455 104422+ 83 Linux
/dev/hda3 3456 3709 2040255 82 Linux swap
/dev/hda4 3710 7296 28812577+ f Win95 Ext'd (LBA)
/dev/hda5 3710 7296 28812546 83 Linux
and start qemu using
qemu -hdb /dev/hda1 /usr/local/qemu/winxp.img -localtime
Worked fine so far. Only problem is that the enviroment vars for some apps are wrong. For VC6 I found the startup executable for it and right clicked on it and created a short cut on desktop. It works ok. WORD still telling me it cannot find some DLL
There is no concurrency problems as the only other use of the partition is when the pc is booted into winxp. Same goes for licence. Same goes for licence - I cannot us vc6 twice
Tony R
[ Parent | Reply to this comment ]
Now that I am trying out qemu, I create a disk image:
dd if=/dev/sda2 of=windows.img
Then I tried:
qemu windows.img -localtime -snapshot
qemu -hda /dev/sda2 -localtime -snapshot (real disk partition)
qemu /dev/sda2 -localtime -snapshot (real disk partition)
qemu -hdb /dev/sda1 windows.img -localtime (just trying different things)
Nothing worked. All displayed:
ata0 master: QEMU HARDDISK ATA-7 Hard-Disk (45559 MBytes)
ata0 slave: Unknown device
ata1 master: QEMU CD-ROM ATAPI-4 CD-Rom/DVD-Rom
ata1 slave: Unknown device
Booting from Hard Disk....
and just hang there.
I figured that /dev/sda2 does not have the boot record, so I tried:
qemu /dev/sda -localtime -snapshot
qemu -hda /dev/sda -localtime -snapshot
Again nothing work. Right below "Booting from Hard Disk....", it displayed:
GRUB _
and hang. It did not display the graphical interface, and I can't type anything.
What is going on here? Why grub hang ?
Beside the boot loader / boot record, /dev/sda2 (or windows.img) is also missing the partition table. What else is it missing? How can I add the missing items to windows.img ?
Thank you.
[ Parent | Reply to this comment ]
Thanks
Tom
[ Parent | Reply to this comment ]
-Trash
-Projekt DotNet Designs
[ Parent | Reply to this comment ]
[ Parent | Reply to this comment ]
Norberto
[ Parent | Reply to this comment ]
I used qemu-img to create an 10GB image for a new disk. I did not want to try qcow format until I had some experience, and made an assumption that there might be some performance penalty.
Using:
qemu -hda w2kmdw.img -boot d -cdrom /dev/cdrom -win2k-hack (win2k install cd)
I got the install completed for Windows 2000 using the win2k-hack. The image rebooted into a good install .img file, and I logged into the resultant image file. ..... The problem begins here.
I shutdown the emulator using windows shutdown... and then tried to reboot to C: using:
qemu w2kmdw.img -boot c -cdrom /dev/cdrom
I immediately get an
FATAL: INT18: BOOT FAILURE
from the BIOS.
Any ideas, If I don't hear back I'll trash it and start over.
Thanks for any help.
mdw ;-)
[ Parent | Reply to this comment ]
[ Parent | Reply to this comment ]
but:
lsmod:
tun 8832 1
[ Parent | Reply to this comment ]
When I login as administrator though (for the first time) it tells me
"A problem is preventing Windows from accurately checking the license for this computer. Error Code:0x800703e6"
Any help would be appreciated.
[ Parent | Reply to this comment ]
When you get this error, can't go any farther. How to solve this problem??
[ Parent | Reply to this comment ]
[ Send Message | View Steve's Scratchpad | View Weblogs ]
Googling for the error message leads to this post where it is suggested booting the copy of Windows in Safe Mode and installing Service Pack 2 will fix it.
Since A) I wrote this guide a long time ago and B) I don't have a copy of XP to experiment with thats the best advice I can offer. If it works do let us all know ..
[ Parent | Reply to this comment ]
I happened to have WinXP Service Pack 2 on CD. Some how I managed to get the cdrom to work to install it. This whole process took hours. The initial installation of the Cd was a snap. But when it came to XP doing it thing, afterwards, this is what took so long. Must of took 5 hours to finish.
After XP did all it needed to do to get SP2 installed and set up, finally restarted and went to Windows where I put in my password. And there it was, finally... Then XP had to do some more stuff with the SP2. Well after that was all over with, I was told I did not have an anti-virus protection. Ok.. so I don't... Worry about that later..
The problem I am having now, now matter what command I put in the Ubuntu Dapper Drake 6.06 terminal, I can not get the Cdrom to work.
In XP it says its working. But all that happens when I click on it is the hour glass appears and stays there.
I have googled looking through page after page of info on this, trying various commands. All I get is errors in the terminal.
I have two Cdrom's. They are hdc and hdd. Now on XP the one it shows is d. But still it don't ever work.
I have tried going into XP and adding hardware. Don't work. One screen even freezes when I do that. Which was Listing hardware on system.
So far this is as far as I have gotten. I wanted Windows inside of Linux so I could use certain programs on Win that I can not get to work on Linux. Still I can not use these programs, cause I can't use the Cd to install them. Or to even copy to Win, then I could install from there.
I don't suppose there is a way to access Ubuntu while in Windows. I have some of these programs on Linux already and could just copy and paste to Win if that is possible.
Thank you for your help...
[ Parent | Reply to this comment ]
[ Send Message | View Steve's Scratchpad | View Weblogs ]
Not too sure why it is failing, but I can't really help much more than say you should mount the CD-ROM in Linux, then use the "-cdrom /path/to/mount/point" option to use it from Windows.
If you have questions on actually using Qemu you're more likely to get help on from the qemu main website - the documentation/mailing lists will be more use than me ..
[ Parent | Reply to this comment ]
I tried these instructions with windows XP with SP2 instead of windows2000. But it takes years to install drivers. The green progress indicator bar was full, but nothing was happening. After 6 hrs i killed QEMU.
Does it work with XP or i have to use w2000 ?
--
There is no point in knocking the "closed Windows" when the door is "Open". Open your eyes, use open source software.
PLEASE VISIT & REGISTER @ "www.ossrc.org.in "
Regards,
Yogesh
[ Parent | Reply to this comment ]
I'd like to try qemu but before I do can someone pls answer this question for me...
I can see the benefit of installing foreign OS's w/ qemu in order to have concurrent systems side-by-side. However, does it make 'any' sense to do an initial 'base' install of Debian first along with qemu then instantiate another [same] Debian install within qemu?
I suspect there's a performance hit in running qemu'd os as opposed to running it in native mode on a separate partition.
The benefit of running Debian within Debian however could be that the whole image [instance] can be easily backed up.
I know there are other alternatives (eg: mondo) to do image backups as well. But would this be a more reliable form of image backup?
Thx
[ Parent | Reply to this comment ]
Could not open '/dev/kqemu' - QEMU acceleration layer not activated
and
CDROM boot failure code : 0003
Boot from CD-Rom failed
FATAL: Could not read the boot disk
I would appreciate any help
[ Parent | Reply to this comment ]
[ Parent | Reply to this comment ]
I have 2 queries .
I have dual boot with XP n debian , is it possible to boot that XP on first partition inside debian , instead of creating redundant hd.img again in debian partition ?
I tried XP ( sp2 )on stable debian using these instructions , but it was giving error
" ..spawning too fast , disabled for 5 minutes .. ". Somebody has already posted solution for this , so i tried to edit /etc/inittab but it didn't help.
any solution ?
-------------
There is no point in knocking the "closed Windows" when the door is "Open". Open your eyes, use open source software.
PLEASE VISIT & REGISTER @ "www.ossrc.org.in "
Regards,
Yogesh
[ Parent | Reply to this comment ]
Retried without kqemu and netbsd-3.1-cd: installs fine.
Loaded the kqemu module: Booting the previously installed netbsd-3.1 gor a hang...
Qemu is great but kqemu still needs some time...
[ Parent | Reply to this comment ]
I've tried running Windows in Debian using kqemu and the install went rather well. The emulation speed was not native by far, but qemu is still work in progress. The thing that stopped me from using QEmu was that I wasn't able to install the trial version of Acrobat Pro 8.
Googling for other emulator, I found VirtualBox. Wonderful little piece of free and open source software that has a very good user interface - everything is easy to configure with the graphical interface. Moreover, the emulation speed is (very very very) close to native. If you aren't happy with QEmu, you should really try VirtualBox.
[ Parent | Reply to this comment ]
-Gideon
[ Parent | Reply to this comment ]