|
FreeBSD Ports and Packages Installation and upgrading of ports and packages on FreeBSD. |
|
Thread Tools | Display Modes |
|
|||
qemu + guest os winxp - very slow..
Hi, folks!
Today I've installed qemu, cause I'm really tired from dual booting FreeBSD/WinXP. First I've installed qemu-devel from ports with kqemu-kmod-devel, then installed WinXP successfully but the performance is very poor. I have aio, if_bridge, if_tap and kqemu loaded. I've tried running qemu with -vnc :1 option, but the performance is even slower. After that I decided to give qemu (no devel) a chance. I think it works a little better than qemu-devel, but still it uses almost 99-100% of my CPU (AMD Athlon ~ 2.2 Ghz) My question is how to reduce that CPU usage so I can get a better performance? Now I realize that I can't switch to FreeBSD completely cause I still need some win apps like AutoCAD. Thanks everyone! Cheers, DNAeon
__________________
"I never think of the future. It comes soon enough." - A.E Useful links: FreeBSD Handbook | FreeBSD Developer's Handbook | The Porter's Handbook | PF User's Guide | unix-heaven.org |
|
||||
QEMU is slow unfortunelly, you may check Win4BSD which is free for personal use and seems to be faster then QEMU.
Other thing is to use Windows 2000 cause it uses less resources and CPU then XP. But generally virtualization on FreeBSD sucks greatly, You should also try VirtualBox @ OpenSolaris with Guest Additions for the Guest OS, runs very fast.
__________________
religions, worst damnation of mankind "If 386BSD had been available when I started on Linux, Linux would probably never had happened." Linus Torvalds Linux is not UNIX! Face it! It is not an insult. It is fact: GNU is a recursive acronym for “GNU's Not UNIX”. vermaden's: links resources deviantart spreadbsd |
|
||||
NetBSD should run even faster.
__________________
religions, worst damnation of mankind "If 386BSD had been available when I started on Linux, Linux would probably never had happened." Linus Torvalds Linux is not UNIX! Face it! It is not an insult. It is fact: GNU is a recursive acronym for “GNU's Not UNIX”. vermaden's: links resources deviantart spreadbsd |
|
|||
I've tested FreeBSD under qemu too - FreeBSD host system and FreeBSD guest system - 100% cpu usage during boot (is this supposed to be normal?)
My system is not that slow though - I've got 2Gb of RAM and 2.2 Ghz cpu, but qemu just fails to perform well. I'm currently downloading the latest releases of NetBSD and OpenBSD just to test them under qemu and I'll report back which one works better under qemu. In my opinion VirtualBox for Linux is far better than qemu, but unfortunately there is no VirtualBox for FreeBSD.
__________________
"I never think of the future. It comes soon enough." - A.E Useful links: FreeBSD Handbook | FreeBSD Developer's Handbook | The Porter's Handbook | PF User's Guide | unix-heaven.org Last edited by DNAeon; 18th November 2008 at 09:58 PM. |
|
|||
Quote:
changing sysctl kern.hz from 1000 to 100 can help a lot. Quote:
|
|
|||
This sadly is a real weakness of the BSD family -- the lack of a good software VM. The old VMware still is the most responsive, but it works only on a single CPU or core. So if you want to use it, you have to disable the rest of your cores and reboot. Even in that mode, it is faster than using all the cores in qemu or Win4BSD on my (very old) dual Athlon box.
It also seems that in spite of repeated requests by the VBox developers, that no FreeBSD developer wishes to contribute to coding the kernel module that stands in the way of getting it to work. I just keep a Windows box around. There are times when I spend a few days straight on it, and others where I don't use it for a few days. It all depends on what I'm doing. But the VMs just have proven to be too irritating. |
|
|||
On his job Phoenix is quite happy with the KVM virtualizer/emulator. But this needs hardware virtualization support, which only can be found in the newer generation of CPU's
See http://daemonforums.org/showthread.php?t=1410 and http://en.wikipedia.org/wiki/Kernel-...irtual_Machine But, what is so bad about multibooting ?
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump |
|
|||
Right, but FreeBSD (which I use) does not support KVM (or Xen).
Personally, I hate multi-booting. The program you want to use is always on the other side, and booting for me takes a looonnngggg time. That's because I use ECC-Scrub mode on the memory, and it takes a few minutes (5?) to scan 3GB memory on this slow computer. Then there's the rest of the boot procedure. It is just easier for me to connect from the Windows box to the BSD box (including remote x sessions when needed) instead when I need to be on the Windows side primarily. I have the computers and the room. |
|
||||
Accoriding to QEMU Mailing Lists they want to add KVM bits to QEMU itself, along with some gfx addons from both Xen and KVM, the upcoming QEMU 9.2 should be a lot faster then current one, but it will take some time to release also:
http://lists.gnu.org/archive/html/qe.../msg00253.html More threads: http://lists.gnu.org/archive/html/qemu-devel/ I also do not get the point why FreeBSD developers are so little interested in virtualization, like VirtualBox. Someone even ported KVM to FreeBSD as a Summer of Code project, but its as usual, abandoned right now. This is what I like about OpenSolaris, focusing on 64bit and virtualization.
__________________
religions, worst damnation of mankind "If 386BSD had been available when I started on Linux, Linux would probably never had happened." Linus Torvalds Linux is not UNIX! Face it! It is not an insult. It is fact: GNU is a recursive acronym for “GNU's Not UNIX”. vermaden's: links resources deviantart spreadbsd |
|
|||
So what will be your advice, guys - should I stay with qemu or try some other VM software?
I need virtualization for testing. Multi-booting is not an option. EDIT: btw while trying to setup these sysctl's gives me an error like sysctl: unknown oid Code:
# sysctl net.link.ether.bridge_cfg=fxp0,tap0 # sysctl net.link.ether.bridge.enable=1 # sysctl kern.hz=100
__________________
"I never think of the future. It comes soon enough." - A.E Useful links: FreeBSD Handbook | FreeBSD Developer's Handbook | The Porter's Handbook | PF User's Guide | unix-heaven.org Last edited by DNAeon; 19th November 2008 at 10:36 AM. |
|
|||
Quote:
But how can I get the value which is set by default to kern.hz? Also, I need to set kern.hz on the host machine, right? EDIT: My fault, kern.hz should be set on the guest machine.
__________________
"I never think of the future. It comes soon enough." - A.E Useful links: FreeBSD Handbook | FreeBSD Developer's Handbook | The Porter's Handbook | PF User's Guide | unix-heaven.org Last edited by DNAeon; 19th November 2008 at 12:21 PM. |
|
||||
No, what for?
... but setting it to 100 helps to get more battery time on laptops.
__________________
religions, worst damnation of mankind "If 386BSD had been available when I started on Linux, Linux would probably never had happened." Linus Torvalds Linux is not UNIX! Face it! It is not an insult. It is fact: GNU is a recursive acronym for “GNU's Not UNIX”. vermaden's: links resources deviantart spreadbsd |
|
||||
As host OS, no.
As guest OS, FreeBSD runs fine in hardware-assisted VMs (HVM) on both Xen and KVM, and there are a couple different ways to get FreeBSD to run in a paravirtualised VM (PV) on Xen. Official support for PV domU (Xen) has even been added to FreeBSD-CURRENT. If one needs to run multiple OSes at once, on the same machine, they are better off going with a slimmed-down Linux install running KVM, Xen, VMware Server (or even VMWare ESXi), or VirtualBox, and run the different OSes in VMs, including the one they will be using the most. Virtualisation work in FreeBSD is happening at the "run multiple worlds on single kernel" level (jails / vimage), and from the guest side of things. Until someone comes out of the woodwork and starts working on VM host support for FreeBSD, this is the best we're going to get. |
|
||||
Quote:
Quote:
|
|
|||
Quote:
For the moment I'm just sticking to multiple machines. It saves a lot of time and irritation, and I already have the hardware. It works well enough for now. |
|
||||
Quote:
__________________
UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things. |
|
|||
Quote:
Also the FreeBSD Handbook recommends to set kern.hz http://www.freebsd.org/doc/handbook/...ion-guest.html
__________________
"I never think of the future. It comes soon enough." - A.E Useful links: FreeBSD Handbook | FreeBSD Developer's Handbook | The Porter's Handbook | PF User's Guide | unix-heaven.org |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
qemu sound | Oko | OpenBSD Packages and Ports | 2 | 7th May 2009 06:59 AM |
Print on remote WinXP from web host | drhowarddrfine | General software and network | 5 | 13th October 2008 05:41 PM |
Dual-booting WinXP, FreeBSD; unlikely disk geometry | ronaldmcdonald9 | FreeBSD Installation and Upgrading | 6 | 11th July 2008 06:10 PM |
Jailed QEMU + other OS | revzalot | FreeBSD Installation and Upgrading | 3 | 29th May 2008 06:00 PM |