View Full Version : Howto: install Windows in Ubuntu Hoary for free
Lunde
June 5th, 2005, 11:12 AM
Howto install Windows in Ubuntu Hoary for free
It's not totally free, because you need a Windows Install CD.
From the start, this was in my case: How to Make Photoshop and Dreamweaver work under Ubuntu ..but read on if you need other Windows applications or Even other OS's under Ubuntu.
There are several other solutions out there, it's just a bit difficult to chooce the right one.
In this little howto we will take a brief look at some of the solutions and guide you through how to set up the free emulator that I have tested with win2000 and win98.
Before we start:
Guest = Your Operating System installed in the emulator
Host = In this case, Ubuntu Hoary
Do this at your own risk, there are know problems with different graphic cards, refresh rate and color settings.
If you notice any flickering on the screen when you change the screen resolution on the guest OS, try to shutdown first the guest, then completely reboot the host. if still it is flickering, there are probably something wrong with your graphic drivers or settings in the Xorg file.
I did this with a Fresh installation of Ubuntu Hoary Hedgehog 5.04 with 2.6.10-5 i386 kernel, Proper Nvidia drivers, Wireless Network and 768mb memory.
Please note that you preferably have some gigabites available while setting this up. I recommend taking some backups of both the guest and the host while configuring this.
First ...we will take a brief look at what I tried before I ended up with something that worked for me.
Crossover Office (Not Free)
Running Windows Programs under Linux, such as Office, Photoshop, Dreamweaver.. and lots more.
Note: Missing functions in Photoshop, unreadable menus.. supports a lot of Windows applications, but not the right for me.
Win4LinPro (Not Free)
Windows umulator for Windows2000 and WindowsXP (must be with sp2 or sp1)
Note: I tried this with WinXP, it was far from useable for my purpose, way to slow even with KQemu accelerator)
Win4Lin (Not Free)
Windows umulator for Win95 and Win98, WinME
Note: Needs a custom kernel wich is quite difficult under ubuntu, I have still not tried this, but will soon give it a go..
Qemu with KQemu (Free)
Emulator for Win95 and Win98, WinME, Win2000, WinXP, Knoppix, lot's and lots of different OS's.
Note: This is the ONE.. this is what we will go through here. I tried this with Win98, Win2000, Knoppix and will continue to try different OS's here. It is not as fast as VMware with Win2000, but it's a good free alternative.
VMware Workstation (Not Free)
Emulator for Windows all and lots of other OS's ...I had some problems with Win98.
Note: VMware is the best solution I have tried, I had a lot of trouble with crashes, screen flickering etc... but after I installed Qemu with KQemu it seems to work fine. I have no idea why and I don't think there are any relations. As long as I don't change screen resolution in the guest it's pretty stable now.
OK.. Let's start...
Step 1. RUNNING QEMU WITH WIN98
If you are just installing Win98, with the current version (qemu-0.7.0) KQemu will not work anyway, so you don't need to install it.
Win98 only, Just do:
$ apt-get install qemu
...and jump to step 2
If you deside to install Qemu with the KQemu accelerator you just need to start win98 with the extra command -no-kqemu , we will get back to this later anyway.
Step 1. RUNNING QEMU WITH KQEMU ACCELERATOR
Some of this information I ripped from: Nano Florestan at http://oui.com.br/n/content.php?article.21 a lot of the credits should go to him.
First we need to remove any previously installed Qemu and compile it with Kqemu
$ sudo apt-get remove qemu
Go to: http://fabrice.bellard.free.fr/qemu/download.html
...and download these 2 files:
1) QEMU source code (Not the binary for i386 which I took the first time, silly me)
2) QEMU Accelerator Module
0.7.0 is the current version.
$ tar zxvf qemu-0.7.0.tar.gz
The Kqemu shall be unpacked into a subdirectory of the new qemu-0.7.0 directory
$ cd qemu-0.7.0
$ tar zxvf /location of downloaded files/kqemu-0.6.2-1.tar.gz
NOTE: Some people have reported permission errors during installation, the following command will correct the problem.
$ sudo chmod -R 775 /path/to/qemu-0.7.0
You now need to make sure you have some extra packets. First make sure you have the kernel headers installed by:
$ uname -r
..this will output the kernel version
Open Synaptic package manager and search for packages called "linux-headers". Several packages start with this name. Install the one that corresponds to your processor and your kernel version.
Still in Synaptic, choose the package you have just installed, click Properties and go to the "Installed Files" tab. Write down the directory where the files were copied. In my case, they were copied to: /usr/src/linux-headers-2.6.10-5-386/
$ gedit configure
change the: kernel_path="/usr/src/linux-headers-2.6.10-5-386"
$ sudo apt-get install libsdl1.2-dev
$ sudo apt-get install zlib1g-dev
Then check that everything is correct with:
$ ./configure
If everything is correct and you recieve no errors, proceed with:
$ make
Correct output to make will go on and on and output a lot of text...
If you did'nt get any errors you are now ready to install. If you get any errors or this does'nt work at all, make sure you have a gcc compiler in your system.
Now we are ready to install:
Note: Please check AgenT's suggestion of doing checkinstall instead of make install: http://www.ubuntuforums.org/showthread.php?p=200873#post200873
$ sudo make install
If everything went ok, you can now start the qemu with the command
$ sudo modprobe kqemu
Then we need to make this start when the computer boots
$ sudo gedit /etc/init.d/bootmisc.sh
Add these lines to the end just before "exit;"
# Start Qemu with KQemu accelerator
/sbin/modprobe kqemu
mknod /dev/kqemu c 250 0 # Create the KQEMU device
chmod 666 /dev/kqemu # Make it accessible to all users
Step 2. MAKING A VIRITUAL DISK WITH QEMU
First create a directory for the guest OS's. This should be done as the user you will use while running the guest OS
$ cd /home/your username
$ mkdir Qemu
$ cd Qemu
Then we will create the virtual hard drive, in my case for Win98 I used 2 gigabyte and 3,5 gigabyte for Win2000. We set the size with the (amount)M
$ qemu-img create hd.img 3500M
Step 3. INSTALLING THE GUEST OS
So... we now have the disk and need to install something on it..
first lets hava a look at the options for booting with Qemu
-boot gives the parameter of which device to boot from.
a = floppy
d = cdrom
c = hard drive
-fda /dev/fda
will tell qemu where to find the floppy drive
-fda /path/to/your/bootdisk.img
will tell qemu to boot from a bootdisk image. You can download images from www.bootdisk.com
PS: you can download an .exe bootdisk extractor and open it with Archive Manager and extract the bootdisk image
-cdrom /dev/cdrom
will tell qemu where to find the cdrom drive.
-cdrom /path/to/your/install_cd.iso
will tell qemu to use an iso instead of your cdrom drive.
-hda /path/to/your/new/viritual/hd.img
Will tell qemu which viritual harddrive to use. you can also use secondary drive with -hdb /path/to/your/new/viritual/secondary/hd.img
So here we go... If we have a bootable install cd and just want to use the cdrom drive, this is how it goes:
$ qemu -boot d -cdrom /dev/cdrom -hda hd.img
If you need to start with different parameters, just modify and add to the end. If you install Win98, dont forget to add -no-kqemu at the end.
When the installation ask you to reboot, change the -boot d flag to -boot c for the virtual hard drive
Step 4. STARTING THE GUEST OS
Well.. we're sort of already there, again it's mostly just to change the -boot flag
$ qemu -boot c -fda /dev/fda -cdrom /dev/cdrom -hda hd.img -user-net -pci -m 256 -k en
Description of other flags used in this startup:
-k en
Keybord layout.. works with some languages
-user-net
Lets you connect to the net
-pci -m 256
Amount of memory provided the guest OS
Note: I will not go into details about networking here.. at least not yet. Internet should probably work from the guest without any modifications. To set up shared folders between the guest and the host, a tip is. Install samba, then share the folders with SMB and add the flag -smb /shared/folder to your startup command.
Step 5. PERFORMANCE TWEAKING THE GUEST OS
Before you start tweaking the guest OS.. just copy the hd.img
$ cp hd.img hd.img.backup
Now find a good performance tweek site on the net for removing all unwanted processes for your OS
Win2000: http://www.techspot.com/tweaks/win2k_services/print.shtml
EDIT: Additional information from sebdah
For you guys who wants to tweak WinXP: Check TweakXP.com (http://www.tweakxp.com), it should be everything you need!
Step 6. CREATING A LAUNCER
Now finally you may want a launcher for your new OS..
Rightclick on the panel where you want to create the launcher and choose:
Add to Panel > Custom Application Launcher >
Name: Win2000
Command: qemu -boot c -fda /dev/fda -cdrom /dev/cdrom -hda /path/to/your/hd.img -user-net -pci -m 256 -k en
Choose an icon for you new OS
Note: modify the command starter after your needs.
MISC
CHANGING CD'S IN THE GUEST
Some people have reported problems changing CD's while running the guest OS.
rcerreto has posted a solution here:
http://ubuntuforums.org/showpost.php?p=282975&postcount=256
LINKS TO USEFULL INFORMATION
http://fabrice.bellard.free.fr/qemu/index.html
http://fabrice.bellard.free.fr/qemu/qemu-doc.html
http://www.debian-administration.org/?article=40
http://oui.com.br/n/content.php?article.21
http://www.carlsonhome.net/computer_help_log.php
Free Operating System Zoo
http://free.oszoo.org/
Have fun...
Please correct me if something is wrong or can be done better.
kingzasz
June 5th, 2005, 06:12 PM
How fast is it? Would it be faster than using VNC to run windows programs? Thanks.
Arthemys
June 5th, 2005, 06:46 PM
How fast is it? Would it be faster than using VNC to run windows programs? Thanks.
I haven't used this solution yet, but I'd have to assume it'd much faster than any VNC connection. I've run WinXPsp2 inside a VMware session full screen, you almost couldn't tell there was a host OS underneath.
lleberg
June 5th, 2005, 07:05 PM
I haven't used this solution yet, but I'd have to assume it'd much faster than any VNC connection. I've run WinXPsp2 inside a VMware session full screen, you almost couldn't tell there was a host OS underneath.
One way to get a eindows-cd for free is to order a free 180 day trial CD from microsoft..
You'll never put up with windows for longer than that anyway! :D
23meg
June 5th, 2005, 07:19 PM
thanks for the detailed howto. i've been meaning to set up qemu for a while, this will perhaps get me going.
is it possible to set things up so that one can boot into the same installation of windows both natively (with grub) and in a virtualization / emulation environment such as vmware or qemu, kind of like how things work with wine? (i'm sure the short answer is "no" but.. maybe there's a "but" :) )
AgenT
June 5th, 2005, 08:16 PM
One thing you may want to add. Instead of using "make install", you could use checkinstall (apt-get install checkinstall or use Synaptic). checkinstall is the best way to install compiled programs because it will make and install deb's instead of just installing the program! This means that you will have QEMU installed as if it were installed via apt-get or Synaptic! Neat stuff! To remove all you would have to do is apt-get remove qemu or removie via Synaptic. That is, everything would be done the same way as if you were to install a deb.
Quick rundown for any source code package using configure:
./configure
make
checkinstall
In other words, just replace the step "make install" with "checkinstall". That's it!
WARNING: make sure you are not running anything that touches your apt database. This means that you should not have Synaptic open or have apt-get running while using checkinstall. This will screw up checkinstall because it will be unable to install the deb files that it makes since the resources will be used by apt-get/Synaptic.
clarke.rainey
June 6th, 2005, 12:53 AM
Could one use this to run games?.. I have been looking for a way to get away from Cedega without resorting to dual booting... I could live with running windows from ubuntu for when I want to play games...
bored2k
June 6th, 2005, 01:15 AM
Could one use this to run games?.. I have been looking for a way to get away from Cedega without resorting to dual booting... I could live with running windows from ubuntu for when I want to play games...
3D Rendering is not good in emulation..
bored2k
June 6th, 2005, 01:20 AM
One thing you may want to add. Instead of using "make install", you could use checkinstall (apt-get install checkinstall or use Synaptic). checkinstall is the best way to install compiled programs because it will make and install deb's instead of just installing the program! This means that you will have QEMU installed as if it were installed via apt-get or Synaptic! Neat stuff! To remove all you would have to do is apt-get remove qemu or removie via Synaptic. That is, everything would be done the same way as if you were to install a deb.
Quick rundown for any source code package using configure:
./configure
make
checkinstall
In other words, just replace the step "make install" with "checkinstall". That's it!
WARNING: make sure you are not running anything that touches your apt database. This means that you should not have Synaptic open or have apt-get running while using checkinstall. This will screw up checkinstall because it will be unable to install the deb files that it makes since the resources will be used by apt-get/Synaptic.
Thanks for the tip ! I did not even know checkinstall existed. Loving it :D
mulino
June 6th, 2005, 02:13 AM
What to prefer, if one has no glue which emulator to use? Why use qemu instead of wine?
benplaut
June 6th, 2005, 04:03 AM
What to prefer, if one has no glue which emulator to use? Why use qemu instead of wine?
if WINE doesn't support the programs you need to use
Lunde
June 6th, 2005, 07:05 AM
thanks for the detailed howto. i've been meaning to set up qemu for a while, this will perhaps get me going.
is it possible to set things up so that one can boot into the same installation of windows both natively (with grub) and in a virtualization / emulation environment such as vmware or qemu, kind of like how things work with wine? (i'm sure the short answer is "no" but.. maybe there's a "but" :) )
not with grub i think, but maybe if we can figure out how to mount a disk as a RW image, we can then boot up the native installation as -hda /path to image.
One thing you may want to add. Instead of using "make install", you could use checkinstall (apt-get install checkinstall or use Synaptic). checkinstall is the best way to install compiled programs because it will make and install deb's instead of just installing the program! This means that you will have QEMU installed as if it were installed via apt-get or Synaptic! Neat stuff! To remove all you would have to do is apt-get remove qemu or removie via Synaptic. That is, everything would be done the same way as if you were to install a deb.
Quick rundown for any source code package using configure:
./configure
make
checkinstall
In other words, just replace the step "make install" with "checkinstall". That's it!
WARNING: make sure you are not running anything that touches your apt database. This means that you should not have Synaptic open or have apt-get running while using checkinstall. This will screw up checkinstall because it will be unable to install the deb files that it makes since the resources will be used by apt-get/Synaptic.
Thanks! this looks like a better way of doing it..
What to prefer, if one has no glue which emulator to use? Why use qemu instead of wine?
VMware is the best I think... Qemu is to me after all I tried, the second best, there is a big difference from a native installation, but as a tool for small applications it's good I did a Photoshop job in Qemu with no problems, it's a bit slow, but better then rebooting. There are other great benefits to Qemu, like the possibuility of running testing servers like a stripped down Slackware with Apache and Mysql or the Breezy Badger Development Release. When I have more time, I will look more into the possibuilities.
...but if you only want a coupple of programs, then WIne or Crossover Office may be your solution
mulino
June 6th, 2005, 02:08 PM
VMware is the best I think... Qemu is to me after all I tried, the second best, there is a big difference from a native installation, but as a tool for small applications it's good I did a Photoshop job in Qemu with no problems, it's a bit slow, but better then rebooting. There are other great benefits to Qemu, like the possibuility of running testing servers like a stripped down Slackware with Apache and Mysql or the Breezy Badger Development Release. When I have more time, I will look more into the possibuilities.
...but if you only want a coupple of programs, then WIne or Crossover Office may be your solution
Thanks for your feedback. I have wine installed and it runs quite fast. Maybe my solution! :mrgreen: I'll give it another try..;)
Lunde
June 6th, 2005, 07:37 PM
thanks for the detailed howto. i've been meaning to set up qemu for a while, this will perhaps get me going.
is it possible to set things up so that one can boot into the same installation of windows both natively (with grub) and in a virtualization / emulation environment such as vmware or qemu, kind of like how things work with wine? (i'm sure the short answer is "no" but.. maybe there's a "but" :) )
I tried something funny, I don't have a Windows native om my PC... But I have a secondary Ubuntu on another hard drive. What I tried was to trick Qemu to think that the drive was an image by:
ln -s /dev/hdb /path/to/qemu/ubuntu.img
then use the flag -hda /path/to/qemu/ubuntu.img
..and it looks like it's reading the disk, The message is:
ata0 master: Qemu HARDDISK ATA-2 Hard-Disk (19595 MBytes)
Booting from Hard Disk...
Missing operating system_
OK I fully understand why it did'nt boot my ubuntu, the fstab would be wrong, the bootloader is somewhere on my hda, the partitions would probably have wrong names etc... but if it was a Windows on that disk, It may work. This is the closest I can get to testing this. If somebody esle tests this please leave a note here if it works.
Note: I dont know what this would do to the file system, I don't think it would do any damage, but just keep it in mind.
scrillamaan
June 6th, 2005, 08:43 PM
Has anyone tried this with XP, its the only windows disk I have handy at the moment. The QEMU site says its experimental, but been tested on version 0.5.5. No word yet on 0.70 it seems. I've seen Qemu running XP on some fedora forums, but I was wondering if anyone has gotten XP running on Ubuntu?
23meg
June 6th, 2005, 08:46 PM
lunde, that's really inspiring! i'll see if i can take it any further when i have some free time to put into this.
scrillamaan: i've heard people reporting success with running xp on debian via qemu, so it's highly probable that it's doable on ubuntu as well.
scrillamaan
June 6th, 2005, 08:56 PM
23meg, thanks and I now have something to try tonight. I'll report on my success...or failure. I can't live without paint! ;-)
hussam
June 6th, 2005, 09:28 PM
How can disable networking in qemu?
will it be disabled if I ommit -user-net or do I need to do something else?
crane
June 6th, 2005, 10:51 PM
Just wondering. If for some reason one decodes not to use that OS (guest) can it just be deleted like a folder to remove?
I was also wondering. Would a guest windows system be able to access another partition? I have a windows partition on this computer but if I install like this then could it read the other?
spacemonkey
June 7th, 2005, 12:47 AM
Just wondering. If for some reason one decodes not to use that OS (guest) can it just be deleted like a folder to remove?
I'm also wondering the same thing.
Also, checkinstall gave me an error when trying to install the debian package, but qemu seemed to install anyways, so all is well, just no deb package. Also, would it be possible to mount another partition onto the Qemu dir and store the hd.img there, as I don't have tons of space on my Ubuntu install, but have space left on my hdd to test OSes, but now I can do it without rebooting. And if I can do this, which I can't see any reason why I couldn't, would it cause any problems once I do it to just move my current hd.img to the new partition?
scrillamaan
June 7th, 2005, 02:19 AM
Well I got XP installed and it was relatively painless. Kudos to you, Lunde! Great guide. I only had to change was sudo modprobe kqemu to start qemu.
Thanks again
spacemonkey
June 7th, 2005, 02:56 AM
Any one have any clue how to use qemu to boot a windows install that's already on another hard disk? Lunde, I tried your method, and it didn't boot. It said it couldn't open the image. This would be really great if we could figure out how to do this, because I've only got one windows license, and I'd love to be able to run windows on ubuntu when I need it for certain programs, but I still want to be able to boot into it of necessary. I clean install is not a problem, it's just the licensing issue....
By the way....great how to, I've been messing with it all night. I finally get to test out all those OSes I've wanted to try without to much commitment. Thanks.
Lunde
June 7th, 2005, 04:24 AM
Any one have any clue how to use qemu to boot a windows install that's already on another hard disk? Lunde, I tried your method, and it didn't boot. It said it couldn't open the image. This would be really great if we could figure out how to do this, because I've only got one windows license, and I'd love to be able to run windows on ubuntu when I need it for certain programs, but I still want to be able to boot into it of necessary. I clean install is not a problem, it's just the licensing issue....
By the way....great how to, I've been messing with it all night. I finally get to test out all those OSes I've wanted to try without to much commitment. Thanks.
Strange Qemu said that it could'nt open the image, because it worked fine for me, or at least I had it reading the disk. I also had it reading different different partitions.
Did you make sure to give the ln -s the ending of .img
Is your disk split into partitions? maybe then you have to symlink hda1 instead of hda ..but still it should at least have read your disk
If it still won't work, I'm sure that even if you just have one license for Windows it's ok to install it twice on the same PC
Lunde
June 7th, 2005, 04:42 AM
Has anyone tried this with XP, its the only windows disk I have handy at the moment. The QEMU site says its experimental, but been tested on version 0.5.5. No word yet on 0.70 it seems. I've seen Qemu running XP on some fedora forums, but I was wondering if anyone has gotten XP running on Ubuntu?
I tried win4linPro wich also use the KQemu accelerator... works but a bit slow for using it on daily bases. I'm not sure about Qemu, but it would'nt suprise me if it was a lot faster. My Win2000 went completly OK, but it's important to strip all the processes you don't need and get rid of fading menus, heavy background pictures, maybe run without the XP theme.
But.. instead of getting a new windows version, get an VMware Workstation license because that's a good option for running XP.
If you go for trying Qemu with xp, you have to increase the memory flag in the Qemu startup command. It might give you an error, but it will also give you a suggestion of the command to run to increase it.
pdk001
June 7th, 2005, 05:07 AM
its too long HOWTO to get it for me thoguh, i will follow you step by step
AgenT
June 7th, 2005, 10:05 AM
Well I got XP installed and it was relatively painless.
Installation is the easy part, my question to you is this: does it run and boot into the desktop? The reason I ask is because mine will not boot to the desktop (the last time I tried at least) because of that stupid activation requirements. No matter what, it always says that the product is not activated properly. How about for you? Can you boot into the desktop fully activated? If so, how did you do it? Also, what kind of version of XP did you use? And was it pure XP or a special OEM version?
spacemonkey
June 7th, 2005, 02:08 PM
lunde, my set it up is like this:
I've got two hard drives, the master has windows installed on one partition, grub installed on the MBR, and two other fat32 partitions just for holding data. My slave disk has Ubuntu installed. I tried the symbolic link to both hda1, and just hda, neither worked, and both had the .img on the end. It just said it couldn't open the disk image. Didn't even begin to read from the disk.
Lunde
June 7th, 2005, 02:26 PM
lunde, my set it up is like this:
I've got two hard drives, the master has windows installed on one partition, grub installed on the MBR, and two other fat32 partitions just for holding data. My slave disk has Ubuntu installed. I tried the symbolic link to both hda1, and just hda, neither worked, and both had the .img on the end. It just said it couldn't open the disk image. Didn't even begin to read from the disk.
I've located your problem.. you have to sudo qemu..... Please keep me noticed, I'm very excited about if this works.
scrillamaan
June 7th, 2005, 02:35 PM
Installation is the easy part, my question to you is this: does it run and boot into the desktop? The reason I ask is because mine will not boot to the desktop (the last time I tried at least) because of that stupid activation requirements. No matter what, it always says that the product is not activated properly. How about for you? Can you boot into the desktop fully activated? If so, how did you do it? Also, what kind of version of XP did you use? And was it pure XP or a special OEM version?
Yes I can boot to the desktop fine, but I'm using XP Pro Corporate so activation is not really an issue. I guess thats the difference.
Lunde
June 7th, 2005, 03:30 PM
lunde, my set it up is like this:
I've got two hard drives, the master has windows installed on one partition, grub installed on the MBR, and two other fat32 partitions just for holding data. My slave disk has Ubuntu installed. I tried the symbolic link to both hda1, and just hda, neither worked, and both had the .img on the end. It just said it couldn't open the disk image. Didn't even begin to read from the disk.
I've located your problem.. you have to sudo qemu..... Please keep me noticed, I'm very excited about if this works.
I have to warn you that, if this works, you will get a lot of new hardware found because Qemu provide virtual devices. Make a backup of your system configuration before trying this.
Maybe there is a soulution in your Windows to create different hardware profiles so that you can choose between qemu boot and native boot.
spacemonkey
June 7th, 2005, 05:29 PM
I'll have to make the attempt... Although, I managed to get windows activated without any legal troubles (atleast not yet). I don't have time right now to make the backups and try it, I'll let you know as soon as I try it though.
Also, I noticed something strange when moving the .img files to a different partition like I talked about earlier. Originally, on the first ext3 partition they were on, I made a 3.5 gig image, but it didn't actually take up that amount of space on the disk, it only took up however much space was installed onto the image. After moving them to another ext3 partition however, they actually take up the amount of space that is reserved for them. So my 3.5 gig breezy .img actually takes up 3.5 gigs, when I'm not using near that much. Does anyone know how to fix this without deleting the images and creating new ones on the new partition?
AgenT
June 7th, 2005, 05:43 PM
I'll have to make the attempt... Although, I managed to get windows activated without any legal troubles (atleast not yet).
How did you get around the activation problem? How did you activate it?
spacemonkey
June 7th, 2005, 06:04 PM
Well I thought it would give me troubles, since that license had already been installed, but I just went ahead and tried the online activation anyways, and it went through just fine. I'm assuming that it checks the license to the computer, and since it's still installed on the same computer, it's ok to have multiple installations.
Lunde
June 7th, 2005, 06:34 PM
Also, I noticed something strange when moving the .img files to a different partition like I talked about earlier. Originally, on the first ext3 partition they were on, I made a 3.5 gig image, but it didn't actually take up that amount of space on the disk, it only took up however much space was installed onto the image. After moving them to another ext3 partition however, they actually take up the amount of space that is reserved for them. So my 3.5 gig breezy .img actually takes up 3.5 gigs, when I'm not using near that much. Does anyone know how to fix this without deleting the images and creating new ones on the new partition?
Only way I can think of is to create a new growable image boot from a liveCD or a third image with a good fdisk solution then do a disk copy. (-hda -hdb -cdrom or -hdc)
There is for the future also another way to create images:
$ dd of=hd.img bs=1024 seek=2000000 count=0
(Makes a 2gig disk... a bit less actually)
I've moved some of my images from ext3 to ext3 and they did'nt grow, but I think I created them with the above command
AgenT
June 7th, 2005, 06:54 PM
Well I thought it would give me troubles, since that license had already been installed, but I just went ahead and tried the online activation anyways, and it went through just fine. I'm assuming that it checks the license to the computer, and since it's still installed on the same computer, it's ok to have multiple installations.
Mine will not even boot into the desktop so I cannot even "activate" it. It refuses to log in stating that it is not activated. And the activation does not work in safe mode for whatever strange reason. Ideas?
EDIT:
Just read your previous posts and it seems that you are not actually installing XP from scratch in a QEMU img file, correct? Your XP was already installed on another partition and you are just using that in QEMU? That would of course explain it. :)
From what I understand, XP will *not* see your original hardware, but instead QEMU emulation hardware. This means that the activation and the XP install, will think it is being run on a different machine.
Lunde
June 7th, 2005, 07:56 PM
Something very intresting came up in all these replies above ..but it started to get a bit messy so I sum up here.
If Qemu is started as root or with sudo, it's possible to use a disk or a partition as a harddrive by tricking Qemu to belive that a symlink is an image.
ln -s /dev/hdb /path/to/qemu/symlink.img
then use the flag -hdb /path/to/qemu/symlink.img
So in theory it's possibe to boot into the installed OS both nativly through grub and by booting it in Ubuntu with the qemu command.
I dont have the possibuility to try this, because I only have linux on both my drives and no spare primary partition, but if anybody try, please post here the result negative or positive.
There are some issues with doing this, I'll list the ones I can think of here:
1) Qemu emulates hardware so there will be difference in the hardware configuration
2) If you link up a linux partition in Windows with -hdb Windows diskmanager will want to format it to use it.
3) I think it can create problems if you should be able to boot your own system twise at the same time
4) there is probably more, so if you can think of anything, please post it here
I suggest to do backup before trying this!
spacemonkey
June 8th, 2005, 02:50 AM
AgenT, no, I am running a clean install using Qemu, the discussion about using Qemu to run a previously installed version from hard disk is something I plan on trying, but have not yet done. I have successfully installed, booted, and activated a copy if XP all with Qemu, so honestly I have no clue why yours doesn't work. Maybe try reinstalling, perhaps something went wrong. Also, I'm running XP pro, so I'm not sure if that would matter or not.
Lunde, thanks for the info, I plan on testing this as soon as I get the chance. I need to back up everything and what not before I make the attempt.
scrillamaan
June 8th, 2005, 09:01 PM
Well, I just got sound working in XP.
Qemu emulates a sound blaster 16 sound card and I manually installed this new device through the windows add hardware wizard. I followed this guide (http://www.ubuntuforums.org/showthread.php?t=32063&highlight=audio) to get multiple sounds working. Then I ran Qemu with this option -enable-audio Hope it helps.
Qemu seems to continuously use the ALSA driver because while it is running, I cannot play any sounds in hoary due to the ALSA driver being in use.
...hopefully there is a solution
spacemonkey
June 8th, 2005, 10:30 PM
I was just about to ask about getting sound to work, thanks. Also, I'm running windows xp pro, and before I installed all the updates, it only took up about 2 gigs, now, after installing all the updates, including SP2, it takes up almost 4 gigs!! I know I didn't download that much in updates. Any tips for freeing up some space.
One more thing, anyone noticed that when the guest OS does anything that uses up more than slightly above idle amount of processing time, the processor readings on Ubuntu spike to 99% constantly, for instance, installing windows updates...which isn't to processor intensive.
EDIT:
About the CPU usage thing, I solved that by just booting with more ram, I didn't realize the defualt value was only 128. Trying to run windows xp with only 128 mb of ram is no fun.
EDIT #2:
I I freed up lots of space by removing some installed components that are useless for a Qemu install suck as outlook express, media player, messenger...all that stuff, since I've got the same thing installed on ubuntu. Check out http://www.tweakxp.com/ for some great tips to make everything run faster and save space.
Lunde
June 9th, 2005, 03:21 AM
Well, I just got sound working in XP.
Qemu emulates a sound blaster 16 sound card and I manually installed this new device through the windows add hardware wizard. I followed this guide (http://www.ubuntuforums.org/showthread.php?t=32063&highlight=audio) to get multiple sounds working. Then I ran Qemu with this option -enable-audio Hope it helps.
Qemu seems to continuously use the ALSA driver because while it is running, I cannot play any sounds in hoary due to the ALSA driver being in use.
...hopefully there is a solution
Personally I would'nt prefere sound in Qemu it slows it down a little. Anyway... Even i Ubuntu fresh install it is no possibuility to hear multiple sounds. So if you start xmms and Totem, only the first started program will hav access to sound. There is a workaround here: http://www.ubuntuforums.org/showthread.php?t=32063
Lunde
June 9th, 2005, 03:42 AM
EDIT:
About the CPU usage thing, I solved that by just booting with more ram, I didn't realize the defualt value was only 128. Trying to run windows xp with only 128 mb of ram is no fun.
EDIT #2:
I I freed up lots of space by removing some installed components that are useless for a Qemu install suck as outlook express, media player, messenger...all that stuff, since I've got the same thing installed on ubuntu. Check out http://www.tweakxp.com/ for some great tips to make everything run faster and save space.
Step 4. STARTING THE GUEST OS
Well.. we're sort of already there, again it's mostly just to change the -boot flag
$ qemu -boot c -fda /dev/fda -cdrom /dev/cdrom -hda hd.img -user-net -pci -m 256 -k en
You can also provide the geust more memory by remouting the virtual memory, how to do this is written in the terminal if you type ex: -pci -m 384
msgyrd
June 9th, 2005, 05:17 AM
not with grub i think, but maybe if we can figure out how to mount a disk as a RW image, we can then boot up the native installation as -hda /path to image.
Actually, this is quite possible, but from a different aproach. I know you can install windows like to plan to dual boot, and then load the windows partition in vmware.
I don't remember any references to it anymore, but I had VMware running windows off it's own seperate hard drive in the Hoary prerelease a few months back, so it's doable. Also, if you are willing to repartition, running the guest OS off a real disk instead of a disk image increases performance a bit.
Sorry I couldn't offer any helpful links.
Lunde
June 9th, 2005, 07:00 AM
Actually, this is quite possible, but from a different aproach. I know you can install windows like to plan to dual boot, and then load the windows partition in vmware.
I don't remember any references to it anymore, but I had VMware running windows off it's own seperate hard drive in the Hoary prerelease a few months back, so it's doable. Also, if you are willing to repartition, running the guest OS off a real disk instead of a disk image increases performance a bit.
Sorry I couldn't offer any helpful links.
I think this is the solution for Qemu: http://www.ubuntuforums.org/showthread.php?p=203652#post203652
By tricking Qemu to belive that a symlink is an image, must be done as root
Maybe this works in VMware too
RaymondQE
June 10th, 2005, 03:46 AM
Great guide Lunde!
A note for the win98 installation (step 3):
If you plan on installing windows 98 SE from the cdrom, you first must boot up a win98se floppy bootdisk using qemu, run fdisk --> creating your partition on the hard disc image, and then run the command 'format c: /s'. After that, you can boot up the cdrom using qemu and run the windows installer off of the cdrom. It installed fine for me, but I am still having problems getting the desktop to run more than 16 colors :-x
Going to try to install the win9x nvidia drivers to see if that fixes it.
Lunde
June 10th, 2005, 04:14 AM
Great guide Lunde!
A note for the win98 installation (step 3):
If you plan on installing windows 98 SE from the cdrom, you first must boot up a win98se floppy bootdisk using qemu, run fdisk --> creating your partition on the hard disc image, and then run the command 'format c: /s'. After that, you can boot up the cdrom using qemu and run the windows installer off of the cdrom. It installed fine for me, but I am still having problems getting the desktop to run more than 16 colors :-x
Going to try to install the win9x nvidia drivers to see if that fixes it.
Thanks!
Strange that you only can see 16 colors. I'm not sure if it will help installing the nvidia drivers, Qemu is simulating the hardware and it simulates a Cirrus Logic SVGA GD5446 Video card: http://fabrice.bellard.free.fr/qemu/qemu-doc.html#SEC27
Win98 should have a driver for this. I'm running win98 myself and I have no problems. Check if windows are using the right drivers for Cirrus. Are you running this on a PC?
RaymondQE
June 10th, 2005, 05:16 AM
I checked in my system properties and the display adapter was indeed the cirrus 5446 PCI. It is only when I change the display mode to 256 colors or higher do I get a screwed up screen.
screenshot:
http://www.tc.umn.edu/~ouch0004/screenshots/Screenshot.png
I am running qemu on a pc, using a geforce4 mx.
The booting command that I use is:
"qemu -boot c -hda hd.img -pci -m 256"
Lunde
June 10th, 2005, 05:38 AM
I checked in my system properties and the display adapter was indeed the cirrus 5446 PCI. It is only when I change the display mode to 256 colors or higher do I get a screwed up screen.
screenshot:
http://www.tc.umn.edu/~ouch0004/screenshots/Screenshot.png
I am running qemu on a pc, using a geforce4 mx.
The booting command that I use is:
"qemu -boot c -hda hd.img -pci -m 256"
OK I think your problem is not in Qemu, but in the linux drivers. It might be the change in the screen that triggers the error on your screen not the setting itself.
You can try to work around this problem by setting the colordept in Ubuntu to 16bit.. It works fine for me in 24bit, but I have some problems changing the screen resolution in the guest OS, my screen then flickers and I have to do a hard reboot in linux. But when I start up again everything is fine.
Option 1: Try checking that your linux screendrivers are ok, temporarly change the colordept in ubuntu and if it works fine changing the resolution in the guest then set the ubuntu color dept back.
Option 2: is to accept the new settings in the guest even tho it might look wrong, then shutdown the guest, and do a full reboot in ubuntu. Do a backup first by simply making a copy of your hd.img
Also, did you install the KQemu? if so you need to turn that off in the startup options by -no-kqemu
Hope this helps
AgenT
June 10th, 2005, 04:41 PM
Well, I just got sound working in XP.
Qemu emulates a sound blaster 16 sound card and I manually installed this new device through the windows add hardware wizard. I followed this guide (http://www.ubuntuforums.org/showthread.php?t=32063&highlight=audio) to get multiple sounds working. Then I ran Qemu with this option -enable-audio Hope it helps.
This does not seem to work for me. If I try to install SB 16 I get a message that the device is not working properly. Also, there seem to be sound devices already present, yet none of the sound options are available and the sound control panel widget says that no sound card is available. Anyone have any ideas?
Here are the *working* audio devices listed:
Audio Codecs
Legacy Audio Drivers
Media Control Devices (this maybe for video)
Video Codecs
Sound Blaster 16 or AWE32 or compatible (WDM) is listed but does not work.
Lunde
June 10th, 2005, 05:56 PM
This does not seem to work for me. If I try to install SB 16 I get a message that the device is not working properly. Also, there seem to be sound devices already present, yet none of the sound options are available and the sound control panel widget says that no sound card is available. Anyone have any ideas?
Here are the *working* audio devices listed:
Audio Codecs
Legacy Audio Drivers
Media Control Devices (this maybe for video)
Video Codecs
Sound Blaster 16 or AWE32 or compatible (WDM) is listed but does not work.
Qemu emulates the SB16 card because windows recognices this device and install the correct drivers itself. Maybe there is a problem with some early win95 I don't know.
I think your problem is Ubuntu not supporting multiple sounds and therefor can not play sound in Windows.
I think the best thing to do is to delete the drivers you tried to install, then reboot and windows will install the correct drivers itself.
Then configure Ubuntu to be able to play multiple soumds at the same time. Guide: http://www.ubuntuforums.org/showthread.php?t=32063
Hope this helps
AgenT
June 10th, 2005, 06:08 PM
Qemu emulates the SB16 card because windows recognices this device and install the correct drivers itself. Maybe there is a problem with some early win95 I don't know.
I think your problem is Ubuntu not supporting multiple sounds and therefor can not play sound in Windows.
I think the best thing to do is to delete the drivers you tried to install, then reboot and windows will install the correct drivers itself.
Then configure Ubuntu to be able to play multiple soumds at the same time. Guide: http://www.ubuntuforums.org/showthread.php?t=32063
Hope this helps
Sorry, I forgot to mention that I was using XP. Also, it is not a Ubuntu problem per-se because my problem is that Windows itself does not recognize the QEMU sound device (emulator). Rebooting and deleting the SB 16 does not help. Windows itself shows no sound card present in it's sound device widget (in control panel). Hardware detection says all current devices are installed. My problem is actually getting XP to recognize the SB 16.
Lunde
June 10th, 2005, 07:16 PM
Sorry, I forgot to mention that I was using XP. Also, it is not a Ubuntu problem per-se because my problem is that Windows itself does not recognize the QEMU sound device (emulator). Rebooting and deleting the SB 16 does not help. Windows itself shows no sound card present in it's sound device widget (in control panel). Hardware detection says all current devices are installed. My problem is actually getting XP to recognize the SB 16.
I dont know if this has something to do with your problem, I'm just trying to see if anybody else had sound trouble in XP. Worth having a look even tho its for 0.6.2:
http://lists.gnu.org/archive/html/qemu-devel/2005-02/msg00330.html
AgenT
June 10th, 2005, 10:06 PM
I finally have XP recognizing the sound card. Solution? Sort of simple (but odd):
1. install SB 16 driver and if it is disabled due to "problems" go on to 2
2. shutdown XP and QEMU
3. start XP without -enable-sound
4. shutdown XP and QEMU
5. start XP with -enable-sound
That did it for me. Strange because installing and reinstalling SB 16 did nothing but -enable-sound and restarting did. Maybe XP was not smart enough to realize that the hardware was installed until after the drivers are loaded and the hardware is "restarted". Bah.
Now all there is for me to do is actually getting sound to go from XP and into Ubuntu ;)
QUICK QEMU HINT: the -snapshot flag is your friend. This will delete all changes made to your img after you quit QEMU *unless* you specifically invoke "commit" in the QEMU console which saves your progress. Good for debuging and you do not have to worry about breaking your system :)
AgenT
June 10th, 2005, 11:19 PM
SOUND SOLUTION
(not perfect however)
There are two routes in Ubuntu Hoary that one can take to get the sound working after the OS (in this case, XP) recognizes the sound card that QEMU provides.
METHOD 1
The first one is to kill esd when using QEMU. This can be done, for example, by using the command
killall esd
Then one must start QEMU with at least these "options":
QEMU_AUDIO_DRV="oss" qemu -enable-audio
Note that one may replace oss with sdl (on this setup, both work). This way of using QEMU will make it so that no other program from GNOME will be able to use the sound card. This may be a bad thing for some.
When done, type this to get your GNOME sound back:
esd -nobeeps &
METHOD 2
This one will not kill esd but will require a lot more CPU cycles. You will need esddsp by installing esound-clients like so:
apt-get install esound-clients
Now one must start QEMU with at least these "options":
QEMU_AUDIO_DRV="sdl" esddsp -m qemu -enable-audio
Again, sdl may be replaced with oss, but only sdl works on this machine. Note the -m option. This is required on this machine. -m enables sound mixer.
esddsp is a real resource hog so this option may not work for everyone.
Fun launcher script code for QEMU for method (1):
killall esd && <your qemu command with all options> && esd -nobeeps & (replace <your qemu...> with your qemu string (duh!)
QUICK QEMU TIP: Use the savevm and loadvm options in QEMU if you do not want to boot/shutdown! Amazing time saver when you have to test something that requires QEMU to be shutdown and restarted over-and-over-and-over. savevm saves your current state, loadvm loads it. If you need to test some program (a sound file playing for example) just save right before you open up the file then you can always load up right to that spot! No booting or waiting!
Lunde
June 11th, 2005, 05:57 AM
For those of you trying to dual boot Windows inside Qemu and navitivly through a bootloader, here is how it's done with VMware 4.5, I guess the issues are the same.
http://www.vmware.com/support/ws45/doc/disks_dualboot_ws.html
And here is how it's done with VMware in Gentoo:
http://forums.gentoo.org/viewtopic-t-246371-highlight-ntfs%20vmware.html
These links also have a look at the windows configuration with multiple hardware profiles.
BerryB
June 11th, 2005, 10:22 AM
I don't know if this question belongs here, but I was wondering: Is it faster to use QEMU or WINE. And can I use my already installed dual boot windows 2000, so that if I ever boot windows again, all things are the same (and I don't have to use my Linux space)
Lunde
June 11th, 2005, 12:38 PM
I don't know if this question belongs here, but I was wondering: Is it faster to use QEMU or WINE. And can I use my already installed dual boot windows 2000, so that if I ever boot windows again, all things are the same (and I don't have to use my Linux space)
Wine is something different. I don't use wine myself because I need applications that are not supprted in Wine.
As I wrote in some earlier posts in this tread, there are issues with using your native windows. Nobody here have tried it yet, I don't use windows other then in emulators and don't have the partition to try, but I belive it's possible.
In my last post here are links to descriptions and solutions for these issues in VMware and this should be read before trying this with Qemu.
The reason for these issues are: the hardware emulated by Qemu are not the same as the hardware in your PC and therefor you need to set up different hardware profiles in Windows.
Somebody here was trying this, but we hav'nt heard from him for a while now and I'm getting a bit nervous that he crashed his whole system.. hope not
iammike
June 11th, 2005, 04:55 PM
Ok, having some compiling problems here and don't know where to go.
Here are the results of a ./configure
iammike@IAMMIKE-01:~/Desktop/qemu/qemu-0.7.0$ ./configure
Install prefix /usr/local
BIOS directory /usr/local/share/qemu
binary directory /usr/local/bin
Manual directory /usr/local/share/man
ELF interp prefix /usr/gnemul/qemu-%M
Source path /home/iammike/Desktop/qemu/qemu-0.7.0
C compiler gcc
make make
host CPU i386
host big endian no
target list i386-user arm-user armeb-user sparc-user ppc-user i386-softmmu ppc-softmmu sparc-softmmu x86_64-softmmu
gprof enabled no
static build no
SDL support yes
SDL static link no
mingw32 support no
Adlib support no
FMOD support no
kqemu support yes
KQEMU Linux module configuration:
kernel sources /usr/src/linux-headers-2.6.10-5-386
kbuild type 2.6
This is what happens when I try to run a make on it...
iammike@IAMMIKE-01:~/Desktop/qemu/qemu-0.7.0$ make
for d in i386-user arm-user armeb-user sparc-user ppc-user i386-softmmu ppc-softmmu sparc-softmmu x86_64-softmmu; do \
make -C $d all || exit 1 ; \
done
make[1]: Entering directory `/home/iammike/Desktop/qemu/qemu-0.7.0/i386-user'
gcc -Wall -O2 -g -fno-strict-aliasing -fomit-frame-pointer -I. -I/home/iammike/Desktop/qemu/qemu-0.7.0/target-i386 -I/home/iammike/Desktop/qemu/qemu-0.7.0 -I/home/iammike/Desktop/qemu/qemu-0.7.0/linux-user -I/home/iammike/Desktop/qemu/qemu-0.7.0/linux-user/i386 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -I/home/iammike/Desktop/qemu/qemu-0.7.0/fpu -I/home/iammike/Desktop/qemu/qemu-0.7.0/slirp -c -o translate-op.o /home/iammike/Desktop/qemu/qemu-0.7.0/translate-op.c
/home/iammike/Desktop/qemu/qemu-0.7.0/translate-op.c: In function `dyngen_code':/home/iammike/Desktop/qemu/qemu-0.7.0/translate-op.c:1358: error: syntax error at end of input
make[1]: *** [translate-op.o] Error 1
make[1]: Leaving directory `/home/iammike/Desktop/qemu/qemu-0.7.0/i386-user'
make: *** [all] Error 1
I'm lost and would love a pointer or 2 here...I don't compile much so I'm low on knowledge there.
Lunde
June 11th, 2005, 06:35 PM
Can you open the configure file in a text editor and post the lines here that looks like this:
if test '!' -d "$kernel_path/include" ; then
kernel_path="/usr/src/linux-headers-2.6.10-5-686"
if test '!' -d "$kernel_path/include" ; then
echo "Could not find kernel includes in /lib/modules or /usr/src/linux - cannot build the kqemu module"
kqemu="no"
fi
fi
And also, can you in terminal write
$ uname -r
and post the output here?
spacemonkey
June 11th, 2005, 07:28 PM
Lunde, if you're referring to me about the person that was trying it, no worries, I haven't crashed anything....yet. I still haven't gotten the chance to try it, as I've been busy with some other things, like classes and what not. I'm going to give those two web pages you posted a quick read and see if I can't work up the courage to give it a shot.
EDIT:
Ok, I did the reading real quick, most of it is vmware specific, but I imagine the basic idea is the same. Basically, I need to set up a new hardware profile on a host boot of windows, then create a symlink from the winxp drive to a .img file. Then boot Qemu (with sudo this time). I've never used hardware profiles in windows, so I don't know, but I assume I'll be asked at boot which profile I want to use, correct? I really wish I could get my returned dvd burner back from newegg so I can make the appropriate back ups. I suppose I could tar them and move them to my server. I'll try this tonight and let everyone know how it went.
iammike
June 11th, 2005, 07:39 PM
In the configure file...
# find the kernel path
if test -z "$kernel_path" ; then
kernel_version=`uname -r`
kernel_path="/lib/modules/$kernel_version/build"
if test '!' -d "$kernel_path/include" ; then
kernel_path="/usr/src/linux"
if test '!' -d "$kernel_path/include" ; then
echo "Could not find kernel includes in /lib/modules or /usr/src/linux - cannot build the kqemu module"
kqemu="no"
fi
fi
Output from uname -r
iammike@IAMMIKE-01:~/Desktop/qemu/qemu-0.7.0$ uname -r
2.6.10-5-386
Does that help?
spacemonkey
June 11th, 2005, 09:34 PM
I tried booting from an XP install on a harddisk, and here's what happened:
My drive set up is like this:
hda contains 3 partitions, hda1 = windows installation, hda2 and hda3, fat32 for storing data
hdb contains ubuntu and a few other partitions for data.
Grub is installed on the MBR on hda
First I made the sym link to /dev/hda1, and nothing happened. It said it was booting from harddisk like it always does when you boot Qemu, and just sat there. Nothing happened. So I made the sym link to /dev/hda, and it said:
GRUB Loading stage1.5.
GRUB loading, please wait...
Error 21
Any suggestions on what to try from here?
UPDATE:
The Grub thing was a stupid error on my part. The /boot dir is on hdb, so what I did was make another sym link to /dev/hdb, and boot qemu with -hda and -hdb, and I got to grub, then I booted windows, and it asked me which profile. I selected the one I wanted to use. Then it froze on the progress bar.
Lunde
June 12th, 2005, 04:56 AM
In the configure file...
# find the kernel path
if test -z "$kernel_path" ; then
kernel_version=`uname -r`
kernel_path="/lib/modules/$kernel_version/build"
if test '!' -d "$kernel_path/include" ; then
kernel_path="/usr/src/linux"
if test '!' -d "$kernel_path/include" ; then
echo "Could not find kernel includes in /lib/modules or /usr/src/linux - cannot build the kqemu module"
kqemu="no"
fi
fi
Output from uname -r
iammike@IAMMIKE-01:~/Desktop/qemu/qemu-0.7.0$ uname -r
2.6.10-5-386
Does that help?
OK..I've been twisting my head, it looks like you do everything correct, but you get a syntax error. this meens that there is a code error in the install files or in one of the modules needed.
Maybe there are something wrong with file permissions, or somthing went wrong unpacking the files. I suggest you unpack everything again.
first check by opening symnaptic that there are no broken packages
$ sudo apt-get install linux-headers-2.6.10-5-386
$ sudo apt-get install make
$ sudo apt-get install gcc
$ sudo apt-get install libsdl1.2-dev
$ sudo apt-get install zlib1g-dev
Note: Don't do the short version in one line, so you clearly see if there are any errors. Most likely it's just going to tell you that they are already installed, but just to make sure
Then change this line in the configure section you sent me to:
kernel_path="/usr/src/linux-headers-2.6.10-5-386"
and try agian.
..if this dont work.. I suggest you sudo the unpacking to /tmp and install as root with sudo. But if you do this I suggest you use the checkinstall described in: http://www.ubuntuforums.org/showthread.php?p=200873#post200873 so that you can uninstall through symnaptic, actually you should do this in both cases.
Hope this helps
Lunde
June 12th, 2005, 05:44 AM
The Grub thing was a stupid error on my part. The /boot dir is on hdb, so what I did was make another sym link to /dev/hdb, and boot qemu with -hda and -hdb, and I got to grub, then I booted windows, and it asked me which profile. I selected the one I wanted to use. Then it froze on the progress bar.
Hmm.. well at least it tries to boot. Good news!
Can you boot in Safemode?
Are you able to boot in command promt?
Maybe F8 works for boot options?
spacemonkey
June 12th, 2005, 02:00 PM
already tried safe mode, same thing, only it shows what it's doing as it boots...the problem is it freezes when it's loading all the drivers, and not a specific one either. I tried booting into my "guest" profile on the actual machine and disabling all the hardware, then booting from Qemu, but I still get the same thing. "Safe Mode with Command Prompt" results in the same thing.
Lunde
June 12th, 2005, 02:16 PM
already tried safe mode, same thing, only it shows what it's doing as it boots...the problem is it freezes when it's loading all the drivers, and not a specific one either. I tried booting into my "guest" profile on the actual machine and disabling all the hardware, then booting from Qemu, but I still get the same thing. "Safe Mode with Command Prompt" results in the same thing.
What about -no-kqemu ?
spacemonkey
June 12th, 2005, 07:03 PM
no change using -no-kqemu, any other suggestions?
tkiesel
June 12th, 2005, 09:22 PM
This has been an absolutely amazing thread to read. it has my wife on the cusp of using Ubuntu. Photoshop is her deal-breaker app, and Wine has some serious issues with some fine-grained scheduling in the Photoshop UI that make her brushes all but useless.
She's got a useable install of Windows Xp through Qemu/Kqemu thanks to all of the fine people in this thread. The only isse we face now is getting a chunk of hard drive space that the guest OS (Windows Xp) and the host OS (Ubuntu) can write to.
We've tried symlinking to the FAT32 partition that she stores her images on, but Windows saw it as an unformatted drive. I'm hesitant to give formatting a go, because I don't know what would happen to her data. ;)
I've tried the "-smb <dir>" swtich for Qemu, which is supposed to give the guest OS access to <dir>. The IP address that the manpage claimed would be available wasn't ping-able by Windows. Odd.
Has anyone had luck with either the -smb switch or getting the guest OS and host OS to simultaneously access a drive/partition?
Amazing work, all. And an amazing program!
iammike
June 12th, 2005, 10:56 PM
OK..I've been twisting my head, it looks like you do everything correct, but you get a syntax error. this meens that there is a code error in the install files or in one of the modules needed.
Maybe there are something wrong with file permissions, or somthing went wrong unpacking the files. I suggest you unpack everything again.
first check by opening symnaptic that there are no broken packages
$ sudo apt-get install linux-headers-2.6.10-5-386
$ sudo apt-get install make
$ sudo apt-get install gcc
$ sudo apt-get install libsdl1.2-dev
$ sudo apt-get install zlib1g-dev
Note: Don't do the short version in one line, so you clearly see if there are any errors. Most likely it's just going to tell you that they are already installed, but just to make sure
Then change this line in the configure section you sent me to:
kernel_path="/usr/src/linux-headers-2.6.10-5-386"
and try agian.
..if this dont work.. I suggest you sudo the unpacking to /tmp and install as root with sudo. But if you do this I suggest you use the checkinstall described in: http://www.ubuntuforums.org/showthread.php?p=200873#post200873 so that you can uninstall through symnaptic, actually you should do this in both cases.
Hope this helps
Thanks, that seems to have been it. I unpacked it and started over again and it's compiling as we speak. I just hope it doesn't fail after I submit this post....that would be embarassing. haha
EDIT: Well, no error compiling but now an error trying to install the debian package. I received the error while checkinstall tried to install the package and also when I did a sudo dpkg -i....here is the output.
iammike@IAMMIKE-01:~/Desktop/qemu-0.7.0$ sudo dpkg -i qemu-0.7.0_0.7.0-1_i386.deb
(Reading database ... 100486 files and directories currently installed.)
Unpacking qemu-0.7.0 (from qemu-0.7.0_0.7.0-1_i386.deb) ...
dpkg: error processing qemu-0.7.0_0.7.0-1_i386.deb (--install):
trying to overwrite `/lib/modules/2.6.10-5-386/modules.alias', which is also in package linux-image-2.6.10-5-386
dpkg-deb: subprocess paste killed by signal (Broken pipe)
Errors were encountered while processing:
qemu-0.7.0_0.7.0-1_i386.deb
KLineD
June 12th, 2005, 11:23 PM
I tried booting from an XP install on a harddisk, and here's what happened:
My drive set up is like this:
hda contains 3 partitions, hda1 = windows installation, hda2 and hda3, fat32 for storing data
hdb contains ubuntu and a few other partitions for data.
Grub is installed on the MBR on hda
First I made the sym link to /dev/hda1, and nothing happened. It said it was booting from harddisk like it always does when you boot Qemu, and just sat there. Nothing happened. So I made the sym link to /dev/hda, and it said:
GRUB Loading stage1.5.
GRUB loading, please wait...
Error 21
Any suggestions on what to try from here?
UPDATE:
The Grub thing was a stupid error on my part. The /boot dir is on hdb, so what I did was make another sym link to /dev/hdb, and boot qemu with -hda and -hdb, and I got to grub, then I booted windows, and it asked me which profile. I selected the one I wanted to use. Then it froze on the progress bar.
Weird, I'm trying exactly the same but I get different results.
I have Windows XP installed in /dev/hda1, so I made the link to /dev/hda because that's where grub is.
starting qemu with:
sudo qemu -boot c -hda /home/cesar/qemu/win.iso
gets me to the grub screen where I select Windows XP (already setup the hardware profiles) but when it tries to boot windows and grub says something about chainloader and stuff (just before the winxp logo and progressbar) qemu just spits some colorized garbage to the screen and nothing happens. I already tried with -no-kqemu also...
spacemonkey
June 12th, 2005, 11:34 PM
So you don't even get to the hardware profile selection screen?
KLineD
June 12th, 2005, 11:37 PM
Unfortunately not. But I really don't know why since the specs posted by you are pretty much the same as me.
Lunde
June 13th, 2005, 03:36 AM
I've tried the "-smb <dir>" swtich for Qemu, which is supposed to give the guest OS access to <dir>. The IP address that the manpage claimed would be available wasn't ping-able by Windows. Odd.
Has anyone had luck with either the -smb switch or getting the guest OS and host OS to simultaneously access a drive/partition?
Amazing work, all. And an amazing program!
Thanks!..
To get the -smb to work you only need to install samba for file sharing, then create a nework user.
1. http://www.ubuntuguide.org/#installsamba
2. http://www.ubuntuguide.org/#sharefolderstheeasyway
Hope this helps.
Lunde
June 13th, 2005, 03:56 AM
I see that you use .iso instead of .img, maybe this makes a difference.
Lunde
June 13th, 2005, 04:11 AM
iammike@IAMMIKE-01:~/Desktop/qemu-0.7.0$ sudo dpkg -i qemu-0.7.0_0.7.0-1_i386.deb
(Reading database ... 100486 files and directories currently installed.)
Unpacking qemu-0.7.0 (from qemu-0.7.0_0.7.0-1_i386.deb) ...
dpkg: error processing qemu-0.7.0_0.7.0-1_i386.deb (--install):
trying to overwrite `/lib/modules/2.6.10-5-386/modules.alias', which is also in package linux-image-2.6.10-5-386
dpkg-deb: subprocess paste killed by signal (Broken pipe)
Errors were encountered while processing:
qemu-0.7.0_0.7.0-1_i386.deb
I never tried the checkinstall for this. I just installed it normal. do you have a backup? if not check this out: http://www.ubuntuforums.org/showthread.php?t=35087
First you should go into Symnaptic to fix any broken packages, it will notify you when you open it if there are broken packages.
Then I would consider doing the installation the normal way.
Lunde
June 13th, 2005, 04:38 AM
Are you linking up both disks?
I think it's best to link up the disk environment as it is originally. -hda /link_to_hda.img -hdb /link_to_hdb.img. Then use boot c
all partitions under will be read as partitions. the bootloader starts in the first sectors of the primary disk, then it referes to exs: hdb1/boot/ which is now in Qemu's disk reading also hdb1/boot. then it tries to start hda etc.
Be carefull I don't know what happens if you end up starting your ubuntu becaues of timeout in the Grub menu. it might start overwriting your hardware configuration.
KLineD
June 13th, 2005, 02:27 PM
Are you linking up both disks?
I think it's best to link up the disk environment as it is originally. -hda /link_to_hda.img -hdb /link_to_hdb.img. Then use boot c
all partitions under will be read as partitions. the bootloader starts in the first sectors of the primary disk, then it referes to exs: hdb1/boot/ which is now in Qemu's disk reading also hdb1/boot. then it tries to start hda etc.
Be carefull I don't know what happens if you end up starting your ubuntu becaues of timeout in the Grub menu. it might start overwriting your hardware configuration.
Oh I just linked the disk with Winxp. I'll try and do as you said.
And yes, I was thinking about what could happen if you boot ubuntu instead of winxp. It's worth the risk If I can boot xp this way!
tkiesel
June 13th, 2005, 02:32 PM
Thanks!..
To get the -smb to work you only need to install samba for file sharing, then create a nework user.
1. http://www.ubuntuguide.org/#installsamba
2. http://www.ubuntuguide.org/#sharefolderstheeasyway
Hope this helps.
Samba was already installed. I got it working via the wonderful wikipage: http://www.ubuntulinux.org/wiki/WindowsXPUnderQemuHowTo
Turns out, we were a victim of an unclearly worded manpage for qemu. When using the switch "-smb dir", it claims that the share is available at \\smbserver\qemu (implying that no matter what dir is used, it will be available to guest os as a share named qemu), when in fact you have to look at \\smbserver\dir (where dir is the string specified in the switch).
The wiki gave a perfectly formatted Howto. Very cool, and my wife's up and running with Photoshop. There are still a few performance issues she has with the program: brush strokes sometimes appear several second safter she makes them, rendering detail work cumbersome. It's not as unusable as Photoshop through Wine, but a nice bump in performance would be useful.
What I'm on the look out for now is performance improvements.
1. I'm now very much on the prowl for guest OS tweaks to lower footprint and/or boost performance.
2. Can you make a qemu disk image in /dev/shm or another RAM-based tempfs, and then have the guest OS use this image/drive for swap? I imagine that this would offer a non-zero improvement in the speed of the guest os.
3. I can imagine that aggressive optimizations in compiling qemu/kqemu would cause some issues, but is there any wiggle room there?
These are things I'm going to start experimenting with over the next few days. #2 in particular interests me. If anyone else is willing to try these out, our collective experimentation can provide more info for this awesome Howto and the Ubuntu wiki.
Take care, everyone,
-T
KLineD
June 13th, 2005, 02:39 PM
Still getting the weird characters when trying to boot a native XP installation. I have SP2 installed in XP, maybe it has something to do ?
AgenT
June 13th, 2005, 02:40 PM
What I'm on the look out for now is performance improvements.
1. I'm now very much on the prowl for guest OS tweaks to lower footprint and/or boost performance.
2. Can you make a qemu disk image in /dev/shm or another RAM-based tempfs, and then have the guest OS use this image/drive for swap? I imagine that this would offer a non-zero improvement in the speed of the guest os.
3. I can imagine that aggressive optimizations in compiling qemu/kqemu would cause some issues, but is there any wiggle room there?
These are things I'm going to start experimenting with over the next few days. #2 in particular interests me. If anyone else is willing to try these out, our collective experimentation can provide more info for this awesome Howto and the Ubuntu wiki.
Take care, everyone,
-T
If you need better performance, why not change the guest OS? Win98 should run faster than XP (uses less memory, etc.). If it will run the applications you need, you may look into installing it. Can't hurt!
Lunde
June 13th, 2005, 05:40 PM
If you need better performance, why not change the guest OS? Win98 should run faster than XP (uses less memory, etc.). If it will run the applications you need, you may look into installing it. Can't hurt!
Win98 is not much faster, the Kqemu accelerator will not work. WIn95 is fastest, but there are lots of programs you can't run. Win2000 stripped down is the best option of all I tried.
Also note that win98 (before second edition) will not run latest Macromedia Dreamweaver, and probably a lot of other applications
spacemonkey
June 13th, 2005, 06:27 PM
KlineD, I also have SP2 installed, but I don't think that would be the issue, because I've got SP2 installed on my virtual disk install of windows as well, and I don't see what the difference would be. Strange that we have nearly identical disk setups, yet when trying to boot windows, we get different results....
Lunde
June 13th, 2005, 06:41 PM
Samba was already installed. I got it working via the wonderful wikipage: http://www.ubuntulinux.org/wiki/WindowsXPUnderQemuHowTo
Turns out, we were a victim of an unclearly worded manpage for qemu. When using the switch "-smb dir", it claims that the share is available at \\smbserver\qemu (implying that no matter what dir is used, it will be available to guest os as a share named qemu), when in fact you have to look at \\smbserver\dir (where dir is the string specified in the switch).
The wiki gave a perfectly formatted Howto. Very cool, and my wife's up and running with Photoshop. There are still a few performance issues she has with the program: brush strokes sometimes appear several second safter she makes them, rendering detail work cumbersome. It's not as unusable as Photoshop through Wine, but a nice bump in performance would be useful.
What I'm on the look out for now is performance improvements.
1. I'm now very much on the prowl for guest OS tweaks to lower footprint and/or boost performance.
2. Can you make a qemu disk image in /dev/shm or another RAM-based tempfs, and then have the guest OS use this image/drive for swap? I imagine that this would offer a non-zero improvement in the speed of the guest os.
3. I can imagine that aggressive optimizations in compiling qemu/kqemu would cause some issues, but is there any wiggle room there?
These are things I'm going to start experimenting with over the next few days. #2 in particular interests me. If anyone else is willing to try these out, our collective experimentation can provide more info for this awesome Howto and the Ubuntu wiki.
Take care, everyone,
-T
1. Set as many processes you can to manual or disabled (Search Google for Xp tweak processes) Disable background image, disable all system sound, Antivirus and firewall takes a lot of resources. I use ClamAV to scan for viruses and keep all documents for windows in the linux shared folder.
But for running XP... VMware the best solution I've tried
2. One option is to use the -m 512 or what ever you want to give the host as memory, Qemu will tell you that you have to raise the shm by:
$ sudo umount /dev/shm
$ sudo mount -t tmpfs -o size=528m none /dev/shm
If you want to do this permanent, set up the mount in /etc/fstab
3. WinXP without Kqemu I did in Win4LinPro, it was so slow before I compiled with Kqemu I'm not joking when I say it jumped to doubble speed, but still it was slow and I ripped it out fast.
My solution now:
Because I'm also dependent on photoshop. Gimp is great, but I work so much faster in photoshop. I run a stripped down Win2000 in VMware for Photoshop, Illustrator, Dreamweaver, IE and Office and it's very fast, I almost can't notice that Ubuntu is running in the background.
Cut and paste from Ubuntu to WIndows is great, feels like one big system. I surf the net with Firefox in 1 workspace, keep this forum up in another workspace, then I run windows in the third and switch with 3ddesktop (I love that app: http://desk3d.sourceforge.net/ ).
I use Qemu to run a webserver for testing. I can run both VMware and Qemu open at the same time and it works wonders. I am very happy with this solution and can recomend it to anyone developing web applications or similar.
I'm now working on a "howto" for setting up and tweaking a development workstation with Ubuntu from scratch, but it will take a while before I'm done.
AgenT
June 13th, 2005, 08:35 PM
Because I'm also dependent on photoshop. Gimp is great, but I work so much faster in photoshop. I run a stripped down Win2000 in VMware for Photoshop, Illustrator, Dreamweaver, IE and Office and it's very fast, I almost can't notice that Ubuntu is running in the background.
While probably not suitable, have you tried GIMPshop (http://plasticbugs.com/index.php?p=241)? It is a fork of GiMP that tries to make it like Photoshop (shortcuts, single window, etc.). Do note that I have never tried it because photoshop was never all that intuitive for me anyway ;-) But it may be worth a look.
tkiesel
June 14th, 2005, 12:07 AM
Thanks for the tips Lunde. I don't think we have the financial means to buy a copy of Win 2k right now, though that's certainly an attractive prospect technically speaking.
We'll be upgrading our computers to 1 GB of RAM in another two weeks also, which might help. I'm going to forge ahead with trying to mount a RAMdisk to house a disk image for Windows swap and the Photoshop scratch disk. I won't have much time to experiment with this for the next week, but when I get some results, I wil post them here.
While probably not suitable, have you tried GIMPshop (http://plasticbugs.com/index.php?p=241)? It is a fork of GiMP that tries to make it like Photoshop (shortcuts, single window, etc.). Do note that I have never tried it because photoshop was never all that intuitive for me anyway ;-) But it may be worth a look.
My reading up on GIMPshop had led me to believe that it didn't implement a single window UI.
Innnteresting. Perhaps I need to locate and compile it. (unless someone has made a Hoary i386 .deb for it.)
much love to all,
T
AgenT
June 14th, 2005, 11:20 AM
My reading up on GIMPshop had led me to believe that it didn't implement a single window UI.
Innnteresting. Perhaps I need to locate and compile it. (unless someone has made a Hoary i386 .deb for it.)
much love to all,
T
GIMPshop downloads (http://freshmeat.net/projects/gimpshop/?branch_id=57360&release_id=192296) (including rpm - look at mirror section)
Type this to create a deb from rpm:
alien <your rpm file here>
That's it! Although this is not recommended and you should only use alien as a last resort (when no good deb's exist). Also, you may need to apt-get install alien if you do not have it.
QUICK EDIT: Debian file found here (no need for alien): http://linux.suramya.com/tutorials/Install_GIMPShop/
Also you could check the backports repositories.
Lunde
June 14th, 2005, 05:58 PM
OK I tried to install Gimpshop, had to have a look. There's a toturial here: http://ubuntuforums.org/showthread.php?postid=205361#poststop
I have to warn you that it's not easy there are a lot of errors that you might end up with.
I used about 3 hours, could'nt figure out why it only changed the startup logo of gimp. Then I tried to remove it and install again and the same... Then I started it as root, wondering if there were some configuration from the old gimp under my home folder, and still the same. I frustrated started to do some drawing just to check that it worked like it did before... and actually there were some changes, The menu was more like Photoshop after I opened an image.
Photoshop key shortcuts are excelent, but dont need the GimpShop for those. Can be downloaded here: http://epierce.freeshell.org/gimp/gimp_ps.php
Overall: better, but not much. Not worth the hours, I really liked gimp the way it was. What I really miss from Photoshop are: Save for web and Actions, saves me from a lot of work.
If there only were something like Dreamweaver for Linux, I would never start windows. I tried most out there to see if I could use it, but Dreamweaver is 10 steps ahead of everything else. Actually I mostly use gedit for scripts, but every time I start a project Dreamweaver is a must.
AgenT
June 14th, 2005, 07:59 PM
If there only were something like Dreamweaver for Linux, I would never start windows. I tried most out there to see if I could use it, but Dreamweaver is 10 steps ahead of everything else. Actually I mostly use gedit for scripts, but every time I start a project Dreamweaver is a must.
My guess is that you have tried the newest version of NVU. If not, have a look. It is very early in its development however.
Lunde
June 15th, 2005, 02:47 AM
My guess is that you have tried the newest version of NVU. If not, have a look. It is very early in its development however.
Yes I have. NVU is nice, probably the best I've tried for Linux but I guess I'm a bit picky. After using these programs for many years it's hard to convert to something else.
Anyway, I guess the best option is to boot Windows inside Ubuntu, the best of both worlds. There are a lot of other programs I also need, like Illustrator, indesign, Flash, etc.
jakew1991
June 15th, 2005, 05:10 AM
I got this working before, but then I re-installed Ubuntu because I was going to try to emulate Ubuntu under Windows instead of Windows under Ubuntu, but it didn't work, so now I'm back on Ubuntu.
However, there are two errors that come up. During the ./config it comes up with the error "big/little check failed", and when I attempted to build it, the very first file came up with error "Command not found."
EDIT: If anyone has gotten this error, you can fix it by installing the newer version of GCC from the package manager.
- jake
lonetree
June 15th, 2005, 01:45 PM
Hey, seems that I have run into this problem too, below is my result,
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
big/little test failed
Install prefix /usr/local
BIOS directory /usr/local/share/qemu
binary directory /usr/local/bin
Manual directory /usr/local/share/man
ELF interp prefix /usr/gnemul/qemu-%M
Source path /home/newuser/Desktop/qemu-0.7.0
C compiler gcc
make make
host CPU i386
host big endian no
target list i386-user arm-user armeb-user sparc-user ppc-user i386-softmmu ppc-softmmu sparc-softmmu x86_64-softmmu
gprof enabled no
static build no
SDL support no
mingw32 support no
Adlib support no
FMOD support no
kqemu support yes
KQEMU Linux module configuration:
kernel sources /usr/src/linux-headers-2.6.10-5-386
kbuild type 2.6
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Already installed GCC the newest I suppose, however, did not remove the old ones.
So, could this be the problem why it still can't do the ./configure?
Anyone has got this problem? Please help
AgenT
June 15th, 2005, 02:01 PM
Hey, seems that I have run into this problem too, below is my result,
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
big/little test failed
Install prefix /usr/local
BIOS directory /usr/local/share/qemu
binary directory /usr/local/bin
Manual directory /usr/local/share/man
ELF interp prefix /usr/gnemul/qemu-%M
Source path /home/newuser/Desktop/qemu-0.7.0
C compiler gcc
make make
host CPU i386
host big endian no
target list i386-user arm-user armeb-user sparc-user ppc-user i386-softmmu ppc-softmmu sparc-softmmu x86_64-softmmu
gprof enabled no
static build no
SDL support no
mingw32 support no
Adlib support no
FMOD support no
kqemu support yes
KQEMU Linux module configuration:
kernel sources /usr/src/linux-headers-2.6.10-5-386
kbuild type 2.6
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Already installed GCC the newest I suppose, however, did not remove the old ones.
So, could this be the problem why it still can't do the ./configure?
Anyone has got this problem? Please help
First, read the FAQ and Documentation (and search the QEMU forum) as it may help. QEMU HOMEPAGE (http://fabrice.bellard.free.fr/qemu/).
From the FAQ (may or may not help you):
QEMU does not compile. Why ?
It is likely that you are using GCC 4.x: it is currently not supported by QEMU. You must use GCC 3.x.
BKonkle
June 26th, 2005, 07:35 PM
Hi, I just wanted to comment that I got KQemu running with Windows XP Pro very easily, without a hitch. The only thing that didn't work was using "checkinstall" instead of "make install". I played around with it, and then decided to move on and just use "make install".
The speed is fine since I just intend to use it for Photoshop and Dreamweaver.
I'm very impressed. Very very impressed.
Edit: Okay, here's another problem I'm working on. I can't connect to the internet. The status reports "Invalid IP Address". . . I'm figuring it must have something to do with my router. I'm looking into it. . .
Edit: After pouring over endless documents and forums, I simply closed Qemu and opened it back up. Go figure. . . networking is completely fine now.
Quest-Master
June 26th, 2005, 10:00 PM
FATAL: Error inserting kqemu (/lib/modules/2.6.10-4-686/misc/kqemu.ko): Invalid module format
When trying to modprobe kqemu with and without sudo.. :( I've almost lost all hope of QEMU and VMware.
Lunde
June 27th, 2005, 04:20 AM
Hi, I just wanted to comment that I got KQemu running with Windows XP Pro very easily, without a hitch. The only thing that didn't work was using "checkinstall" instead of "make install". I played around with it, and then decided to move on and just use "make install".
The speed is fine since I just intend to use it for Photoshop and Dreamweaver.
I'm very impressed. Very very impressed.
Edit: Okay, here's another problem I'm working on. I can't connect to the internet. The status reports "Invalid IP Address". . . I'm figuring it must have something to do with my router. I'm looking into it. . .
Edit: After pouring over endless documents and forums, I simply closed Qemu and opened it back up. Go figure. . . networking is completely fine now.
Nice to hear that your're pleased and everything is fine.
Lunde
June 27th, 2005, 04:38 AM
When trying to modprobe kqemu with and without sudo.. :( I've almost lost all hope of QEMU and VMware.
Did you get any errors during ./configure or make?
Have you in the past upgraded your kernel? I can see your are on 2.6.10-4-686, maybe you have more then 1 kernel and compiled for the wrong one.
Can you do a:
$ uname -a
and post the output here?
You also have problems with VMware?
sebdah
June 27th, 2005, 06:33 AM
Thanks for a very well written HOWTO, Lunde!
For you guys who wants to tweak WinXP: Check TweakXP.com (http://www.tweakxp.com), it should be everything you need!
Lunde
June 27th, 2005, 08:03 AM
Thanks for a very well written HOWTO, Lunde!
For you guys who wants to tweak WinXP: Check TweakXP.com (http://www.tweakxp.com), it should be everything you need!
Thanks, I've added this in the howto.
Lupine
June 27th, 2005, 11:16 AM
First off, thanks for this very detailed HOWTO.....awesome work!
I was wondering if you or anyone else can give a step by step addition on how to get networking working to the point that the Guest OS (Win2k) can see the Ubuntu host and the rest of the internet. I've read over all the searches on Ubuntu for "tun" "qemu" and a few others, but I just can't get this Guest on the net :???:
I've tried to go to the Qemu mailing list, but their server seems to be down (for a few days now).
This is what I've done so far:
Host Ubuntu networking info:
IP: 192.168.5.100
Gateway: 192.168.5.1
Has access to Internet and local 192.168.5.x network
1.) Followed this HOWTO and I have a working Winblows2k install
2.) On Ubuntu host laptop, I've ran the following:
tunctl -u myuser tun0
sudo ifconfig tun0 192.168.254.254 up
sudo iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
sudo sh -c "echo 1 > /proc/sys/net/ipv4/ip_forward"
3.) On the Win2k Guest I statically set IP info as:
IP: 192.168.254.100
Gateway: 192.168.254.254
That's about all the documentaton I could put together, but I still can't get Win2k Virtual PC (192.168.254.100) to ping Ubuntu Host PC (192.168.254.254). Where did I go wrong?
TIA,
-Lup
Lunde
June 27th, 2005, 11:33 AM
Do you use a software firewall like firestarter? if so, you must allow the guest IP to access the host and allow Ping.
I'm not sure if 192.168.5.100 is the IP the guest recognice as your host, try to set DHCP in guest and and see what IP you get, then the host IP is the same with 1 in the end, I think this also goes for you gateway.
Internet should work out of the box, try to reboot the host, it's been suggested to help in some cases.
You do set the flag -user-net I assume
Quest-Master
June 27th, 2005, 11:40 AM
Did you get any errors during ./configure or make?
Have you in the past upgraded your kernel? I can see your are on 2.6.10-4-686, maybe you have more then 1 kernel and compiled for the wrong one.
Can you do a:
$ uname -a
and post the output here?
You also have problems with VMware?
I didn't get any errors during ./configure or make.
This is the output of uname -a.
Linux ubuntu 2.6.10-4-686 #1 Sat Mar 12 11:12:34 GMT 2005 i686 GNU/Linux
Also, in VMware, it can't find the sources to build a vmmon module.
Lunde
June 27th, 2005, 12:04 PM
I didn't get any errors during ./configure or make.
This is the output of uname -a.
Also, in VMware, it can't find the sources to build a vmmon module.
Some cut & paste that might help
This is about the 2.6.10-4 kernel:
If you want to compile vmmon under Ubuntu kernel you need to install kernel-headers for your kernel / achitecture.Didn't work. vmware-config.pl requires a compiled kernel tree containing some directories that are created during compilation (and that doesn't come with linux-headers). I couldn't recompile the original kernel using the headers either.
Do you have a reason for not updating your kernel? I think there are some fixes because I had no problem with the 2.6.10-5-686 kernel. Are you on Warty?
Quest-Master
June 27th, 2005, 12:15 PM
Some cut & paste that might help
This is about the 2.6.10-4 kernel:
If you want to compile vmmon under Ubuntu kernel you need to install kernel-headers for your kernel / achitecture.Didn't work. vmware-config.pl requires a compiled kernel tree containing some directories that are created during compilation (and that doesn't come with linux-headers). I couldn't recompile the original kernel using the headers either.
Do you have a reason for not updating your kernel? I think there are some fixes because I had no problem with the 2.6.10-5-686 kernel. Are you on Warty?
Hmm.. I DO need to upgrade my kernel then. Thanks.
Lupine
June 27th, 2005, 01:02 PM
DOH ](*,)
Nevermind!!! ICMP is shut off by default. I think I read that somewhere too....I'm an idiot! For the rest of the world, don't waste your time like I've done....try and map a drive, surf the web, FTP....ANYTHING besides pinging your host, and tada....it works. :-x
Thanks again for this great HOWTO!
Lunde
June 27th, 2005, 01:10 PM
DOH ](*,)
Nevermind!!! ICMP is shut off by default. I think I read that somewhere too....I'm an idiot! For the rest of the world, don't waste your time like I've done....try and map a drive, surf the web, FTP....ANYTHING besides pinging your host, and tada....it works. :-x
Thanks again for this great HOWTO!
Glad to hear it's working, Have fun
Lunde
June 27th, 2005, 01:17 PM
Hmm.. I DO need to upgrade my kernel then. Thanks.
it should go quite painless, make sure to check if you have something else compiled under your current kernel before upgrading, like Nvidia drivers and other special hardware drivers
Quest-Master
June 27th, 2005, 01:37 PM
it should go quite painless, make sure to check if you have something else compiled under your current kernel before upgrading, like Nvidia drivers and other special hardware drivers
My X is dead now, after that upgrade, hehe.. will have to sort that out before even trying to get QEmu working.
Lunde
June 27th, 2005, 03:03 PM
My X is dead now, after that upgrade, hehe.. will have to sort that out before even trying to get QEmu working.
Are you using the Nvidia drivers?
Quest-Master
June 27th, 2005, 03:28 PM
Are you using the Nvidia drivers?
Nope. Nothing special like that.
AgenT
June 27th, 2005, 05:24 PM
My X is dead now, after that upgrade, hehe.. will have to sort that out before even trying to get QEmu working.
What does it say when it dies? Look at the log in /var/cache/log/.
More than likely you are now missing new video card modules. Did you install any video card modules (sometimes referred to as "drivers") yourself such ati, nvidia, etc.? If so, you may have to reinstall them.
Lunde
June 27th, 2005, 05:52 PM
Can you post the "section device" output from /etc/X11/xorg.conf ?
and if you have any old xorg.conf.backup or .bak or similuar in case you took a backup of it from when it first was changed.
Quest-Master
June 27th, 2005, 08:19 PM
Can you post the "section device" output from /etc/X11/xorg.conf ?
and if you have any old xorg.conf.backup or .bak or similuar in case you took a backup of it from when it first was changed.
Section "Device"
Identifier "Intel Corporation 82845G/GL[Brookdale-G]/GE Chipset Integrated Graphics Device"
Driver "i810"
BusID "PCI:0:2:0"
EndSection
And AgenT, the error is:
X: cannot stat /etc/X11/X (input/output error), aborting.
I also get lots of errors about modprobe apm and /etc/rcS.d/someweirdmodulegoeshere.
AgenT
June 27th, 2005, 09:16 PM
And AgenT, the error is:
X: cannot stat /etc/X11/X (input/output error), aborting.
I also get lots of errors about modprobe apm and /etc/rcS.d/someweirdmodulegoeshere.
That is the first time that /etc/X11/X was ever mentioned to me. I never knew it existed. The other distro I used did not have this (then again, it may have had a different version of xorg). And why would a binary file be in /etc/? That is strange. You could try reinstalling xorg, although that will probably not help. Also, you are in Hoary, right?
Are you sure you have the right kernel for your system? Don't mix Hoary and Warty kernels.
Are you positive that you did not install any extra packages/programs that install extra modules? Whether that would be video card modules or others (your apm error is strange). Also, did you get any errors when installing these new sources?
A list of forum topics that may help:
http://www.ubuntuforums.org/showthread.php?t=43271
http://www.ubuntuforums.org/showthread.php?t=44500
http://www.ubuntuforums.org/showthread.php?t=43835
http://www.ubuntuforums.org/showthread.php?t=43360
But I have never upgraded a kernel that was not done by hand (compiled) so I may not be able to help you here.
Also, you should probably post your whole xorg config because that will give more hints (what module you used, etc.). But don't post the comments. Instead, do this (this should be mandatory for everyone posting configs) in the terminal:
cat /etc/X11/xorg.conf | sed -e '/^\(\t\| \)*#.*\|^\(\t\| \)*$/d' -e 's/\(.*\)#.*/\1/'
And paste the results.
For anyone interested, you can make this a program/script for easy usage by adding it into your /usr/local/bin/ directory:
#!/bin/bash
sed -e '/^\(\t\| \)*#.*\|^\(\t\| \)*$/d' -e 's/\(.*\)#.*/\1/' "$@"
Quest-Master
June 28th, 2005, 02:03 PM
Section "Files"
FontPath "unix/:7100" # local font server
FontPath "/usr/lib/X11/fonts/misc"
FontPath "/usr/lib/X11/fonts/cyrillic"
FontPath "/usr/lib/X11/fonts/100dpi/:unscaled"
FontPath "/usr/lib/X11/fonts/75dpi/:unscaled"
FontPath "/usr/lib/X11/fonts/Type1"
FontPath "/usr/lib/X11/fonts/CID"
FontPath "/usr/lib/X11/fonts/Speedo"
FontPath "/usr/lib/X11/fonts/100dpi"
FontPath "/usr/lib/X11/fonts/75dpi"
FontPath "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
FontPath "/var/lib/defoma/x-ttcidfont-conf.d/dirs/CID"
EndSection
Section "Module"
Load "GLcore"
Load "bitmap"
Load "dbe"
Load "ddc"
Load "dri"
Load "extmod"
Load "freetype"
Load "glx"
Load "int10"
Load "record"
Load "speedo"
Load "type1"
Load "v4l"
Load "vbe"
Load "xtt"
EndSection
Section "InputDevice"
Identifier "Generic Keyboard"
Driver "keyboard"
Option "CoreKeyboard"
Option "XkbRules" "xfree86"
Option "XkbModel" "pc104"
Option "XkbLayout" "us"
EndSection
Section "InputDevice"
Identifier "Configured Mouse"
Driver "mouse"
Option "CorePointer"
Option "Device" "/dev/input/mice"
Option "Protocol" "ImPS/2"
Option "Emulate3Buttons" "true"
Option "ZAxisMapping" "4 5"
EndSection
Section "Device"
Identifier "Intel Corporation 82845G/GL[Brookdale-G]/GE Chipset Integrated Graphics Device"
Driver "i810"
BusID "PCI:0:2:0"
EndSection
Section "Monitor"
Identifier "MX70"
HorizSync 30-70
VertRefresh 47-120
Option "DPMS"
EndSection
Section "Screen"
Identifier "Default Screen"
Device "Intel Corporation 82845G/GL[Brookdale-G]/GE Chipset Integrated Graphics Device"
Monitor "MX70"
DefaultDepth 24
SubSection "Display"
Depth 1
Modes "1280x1024" "1024x768" "832x624" "800x600" "720x400" "640x480"
EndSubSection
SubSection "Display"
Depth 4
Modes "1280x1024" "1024x768" "832x624" "800x600" "720x400" "640x480"
EndSubSection
SubSection "Display"
Depth 8
Modes "1280x1024" "1024x768" "832x624" "800x600" "720x400" "640x480"
EndSubSection
SubSection "Display"
Depth 15
Modes "1280x1024" "1024x768" "832x624" "800x600" "720x400" "640x480"
EndSubSection
SubSection "Display"
Depth 16
Modes "1280x1024" "1024x768" "832x624" "800x600" "720x400" "640x480"
EndSubSection
SubSection "Display"
Depth 24
Modes "1280x1024" "1024x768" "832x624" "800x600" "720x400" "640x480"
EndSubSection
EndSection
Section "ServerLayout"
Identifier "Default Layout"
Screen "Default Screen"
InputDevice "Generic Keyboard"
InputDevice "Configured Mouse"
EndSection
Section "DRI"
Mode 0666
EndSection
Also, I get the same error about stat'ing X when trying to remove, reinstall, or dpkg-reconfigure xserver-xorg.
Lunde
June 28th, 2005, 03:07 PM
I don't know really, but this is just an idea...
Your driver is i810, the i810 has a unified memory architecture and uses system memory for video ram. By default 8 Megabytes of system memory are used for graphics.
If something is wrong with this driver, it might give other errors too since it's reserving system memory.
So, do you know the name of your graphics card? Installing the correct driver may help.
Since you said you did'nt install any special drivers, it is probably recogniced by the Ubuntu installer so I looked in synaptics and found the following
Discription of the packet i810switch from synaptics
-------------------------------------------------------------------------------------------------------------
Enables/disables video output to CRT/LCD on i810 video hardware
i810switch enables/disables the output to the CRT display and LCD,
depending on the i810 graphics controller hardware. Such hardware is found
on some laptops (eg, Sony Vaios, some Dell models, etc). Chipsets also
supported include i855, i830, i845.
This package includes the i810rotate script, which toggles the output
between three states: LCD only, LCD + CRT, and CRT only.
---------------------------------------------------------------------------------------------------------------
$ sudo apt-get remove i810switch
$ sudo apt-get install i810switch
Maybe this will help.
I also think we should move this problem to a seperate tread, It will be visible to more people there and it may be other that know more and can provide an easy solution to your problem.
Just post the url to your tread here after and I will see if I can halp you more from there.
Quest-Master
June 28th, 2005, 04:09 PM
I don't know really, but this is just an idea...
Your driver is i810, the i810 has a unified memory architecture and uses system memory for video ram. By default 8 Megabytes of system memory are used for graphics.
If something is wrong with this driver, it might give other errors too since it's reserving system memory.
So, do you know the name of your graphics card? Installing the correct driver may help.
Since you said you did'nt install any special drivers, it is probably recogniced by the Ubuntu installer so I looked in synaptics and found the following
Discription of the packet i810switch from synaptics
-------------------------------------------------------------------------------------------------------------
Enables/disables video output to CRT/LCD on i810 video hardware
i810switch enables/disables the output to the CRT display and LCD,
depending on the i810 graphics controller hardware. Such hardware is found
on some laptops (eg, Sony Vaios, some Dell models, etc). Chipsets also
supported include i855, i830, i845.
This package includes the i810rotate script, which toggles the output
between three states: LCD only, LCD + CRT, and CRT only.
---------------------------------------------------------------------------------------------------------------
$ sudo apt-get remove i810switch
$ sudo apt-get install i810switch
Maybe this will help.
I also think we should move this problem to a seperate tread, It will be visible to more people there and it may be other that know more and can provide an easy solution to your problem.
Just post the url to your tread here after and I will see if I can halp you more from there.
http://ubuntuforums.org/showthread.php?t=44748 :)
Dr Evolution
June 29th, 2005, 05:18 AM
Lunde,
Many many thanks for the Howto installing vmware was starting to do my nut. I can't say my installation of qemu has gone without problems though, at the moment my installation completes with no problem. When i try and start qemu from my icon i get nothing.
I'm sure i've followed the howto to the letter, but i must be wrong.
Lunde
June 29th, 2005, 06:03 AM
Lunde,
Many many thanks for the Howto installing vmware was starting to do my nut. I can't say my installation of qemu has gone without problems though, at the moment my installation completes with no problem. When i try and start qemu from my icon i get nothing.
I'm sure i've followed the howto to the letter, but i must be wrong.
What went wrong installing VMware?
Did you compile with KQemu?
What happens when you try to start Qemu from the command line?
$ qemu -boot d -cdrom /dev/cdrom -hda hd.img (Modefy after your choice of configuration)
Do you get any errors?
What is the output from:
$ uname -a
Dr Evolution
June 29th, 2005, 06:27 AM
What went wrong installing VMware?
Did you compile with KQemu?
What happens when you try to start Qemu from the command line?
$ qemu -boot d -cdrom /dev/cdrom -hda hd.img (Modefy after your choice of configuration)
Do you get any errors?
What is the output from:
$ uname -a
Lunde,
i manage to get a full installation of either win2k or xp complete. I get no errors generated. this issue seems to be when configuring the launcher, i've search various locations on my machine to find the hd.img and tried to point qemu -boot c -fda /dev/fda -cdrom /dev/cdrom -hda /path/to/your/hd.img -user-net -pci -m 256 -k en to it, but it appears to launch then just doesn't do anything
Lunde
June 29th, 2005, 06:42 AM
Lunde,
i manage to get a full installation of either win2k or xp complete. I get no errors generated. this issue seems to be when configuring the launcher, i've search various locations on my machine to find the hd.img and tried to point qemu -boot c -fda /dev/fda -cdrom /dev/cdrom -hda /path/to/your/hd.img -user-net -pci -m 256 -k en to it, but it appears to launch then just doesn't do anything
The launcer need the full path to your hd.img
Try the following:
$ sudo slocate -c
to create a search database of your drives
Then locate the hd.img with this command:
$ slocate hd.img
Copy the output path to your launcher -hda
Dr Evolution
June 29th, 2005, 09:35 AM
What went wrong installing VMware?
Did you compile with KQemu?
What happens when you try to start Qemu from the command line?
$ qemu -boot d -cdrom /dev/cdrom -hda hd.img (Modefy after your choice of configuration)
Do you get any errors?
[B]What is the output from:
$ uname -a
when i run $ qemu -boot d -cdrom /dev/cdrom -hda hd.img from a prompt i get
could not open hard disk image '/dev/cdrom'
output from $ uname -a[/B
gives me linux@hostname 2.6.10-5-386 #1 Fri jun 24 16:53:01 UTC 2005 i686 GNU/Linux
as for vmware, it kept asking me questions i couldn't answer such as the locations of gcc, but i guess i've gotten past that to get this far with qemu
Lunde
June 29th, 2005, 11:12 AM
when i run $ qemu -boot d -cdrom /dev/cdrom -hda hd.img from a prompt i get
could not open hard disk image '/dev/cdrom'
output from $ uname -a[/B
gives me linux@hostname 2.6.10-5-386 #1 Fri jun 24 16:53:01 UTC 2005 i686 GNU/Linux
as for vmware, it kept asking me questions i couldn't answer such as the locations of gcc, but i guess i've gotten past that to get this far with qemu
You need to set the full path to your hd.img as described in:
http://www.ubuntuforums.org/showthread.php?p=233682#post233682
For installing VMware:
sudo apt-get install linux-headers-2.6.10-5-386
sudo apt-get install make
sudo apt-get install gcc
(the first package you probably have)
Then proceed as discribed in the VMware installation documentation
snoopgst
June 29th, 2005, 01:33 PM
I can't find: linux-headersXXXX folder
Still in Synaptic, choose the package you have just installed, click Properties and go to the "Installed Files" tab. Write down the directory where the files were copied. In my case, they were copied to: /usr/src/linux-headers-2.6.10-5-386/
Lunde
June 29th, 2005, 02:15 PM
I can't find: linux-headersXXXX folder
Still in Synaptic, choose the package you have just installed, click Properties and go to the "Installed Files" tab. Write down the directory where the files were copied. In my case, they were copied to: /usr/src/linux-headers-2.6.10-5-386/
type in the terminal:
$ uname -r
Then type:
$ sudo apt-get install linux-headers-2.6.10-5-386
in the above line, change the 2.6.10-5-386 with the output from "uname -r"
snoopgst
June 30th, 2005, 01:01 AM
i'm stuck at:
$ gedit configure
change the: kernel_path="/usr/src/linux-headers-2.6.10-5-386"
is this refered to .config? thats all i see thats similar to configure. but i dont see kernel_path
Lunde
June 30th, 2005, 03:45 AM
i'm stuck at:
$ gedit configure
change the: kernel_path="/usr/src/linux-headers-2.6.10-5-386"
is this refered to .config? thats all i see thats similar to configure. but i dont see kernel_path
configure is a file. I have a suspition that you may have downloaded the wrong packet from http://fabrice.bellard.free.fr/qemu/download.html you are NOT supposed to get the packet qemu-0.7.0-i386.tar.gz
Here's a complete url to the latest correct packet:
http://fabrice.bellard.free.fr/qemu/qemu-0.7.0.tar.gz
Inside this packet there is a file configure that we may need to change.
If you have the correct packet and are unsure of how to edit it
Post the file configure as an attachment here and write the output of:
$ uname -r
..and I'll edit it for you
snoopgst
June 30th, 2005, 07:43 PM
anybody willing to do this for me "remote desktop"
msn: snoopyjh33@hotmail.com
aim: snoopyjh14
yahoo: snoopgst
neongtr
June 30th, 2005, 11:58 PM
I use checkinstall then I hit an error when the package is FAILED to install
here is the log:
(Reading database ... 83444 files and directories currently installed.)
Unpacking qemu-0.7.0 (from .../qemu-0.7.0_0.7.0-1_i386.deb) ...
dpkg: error processing /home/ching/qemu-0.7.0/qemu-0.7.0_0.7.0-1_i386.deb (--install):
trying to overwrite `/lib/modules/2.6.10-5-386/modules.alias', which is also in package linux-image-2.6.10-5-386
dpkg-deb: subprocess paste killed by signal (Broken pipe)
Errors were encountered while processing:
/home/ching/qemu-0.7.0/qemu-0.7.0_0.7.0-1_i386.deb
where did I go wrong??
mohaham
July 1st, 2005, 12:06 AM
Thanks for this excellent HOWTO
Lunde
July 1st, 2005, 04:01 AM
anybody willing to do this for me "remote desktop"
msn: snoopyjh33@hotmail.com
aim: snoopyjh14
yahoo: snoopgst
First thing you need ot do is to make a backup, there is a nice howto here:
http://www.ubuntuforums.org/showthread.php?t=35087
Now you are safe to try and fail, or hopefully success.. So go ahead and the worst thing that can happen to you is a 10-15min restore. I suggest to do a seperate backup for your /home/username, because you probably don't need to restore this if the installastin goes wrong.
I'll guide you through the installation if you want by msn: do_not_send_to_this_email@hotmail.com
Lunde
July 1st, 2005, 04:07 AM
I use checkinstall then I hit an error when the package is FAILED to install
here is the log:
(Reading database ... 83444 files and directories currently installed.)
Unpacking qemu-0.7.0 (from .../qemu-0.7.0_0.7.0-1_i386.deb) ...
dpkg: error processing /home/ching/qemu-0.7.0/qemu-0.7.0_0.7.0-1_i386.deb (--install):
trying to overwrite `/lib/modules/2.6.10-5-386/modules.alias', which is also in package linux-image-2.6.10-5-386
dpkg-deb: subprocess paste killed by signal (Broken pipe)
Errors were encountered while processing:
/home/ching/qemu-0.7.0/qemu-0.7.0_0.7.0-1_i386.deb
where did I go wrong??
I suggest a
$ sudo make install
if you have problems with checkinstall
Or you have to give write access to the /lib/modules/2.6.10-5-386/modules.alias, but I would'nt reccomend this
Karl S.
July 1st, 2005, 02:57 PM
two quick suggestions to help those of us who don't know anything about computers:
a) I got lost briefly with the gedit configure until I realized I was meant to gedit configure from within the qemu-0.7.0 directory. Could you change the how-to to clear up that possible confusion?
b) at the bit where you have "if everything is correct," would it possible to give an example of what everything being correct should look like? I didn't have any errors listed, but I still wasn't sure I had everything done correctly.
--
Here are my troubles with trying to install XP from a CD:
After MAKE I got this at the end of my output:
Warning: could not find /home/karl/qemu-0.7.0/kqemu/.kqemu-mod.o.cmd for /home/karl/qemu-0.7.0/kqemu/kqemu-mod.o
CC /home/karl/qemu-0.7.0/kqemu/kqemu.mod.o
LD [M] /home/karl/qemu-0.7.0/kqemu/kqemu.ko
make[2]: Leaving directory `/usr/src/linux-headers-2.6.10-5-386'
make[1]: Leaving directory `/home/karl/qemu-0.7.0/kqemu'
root@ubuntu:/home/karl/qemu-0.7.0 #
Is this something I should be worried about?
--
This isn't working for me:
$ qemu -boot d -cdrom /dev/cdrom -hda hd.img
Here's how my system is set up:
hda3 linux-swap
hda1 ntfs (with Windows XP on it)
hda2 ext2 (with Ubuntu, and I planned on installing another copy of XP here)
I've tried various commands, without really knowing what I'm doing.
I tried $ qemu -boot d -cdrom /dev/cdrom -hda2 hd.img,
$ qemu -boot f -cdrom /dev/cdrom -hda hd.img (changed to 'f' because according to Windows my CD RW drive is at F, not D), and
$ qemu -boot d -cdrom /cdrom -hda hd.img (because according to File Browser, my cr drive isn't at /dev/cdrom but rather just at /cdrom).
I've tried all combinations on these, and depending on what I've done I either get:
qemu: invalid boot device 'f'
karl@ubuntu:~$ qemu -boot d -cdrom /dev/cdrom -hda hd.img
qemu: could not open hard disk image 'hd.img'
karl@ubuntu:~$ qemu -boot d -cdrom /dev/cdrom -hda hd.img
qemu: could not open hard disk image 'hd.img'
karl@ubuntu:~$ qemu -boot d -cdrom /dev/cdrom -hda2 hd.img
qemu: invalid option -- '-hda2'
And so forth.
Since the Computer's refusing to eject the CDROM right now (Unable to eject media. umount: /media/cdrom0: device is busy; umount: /media/cdrom0: device is busy; eject: unmount of `/dev/hdd' failed), and telling me, in the process, where it thinks the CD is, I tried these things:
karl@ubuntu:~$ qemu -boot d -cdrom /media/cdrom0 -hda hd.img
qemu: could not open hard disk image 'hd.img'
karl@ubuntu:~$ qemu -boot d -cdrom /media/cdrom0 -hda2 hd.img
qemu: invalid option -- '-hda2'
Still doesn't work.
I also looked at this advice here (http://www.ubuntuforums.org/showpost.php?p=233682&postcount=119) , but it didn't work.
Here's this:
karl@ubuntu:~/Qemu$ uname -a
Linux ubuntu 2.6.10-5-386 #1 Fri Jun 24 16:53:01 UTC 2005 i686 GNU/Linux
I did $ sudo slocate -c
and then
karl@ubuntu:~/Qemu$ sudo slocate hd.img
karl@ubuntu:~/Qemu$
But, as you see, it doesn't return any information. Or did it and I just don't know enough to recognize what I'm looking at?
Now, I did do
$ qemu-img create hd.img 4500M
and if I
karl@ubuntu:~/Qemu$ dir
hd.img
So it seems to be there.
....what can I do to fix this?
But maybe it didn't take?
Lunde
July 1st, 2005, 05:24 PM
two quick suggestions to help those of us who don't know anything about computers:
a) I got lost briefly with the gedit configure until I realized I was meant to gedit configure from within the qemu-0.7.0 directory. Could you change the how-to to clear up that possible confusion?
b) at the bit where you have "if everything is correct," would it possible to give an example of what everything being correct should look like? I didn't have any errors listed, but I still wasn't sure I had everything done correctly.
OK, this is going to be a bit long so break this into several replies
a) If you follow the howto step by step, you are already inside the qemu-0.7.0 directory. I think this is where you went wrong.
$ cd qemu-0.7.0
$ tar zxvf /location of downloaded files/kqemu-0.6.2-1.tar.gz
b) Thanks for the input. I'm not going to install it again, but if someone post a correct output, I'll put it in the howto. I should maybe change it around to: If you don't get any error messages.
Lunde
July 1st, 2005, 05:31 PM
Warning: could not find /home/karl/qemu-0.7.0/kqemu/.kqemu-mod.o.cmd for /home/karl/qemu-0.7.0/kqemu/kqemu-mod.o
CC /home/karl/qemu-0.7.0/kqemu/kqemu.mod.o
LD [M] /home/karl/qemu-0.7.0/kqemu/kqemu.ko
make[2]: Leaving directory `/usr/src/linux-headers-2.6.10-5-386'
make[1]: Leaving directory `/home/karl/qemu-0.7.0/kqemu'
root@ubuntu:/home/karl/qemu-0.7.0 #
The errors here are showing that you have some problems with finding the Kqemu files. these should be exstracted into the folder qemu-0.7.0:
$ cd qemu-0.7.0
$ tar zxvf /location of downloaded files/kqemu-0.6.2-1.tar.gz
I think something went wrong for you untar'ing the kqemu accelerator, so you should download it one more time and do that over again.
Lunde
July 1st, 2005, 06:10 PM
I tried $ qemu -boot d -cdrom /dev/cdrom -hda2 hd.img,
$ qemu -boot f -cdrom /dev/cdrom -hda hd.img (changed to 'f' because according to Windows my CD RW drive is at F, not D), and
$ qemu -boot d -cdrom /cdrom -hda hd.img (because according to File Browser, my cr drive isn't at /dev/cdrom but rather just at /cdrom).
if you want to start it with just hd.img and not full path like /home/username/qemu/hd.img you have to start qemu from within the directory the hd.img is located.
When refering to the boot flag, there are no other options then these
a = floppy
d = cdrom
c = hard drive
Your cdrom is only F: in Windows
As for your virtual hard drives, you have to use:
-hda (primary)
-hdb (secondary)
-hda0 -hda1 have no function on an unpartioned disk, you can partition your hd.img into several partitions if you like, but I still don't think you can boot with those options.
Since the Computer's refusing to eject the CDROM right now (Unable to eject media. umount: /media/cdrom0: device is busy; umount: /media/cdrom0: device is busy; eject: unmount of `/dev/hdd' failed), and telling me, in the process, where it thinks the CD is, I tried these things:
This happens in Ubuntu sometimes, if somebody have an ansvere to that I'll be happy too. Anyway, I think it will he different when it has a disk to install to.
and if I
karl@ubuntu:~/Qemu$ dir
hd.img
So it seems to be there.
There you have it. Perfect:
/home/karl/Qemu/hd.img
So your install command should be:
$ qemu -boot d -cdrom /dev/cdrom -hda /home/karl/Qemu/hd.img -user-net -pci -m 256 -k en
And your start command should be:
$ qemu -boot c -cdrom /dev/cdrom -hda /home/karl/Qemu/hd.img -user-net -pci -m 256 -k en
I hope this sorted you out. Good luck!
Don't forget to reinstall with kqemu like I explained in the previous post.
Karl S.
July 1st, 2005, 06:25 PM
The errors here are showing that you have some problems with finding the Kqemu files. these should be exstracted into the folder qemu-0.7.0:
$ cd qemu-0.7.0
$ tar zxvf /location of downloaded files/kqemu-0.6.2-1.tar.gz
I think something went wrong for you untar'ing the kqemu accelerator, so you should download it one more time and do that over again.
Thanks for your reply. Unfortunately, I'm getting the same error. I deleted the qemu-0.7.0 and Qemu folders, uninstalled libsdl1.2-dev and zlib1g-dev, redownloaded the QEMU Source Code and Accelerator Module, and started again.
I'm asking this question out of complete ignorance, but I just realized I untarred the kqemu while in root. Could that be causing a problem?
Here is the output of the Kqemu installation:
root@ubuntu:/home/karl/qemu-0.7.0 # tar zxvf /home/karl/kqemu-0.6.2-1.tar.gz kqemu/Makefile
kqemu/README
kqemu/LICENSE
kqemu/install.sh
kqemu/kmod.c
kqemu/kqemu.h
kqemu/kqemu-mod-i386.o
kqemu/kqemu-doc.texi
kqemu/kqemu-doc.html
root@ubuntu:/home/karl/qemu-0.7.0 #
After doing configure (and changing kernel_path="/usr/src/linux-headers-2.6.10-5-386" ...this is under the esac list, right?), I reinstalled libsdl1.2-dev and zlib1g-dev using Synaptic. The output for ./configure is:
root@ubuntu:/home/karl/qemu-0.7.0 # ./configure
Install prefix /usr/local
BIOS directory /usr/local/share/qemu
binary directory /usr/local/bin
Manual directory /usr/local/share/man
ELF interp prefix /usr/gnemul/qemu-%M
Source path /home/karl/qemu-0.7.0
C compiler gcc
make make
host CPU i386
host big endian no
target list i386-user arm-user armeb-user sparc-user ppc-user i386-softmmu ppc-softmmu sparc-softmmu x86_64-softmmu
gprof enabled no
static build no
SDL support yes
SDL static link no
mingw32 support no
Adlib support no
FMOD support no
kqemu support yes
And then after make outputs text for a while, I get this:
Warning: could not find /home/karl/qemu-0.7.0/kqemu/.kqemu-mod.o.cmd for /home/karl/qemu-0.7.0/kqemu/kqemu-mod.o
CC /home/karl/qemu-0.7.0/kqemu/kqemu.mod.o
LD [M] /home/karl/qemu-0.7.0/kqemu/kqemu.ko
make[2]: Leaving directory `/usr/src/linux-headers-2.6.10-5-386'
make[1]: Leaving directory `/home/karl/qemu-0.7.0/kqemu'
Okay, I'm going to try this again, but this time not do anything in root. Your answers strike me as very helpful, and I'm confident this is going to work. I only hope that my questions can help some other total newbie on this board. Thanks very much.
Lunde
July 1st, 2005, 06:36 PM
I made this icon for the launcher. If any of you want to use it:
khai
July 1st, 2005, 06:39 PM
Wow! I wish I'd have known about this sooner, I've got Windows XP working at similar speeds to when I was running it on my P4 at 256mb before I upgraded the ram to 512mb.
Make sure to install updates right away, I've had two installs screw up on me on the first boot before because my Windows doesn't come installed with any service packs and I ended up picking up a virus or trojan within a few minutes of being online.
Screenshot-
http://img.photobucket.com/albums/v445/khai/Screenshot.png
Lunde
July 1st, 2005, 06:43 PM
Thanks for your reply. Unfortunately, I'm getting the same error. I deleted the qemu-0.7.0 and Qemu folders, uninstalled libsdl1.2-dev and zlib1g-dev, redownloaded the QEMU Source Code and Accelerator Module, and started again.
I'm asking this question out of complete ignorance, but I just realized I untarred the kqemu while in root. Could that be causing a problem?
Here is the output of the Kqemu installation:
After doing configure (and changing kernel_path="/usr/src/linux-headers-2.6.10-5-386" ...this is under the esac list, right?), I reinstalled libsdl1.2-dev and zlib1g-dev using Synaptic. The output for ./configure is:
And then after make outputs text for a while, I get this:
Okay, I'm going to try this again, but this time not do anything in root. Your answers strike me as very helpful, and I'm confident this is going to work. I only hope that my questions can help some other total newbie on this board. Thanks very much.
yes.. don't do anything as root before the installation. Also just to make sure, do a:
$ sudo chmod -R 775 /home/karl/qemu-0.7.0
after you have untar'ed the kqemu inside the qemu-0.7.0 directory
Hope it works this time
Lunde
July 1st, 2005, 06:47 PM
Wow! I wish I'd have known about this sooner, I've got Windows XP working at similar speeds to when I was running it on my P4 at 256mb before I upgraded the ram to 512mb.
Make sure to install updates right away, I've had two installs screw up on me on the first boot before because my Windows doesn't come installed with any service packs and I ended up picking up a virus or trojan within a few minutes of being online.
Screenshot-
http://img.photobucket.com/albums/v445/khai/Screenshot.png
You can set more memory if you like, ex: -m 384. you just have to to follow the instructions that comes with the error message after
Karl S.
July 1st, 2005, 07:38 PM
yes.. don't do anything as root before the installation. Also just to make sure, do a:
$ sudo chmod -R 775 /home/karl/qemu-0.7.0
after you have untar'ed the kqemu inside the qemu-0.7.0 directory
Hope it works this time
Well. It's a mystery to me. I've tried this four times now and it still doesn't work. And I did the sudo chmod etc.
Here's some sample output:
karl@ubuntu:~/qemu-0.7.0$ cd /home/karl
karl@ubuntu:~$ mkdir Qemu
karl@ubuntu:~$ cd Qemu
karl@ubuntu:~/Qemu$ qemu-img create hd.img 4500M
Formating 'hd.img', fmt=raw, size=4608000 kB
karl@ubuntu:~/Qemu$ qemu -boot d -cdrom /dev/cdrom -hda /home/karl/Qemu/hd.img -user-net -pci -k en
qemu: could not open hard disk image '/dev/cdrom'
karl@ubuntu:~/Qemu$
SInce the kqemu directory seems to be the one giving the trouble, here it is:
karl@ubuntu:~/qemu-0.7.0/kqemu$ dir
install.sh kqemu-doc.html kqemu.ko kqemu-mod.o LICENSE
kmod.c kqemu-doc.texi kqemu.mod.c kqemu.mod.o Makefile
kmod.o kqemu.h kqemu-mod-i386.o kqemu.o README
karl@ubuntu:~/qemu-0.7.0/kqemu$ pwd
/home/karl/qemu-0.7.0/kqemu
Is that the way it should look? I don't know what "could not find /home/karl/qemu-0.7.0/kqemu/.kqemu-mod.o.cmd for /home/karl/qemu-0.7.0/kqemu/kqemu-mod.o" means, but if it's looking for a file .kqemu-mod.o.cmd, I can't find it either. But as you can see, the kqemu folder is where it's supposed to be, inside the qemu-0.7.0 folder, right?
If it's of any use to you, when I modprobe kqemu (or sudo modprobe kqemu), nothing seems to be happening.
I'm giving up on this for tonight, though. Thanks for your help so far.
khai
July 2nd, 2005, 04:25 AM
Is there anyway to resize the hd.img, 5 gigs ended up being a little too small for me. Also, while I'm at it, can this run in the console with no desktop enviroment or window manager loaded, if so, how? Thanks
Lunde
July 2nd, 2005, 06:33 AM
Is there anyway to resize the hd.img, 5 gigs ended up being a little too small for me. Also, while I'm at it, can this run in the console with no desktop enviroment or window manager loaded, if so, how? Thanks
Yes, you have to create a new disk image of the size you want. then boot a liveCD in Qemu, I used Knoppix. Then use the fdisk to "disk copy" the hd.img into the new image. And last there's a tool called ntfsresize in Knoppix that will expand the partition to the full size of the new disk image.
No, Qemu needs a window manager. I have not tried this in anything else then Metacity / Gnome.
Lunde
July 2nd, 2005, 06:45 AM
Well. It's a mystery to me. I've tried this four times now and it still doesn't work. And I did the sudo chmod etc.
Here's some sample output:
SInce the kqemu directory seems to be the one giving the trouble, here it is:
Is that the way it should look? I don't know what "could not find /home/karl/qemu-0.7.0/kqemu/.kqemu-mod.o.cmd for /home/karl/qemu-0.7.0/kqemu/kqemu-mod.o" means, but if it's looking for a file .kqemu-mod.o.cmd, I can't find it either. But as you can see, the kqemu folder is where it's supposed to be, inside the qemu-0.7.0 folder, right?
If it's of any use to you, when I modprobe kqemu (or sudo modprobe kqemu), nothing seems to be happening.
I'm giving up on this for tonight, though. Thanks for your help so far.
Can you post the kqemu directory listing with
$ ls -al
So that I can see the permissions?
And also, your cdrom is that a combined RW? if so, it might be that it's /dev/hdd
jimcooncat
July 2nd, 2005, 07:39 AM
I do tech for a small business with users on Windows and am building an Ubuntu environment to host Linux programs. I'm trying a variety of technologies for sharing, like Cygwin, FreeNX, VNC, etc.
If the methods in this thread work well, I could have the users run Ubuntu with selected apps, using a common Win 2000 Pro installation. No hardware changes under Windows would be wonderful!
So if I get a chance I'll be experimenting with this soon, but a few answers ahead of time would be great:
1. Would Squid make an appropriate proxy for IE? I'd like the Windows installation only be able to access a short whitelist of URLs, like http://windowsupdate.microsoft.com and http://quickbooks.com; and set this up before installing the Win 2000.
2. Once I have a Win 2000 image, can I just copy from one machine to another regardless of the actual hardware (assuming they can both do same screen resolution, etc.)?
3. Any specs or anecdotes on memory and filesystem with default install of Hoary, Qemu, kqemu, and Windows 2000?
4. Suggestions for stripping Windows 2000 of cruft?
Lunde
July 2nd, 2005, 08:49 AM
I do tech for a small business with users on Windows and am building an Ubuntu environment to host Linux programs. I'm trying a variety of technologies for sharing, like Cygwin, FreeNX, VNC, etc.
If the methods in this thread work well, I could have the users run Ubuntu with selected apps, using a common Win 2000 Pro installation. No hardware changes under Windows would be wonderful!
So if I get a chance I'll be experimenting with this soon, but a few answers ahead of time would be great:
VMware is what you are looking for, it's faster and more stabile. Tho Qemu also would do the trick. This sound like a fun network to set up.
1. Would Squid make an appropriate proxy for IE? I'd like the Windows installation only be able to access a short whitelist of URLs, like http://windowsupdate.microsoft.com and http://quickbooks.com; and set this up before installing the Win 2000.
I hav'nt tested squid myself, but as I understand it should'nt be a problem. Any firewall box with filtering would also do the trick. This can also be configured in the windows configuration in the template installation. I don't know how much you want your users to be able to configure their Windows, but if they all should have an identical windows image, then you only need to update the template and push it after work hours.
2. Once I have a Win 2000 image, can I just copy from one machine to another regardless of the actual hardware (assuming they can both do same screen resolution, etc.)?
Yes, Qemu & VMware are emulating the hardware, so there are no difference from machine to machine. If you change all "My Documents" folders so they are located on the mapped linux disk, then if your worker scew anything up you just push the template over the chrashed Windows image. 3min and they are back up again with all tools needed to do their work.
3. Any specs or anecdotes on memory and filesystem with default install of Hoary, Qemu, kqemu, and Windows 2000?
Depending on what sort of work you want to perform. But 512mb memory would do good. You can probably run with less too.
As of filesystem, I would recommend Ext3 it's probably the safest.
4. Suggestions for stripping Windows 2000 of cruft?
Use Antivirus on the mailserver, not on the clients, same for Firewall. Set up a Cronjob for backup of the windows "My Documents" located in the Linux disk.
Strip down the unneeded services, there is a link for this in the howto above.
Lunde
July 2nd, 2005, 09:13 AM
I do tech for a small business with users on Windows and am building an Ubuntu environment to host Linux programs. I'm trying a variety of technologies for sharing, like Cygwin, FreeNX, VNC, etc.
There is also the weird and wonderful world of wake on LAN, PXE boot and tftp servers. Create a pushable windows image that has all hardware drivers from the PC's in your network available. A solution like this demands similar disk setup from PC to PC.
Then you can remote push a bootdisk that gets loaded over the network and auto-perform a diskcopy from a ready configured image on the server.
Linux apps.. you could configure a remote login for that. or run VMware inside Windows if you need a full insatallation inside the client.
There are so many different solutions for setting up a network environment, it's just finding the solution that fits best for the type of company you are serving.
Karl S.
July 2nd, 2005, 11:22 AM
Can you post the kqemu directory listing with
$ ls -al
So that I can see the permissions?
And also, your cdrom is that a combined RW? if so, it might be that it's /dev/hdd
karl@ubuntu:~/qemu-0.7.0/kqemu$ ls -al
total 260
drwxrwxr-x 3 karl karl 4096 2005-07-01 19:26 .
drwxrwxr-x 24 karl karl 4096 2005-07-01 19:16 ..
-rwxrwxr-x 1 karl karl 435 2005-02-12 09:36 install.sh
-rwxrwxr-x 1 karl karl 7366 2005-02-10 17:09 kmod.c
-rw-r--r-- 1 karl karl 4588 2005-07-01 19:26 kmod.o
-rw-r--r-- 1 karl karl 9392 2005-07-01 19:26 .kmod.o.cmd
-rwxrwxr-x 1 karl karl 4942 2005-02-20 13:51 kqemu-doc.html
-rwxrwxr-x 1 karl karl 3979 2005-02-20 13:51 kqemu-doc.texi
-rwxrwxr-x 1 karl karl 3013 2005-02-12 09:37 kqemu.h
-rw-r--r-- 1 karl karl 45701 2005-07-01 19:26 kqemu.ko
-rw-r--r-- 1 karl karl 178 2005-07-01 19:26 .kqemu.ko.cmd
-rw-r--r-- 1 karl karl 1461 2005-07-01 19:26 kqemu.mod.c
-rwxrwxr-x 1 karl karl 36666 2005-01-31 17:05 kqemu-mod-i386.o
-rwxr-xr-x 1 karl karl 36666 2005-07-01 19:26 kqemu-mod.o
-rw-r--r-- 1 karl karl 3424 2005-07-01 19:26 kqemu.mod.o
-rw-r--r-- 1 karl karl 7062 2005-07-01 19:26 .kqemu.mod.o.cmd
-rw-r--r-- 1 karl karl 42875 2005-07-01 19:26 kqemu.o
-rw-r--r-- 1 karl karl 176 2005-07-01 19:26 .kqemu.o.cmd
-rwxrwxr-x 1 karl karl 639 2005-02-12 09:35 LICENSE
-rwxrwxr-x 1 karl karl 1028 2005-02-20 13:52 Makefile
-rwxrwxr-x 1 karl karl 185 2005-02-12 09:34 README
drwxr-xr-x 2 karl karl 4096 2005-07-01 19:26 .tmp_versions
karl@ubuntu:~/qemu-0.7.0/kqemu$
Incidentally, I'm pretty sure I have gcc installed (I just checked synaptic and has these listed as installed; gcc (version 4.3.3.5-1), gcc-3.3, gcc-3.3.-base, gcc-4.0-base, and libgcc1).
Is the CDROM a CDRW? Yes. Although it's listed as a CDROM in Applications > System Tools > File Browser.
I just tried it with /dev/hdd and got a new error message! I feel as though we're getting somewhere.
karl@ubuntu:~/qemu-0.7.0/kqemu$ cd ..
karl@ubuntu:~/qemu-0.7.0$ qemu -boot d -cdrom /dev/hdd -hda /home/karl/Qemu/hd.img -user-net -pci -k en
Could not read keymap file: '/usr/local/share/qemu/keymaps/en'
karl@ubuntu:~/qemu-0.7.0$
I wonder what would happen if I didn't install the English keyboard (that's what would happen if I just left off the '-k en' yes?)? I'd try it, but I was assurance that I'm not going to make anything unuseable.
Lunde
July 2nd, 2005, 01:18 PM
karl@ubuntu:~/qemu-0.7.0/kqemu$ ls -al
total 260
drwxrwxr-x 3 karl karl 4096 2005-07-01 19:26 .
drwxrwxr-x 24 karl karl 4096 2005-07-01 19:16 ..
-rwxrwxr-x 1 karl karl 435 2005-02-12 09:36 install.sh
-rwxrwxr-x 1 karl karl 7366 2005-02-10 17:09 kmod.c
-rw-r--r-- 1 karl karl 4588 2005-07-01 19:26 kmod.o
-rw-r--r-- 1 karl karl 9392 2005-07-01 19:26 .kmod.o.cmd
-rwxrwxr-x 1 karl karl 4942 2005-02-20 13:51 kqemu-doc.html
-rwxrwxr-x 1 karl karl 3979 2005-02-20 13:51 kqemu-doc.texi
-rwxrwxr-x 1 karl karl 3013 2005-02-12 09:37 kqemu.h
-rw-r--r-- 1 karl karl 45701 2005-07-01 19:26 kqemu.ko
-rw-r--r-- 1 karl karl 178 2005-07-01 19:26 .kqemu.ko.cmd
-rw-r--r-- 1 karl karl 1461 2005-07-01 19:26 kqemu.mod.c
-rwxrwxr-x 1 karl karl 36666 2005-01-31 17:05 kqemu-mod-i386.o
-rwxr-xr-x 1 karl karl 36666 2005-07-01 19:26 kqemu-mod.o
-rw-r--r-- 1 karl karl 3424 2005-07-01 19:26 kqemu.mod.o
-rw-r--r-- 1 karl karl 7062 2005-07-01 19:26 .kqemu.mod.o.cmd
-rw-r--r-- 1 karl karl 42875 2005-07-01 19:26 kqemu.o
-rw-r--r-- 1 karl karl 176 2005-07-01 19:26 .kqemu.o.cmd
-rwxrwxr-x 1 karl karl 639 2005-02-12 09:35 LICENSE
-rwxrwxr-x 1 karl karl 1028 2005-02-20 13:52 Makefile
-rwxrwxr-x 1 karl karl 185 2005-02-12 09:34 README
drwxr-xr-x 2 karl karl 4096 2005-07-01 19:26 .tmp_versions
karl@ubuntu:~/qemu-0.7.0/kqemu$
OK.. you see the -rw-r--r-- file permissions. this meens read only for other then your user. We need to change this to -rwxrwxr-x (executable). do another:
$ sudo chmod -R 775 /home/karl/qemu-0.7.0/kqemu
And try an
$ ls -al
and se if they still have -rw-r--r--. If not, I think you are good to give it another try.
If it's a problem with your cdrom, we can create an .iso from the CD and boot from that. This will also make the installastion quicker. You do that with:
$ sudo mkisofs -RJ -o /home/karl/Qemu/winXP.iso /dev/cdrom
If it comes up with mkisofs: command not found do:
$ sudo apt-get install mkisofs
Assuming that Qemu is the directory you created the hd.img in, if not change the above to fit your location.
Then for installing use:
$ qemu -boot d -cdrom /home/karl/Qemu/winXP.iso -hda /home/karl/Qemu/hd.img -user-net -pci -m 256
Lunde
July 2nd, 2005, 01:58 PM
$ sudo chmod -R 775 /home/karl/qemu/kqemu
Correction:
$ sudo chmod -R 775 /home/karl/qemu-0.7.0/kqemu
Sorry!
Karl S.
July 2nd, 2005, 02:59 PM
Correction:
$ sudo chmod -R 775 /home/karl/qemu-0.7.0/kqemu
Sorry!
Thank you so much for your help so far! I hope this is of benefit to other people.
So, I ran the chmod command you suggested above, and it worked (it changed the permissions of everything in the kqemu folder to -rwxrwxr-x).
Then tried the qemu -boot d -cdrom /dev/cdrom -hda /home/karl/Qemu/hd.img -user-net -pci (note that I chopped off the -k en command), and it seemed to be working for the first time. It inspected my hardware configuration, loaded files (all seeming to do with hardware), then said it was starting Windows, the 'Processing Information File,' then Welcome to Setup. Press Enter for installing Windows. I hit enter, I get the license agreement, I press F8, then asks me to hit enter when the XP CD's in the drive. It's in the drive (which, by the way, works fine for Ubuntu updates, so I know the drive is fine, at least sometimes...). Says it's loading file dosnet.inf, and then goes back to it saying that there's nothing in the drive.
So I tried creating the disk image.
karl@ubuntu:~/qemu-0.7.0$ sudo mkisofs -RJ -o /home/karl/Qemu/winXP.iso /dev/cdrom
Password:
INFO: UTF-8 character encoding detected by locale settings.
Assuming UTF-8 encoded filenames on source filesystem,
use -input-charset to override.
Total translation table size: 0
Total rockridge attributes bytes: 256
Total directory bytes: 0
Path table size(bytes): 10
Max brk space used 21000
181 extents written (0 MB)
karl@ubuntu:~/qemu-0.7.0$ qemu -boot d -cdrom /home/karl/Qemu/winXP.iso -hda /home/karl/Qemu/hd.img -user-net -pci
And this is the problem I came up with:
In the Terminal:
screenshot here (http://www.columbia.edu/~kts15/hblog/KarlQEMU.png)
Here are the contents of the Qemu folder:
karl@ubuntu:~/Qemu$ ls -al
total 380
drwxr-xr-x 2 karl karl 4096 2005-07-02 14:37 .
drwxr-xr-x 69 karl karl 4096 2005-07-02 10:05 ..
-rw-r--r-- 1 karl karl 4718592000 2005-07-02 14:27 hd.img
-rw-r--r-- 1 root root 370688 2005-07-02 14:37 winXP.iso
karl@ubuntu:~/Qemu$
Lunde
July 2nd, 2005, 04:11 PM
Try this one:
delete the old winXP.iso
$ sudo rm /home/karl/Qemu/winXP.iso
Then...
$ mkisofs -r -R -J -l -L -o /home/karl/Qemu/winXP.iso /mnt/cdrom
Hopefully this will work.
Karl S.
July 2nd, 2005, 04:33 PM
Try this one:
delete the old winXP.iso
$ sudo rm /home/karl/Qemu/winXP.iso
Then...
$ mkisofs -r -R -J -l -L -o /home/karl/Qemu/winXP.iso /mnt/cdrom
Hopefully this will work.
Nope!
karl@ubuntu:~$ sudo rm /home/karl/Qemu/winXP.iso
Password:
karl@ubuntu:~$ mkisofs -r -R -J -l -L -o /home/karl/Qemu/winXP.iso /mnt/cdrom
mkisofs: The option '-L' is reserved by POSIX.1-2001.
mkisofs: The option '-L' means 'follow all symbolic links'.
mkisofs: Mkisofs-2.02 will introduce POSIX semantics for '-L'.
mkisofs: Use -allow-leading-dots in future to get old mkisofs behavior.
Warning: creating filesystem that does not conform to ISO-9660.
INFO: UTF-8 character encoding detected by locale settings.
Assuming UTF-8 encoded filenames on source filesystem,
use -input-charset to override.
mkisofs: No such file or directory. Invalid node - /mnt/cdrom
Just for the hell of it, I tried replacing /mnt/cdrom with /dev/cdrom is the above command. This created the iso in the Qemu folder, but $ qemu -boot d -cdrom /home/karl/Qemu/winXP.iso -hda /home/karl/Qemu/hd.img -user-net -pci gets me the same problem as before (pictured in the screenshot).
I think I'll leave this alone until tomorrow....
Lunde
July 2nd, 2005, 04:46 PM
Nope!
Just for the hell of it, I tried replacing /mnt/cdrom with /dev/cdrom is the above command. This created the iso in the Qemu folder, but $ qemu -boot d -cdrom /home/karl/Qemu/winXP.iso -hda /home/karl/Qemu/hd.img -user-net -pci gets me the same problem as before (pictured in the screenshot).
I think I'll leave this alone until tomorrow....
Sorry, copied of the net, forgot to change that. change /mnt/cdrom to /cdrom not /dev/cdrom
Karl S.
July 2nd, 2005, 09:19 PM
Try this one:
delete the old winXP.iso
$ sudo rm /home/karl/Qemu/winXP.iso
Then...
$ mkisofs -r -R -J -l -L -o /home/karl/Qemu/winXP.iso /mnt/cdrom
Hopefully this will work.
Okay, I tried this again, but this time with
$ mkisofs -r -R -J -l -L -o /home/karl/Qemu/winXP.iso /cdrom
Then
$ qemu -boot d -cdrom /home/karl/Qemu/winXP.iso -hda /home/karl/Qemu/hd.img -user-net -pci
I got the same error as in my screenshot previously (I compared the live Qemu screen to the screenshot: they were the same),
Here's my commands from my Terminal:
karl@ubuntu:~$ sudo rm /home/karl/Qemu/winXP.iso
Password:
karl@ubuntu:~$ mkisofs -r -R -J -l -L -o /home/karl/Qemu/winXP.iso /cdrom
mkisofs: The option '-L' is reserved by POSIX.1-2001.
mkisofs: The option '-L' means 'follow all symbolic links'.
mkisofs: Mkisofs-2.02 will introduce POSIX semantics for '-L'.
mkisofs: Use -allow-leading-dots in future to get old mkisofs behavior.
Warning: creating filesystem that does not conform to ISO-9660.
INFO: UTF-8 character encoding detected by locale settings.
Assuming UTF-8 encoded filenames on source filesystem,
use -input-charset to override.
Total translation table size: 0
Total rockridge attributes bytes: 265
Total directory bytes: 0
Path table size(bytes): 10
Max brk space used 21000
181 extents written (0 MB)
karl@ubuntu:~$ qemu -boot d -cdrom /home/karl/Qemu/winXP.iso -hda /home/karl/Qemu/hd.img -user-net -pci -m 256
You do not have enough space in '/dev/shm' for the 256 MB of QEMU virtual RAM.
To have more space available provided you have enough RAM and swap, do as root:
umount /dev/shm
mount -t tmpfs -o size=272m none /dev/shm
karl@ubuntu:~$ qemu -boot d -cdrom /home/karl/Qemu/winXP.iso -hda /home/karl/Qemu/hd.img -user-net -pci
karl@ubuntu:~$
This is some mystery!
Lunde
July 3rd, 2005, 05:13 AM
Okay, I tried this again, but this time with
$ mkisofs -r -R -J -l -L -o /home/karl/Qemu/winXP.iso /cdrom
Then
$ qemu -boot d -cdrom /home/karl/Qemu/winXP.iso -hda /home/karl/Qemu/hd.img -user-net -pci
I got the same error as in my screenshot previously (I compared the live Qemu screen to the screenshot: they were the same),
Here's my commands from my Terminal:
This is some mystery!
I don't understand what's going wrong with your CD drive in the first place.
Option 1
Another way of doing the same
$ cd /home/karl/Qemu
$ rm winXP.iso
$ umount /media/cdrom0
$ dd if=/dev/hdc of=winXP.iso
Ref: How to create an iso of your Ubuntu CD and use it as repository
http://ubuntuforums.org/showthread.php?t=35807
Option 2
The way I did this with my win2000 installation is:
Reinsert the XP cd again..
$ mkdir /home/karl/Qemu/winXP
$ copy -ax /cdrom/* /home/karl/Qemu/winXP
$ rm /home/karl/Qemu/winXP.iso
$ mkisofs -r -o /home/karl/Qemu/winXP.iso /home/karl/Qemu/winXP
if this worked, you can delete the winXP directory under /home/karl/Qemu
More info on iso creation and CD burning:
http://www.yolinux.com/TUTORIALS/LinuxTutorialCDBurn.html
Hope it works out this time
Memory
I can see that you need some more memory. How much do you have?
karl@ubuntu:~$ qemu -boot d -cdrom /home/karl/Qemu/winXP.iso -hda /home/karl/Qemu/hd.img -user-net -pci -m 256
You do not have enough space in '/dev/shm' for the 256 MB of QEMU virtual RAM.
To have more space available provided you have enough RAM and swap, do as root:
umount /dev/shm
mount -t tmpfs -o size=272m none /dev/shm
Try this during the installation:
$ sudo umount /dev/shm
$ sudo mount -t tmpfs -o size=272m none /dev/shm
Karl S.
July 3rd, 2005, 12:09 PM
Okay. I think I'm getting somewhere. I removed the old winXP.iso. Option 1 didn't work. When I dd if=/dev/hdc of=winXP.iso I got dd: opening `/dev/hdc': No medium found. So I tried option 2. But when I karl@ubuntu:~/Qemu$ copy -ax /cdrom/* /home/karl/Qemu/winXP
I got bash: copy: command not found. So I decided to be tricky. Since the terminal just wasn't cooperating, I just opened up the CDROM window on the Desktop and selected all and moved it to /home/karl/Qemu/winXP. Then, when I mkisofs -r -o /home/karl/Qemu/winXP.iso /home/karl/Qemu/winXP, for the first time, I got some output that seemed to mean something!
karl@ubuntu:~/Qemu$ mkisofs -r -o /home/karl/Qemu/winXP.iso /home/karl/Qemu/winXP
INFO: UTF-8 character encoding detected by locale settings.
Assuming UTF-8 encoded filenames on source filesystem,
use -input-charset to override.
Using SCANS000.EXE;1 for /home/karl/Qemu/winXP/valueadd/msft/usmt/scanstate_a.exe (scanstate.exe)
1.81% done, estimate finish Sun Jul 3 11:48:21 2005
3.62% done, estimate finish Sun Jul 3 11:48:48 2005
5.44% done, estimate finish Sun Jul 3 11:48:57 2005
7.25% done, estimate finish Sun Jul 3 11:49:02 2005
9.06% done, estimate finish Sun Jul 3 11:49:05 2005
10.87% done, estimate finish Sun Jul 3 11:49:06 2005
12.68% done, estimate finish Sun Jul 3 11:49:16 2005
14.50% done, estimate finish Sun Jul 3 11:49:16 2005
16.31% done, estimate finish Sun Jul 3 11:49:16 2005
18.12% done, estimate finish Sun Jul 3 11:49:16 2005
19.93% done, estimate finish Sun Jul 3 11:49:11 2005
21.74% done, estimate finish Sun Jul 3 11:49:11 2005
23.55% done, estimate finish Sun Jul 3 11:49:07 2005
25.37% done, estimate finish Sun Jul 3 11:49:08 2005
27.17% done, estimate finish Sun Jul 3 11:49:08 2005
28.99% done, estimate finish Sun Jul 3 11:49:12 2005
30.80% done, estimate finish Sun Jul 3 11:49:12 2005
32.61% done, estimate finish Sun Jul 3 11:49:16 2005
34.42% done, estimate finish Sun Jul 3 11:49:16 2005
36.23% done, estimate finish Sun Jul 3 11:49:16 2005
38.04% done, estimate finish Sun Jul 3 11:49:18 2005
39.86% done, estimate finish Sun Jul 3 11:49:18 2005
41.67% done, estimate finish Sun Jul 3 11:49:18 2005
43.48% done, estimate finish Sun Jul 3 11:49:18 2005
45.29% done, estimate finish Sun Jul 3 11:49:18 2005
47.10% done, estimate finish Sun Jul 3 11:49:18 2005
48.92% done, estimate finish Sun Jul 3 11:49:18 2005
50.73% done, estimate finish Sun Jul 3 11:49:18 2005
52.54% done, estimate finish Sun Jul 3 11:49:18 2005
54.35% done, estimate finish Sun Jul 3 11:49:18 2005
56.16% done, estimate finish Sun Jul 3 11:49:17 2005
57.97% done, estimate finish Sun Jul 3 11:49:19 2005
59.79% done, estimate finish Sun Jul 3 11:49:19 2005
61.59% done, estimate finish Sun Jul 3 11:49:19 2005
63.41% done, estimate finish Sun Jul 3 11:49:19 2005
65.22% done, estimate finish Sun Jul 3 11:49:19 2005
67.03% done, estimate finish Sun Jul 3 11:49:19 2005
68.84% done, estimate finish Sun Jul 3 11:49:20 2005
70.66% done, estimate finish Sun Jul 3 11:49:20 2005
72.47% done, estimate finish Sun Jul 3 11:49:18 2005
74.28% done, estimate finish Sun Jul 3 11:49:18 2005
76.09% done, estimate finish Sun Jul 3 11:49:18 2005
77.90% done, estimate finish Sun Jul 3 11:49:18 2005
79.71% done, estimate finish Sun Jul 3 11:49:18 2005
81.53% done, estimate finish Sun Jul 3 11:49:18 2005
83.33% done, estimate finish Sun Jul 3 11:49:18 2005
85.15% done, estimate finish Sun Jul 3 11:49:18 2005
86.96% done, estimate finish Sun Jul 3 11:49:18 2005
88.77% done, estimate finish Sun Jul 3 11:49:19 2005
90.58% done, estimate finish Sun Jul 3 11:49:19 2005
92.39% done, estimate finish Sun Jul 3 11:49:18 2005
94.20% done, estimate finish Sun Jul 3 11:49:20 2005
96.02% done, estimate finish Sun Jul 3 11:49:19 2005
97.83% done, estimate finish Sun Jul 3 11:49:19 2005
99.64% done, estimate finish Sun Jul 3 11:49:19 2005
Total translation table size: 0
Total rockridge attributes bytes: 581166
Total directory bytes: 1193984
Path table size(bytes): 2234
Max brk space used 47d000
276000 extents written (539 MB)
karl@ubuntu:~/Qemu$ qemu -boot d -cdrom /home/karl/Qemu/winXP.iso -hda /home/karl/Qemu/hd.img -user-net -pci
But then when I tried that last command, I got the same error message that I've been getting screenshot (http://www.columbia.edu/~kts15/hblog/KarlQEMU.png).
At any rate, it looks as though I have an WinXP ISO on my computer now:
karl@ubuntu:~/Qemu$ ls -al
total 552560
drwxr-xr-x 3 karl karl 4096 2005-07-03 11:48 .
drwxr-xr-x 71 karl karl 4096 2005-07-03 11:04 ..
-rw-r--r-- 1 karl karl 4718592000 2005-07-02 14:27 hd.img
drwxr-xr-x 7 karl karl 4096 2005-07-03 11:47 winXP
-rw-r--r-- 1 karl karl 565248000 2005-07-03 11:49 winXP.iso
karl@ubuntu:~/Qemu$
The question is: how do I make qemu look at this ISO rather than trying to find the CDROM that, for some reason, works just fine for Ubuntu updates but not for this stuff?
Oh. Memory: well -- and this is evidence of how little I know -- I'm not entirely sure how to check, but the System Monitor says I have 503 MB.
One more thing: when it comes time for me to delete the /Qemu/winXP folder, I've never quite figured out how to delete folders (I use the rmdir command, right?) that have items still in them. How can I delete this folder without having to go in and delete everything in it one-by-one first?
Lunde
July 3rd, 2005, 01:30 PM
Copy
Sorry! My mistake.. Not "copy".. but cp -ax /cdrom/* /home/karl/Qemu/winXP for future reference.
Boot with with winXP.iso as cdrom
$ sudo umount /dev/shm
$ sudo mount -t tmpfs -o size=272m none /dev/shm
$ qemu -boot d -cdrom /home/karl/Qemu/winXP.iso -hda /home/karl/Qemu/hd.img -user-net -pci -m 256
Delete the winXP folder
just delete it in Nautilus
Karl S.
July 3rd, 2005, 02:19 PM
The continuing saga....
Copy
Sorry! My mistake.. Not "copy".. but cp -ax /cdrom/* /home/karl/Qemu/winXP for future reference.
Boot with with winXP.iso as cdrom
$ sudo umount /dev/shm
$ sudo mount -t tmpfs -o size=272m none /dev/shm
$ qemu -boot d -cdrom /home/karl/Qemu/winXP.iso -hda /home/karl/Qemu/hd.img -user-net -pci -m 256
....well. I deleted the winxp folder and deleted the iso I just made. The cp command worked just fine. And then I made a new iso. I went through those commands above, and I ended up with the same error screen as shown in the screenshot linked to above. Is it that qemu doesn't want to use the iso that's in the Qemu directory and keeps looking to a cdrom?
...although it seems that once we get this working, it'll be a lot faster to install from an iso on my hard drive than one from a cdrom...
Lunde
July 3rd, 2005, 04:27 PM
The continuing saga....
....well. I deleted the winxp folder and deleted the iso I just made. The cp command worked just fine. And then I made a new iso. I went through those commands above, and I ended up with the same error screen as shown in the screenshot linked to above. Is it that qemu doesn't want to use the iso that's in the Qemu directory and keeps looking to a cdrom?
...although it seems that once we get this working, it'll be a lot faster to install from an iso on my hard drive than one from a cdrom...
Is there a copy block or something on the XP cd? did'nt think so, but... If you use the
Give it a coupple of more tries booting from the CDrom
Option1
$ qemu -boot d -cdrom /cdrom -hda /home/karl/Qemu/hd.img -user-net -pci -m 256
Option2
$ qemu -boot d -cdrom /media/cdrom0 -hda /home/karl/Qemu/hd.img -user-net -pci -m 256
Option3
$ sudo umount /media/cdrom0
$ qemu -boot d -cdrom /dev/hdc -hda /home/karl/Qemu/hd.img -user-net -pci -m 256
slava
July 3rd, 2005, 11:37 PM
hello,
has anyone succeded booting a native win xp through qemu? my local xp in is on hdc1 so here is what i did:
ln -s /dev/hdc1 winxp.img
sudo qemu -boot c -hda winxp.img -pci -m 256
the qemu window starts, correctly finding the windows disk, goes just pass
Booting from hard disk...
and than gets stuck with cpu running at 100%. i waited for a long time and it does not move any further
thank you
slava
Lunde
July 4th, 2005, 03:34 AM
hello,
has anyone succeded booting a native win xp through qemu? my local xp in is on hdc1 so here is what i did:
ln -s /dev/hdc1 winxp.img
sudo qemu -boot c -hda winxp.img -pci -m 256
the qemu window starts, correctly finding the windows disk, goes just pass
Booting from hard disk...
and than gets stuck with cpu running at 100%. i waited for a long time and it does not move any further
thank you
slava
I don't think any of us ever did. Someone got as far as the xp progressbar, but that's all I know.
It's possible with VMware. If it's win9X you try doing this with there is a known bug about the 100% cpu and a fix for it.
http://fabrice.bellard.free.fr/qemu/qemu-doc.html#SEC28
If you have any success, please post the result here
Karl S.
July 4th, 2005, 12:43 PM
Is there a copy block or something on the XP cd? did'nt think so, but... If you use the
Give it a coupple of more tries booting from the CDrom
Option1
$ qemu -boot d -cdrom /cdrom -hda /home/karl/Qemu/hd.img -user-net -pci -m 256
Option2
$ qemu -boot d -cdrom /media/cdrom0 -hda /home/karl/Qemu/hd.img -user-net -pci -m 256
Option3
$ sudo umount /media/cdrom0
$ qemu -boot d -cdrom /dev/hdc -hda /home/karl/Qemu/hd.img -user-net -pci -m 256
Sorry to say this, but:
karl@ubuntu:~$ qemu -boot d -cdrom /cdrom -hda /home/karl/Qemu/hd.img -user-net -pci -m 256
You do not have enough space in '/dev/shm' for the 256 MB of QEMU virtual RAM.
To have more space available provided you have enough RAM and swap, do as root:
umount /dev/shm
mount -t tmpfs -o size=272m none /dev/shm
karl@ubuntu:~$ umount /dev/shm
umount: /dev/shm is not in the fstab (and you are not root)
karl@ubuntu:~$ sudo umount /dev/shm
Password:
karl@ubuntu:~$ mount -t tmpfs -o size=272m none /dev/shm
mount: only root can do that
karl@ubuntu:~$ sudo mount -t tmpfs -o size=272m none /dev/shm
karl@ubuntu:~$ qemu -boot d -cdrom /cdrom -hda /home/karl/Qemu/hd.img -user-net -pci -m 256
qemu: could not open hard disk image '/cdrom'
karl@ubuntu:~$ qemu -boot d -cdrom /media/cdrom0 -hda /home/karl/Qemu/hd.img -user-net -pci -m 256
qemu: could not open hard disk image '/media/cdrom0'
karl@ubuntu:~$ sudo umount /media/cdrom0
karl@ubuntu:~$ qemu -boot d -cdrom /dev/hdc -hda /home/karl/Qemu/hd.img -user-net -pci -m 256
qemu: could not open hard disk image '/dev/hdc'
karl@ubuntu:~$ cd Qemu
karl@ubuntu:~/Qemu$ ls -al
total 552556
drwxr-xr-x 2 karl karl 4096 2005-07-03 14:12 .
drwxr-xr-x 71 karl karl 4096 2005-07-04 10:03 ..
-rw-r--r-- 1 karl karl 4718592000 2005-07-02 14:27 hd.img
-rw-r--r-- 1 karl karl 565248000 2005-07-03 14:11 winXP.iso
I'm pretty befuddled. If the iso is on my computer, why shouldn't qemu be able to use it?
The winXP CD is an XP Professional Academic Edition with SP1 on it, which I purchased myself. I've installed this copy on both computers in the house, so I know it works...
Lunde
July 4th, 2005, 02:14 PM
Sorry to say this, but:
I'm pretty befuddled. If the iso is on my computer, why shouldn't qemu be able to use it?
The winXP CD is an XP Professional Academic Edition with SP1 on it, which I purchased myself. I've installed this copy on both computers in the house, so I know it works...
The problem is to get the boot sector right in the .iso. There is an option to boot from a floppy, It's a long time since i did that with XP and I'm not sure how to do that in Qemu, but I'll see if I can find out.
It might be easier if I help you out over Gaim. My msn is: do_not_send_to_this_email@hotmail.com
tepegoz
July 5th, 2005, 10:53 AM
Hello to all,
First of all, I should mention that this tutorial is really great, and will be very usefull for many linux users.
My question is this: I succesfully compiled and installed qemu with kqemu support, there is no warning, no error, everything is good. However when I start qemu, it drains all the cpu power, waits there. No window appears. I tried many different methods to run qemu, but nothing has changed. I found in one of the forums that this may be due to libsdl.
Has anybody faced such a problem?
Helps will be appreciated.
Lunde
July 5th, 2005, 11:10 AM
Hello to all,
First of all, I should mention that this tutorial is really great, and will be very usefull for many linux users.
My question is this: I succesfully compiled and installed qemu with kqemu support, there is no warning, no error, everything is good. However when I start qemu, it drains all the cpu power, waits there. No window appears. I tried many different methods to run qemu, but nothing has changed. I found in one of the forums that this may be due to libsdl.
Has anybody faced such a problem?
Helps will be appreciated.
Can you cut and paste the commands you use, and check the /var/log/syslog for errors related to this problem?
tepegoz
July 5th, 2005, 11:17 AM
I used the commands in the tutorial. That is:
qemu -boot d -cdrom /dev/cdrom -hda hd.img
I also tried commands like this:
qemu -boot d -cdrom /home/tepegoz/kubuntu-hoary-live-i386.iso -hda hd.img
Nothing happens, no log, no window, nothing. It seems that there is not any related information in syslog. Is there any other qemu log file?
Thanks in advance.
tepegoz
July 6th, 2005, 06:45 AM
I used the commands in the tutorial. That is:
qemu -boot d -cdrom /dev/cdrom -hda hd.img
I also tried commands like this:
qemu -boot d -cdrom /home/tepegoz/kubuntu-hoary-live-i386.iso -hda hd.img
Nothing happens, no log, no window, nothing. It seems that there is not any related information in syslog. Is there any other qemu log file?
Thanks in advance.
The problem is solved by installing libsdl1.2debian-alsa insted of oss. What is the difference between oss and alsa standards of libsdl, any idea?
Lunde
July 6th, 2005, 06:54 AM
The problem is solved by installing libsdl1.2debian-alsa insted of oss. What is the difference between oss and alsa standards of libsdl, any idea?
Glad you found the solution, somehow your previous post did'nt show up in my e-mail so I did'nt see it before now, sorry.
Howto: about sound in Hoary & Linux (I guess this answere your question)
http://www.ubuntuforums.org/showthread.php?t=26567
tepegoz
July 6th, 2005, 08:41 AM
This is really great to have dreamweaver and visio in linux. I don't need to reboot anymore :)
Thanks Lunde
Lunde
July 6th, 2005, 01:17 PM
Thank you
lannick
July 6th, 2005, 02:41 PM
Hi,
Thank you for this tutorial about the using of qemu.
Here is my problem.
I have winxp on hda1 (ntfs)
ubuntu on hda
I have linked hda to /home/lannick/windows/symlink.img
When I boot qemu I have the GRUB page and can select winxp but after I have this screen
'Booting Microsoft windows XP'
root (hd0,0)
Filesystem type unknow, partition type 0x7
Save default
Make active
Chainloader +1
Err. lecteur disque
Entrez CTRL+ALT+SUPPR pour redémarrer
If someone have an idea.
Thank you,
Lannick
Lunde
July 6th, 2005, 04:56 PM
Hi,
Thank you for this tutorial about the using of qemu.
Here is my problem.
I have winxp on hda1 (ntfs)
ubuntu on hda
I have linked hda to /home/lannick/windows/symlink.img
When I boot qemu I have the GRUB page and can select winxp but after I have this screen
'Booting Microsoft windows XP'
root (hd0,0)
Filesystem type unknow, partition type 0x7
Save default
Make active
Chainloader +1
Err. lecteur disque
Entrez CTRL+ALT+SUPPR pour redémarrer
If someone have an idea.
Thank you,
Lannick
I assume you have read some of the post here in this tread and know some of the problems this may cause. I don't think any of us ever managed to boot a native Windows. I still belive it's possible, but I don't have the disks to try. VMware can do it.
Anyway, I'll try to help you as much as I can if you want to continue trying.
Have you tried to make a symlink to /dev/hda1? someone reported getting to the progressbar in XP.
Maybe, because of problems with the bootloader it's a solution to create an empty small -hda and install a bootloader to it. Then use the symlink as -hdb, this way is more safe.
How is your disk structure? Win on hda1, and the rest?
lannick
July 7th, 2005, 02:14 AM
I assume you have read some of the post here in this tread and know some of the problems this may cause. I don't think any of us ever managed to boot a native Windows. I still belive it's possible, but I don't have the disks to try. VMware can do it.
Anyway, I'll try to help you as much as I can if you want to continue trying.
Have you tried to make a symlink to /dev/hda1? someone reported getting to the progressbar in XP.
Maybe, because of problems with the bootloader it's a solution to create an empty small -hda and install a bootloader to it. Then use the symlink as -hdb, this way is more safe.
How is your disk structure? Win on hda1, and the rest?
Hi Lunde,
Thank you for your answer.
Here are my partitions
hda1 - windows (ntfs)
hda2 - windows data (ntfs)
hda5 - linux (/)
hda6 - swap linux
hda7 - linux (/home)
I think I am going to test xp with a virtual installation on my home partition. I have started the install, it seem to work well but I have not enough disk space left.
I will reorganize my partitions and give you my results.
Best regards,
Lannick
Lunde
July 7th, 2005, 05:16 AM
Hi Lunde,
Thank you for your answer.
Here are my partitions
hda1 - windows (ntfs)
hda2 - windows data (ntfs)
hda5 - linux (/)
hda6 - swap linux
hda7 - linux (/home)
I think I am going to test xp with a virtual installation on my home partition. I have started the install, it seem to work well but I have not enough disk space left.
I will reorganize my partitions and give you my results.
Best regards,
Lannick
WInXP is a bit slow on Qemu, alot faster on VMware. Win2000 is the best choice I think for Qemu if you have an old CD laying around.
Remix_88
July 7th, 2005, 01:44 PM
Thank you very much for posting this HOW TO. Until today I had never heard of Qemu, it is perfect for my needs.
I now have it running WinXP SP2 from a hard disk image and I can now perform all my support functions at work without dual booting or having to explain to someone at work why they need to stump up the cash for a VMware license to support my Linux habbit :wink:
I will install Breezy into another disk image later tonight and give that a whirl. I am so pleased I can test Breezy without having to risk trashing my (very) stable Hoary setup.
Lunde
July 7th, 2005, 01:55 PM
Thank you very much for posting this HOW TO. Until today I had never heard of Qemu, it is perfect for my needs.
I now have it running WinXP SP2 from a hard disk image and I can now perform all my support functions at work without dual booting or having to explain to someone at work why they need to stump up the cash for a VMware license to support my Linux habbit :wink:
I will install Breezy into another disk image later tonight and give that a whirl. I am so pleased I can test Breezy without having to risk trashing my (very) stable Hoary setup.
Glad you're happy. Let me know how it goes with Breezy. It should'nt be any problems. I ran Knoppix and Ubuntu Server with success.
arnieboy
July 7th, 2005, 04:13 PM
I have been running Windows XP service Pack 2 (it even supports hibernation wow!) without any problems on qemu but I have not been able to get my sound card working. Its an integrated VIA sound card on a PM800-M2 motherboard. -enable sound does not help. I will give it a try again tonight and see if I can make it work.
I have followed the tutorials on how to make duplex sounds work with Alsa..
Thanks for the detailed tutorial lunde.
Lunde
July 7th, 2005, 06:53 PM
I have been running Windows XP service Pack 2 (it even supports hibernation wow!) without any problems on qemu but I have not been able to get my sound card working. Its an integrated VIA sound card on a PM800-M2 motherboard. -enable sound does not help. I will give it a try again tonight and see if I can make it work.
I have followed the tutorials on how to make duplex sounds work with Alsa..
Thanks for the detailed tutorial lunde.
The sound in Qemu has nothingto do with your soundcard, the linux sound driver is "transfering" the sound to your card, Qemu emulates a Soundblaster 16 card. Windows should recognize this card during the installation, but check in the Device Manager to be sure.
Does this help, As mentioned not a perfect solution, but it's a start to locate the problem (2 posts by Agent, check also the one below this post)
http://ubuntuforums.org/showthread.php?p=207948&highlight=sound#post207948
Here's another post, but I belive he did exactly the same as you did.
http://ubuntuforums.org/showthread.php?p=205044&highlight=sound#post205044
Did that temporarly fix the problem? if so, then we know what to look for..
arnieboy
July 7th, 2005, 07:33 PM
Hey Lunde, Thanks A LOT! I was able to get sound working as well by emulating as SB16! Thanks a Ton!
Now I have just one more question before am all set. I tried to set up samba by following ubuntuguide.org and the posts on this forum. Samba is up and running. I have shared a folder in my home folder and called it "share"
thus the path of it is: /home/myname/share.
Now i run qemu as follows:
sudo qemu -boot c -hda /home/myname/Qemu/hd.img -enable-audio -user-net -smb share -pci -m 256
Windows XP starts and when it boots up, I open a command prompt and type:
net use e: \\10.0.2.2\share
It asks for my username and password which I enter.
Then it throws up error "53" saying that it cannot find the network path.
Please help on this one. Thanks in advance.
Lunde
July 7th, 2005, 07:44 PM
Hey Lunde, Thanks A LOT! I was able to get sound working as well by emulating as SB16! Thanks a Ton!
Now I have just one more question before am all set. I tried to set up samba by following ubuntuguide.org and the posts on this forum. Samba is up and running. I have shared a folder in my home folder and called it "share"
thus the path of it is: /home/myname/share.
Now i run qemu as follows:
sudo qemu -boot c -hda /home/myname/Qemu/hd.img -enable-audio -user-net -smb share -pci -m 256
Windows XP starts and when it boots up, I open a command prompt and type:
net use e: \\10.0.2.2\share
It asks for my username and password which I enter.
Then it throws up error "53" saying that it cannot find the network path.
Please help on this one. Thanks in advance.
instead of net use just try to type in the address bar of IE or win.. explorer \\10.0.2.2 that will bring up the shared folders in Ubuntu
..strange IP address, I don't remember completly the emulated network of Qemu, but check in the Command prompt:
ipconfig, then the IP of your host should be first in range.. xxx.xxx.xxx.1
arnieboy
July 7th, 2005, 09:10 PM
hey thanks a lot again Lunde! Got the samba share up and working too.
:)
Lunde
July 8th, 2005, 03:01 PM
hey thanks a lot again Lunde! Got the samba share up and working too.
:)
Just for the record, what was the complete path? I use VMware again for windows now, so I have no way to check?
arnieboy
July 8th, 2005, 04:50 PM
Just for the record, what was the complete path? I use VMware again for windows now, so I have no way to check?
Sorry didnt get your question... complete path of what? my shared folder? that I have already mentioned in one of my posts.. but it must be something else u are asking about.
Lunde
July 8th, 2005, 06:16 PM
Sorry didnt get your question... complete path of what? my shared folder? that I have already mentioned in one of my posts.. but it must be something else u are asking about.
Sorry, I refrase my question: what was the solution to the network problem? I sort of just dropped out some ideas and what I remembered from when I did it earlier
arnieboy
July 8th, 2005, 06:21 PM
Sorry, I refrase my question: what was the solution to the network problem? I sort of just dropped out some ideas and what I remembered from when I did it earlier
aah. ok. well the solution was quite easy. I just opened windows explorer and typed in \\10.0.2.2 and that opened up the shared folders.
Thanks for the hint again.
Lunde
July 8th, 2005, 06:27 PM
aah. ok. well the solution was quite easy. I just opened windows explorer and typed in \\10.0.2.2 and that opened up the shared folders.
Thanks for the hint again.
Thanks! There's a lot of people asking questions here in this tread so I just try to memorize the solutions.
Tad030
July 13th, 2005, 05:59 PM
just curious, but would WindowsXP run faster from a disc image saved on the hard drive, compared to a cdrom, or does that matter?
The install worked great for me, I'm now at the customization stage. Thanks for this Howto.
Tad
arnieboy
July 13th, 2005, 06:13 PM
just curious, but would WindowsXP run faster from a disc image saved on the hard drive, compared to a cdrom, or does that matter?
The install worked great for me, I'm now at the customization stage. Thanks for this Howto.
Tad
It cant work from a cdrom because the image would then become read only.
Lunde
July 13th, 2005, 06:18 PM
just curious, but would WindowsXP run faster from a disc image saved on the hard drive, compared to a cdrom, or does that matter?
The install worked great for me, I'm now at the customization stage. Thanks for this Howto.
Tad
The XP installer will probably run a lot faster from an .iso image on your disk if that's what you meen.
Glad you liked the Howto
Tad030
July 13th, 2005, 06:19 PM
The XP installer will probably run a lot faster from an .iso image on your disk if that's what you meen.
Glad you liked the Howto
That is what I meant. Thanks.
traherom
July 13th, 2005, 07:46 PM
I'm wondering if anyone else has managed to do this from a "recovery" or "restore" CD, like the ones that often come with pre-built computers. I'm trying to use my laptop's recovery CD with this, but I get a little error...
Everything loads fine, the recovery agent (by PCAngel) pops up, does a few things, but suddenly tells me to "Please Insert System Restore DVD #1 now." Well... it is in. Any ideas?
It could be that this is the result of check to see if the computer it is being used on is the correct one (it may think it's not because the disk size appears much smaller), but I'd hope it would give a more informative message. :|
Lunde
July 14th, 2005, 03:34 AM
I'm wondering if anyone else has managed to do this from a "recovery" or "restore" CD, like the ones that often come with pre-built computers. I'm trying to use my laptop's recovery CD with this, but I get a little error...
Everything loads fine, the recovery agent (by PCAngel) pops up, does a few things, but suddenly tells me to "Please Insert System Restore DVD #1 now." Well... it is in. Any ideas?
It could be that this is the result of check to see if the computer it is being used on is the correct one (it may think it's not because the disk size appears much smaller), but I'd hope it would give a more informative message. :|
I did it with a HP recovery CD form a Laptop, worked fine. But, the problem is that if your recovery CD expects to find spesific hardware. Qemu emulates the hardware so it's nothing like the original hardware even tho it's the same laptop. The disk is now an image in a folder, the screen card is an emulated Cirrus Logic, the Sound is an emulated SB16, Network is viritual etc..
I suggest, if you are able to boot Normal or in Safe mode, to remove PC angel and all the software that came with your recovery CD. If not, at which stange of the installation does it stop?
traherom
July 14th, 2005, 07:41 AM
I suggest, if you are able to boot Normal or in Safe mode, to remove PC angel and all the software that came with your recovery CD. If not, at which stange of the installation does it stop?It doesn't even begin to install files. It goes through the pre-recovery steps, but as soon as it gets to the step where it actually copies stuff, it tells me to insert the DVD...
Lunde
July 14th, 2005, 08:06 AM
It doesn't even begin to install files. It goes through the pre-recovery steps, but as soon as it gets to the step where it actually copies stuff, it tells me to insert the DVD...
Thats a problem with the recovery CD's.. if you have enought disk space, there's an option that might work. Keep in mind that I've never done this and don't know the result.
Experimental
There's a possibuility that it might work to dd (image copy) the partition you already have installed XP to. The reason I think this might work is that you may just as well make a disk image with dd, then the qemu option used in this howto.
Hardware problem:
If you try this, you most likely have to boot with safemode and delete drivers for your Screen card, sound card, etc.
Disk space:
with dd the image can be made so that it expands with the size of the disk, this meens that your result of the dd image copy may be smaller then the actual disk / partition you are copying from. At least it works like that when you create an empty image.
dd if=/dev/hda1 of=/home/username/location_of_diskimage.img
More detailed description of dd here:
http://www.cpqlinux.com/ddbackup.html
traherom
July 14th, 2005, 07:44 PM
Would it work to use someone else's XP install CD, but use the CD key on my laptop? It would be legal, because I do own it, I just can't get it to install. :D
Worth a try, anyway. I know someone who has their CD where I'll be tomorrow. :)
Lunde
July 14th, 2005, 07:56 PM
Would it work to use someone else's XP install CD, but use the CD key on my laptop? It would be legal, because I do own it, I just can't get it to install. :D
Worth a try, anyway. I know someone who has their CD where I'll be tomorrow. :)
I afraid it might not work, different registration keys. Most recovery cd's have a seperate range of keys. And there also may be problems with the activation.
traherom
July 17th, 2005, 11:40 AM
I got Windows installed by borrowing a friend's disk. Thanks!
Lunde
July 17th, 2005, 12:41 PM
I got Windows installed by borrowing a friend's disk. Thanks!
Glad it worked out for you
edemark
July 17th, 2005, 11:44 PM
Glad it worked out for you
Hi everybody just a quick question:
How to remove an earlyer installation that was done with make install?
I have tried make uninstall but it did not work
I am just asking as i have to reinstall it.
Thanks
Lunde
July 18th, 2005, 05:45 AM
Hi everybody just a quick question:
How to remove an earlyer installation that was done with make install?
I have tried make uninstall but it did not work
I am just asking as i have to reinstall it.
Thanks
I suppose you used:
$sudo make uninstall
I was pretty sure that would work, but I had the same problem after a kernel upgrade (Silly me), and I thought that was the reason it did'nt work.
I posted a question to the user forum of Qemu and will let you know as soon as i get an answere.
What's the reason for the reinstall? It may not be the best solution, but I thnk it's a possibuility to run another on top if it's not working.
edemark
July 18th, 2005, 09:55 AM
I suppose you used:
$sudo make uninstall
I was pretty sure that would work, but I had the same problem after a kernel upgrade (Silly me), and I thought that was the reason it did'nt work.
I posted a question to the user forum of Qemu and will let you know as soon as i get an answere.
What's the reason for the reinstall? It may not be the best solution, but I thnk it's a possibuility to run another on top if it's not working.
My problem is that i started to make things before reading. So I have ended up with some warning message at the end of make (this issue was covered earlier in this thread ONE SHALL ALLWAYS READ FIRST) it is an issue related to permissions of kquemu. I did not have the right permissions while make and make install even though i did it so with sudo.
So I just would like to remove it, correct permissions, make again and make install again.
Pd would it be possible removing manually all parts (i know mayor part is in /usr/local)?
thanks
Lunde
July 18th, 2005, 12:29 PM
Just overwrite on top, that should be OK.
As for removing, I'll have to get back to that.
deng
July 18th, 2005, 02:06 PM
Im intrested with this topics but im begginer for all this...
now i keep my eyes to all thats required installer... Not free .. freee.. not free...
brb...will tell u later...
Lunde
July 18th, 2005, 02:53 PM
Im intrested with this topics but im begginer for all this...
now i keep my eyes to all thats required installer... Not free .. freee.. not free...
brb...will tell u later...
Qemu with Kqemu is free, but you are required to have a Windows install CD, preferably not a recovery CD delivered with new PC's, but also some of these works fine.
edemark
July 19th, 2005, 10:27 AM
Just overwrite on top, that should be OK.
As for removing, I'll have to get back to that.
Thanks Lunde it worked
I was able to reinstall qemu with kqemu and then i installed 2k.
Lunde
July 19th, 2005, 04:02 PM
Thanks Lunde it worked
I was able to reinstall qemu with kqemu and then i installed 2k.
Great! Let me know if you have any other problems.
I'm still waiting for an answere on the uninstall
edemark
July 20th, 2005, 11:48 AM
Great! Let me know if you have any other problems.
I'm still waiting for an answere on the uninstall
If problem I have one think in mind. I just can not understand how to change cds while vvin is running. In other words the only cd it sees is the one that was inserted before starting up the guest os.
Is there any way to change cds or will i have to carry on with restarting the guest os to be able to change cds?
thanks
Lunde
July 20th, 2005, 12:36 PM
Sounds very strange.. Even if you do a F5 (Refresh) in explorer? Qemu mounts the CDROM /dev/cdrom if you choose so in the startup command. So it should be just to eject and insert a new CD.. but maybe do a refresh in windows
edemark
July 20th, 2005, 08:50 PM
Sounds very strange.. Even if you do a F5 (Refresh) in explorer? Qemu mounts the CDROM /dev/cdrom if you choose so in the startup command. So it should be just to eject and insert a new CD.. but maybe do a refresh in windows
Ok so my story then a bit strange as qemu would not strt witn -cdrom /dev/cdrom if there is no cd in the drive it would just give an error message stating that it can not find a bootable image in the cdrom. I get this error even that i am booting hd.img. If I put a cd in the drive qemu boots perfectly the hd.img
any idea?
thanks
arnieboy
July 20th, 2005, 10:34 PM
Ok so my story then a bit strange as qemu would not strt witn -cdrom /dev/cdrom if there is no cd in the drive it would just give an error message stating that it can not find a bootable image in the cdrom. I get this error even that i am booting hd.img. If I put a cd in the drive qemu boots perfectly the hd.img
any idea?
thanks
it wont start with the cdrom option unless u have a cd entered in ur cdrom drive. if u dont need a cd u can start qemu without the -cdrom option... but if u do that u wont be able to access ur cdrom drive thru qemu once the emulator starts.
Lunde
July 21st, 2005, 03:12 AM
I'm not running Qemu anymore so I can't try to reproduce that problem. It sounds very strange, I can't remember having any such problems.
Can you post the command you use to start Qemu?
edemark
July 21st, 2005, 01:15 PM
I'm not running Qemu anymore so I can't try to reproduce that problem. It sounds very strange, I can't remember having any such problems.
Can you post the command you use to start Qemu?
the command i use is the following
qemu -boot c -cdrom /dev/cdrom -hda hd.img -m 192 -pci -enable-audio
hope this helps
thanks
Lunde
July 21st, 2005, 01:51 PM
the command i use is the following
qemu -boot c -cdrom /dev/cdrom -hda hd.img -m 192 -pci -enable-audio
hope this helps
thanks
is it still the same if you use
-cdrom /media/cdrom0 in the "end" of the command (No symlinks)
Also what you can try is:
If you start qemu from terminal, in the terminal window after qemu starts you can now type commands to qemu. Type:
eject cdrom
then:
cdrom /dev/cdrom
Kakalto
July 21st, 2005, 07:26 PM
I could install WinXP onto Qemu, then use it to access my NTFS partitions from my real XP, right?
digiital
July 22nd, 2005, 12:59 AM
Maybe I missed something, but has anyone figured out how to get it to boot xp already on the HD? Trying to use the copy of xp I have already installed on this laptop. With somewhat limited HD space, I really can't afford to have another 2-3 gig image file.
Thanks.
Lunde
July 22nd, 2005, 03:13 AM
I could install WinXP onto Qemu, then use it to access my NTFS partitions from my real XP, right?
Not with SMB networking, because it's linux that shares the ntfs partition. I don't know about symlinks, might work:
$ ln -s /dev/hdXX /home/username/Qemu/ntfs.img
(Where XX is your ntfs partition and username is your username)
-hdb /home/username/Qemu/ntfs.img
Lunde
July 22nd, 2005, 03:15 AM
Maybe I missed something, but has anyone figured out how to get it to boot xp already on the HD? Trying to use the copy of xp I have already installed on this laptop. With somewhat limited HD space, I really can't afford to have another 2-3 gig image file.
Thanks.
Not that I know of, got close, but never worked completely. VMware can do that.
digiital
July 22nd, 2005, 05:43 AM
Ok thanks Lunde, just wanted to make sure I didn't miss something with the 22 pages of this thread.
Not that I know of, got close, but never worked completely. VMware can do that.
SuperMike
July 24th, 2005, 06:02 PM
Lunde, do you have an idea how Qemu stacks up against Xen? Also, I've installed Wine pretty well, added in the MFC* DLLs from W2K into the System32 directory, and then got JASC Paintshop Pro 4 working fairly well. At my office, I use tsclient and rdesktop to connect to a regular Windows station. Saves the hassle.
On a side note, I've got a bad deal at my office. They either want me to install Novell Linux Desktop, or Windows XP. Since I only like Ubuntu, I'm thinking of installing Xen (if I can ever figure it out) and then get it to load up Novell Linux Desktop inside it in full screen mode. That should satisfy the nosy systems auditor who flies in from Calif. occasionally.
Lunde
July 25th, 2005, 05:07 AM
Lunde, do you have an idea how Qemu stacks up against Xen? Also, I've installed Wine pretty well, added in the MFC* DLLs from W2K into the System32 directory, and then got JASC Paintshop Pro 4 working fairly well. At my office, I use tsclient and rdesktop to connect to a regular Windows station. Saves the hassle.
On a side note, I've got a bad deal at my office. They either want me to install Novell Linux Desktop, or Windows XP. Since I only like Ubuntu, I'm thinking of installing Xen (if I can ever figure it out) and then get it to load up Novell Linux Desktop inside it in full screen mode. That should satisfy the nosy systems auditor who flies in from Calif. occasionally.
I'm not to familiar with Xen, But VMware may be a good solution for you. VMware is definitly the fastes solution for proffesional use I have tried.
http://www.novell.com/coolsolutions/qna/1805.html
Bramme
July 27th, 2005, 03:07 PM
it's possible that this question is already asked,but i don't have the time for reading 22 pages, sorry :s
is the emulation much slower when the guest OS image is on another partition ? (on the same physical harddisk)
because this partition is full ... :(
Lunde
July 27th, 2005, 07:18 PM
it's possible that this question is already asked,but i don't have the time for reading 22 pages, sorry :s
is the emulation much slower when the guest OS image is on another partition ? (on the same physical harddisk)
because this partition is full ... :(
I'm sure that's no difference, A lot of people (including me) use /home as a seperate partition and run it from there.
geearf
July 29th, 2005, 09:37 AM
Hello,
thanks for this how to, it was very usefull.
But maybe you should add something about the problem with x86 computers and the new 0.71, i had to do so :
change the function kqemu_vmalloc in the file kqemu-linux.c like this:
void * CDECL kqemu_vmalloc(unsigned int size)
{
//return __vmalloc(size, GFP_KERNEL, PAGE_KERNEL_EXEC);
return __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
}
kLy
July 30th, 2005, 05:24 AM
Hi
When trying to ./configure I get this:
kbuild type 2.6
ERROR: QEMU requires SDL or Cocoa for graphical output
To build QEMU with graphical output configure with --disable-gfx-check
Note that this will disable all output from the virtual graphics card.
I did install libsdl1.2-dev :( What's wrong?
kLy
July 30th, 2005, 06:09 AM
Hi
When trying to ./configure I get this:
kbuild type 2.6
ERROR: QEMU requires SDL or Cocoa for graphical output
To build QEMU with graphical output configure with --disable-gfx-check
Note that this will disable all output from the virtual graphics card.
I did install libsdl1.2-dev :( What's wrong?
ok I got the above fixed somehow and it installed. But if I try to modprobe kqemu, I get this in dmesg:
kqemu: Unknown symbol __PAGE_KERNEL_EXEC
:(
What's up?
Lunde
July 30th, 2005, 12:07 PM
Hello,
thanks for this how to, it was very usefull.
But maybe you should add something about the problem with x86 computers and the new 0.71, i had to do so :
change the function kqemu_vmalloc in the file kqemu-linux.c like this:
void * CDECL kqemu_vmalloc(unsigned int size)
{
//return __vmalloc(size, GFP_KERNEL, PAGE_KERNEL_EXEC);
return __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
}
Thanx geearf
Just want to make sure I don't add anything without being sure. If I understand correctly, this is a problem that occures to all X86 PCs? Can you explain this a bit more?
Lunde
July 30th, 2005, 12:12 PM
ok I got the above fixed somehow and it installed. But if I try to modprobe kqemu, I get this in dmesg:
kqemu: Unknown symbol __PAGE_KERNEL_EXEC
:(
What's up?
I guess this is a bug that's fixed in a new version
kqemu 0.7.1-1
From: Fabrice Bellard <fabrice <at> bellard.org>
Subject: kqemu 0.7.1-1
Newsgroups: gmane.comp.emulators.qemu
Date: 2005-07-28 22:31:24 GMT
A new version of kqemu is available.
version 0.7.1-1:
- FreeBSD compile fixes - added x86_64 support
- __PAGE_KERNEL_EXEC fix for Linux 2.6
Fabrice.
samjam
July 30th, 2005, 12:13 PM
Thank you very much for posting this HOW TO. Until today I had never heard of Qemu, it is perfect for my needs.
I now have it running WinXP SP2 from a hard disk image and I can now perform all my support functions at work without dual booting or having to explain to someone at work why they need to stump up the cash for a VMware license to support my Linux habbit :wink:
I will install Breezy into another disk image later tonight and give that a whirl. I am so pleased I can test Breezy without having to risk trashing my (very) stable Hoary setup.
So any tips?
I can't get XP SP1 to run.
In safe mode it gets stuck just afdter it loads Mup.sys whatever that is, or sometimes NDIS.sys
Sam
kLy
July 30th, 2005, 12:39 PM
I guess this is a bug that's fixed in a new version
kqemu 0.7.1-1
From: Fabrice Bellard <fabrice <at> bellard.org>
Subject: kqemu 0.7.1-1
Newsgroups: gmane.comp.emulators.qemu
Date: 2005-07-28 22:31:24 GMT
A new version of kqemu is available.
version 0.7.1-1:
- FreeBSD compile fixes - added x86_64 support
- __PAGE_KERNEL_EXEC fix for Linux 2.6
Fabrice.
oh ok. Where can I get this? It's not on the official site
kLy
July 30th, 2005, 12:41 PM
ok sorry. it is. it's the KQemu module. thx
kLy
July 30th, 2005, 12:46 PM
crap. there isn't a "make uninstall" ! arg!
Now there's a zillion files lying all over my system that I don't know where to find to get rid of :( This is why I hate non-distro installs :(
Lunde
July 30th, 2005, 02:23 PM
crap. there isn't a "make uninstall" ! arg!
Now there's a zillion files lying all over my system that I don't know where to find to get rid of :( This is why I hate non-distro installs :(
I posted a tread on the Qemu forum a coupple of weeks ago about that, no replies yet. I will check a bit more into that when I have time.
Is this because you want to remove it completly or because you want to upgrade?
kLy
July 30th, 2005, 03:06 PM
no I upgraded now and hit the "make install". it just overwrote everything, which is ok. And now it works :) Thanks
But say I want to get rid of it... that'll get ugly. Most of the stuff's in /usr/local/bin or /usr/local/share, but then there's kernel modules and who know's what else floating around your system. Darn.
geearf
July 30th, 2005, 05:57 PM
Hello,
if there is a new version out there, then no need to add nothing to the how to :)
Lunde
July 30th, 2005, 06:08 PM
Hello,
if there is a new version out there, then no need to add nothing to the how to :)
Is there anything I need to change for the new version? Can I just update the version number?
geearf
July 30th, 2005, 06:27 PM
Well it seems the bug was fixed (I'll be able to tell you that on Monday, i don't know why but my box at work does not answer to ssh right now).
But I guess just changing number is the right thing to do yes.
tombeharrell
July 30th, 2005, 07:42 PM
An excellent how-to, many thanks. I have now got Qemu installed and into it I have installed Win XP Pro. It all seems to work fine, however the XP box's clock runs way too fast affecting things that are animated etc. Has anybody else experienced this?
When the machine is idling and drops to 600MHz a minute in the XP window takes about 19 seconds. With some load so the host runs at 1.5GHz, the minute takes about 10 seconds. Is there anyway of having it sync to the local clock properly?
My machine is a Centrino-based Inspiron 6000.
Thanks
Tom.
Lunde
July 31st, 2005, 05:42 AM
Hopefully the programs run that fast too :-)
Does it help by setting the: -localtime in your startup command?
Lunde
July 31st, 2005, 05:51 AM
Free Operating Systems ZOO is back up agian, Download free images for your Qemu emulator.
http://free.oszoo.org/download.html
kLy
July 31st, 2005, 08:43 AM
Instead of the hacky mods to bootmisc, might I suggest loading the module with:
modprobe kqemu major=0
This creates the /dev/kqemu device automatically. Then add "kqemu:root:root:0666" to the udev permissions in /etc/udev/permissions.d/
This is from the docs. I did this myself tho I haven't given it a reboot to see if that'll do it yet so give it a try.
Lunde
July 31st, 2005, 09:32 AM
Instead of the hacky mods to bootmisc, might I suggest loading the module with:
modprobe kqemu major=0
This creates the /dev/kqemu device automatically. Then add "kqemu:root:root:0666" to the udev permissions in /etc/udev/permissions.d/
This is from the docs. I did this myself tho I haven't given it a reboot to see if that'll do it yet so give it a try.
Intresting kLy
Can you tell me how this works and if there are any benefits after the reboot? I would try myself, but I don't have Qemu installed right now.
If this results in a performance boost or fix any problems, I would like to add this suggestion to the Howto.
kLy
July 31st, 2005, 09:41 AM
not a performance boost. it just adds /dev/kqemu automatically without having to resort to the bootmisc hack, though I'm not too familiar with autoloading modules since all the ones I autoload don't need parameters: ie. can you specify module load parameters in /etc/modules?
eg. add the line "kqemu major=0" to it? If you can then this would be all you need I guess.
I'll test it myself as soon as I reboot.
Lunde
July 31st, 2005, 11:56 AM
not a performance boost. it just adds /dev/kqemu automatically without having to resort to the bootmisc hack, though I'm not too familiar with autoloading modules since all the ones I autoload don't need parameters: ie. can you specify module load parameters in /etc/modules?
eg. add the line "kqemu major=0" to it? If you can then this would be all you need I guess.
I'll test it myself as soon as I reboot.
I guess this should'nt be a problem in /etc/init.d/bootmisc.sh at least..
/sbin/modprobe kqemu major=0
tombeharrell
July 31st, 2005, 12:08 PM
Hopefully the programs run that fast too :-)
Does it help by setting the: -localtime in your startup command?
Doesn't help unfortunately, though I think the time is synced when it starts to boot up. By the time the desktop loads it's already 10 minutes fast :roll:
On another note I tried installing my work VPN (Sonicwall) but it doesn't see the network adapter. Although in Device Manager the card is listed (Realtek RTL8029) and it shows up as Ethernet adapter Local Area Connection with ipconfig /all, it doesn't show up in Control Panel/Network Connections. Has anyone found a way of having it show up here, as that might allow my VPN to see it properly?
Thanks, Tom.
Lunde
July 31st, 2005, 03:53 PM
Doesn't help unfortunately, though I think the time is synced when it starts to boot up. By the time the desktop loads it's already 10 minutes fast :roll:
On another note I tried installing my work VPN (Sonicwall) but it doesn't see the network adapter. Although in Device Manager the card is listed (Realtek RTL8029) and it shows up as Ethernet adapter Local Area Connection with ipconfig /all, it doesn't show up in Control Panel/Network Connections. Has anyone found a way of having it show up here, as that might allow my VPN to see it properly?
Thanks, Tom.
Qemu is not comunicating directly with your network card, it's bridged if I remember correctly. The only thing you have to do to connect with the net is to use the -user-net then set the settings in Linux.
I know VMware let you communicate directly with the adapter, but I don't know if it's possible with Qemu.
geearf
August 1st, 2005, 05:28 AM
Well I've just tried the new Kqemu, and it does not need any patch now, that's a good thing.
But I still cannot use checkinstall instead of make install, and that is a bad thing :(
(oh and I know why i could'nt access my computer Saturday, it was coz I forgot to take out the Ubuntu CD before rebooting the comp and going home :) )
geearf
August 1st, 2005, 07:21 AM
It seems the network is not doing so well.
I am installing XP right now, and it seems to have trouble getting my network (it's been looking for it for about 10 minutes). But it seems to go further right now. The big thing is the network here is a bit complicated (you need to register the ip and the mac adress, you need to use the proxy ...).
Also to get numkeys in XP work, I have to unlock them in Ubuntu, a bit funny :)
I'll update this post as soon as I have something more to add to it :)
Lunde
August 1st, 2005, 07:53 AM
It seems the network is not doing so well.
I am installing XP right now, and it seems to have trouble getting my network (it's been looking for it for about 10 minutes). But it seems to go further right now. The big thing is the network here is a bit complicated (you need to register the ip and the mac adress, you need to use the proxy ...).
Also to get numkeys in XP work, I have to unlock them in Ubuntu, a bit funny :)
I'll update this post as soon as I have something more to add to it :)
Is'nt it a possibuility to bridge the network adapter
Lunde
August 1st, 2005, 07:56 AM
And for the numlock
http://www.ubuntuguide.org/#numlockx
geearf
August 1st, 2005, 09:19 AM
Hello,
the installation is still not over, it says still one minute, but it's already been more so I guess not.
Also for the NIC, well it is still not installed so I cannot do much, and for the numlock, it's on within Ubuntu at start, but not within Windows, I think it just thinks that when it start Windows it should be off, then whatever it is under ubunto, when I start Windows => off.
But still, I am a bit frightened by the speed :(
edit : I've finally recompiled qemu and reinstalled Windows, it works fine, although it's a bit slow :(
Boot time is about 1 minute, which is great, but using it feel slow :(
edit again : I've got the network alrgith, but i can't figure how to use samba within it,if anyone has any idea on this I'll be glad :)
vBulletin® v3.8.1, Copyright ©2000-2009, Jelsoft Enterprises Ltd.