Qemu Questions
I must apologize for subscribing to this list, but the Qemu users list is dead, sop this is my only option. I understand it is a development list, but I would appreciate some help.
I will make it concise.
1) What is the best Distro to run Qemu on with the least hassles?
FYI, I now run it on FC7, but it is a lot of trouble. kqemu refuses to work on FC7 on a v20z Sun dual cpu dual core rack server XEN just completely doesnt load even though the Kernel is XEN, but at least qemu works with the following Caveat; "Could not open '/dev/kqemu' - QEMU acceleration layer not activated"
2) Does an activated QEMU acceleration layer (missing above) make a huge difference?
3) I have several operating systems successfully loaded in Qemu sessions, but networking is just not working. I worked through loads of FAQs from the net, but to no avail.
4) Finally is there a preferred distro which is known to solve all the problems mentioned above?
Thanks.
Quoted 4 lines · On Fri, Nov 09, 2007 at 08:42:52PM -0500, [email protected] wrote:
I must apologize for subscribing to this list, but the Qemu users list is dead, sop this is my only option.
I understand it is a development list, but I would appreciate some help.
Quoted 8 lines
I will make it concise.
1) What is the best Distro to run Qemu on with the least hassles? FYI, I now run it on FC7, but it is a lot of trouble. kqemu refuses to work on FC7 on a v20z Sun dual cpu dual core rack server XEN just completely doesnt load even though the Kernel is XEN, but at least qemu works with the following Caveat;
"Could not open '/dev/kqemu' - QEMU acceleration layer not activated"
As a general rule (with a couple of exception) Fedora only ships kernel modules which are in upstream LKML sources. kqemu is not upstream, so it is not included in Fedora RPMs for QEMU.
Quoted 2 lines
2) Does an activated QEMU acceleration layer (missing above) make a huge difference?
Yes, it improves performance signficantly - although not all OS will run under kqemu.
Quoted 3 lines
3) I have several operating systems successfully loaded in Qemu sessions, but networking is just not working. I worked through loads of FAQs from the net, but to no avail.
With Fedora 7 you can try 'virt-manager' which will let you setup QEMU guests, which by default have NAT'd access to the outside world. If you setup your host network in appropriate manner they can also be bridged In this doc where you see 'kvm' - 'qemu' applies just the same way
http://watzmann.net/blog/index.php/2007/04/27/networking_with_kvm_and_libvirt
The main potential gotcha I know is that ip_forward must be enabled
eg,
$ /sbin/sysctl net.ipv4.ip_forward net.ipv4.ip_forward = 1
Quoted 2 lines
4) Finally is there a preferred distro which is known to solve all the problems mentioned above?
Networking should work correctly for NAT & bridging (assuming suitable host config). KQEMU won't work in Fedora since the module is not upstream.
Regards,
Dan.
Signature · 4 lines
|=- Red Hat, Engineering, Emerging Technologies, Boston. +1 978 392 2496 -=| |=- Perl modules: http://search.cpan.org/~danberr/ -=| |=- Projects: http://freshmeat.net/~danielpb/ -=| |=- GnuPG: 7D3B9505 F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 -=|
Daniel, thanks for the kind answer.
Do you know which distro would be easiest to configure kqemu in or has kqemu accessible through yum repos ?
Thanks
Forgot to add.
I gave up on virt-install long ago due to the fact that it cannot configure a guest on FC7.
I just used the qemu command line instructions and switches and it worked flawlessly to install 98/ME/XP/DOS and whatsoever.
These run on 4 core Rackservers.
See below at Appendix:
Configuring DHCP in virt-manager doesnt work at all, the windows guest searches by means of DHCP for an IP address, but nothing is forwarded. Can it also work without having to set DHCP with virt manager?
Is the DHCP daemon on the Linux host not sufficient?
Appendix:----------------------------------------------------------------------------------------------------------------------------------------------------
FYI
I get the following errors: and virt-install seems broken on FC-7 as I can successfully install with qemu CLI.
root@bogus ~]# virt-install
What is the name of your virtual machine? WinME-1
How much RAM should be allocated (in megabytes)? 1000
What would you like to use as the disk (path)? /home/xen/winme.img How large would you like the disk (/home/xen/winme.img) to be (in gigabytes)? 3 Would you like to enable graphics support? (yes or no) yes
What is the install location? /dev/scd0
Starting install...
libvir: Xen Daemon error : GET operation failed:
Invalid file location given: No such file or directory
Domain installation may not have been
successful. If it was, you can restart your domain
by running 'virsh start WinME-1'; otherwise, please
restart your installation.
Thu, 08 Nov 2007 07:25:03 ERROR Invalid file location given: No such file or directory Traceback (most recent call last):
File "/usr/sbin/virt-install", line 474, in <module>
main()
File "/usr/sbin/virt-install", line 438, in main
dom = guest.start_install(conscb,progresscb)
File "/usr/lib/python2.5/site-packages/virtinst/Guest.py", line 706, in start_install self._prepare_install(meter)
File "/usr/lib/python2.5/site-packages/virtinst/ParaVirtGuest.py", line 45, in _prepare_install self._installer.prepare(guest = self, meter = meter)
File "/usr/lib/python2.5/site-packages/virtinst/DistroManager.py", line 678, in prepare self._prepare_kernel_and_initrd(guest, distro, meter)
File "/usr/lib/python2.5/site-packages/virtinst/DistroManager.py", line 648, in _prepare_kernel_and_initrd distro = distro)
File "/usr/lib/python2.5/site-packages/virtinst/DistroManager.py", line 578, in acquireKernel progresscb=progresscb, distro=distro, scratchdir=scratchdir)
File "/usr/lib/python2.5/site-packages/virtinst/DistroManager.py", line 561, in _storeForDistro if store.isValidStore(fetcher, progresscb):
File "/usr/lib/python2.5/site-packages/virtinst/DistroManager.py", line 213, in isValidStore if fetcher.hasFile("Fedora", progresscb):
File "/usr/lib/python2.5/site-packages/virtinst/DistroManager.py", line 160, in hasFile tmpfile = self.acquireFile(filename, progresscb)
File "/usr/lib/python2.5/site-packages/virtinst/DistroManager.py", line 150, in acquireFile raise ValueError, _("Invalid file location given: ") + msg
ValueError: Invalid file location given: No such file or directory
You have mail in /var/spool/mail/root
[root@bogus ~]#
Daniel P. Berrange wrote: On Fri, Nov 09, 2007 at 08:42:52PM -0500, [email protected] wrote: I must apologize for subscribing to this list, but the Qemu users list is dead, sop this is my only option. I understand it is a development list, but I would appreciate some help. I will make it concise. 1) What is the best Distro to run Qemu on with the least hassles? FYI, I now run it on FC7, but it is a lot of trouble. kqemu refuses to work on FC7 on a v20z Sun dual cpu dual core rack server XEN just completely doesnt load even though the Kernel is XEN, but at least qemu works with the following Caveat; "Could not open '/dev/kqemu' - QEMU acceleration layer not activated"
What I pasted in the Appendix are the the Xen output, when I still tried Xen, Just ignore.
Apologizing is a sign of weakness. That's one of the rules on NCIS.
Quoted 5 lines · On 11/9/07, [email protected] <[email protected]> wrote:
I must apologize for subscribing to this list, but the Qemu users list is dead, sop this is my only option.
I understand it is a development list, but I would appreciate some help.
Quoted 8 lines
I will make it concise.
1) What is the best Distro to run Qemu on with the least hassles? FYI, I now run it on FC7, but it is a lot of trouble. kqemu refuses to work on FC7 on a v20z Sun dual cpu dual core rack server XEN just completely doesnt load even though the Kernel is XEN, but at least qemu works with the following Caveat;
"Could not open '/dev/kqemu' - QEMU acceleration layer not activated"
1/ I absolutely love it on Solaris. Mainly because I am a Solaris bigot. Barring that it should run relatively uniformly on different Linuxi.
2) Does an activated QEMU acceleration layer (missing above) make a
Quoted 1 line
huge difference?
Yep. Seems to be about 5x faster on my 1.6Ghz celeron laptop.
3) I have several operating systems successfully loaded in Qemu
Quoted 2 lines
sessions, but networking is just not working. I worked through loads of FAQs from the net, but to no avail.
Try adding -net nic,model=rtl8139 -net user
Use DHCP if you can.
4) Finally is there a preferred distro which is known to solve all the
Quoted 1 line
problems mentioned above?
Surely you can't be serious. :) (Yes, I know, don't call you Shirley)
Thanks.
Quoted 4 lines
Signature · 5 lines
-- Jonathan Kalbfeld ThoughtWave Technologies LLC www.thoughtwave.com +1 323 620 6682