Skip to contentSkip to conversation

Any alternative to kqemu ?

Qemu-devel Timothy Madden 4 participants 6 messages Oct 14, 2012 – Oct 17, 2012

lore
Share & tools
lore
#0 lore raw

Hello

Is kqemu deprecated ? Is there an alternative to it ? I mean other than kvm, which my CPU (Pentium Celeron D, 2.53 GHz) does not support.

Can I compile qemu with "-O3 -march=pentium" if I want to get better performance ? Has anyone tried it ?

qemu-system-i386 -net nic ... keeps saying upon invocation that vlan0 is not connected to host network. My vconfig add eth1 command completed successfully, and I can ifconfig eth1.0, although I see no IP address on the new interface, only the mac address.

I have qemu 1.2.0 compiled on Slackware 14.0.

Thank you,
Timothy Madden

#1 lore raw

Il 14/10/2012 12:52, Timothy Madden ha scritto:

Quoted 3 lines

Hello

Is kqemu deprecated ?

It is simply not supported anymore.

Quoted 1 line

Is there an alternative to it ?

No.

Quoted 4 lines

qemu-system-i386 -net nic ... keeps saying upon invocation that vlan0 is not connected to host network. My vconfig add eth1 command completed successfully, and I can ifconfig eth1.0, although I see no IP address on the new interface, only the mac address.

QEMU VLANs have nothing to do with Linux VLANs. Yes, that is confusing. :(

If you install libvirt, you can use -net nic -net bridge,br=virbr0.

Otherwise, you could configure a bridge yourself and just use "-net nic -net bridge".

Paolo

Quoted 7 lines

I have qemu 1.2.0 compiled on Slackware 14.0.

Thank you,
Timothy Madden

#2 lore raw
Quoted 10 lines · Paolo Bonzini

Il 14/10/2012 12:52, Timothy Madden ha scritto:

Quoted 3 lines

Hello

Is kqemu deprecated ?

It is simply not supported anymore.

Quoted 1 line

Is there an alternative to it ?

No.

That is tough ... ! So my hardware is officially obsolete.

I had to get away with those other emulators provided by commercial companies. VMWare said my hardware does not support virtualization (much like qemu), but VirtualBox worked surprisingly well and uses the CPU natively (no emulation, faster than my qemu without kvm).

Quoted 11 lines
Quoted 4 lines

qemu-system-i386 -net nic ... keeps saying upon invocation that vlan0 is not connected to host network. My vconfig add eth1 command completed successfully, and I can ifconfig eth1.0, although I see no IP address on the new interface, only the mac address.

QEMU VLANs have nothing to do with Linux VLANs. Yes, that is confusing. :(

If you install libvirt, you can use -net nic -net bridge,br=virbr0.

Otherwise, you could configure a bridge yourself and just use "-net nic -net bridge".

It turns out I had to say:
ifconfig eth1.0 up

Which might be obvious for the people here, but is not that much obvious when you first hear about vlans ...

Thank you for your responses,
Timothy Madden

#3 lore raw
Quoted 10 lines
Quoted 3 lines
Quoted 1 line

Is there an alternative to it ?

No.

That is tough ... ! So my hardware is officially obsolete.

I had to get away with those other emulators provided by commercial companies. VMWare said my hardware does not support virtualization (much like qemu), but VirtualBox worked surprisingly well and uses the CPU natively (no emulation, faster than my qemu without kvm).

IIRC, VirtualBox take approach similar to kqemu does, i.e.,
translate privilege instructions only and run non-privilege instructions on host cpu directly.

Regards,
chenwj

Signature · 5 lines
Wei-Ren Chen (陳韋任)
Computer Systems Lab, Institute of Information Science,
Academia Sinica, Taiwan (R.O.C.)
Tel:886-2-2788-3799 #1667
Homepage: http://people.cs.nctu.edu.tw/~chenwj
#4 lore raw
In reply to Timothy Madden

Il 17/10/2012 15:39, Timothy Madden ha scritto:

Quoted 6 lines · Paolo Bonzini
Quoted 5 lines

Il 14/10/2012 12:52, Timothy Madden ha scritto:

Quoted 3 lines

Hello

Is kqemu deprecated ?

Quoted 7 lines
Quoted 5 lines

It is simply not supported anymore.

Quoted 1 line

Is there an alternative to it ?

No.

That is tough ... ! So my hardware is officially obsolete.

That is not because of obsoletion of hardware. It's because kqemu was holding off other enhancements to QEMU, and nobody stepped up to maintain it.

Quoted 4 lines

I had to get away with those other emulators provided by commercial companies. VMWare said my hardware does not support virtualization (much like qemu), but VirtualBox worked surprisingly well and uses the CPU natively (no emulation, faster than my qemu without kvm).

Yes, qemu without kvm can be quite slow because of the overhead of CPU emulation. One problem is that newer distros use SSE a lot, and this is quite slow.

Paolo

#5 lore raw
In reply to Timothy Madden
Quoted 5 lines · Timothy Madden

qemu-system-i386 -net nic ... keeps saying upon invocation that vlan0 is not connected to host network. My vconfig add eth1 command completed successfully, and I can ifconfig eth1.0, although I see no IP address on the new interface, only the mac address.

QEMU "VLANs" are not 802.1Q VLANs. The terminology is confusing but it has nothing to do with vconfig.

This error is displayed because there are two parts to the network configuration options:
1. Emulated guest device, for example rtl8139 or virtio-net.
2. Host netdev, for example tap or the userspace SLIRP stack.

The error means you have only defined the emulated guest device but no host netdev. QEMU needs to know how you wish to connect the guest to the outside world.

Here is a complete network configuration to try:

qemu -net nic,model=rtl8139 -net user

There is more detail here:
http://wiki.qemu.org/Documentation/Networking

Stefan