Skip to contentSkip to conversation

kvm unhandled exit 4400

DISCUSSION Khaled El Mously 4 participants 8 messages Nov 2, 2010 – Nov 6, 2010 KVM

lore
Share & tools
lore
#0 lore raw

There seems to be a problem kvm-booting a 32-bit (Fedora) machine on a 32-bit Intel Q9450 (Ubuntu) machine.

The error displayed is:

kvm: unhandled exit 4400
kvm_run returned -22

I've checked google, the kvm website, forums, FAQs and IRC channel.

Anyone know what causes this?

#1 lore raw
Quoted 11 lines · Khaled El Mously

There seems to be a problem kvm-booting a 32-bit (Fedora) machine on a 32-bit Intel Q9450 (Ubuntu) machine.

The error displayed is:

kvm: unhandled exit 4400
kvm_run returned -22

I've checked google, the kvm website, forums, FAQs and IRC channel.

Anyone know what causes this?

It seemed the “virtualize APIC accesses” VM-execution control was set to 1.

What's the version of host kernel and KVM?

Regards
Shan Hai

Quoted 5 lines

--
To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#2 lore raw
In reply to Khaled El Mously
Quoted 11 lines · Khaled El Mously

There seems to be a problem kvm-booting a 32-bit (Fedora) machine on a 32-bit Intel Q9450 (Ubuntu) machine.

The error displayed is:

kvm: unhandled exit 4400
kvm_run returned -22

I've checked google, the kvm website, forums, FAQs and IRC channel.

Anyone know what causes this?

Your version of host kernel kvm had not implemented the APIC-ACCESS VM EXITS emulation, update the kernel should solve the problem.

Regards
Shan Hai

Quoted 5 lines

--
To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#3 lore raw

The host kernel is on Ubuntu: 2.6.32-25-generic

The guest kernel is 2.6.34-something.

I have figured out what the problem is. When I first attempted to run kvm, it said access to /dev/kvm was denied. So I did "chmod o+rw /dev/kvm" and reloaded. It stopped complaining about permissions, but apparently it won't work unless you have the +x as well (i.e. need to do "chmod o+rwx /dev/kvm" ). Perhaps that should be documented somewhere. Or maybe kvm should specifically check for that and complain early.

Thanks for your input haishan.

Quoted 25 lines · haishan
Quoted 10 lines · Khaled El Mously

There seems to be a problem kvm-booting a 32-bit (Fedora) machine on a 32-bit Intel Q9450 (Ubuntu) machine.

The error displayed is:

kvm: unhandled exit 4400
kvm_run returned -22

I've checked google, the kvm website, forums, FAQs and IRC channel.

Anyone know what causes this?

Your version of host kernel kvm had not implemented the APIC-ACCESS VM EXITS emulation, update the kernel should solve the problem.

Regards
Shan Hai

Quoted 4 lines

--
To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#4 lore raw
Quoted 5 lines · Khaled El Mously

The host kernel is on Ubuntu: 2.6.32-25-generic

The guest kernel is 2.6.34-something.

I have figured out what the problem is. When I first attempted to run kvm, it said access to /dev/kvm was denied. So I did "chmod o+rw /dev/kvm" and reloaded. It stopped complaining about permissions, but apparently it won't work unless you have the +x as well (i.e. need to do "chmod o+rwx /dev/kvm" ). Perhaps that should be documented somewhere. Or maybe kvm should specifically check for that and complain early.

Um. Please excuse me but this is a complete bullshit.

qemu opens /dev/kvm in O_RDWR mode. It does not
execute that file, execute bit is not needed.

/mjt

#5 lore raw

[Replying to my own email]

Quoted 8 lines · Michael Tokarev
Quoted 5 lines · Khaled El Mously

The host kernel is on Ubuntu: 2.6.32-25-generic

The guest kernel is 2.6.34-something.

I have figured out what the problem is. When I first attempted to run kvm, it said access to /dev/kvm was denied. So I did "chmod o+rw /dev/kvm" and reloaded. It stopped complaining about permissions, but apparently it won't work unless you have the +x as well (i.e. need to do "chmod o+rwx /dev/kvm" ). Perhaps that should be documented somewhere. Or maybe kvm should specifically check for that and complain early.

Um. Please excuse me but this is a complete bullshit.

As others pointed out, this is too harsh. It wasn't intentional to be extra harsh here, it was just me not realizing how harsh such a statement is, as English is not my native language and I dont use it much. Far more appropriate word for this context is "nonsense". I apologize for using inappropriate words.

Quoted 2 lines

qemu opens /dev/kvm in O_RDWR mode. It does not
execute that file, execute bit is not needed.

/mjt

#6 lore raw
Quoted 19 lines · Michael Tokarev

[Replying to my own email]

Quoted 8 lines · Michael Tokarev
Quoted 5 lines · Khaled El Mously

The host kernel is on Ubuntu: 2.6.32-25-generic

The guest kernel is 2.6.34-something.

I have figured out what the problem is. When I first attempted to run kvm, it said access to /dev/kvm was denied. So I did "chmod o+rw /dev/kvm" and reloaded. It stopped complaining about permissions, but apparently it won't work unless you have the +x as well (i.e. need to do "chmod o+rwx /dev/kvm" ). Perhaps that should be documented somewhere. Or maybe kvm should specifically check for that and complain early.

Um. Please excuse me but this is a complete bullshit.

As others pointed out, this is too harsh. It wasn't intentional to be extra harsh here, it was just me not realizing how harsh such a statement is, as English is not my native language and I dont use it much. Far more appropriate word for this context is "nonsense". I apologize for using inappropriate words.

Quoted 4 lines
Quoted 2 lines

qemu opens /dev/kvm in O_RDWR mode. It does not
execute that file, execute bit is not needed.

/mjt

Don't worry about it - it WAS complete bullshit. I later got the error again even with /dev/kdm at +rwx.

#7 lore raw
In reply to Michael Tokarev
Quoted 10 lines · Michael Tokarev
Quoted 2 lines

Um. Please excuse me but this is a complete bullshit.

As others pointed out, this is too harsh. It wasn't intentional to be extra harsh here, it was just me not realizing how harsh such a statement is, as English is not my native language and I dont use it much. Far more appropriate word for this context is "nonsense". I apologize for using inappropriate words.

May I suggest "wrong" or "incorrect"?

Signature · 2 lines
I have a truly marvellous patch that fixes the bug which this
signature is too narrow to contain.