2014-05-06 21:38:58 |
Andrew Woodward |
bug |
|
|
added bug |
2014-05-06 21:38:58 |
Andrew Woodward |
attachment added |
|
puppet-log-snip.txt https://bugs.launchpad.net/bugs/1316812/+attachment/4106757/+files/puppet-log-snip.txt |
|
2014-05-06 21:43:38 |
Ryan Moe |
fuel: importance |
Critical |
High |
|
2014-05-06 21:48:49 |
Andrew Woodward |
bug task added |
|
qemu-kvm (Ubuntu) |
|
2014-05-06 21:51:23 |
Andrew Woodward |
attachment added |
|
apt-cache show qemu-kvm https://bugs.launchpad.net/ubuntu/+source/qemu-kvm/+bug/1316812/+attachment/4106762/+files/apt-cache%20show%20qemu-kvm |
|
2014-05-06 21:56:42 |
Andrew Woodward |
description |
Iso 172, 180, 183
Ubuntu fails to deploy because qemu-kvm fails to install because its init service wont start.
init fails due to
cat /etc/init/qemu-kvm.conf
...
pre-start script
# Silently exit if the package isn't installed anymore
if [ ! -e /usr/bin/kvm ]; then
exit 0
fi
[ -r /etc/default/qemu-kvm ] && . /etc/default/qemu-kvm
# Load the appropriate module, respecting blacklists
if grep -qs "^flags.* vmx" /proc/cpuinfo; then
modprobe -b kvm_intel "$KVM_NESTED" || true
chown root:kvm /dev/kvm
chmod 0660 /dev/kvm
elif grep -qs "^flags.* svm" /proc/cpuinfo; then
modprobe -b kvm_amd || true
chown root:kvm /dev/kvm
chmod 0660 /dev/kvm
fi
...
On guests that have parent hosts that support kvm_nested
/proc/cpuinfo will contain 'svm' or 'vmx' however because we are already a guest, /dev/kvm might not create, running modprobe on kvm_amd or kvm_intell will fail, then chmod will fail because /dev/kvm still doesn't exist. This causes init to fail
we should probably change the first test from /usr/bin/kvm to /dev/kvm like in Debian SID
case "$1" in
start|restart|force-reload)
[ ! -e /dev/kvm ] || exit 0 # nothing to do |
Iso 172, 180, 183
Ubuntu fails to deploy because qemu-kvm fails to install because its init service wont start.
init fails due to
cat /etc/init/qemu-kvm.conf
...
pre-start script
# Silently exit if the package isn't installed anymore
if [ ! -e /usr/bin/kvm ]; then
exit 0
fi
[ -r /etc/default/qemu-kvm ] && . /etc/default/qemu-kvm
# Load the appropriate module, respecting blacklists
if grep -qs "^flags.* vmx" /proc/cpuinfo; then
modprobe -b kvm_intel "$KVM_NESTED" || true
chown root:kvm /dev/kvm
chmod 0660 /dev/kvm
elif grep -qs "^flags.* svm" /proc/cpuinfo; then
modprobe -b kvm_amd || true
chown root:kvm /dev/kvm
chmod 0660 /dev/kvm
fi
...
On guests that have parent hosts that support kvm_nested
/proc/cpuinfo will contain 'svm' or 'vmx' however because we are already a guest, /dev/kvm might not create, running modprobe on kvm_amd or kvm_intel will fail, then chmod will fail because /dev/kvm still doesn't exist. This causes init to fail
root@node-1:/etc/init# modprobe kvm
root@node-1:/etc/init# modprobe kvm_amd
FATAL: Error inserting kvm_amd (/lib/modules/3.11.0-18-generic/kernel/arch/x86/kvm/kvm-amd.ko): Operation not supported
root@node-1:/etc/init# ls -l /dev/kvm
ls: cannot access /dev/kvm: No such file or directory
we should probably change the first test from /usr/bin/kvm to /dev/kvm like in Debian SID
case "$1" in
start|restart|force-reload)
[ ! -e /dev/kvm ] || exit 0 # nothing to do |
|
2014-05-06 22:33:03 |
Serge Hallyn |
qemu-kvm (Ubuntu): importance |
Undecided |
High |
|
2014-05-06 22:33:03 |
Serge Hallyn |
qemu-kvm (Ubuntu): status |
New |
Triaged |
|
2014-05-06 23:36:25 |
Andrew Woodward |
description |
Iso 172, 180, 183
Ubuntu fails to deploy because qemu-kvm fails to install because its init service wont start.
init fails due to
cat /etc/init/qemu-kvm.conf
...
pre-start script
# Silently exit if the package isn't installed anymore
if [ ! -e /usr/bin/kvm ]; then
exit 0
fi
[ -r /etc/default/qemu-kvm ] && . /etc/default/qemu-kvm
# Load the appropriate module, respecting blacklists
if grep -qs "^flags.* vmx" /proc/cpuinfo; then
modprobe -b kvm_intel "$KVM_NESTED" || true
chown root:kvm /dev/kvm
chmod 0660 /dev/kvm
elif grep -qs "^flags.* svm" /proc/cpuinfo; then
modprobe -b kvm_amd || true
chown root:kvm /dev/kvm
chmod 0660 /dev/kvm
fi
...
On guests that have parent hosts that support kvm_nested
/proc/cpuinfo will contain 'svm' or 'vmx' however because we are already a guest, /dev/kvm might not create, running modprobe on kvm_amd or kvm_intel will fail, then chmod will fail because /dev/kvm still doesn't exist. This causes init to fail
root@node-1:/etc/init# modprobe kvm
root@node-1:/etc/init# modprobe kvm_amd
FATAL: Error inserting kvm_amd (/lib/modules/3.11.0-18-generic/kernel/arch/x86/kvm/kvm-amd.ko): Operation not supported
root@node-1:/etc/init# ls -l /dev/kvm
ls: cannot access /dev/kvm: No such file or directory
we should probably change the first test from /usr/bin/kvm to /dev/kvm like in Debian SID
case "$1" in
start|restart|force-reload)
[ ! -e /dev/kvm ] || exit 0 # nothing to do |
Iso 172, 180, 183
Ubuntu (guest) 12.04.04 qemu-kvm fails to install because upstart wont pass.
root@node-2:~# apt-get install -f
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
3 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up qemu-kvm (1.2.0+noroms-0ubuntu7.12.10) ...
start: Job failed to start
invoke-rc.d: initscript qemu-kvm, action "start" failed.
dpkg: error processing qemu-kvm (--configure):
subprocess installed post-installation script returned error exit status 1
expected result: qemu-kvm should install and "start" anyways even if acceleration can't be loaded.
grep "^flags.* svm" /proc/cpuinfo
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 syscall nx mmxext fxsr_opt pdpe1gb lm 3dnowext 3dnow rep_good nopl extd_apicid pni cx16 popcnt hypervisor cmp_legacy svm cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw
root@node-1:/etc/init# modprobe kvm
root@node-1:/etc/init# modprobe kvm_amd
FATAL: Error inserting kvm_amd (/lib/modules/3.11.0-18-generic/kernel/arch/x86/kvm/kvm-amd.ko): Operation not supported
root@node-1:/etc/init# ls -l /dev/kvm
ls: cannot access /dev/kvm: No such file or directory
dmesg:
[10925.939670] has_svm: can't execute cpuid_8000000a
[10925.939677] kvm: no hardware support
init fails due to
cat /etc/init/qemu-kvm.conf
...
pre-start script
# Silently exit if the package isn't installed anymore
if [ ! -e /usr/bin/kvm ]; then
exit 0
fi
[ -r /etc/default/qemu-kvm ] && . /etc/default/qemu-kvm
# Load the appropriate module, respecting blacklists
if grep -qs "^flags.* vmx" /proc/cpuinfo; then
modprobe -b kvm_intel "$KVM_NESTED" || true
chown root:kvm /dev/kvm
chmod 0660 /dev/kvm
elif grep -qs "^flags.* svm" /proc/cpuinfo; then
modprobe -b kvm_amd || true
chown root:kvm /dev/kvm
chmod 0660 /dev/kvm
fi
...
It appears that guest might have been passed bad CPU flags and qemu-kvm in host might not be allowing kvm acceleration to load. It appears that similar results have been noted in Debian upstream, where they are testing for -e /dev/kvm before attempting to load more acceleration
in Debian SID
case "$1" in
start|restart|force-reload)
[ ! -e /dev/kvm ] || exit 0 # nothing to do |
|
2014-05-06 23:59:44 |
Andrew Woodward |
fuel: status |
Confirmed |
Triaged |
|
2014-05-07 12:27:23 |
Vitaly Parakhin |
fuel: status |
Triaged |
In Progress |
|
2014-05-07 12:27:42 |
Vitaly Parakhin |
fuel: assignee |
Fuel OSCI Team (fuel-osci) |
Fuel QA Team (fuel-qa) |
|
2014-05-07 14:10:10 |
Serge Hallyn |
nominated for series |
|
Ubuntu Precise |
|
2014-05-07 14:10:10 |
Serge Hallyn |
bug task added |
|
qemu-kvm (Ubuntu Precise) |
|
2014-05-07 14:10:50 |
Serge Hallyn |
qemu-kvm (Ubuntu Precise): importance |
Undecided |
High |
|
2014-05-07 14:10:50 |
Serge Hallyn |
qemu-kvm (Ubuntu Precise): status |
New |
Confirmed |
|
2014-05-07 14:10:50 |
Serge Hallyn |
qemu-kvm (Ubuntu Precise): assignee |
|
Serge Hallyn (serge-hallyn) |
|
2014-05-07 14:11:04 |
Serge Hallyn |
qemu-kvm (Ubuntu): status |
Triaged |
Fix Released |
|
2014-05-07 14:49:58 |
Serge Hallyn |
description |
Iso 172, 180, 183
Ubuntu (guest) 12.04.04 qemu-kvm fails to install because upstart wont pass.
root@node-2:~# apt-get install -f
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
3 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up qemu-kvm (1.2.0+noroms-0ubuntu7.12.10) ...
start: Job failed to start
invoke-rc.d: initscript qemu-kvm, action "start" failed.
dpkg: error processing qemu-kvm (--configure):
subprocess installed post-installation script returned error exit status 1
expected result: qemu-kvm should install and "start" anyways even if acceleration can't be loaded.
grep "^flags.* svm" /proc/cpuinfo
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 syscall nx mmxext fxsr_opt pdpe1gb lm 3dnowext 3dnow rep_good nopl extd_apicid pni cx16 popcnt hypervisor cmp_legacy svm cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw
root@node-1:/etc/init# modprobe kvm
root@node-1:/etc/init# modprobe kvm_amd
FATAL: Error inserting kvm_amd (/lib/modules/3.11.0-18-generic/kernel/arch/x86/kvm/kvm-amd.ko): Operation not supported
root@node-1:/etc/init# ls -l /dev/kvm
ls: cannot access /dev/kvm: No such file or directory
dmesg:
[10925.939670] has_svm: can't execute cpuid_8000000a
[10925.939677] kvm: no hardware support
init fails due to
cat /etc/init/qemu-kvm.conf
...
pre-start script
# Silently exit if the package isn't installed anymore
if [ ! -e /usr/bin/kvm ]; then
exit 0
fi
[ -r /etc/default/qemu-kvm ] && . /etc/default/qemu-kvm
# Load the appropriate module, respecting blacklists
if grep -qs "^flags.* vmx" /proc/cpuinfo; then
modprobe -b kvm_intel "$KVM_NESTED" || true
chown root:kvm /dev/kvm
chmod 0660 /dev/kvm
elif grep -qs "^flags.* svm" /proc/cpuinfo; then
modprobe -b kvm_amd || true
chown root:kvm /dev/kvm
chmod 0660 /dev/kvm
fi
...
It appears that guest might have been passed bad CPU flags and qemu-kvm in host might not be allowing kvm acceleration to load. It appears that similar results have been noted in Debian upstream, where they are testing for -e /dev/kvm before attempting to load more acceleration
in Debian SID
case "$1" in
start|restart|force-reload)
[ ! -e /dev/kvm ] || exit 0 # nothing to do |
======================================
impact: qemu-kvm cannot be installed if modprobe of kvm will fail
test case: create a precise container; rm /bin/running-in-container; ln -s /bin/false /bin/running-in-container; apt-get install qemu-kvm
regression potential: if the modprobe failures were due to real errors, kvm may fail later on
======================================
Iso 172, 180, 183
Ubuntu (guest) 12.04.04 qemu-kvm fails to install because upstart wont pass.
root@node-2:~# apt-get install -f
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
3 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up qemu-kvm (1.2.0+noroms-0ubuntu7.12.10) ...
start: Job failed to start
invoke-rc.d: initscript qemu-kvm, action "start" failed.
dpkg: error processing qemu-kvm (--configure):
subprocess installed post-installation script returned error exit status 1
expected result: qemu-kvm should install and "start" anyways even if acceleration can't be loaded.
grep "^flags.* svm" /proc/cpuinfo
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 syscall nx mmxext fxsr_opt pdpe1gb lm 3dnowext 3dnow rep_good nopl extd_apicid pni cx16 popcnt hypervisor cmp_legacy svm cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw
root@node-1:/etc/init# modprobe kvm
root@node-1:/etc/init# modprobe kvm_amd
FATAL: Error inserting kvm_amd (/lib/modules/3.11.0-18-generic/kernel/arch/x86/kvm/kvm-amd.ko): Operation not supported
root@node-1:/etc/init# ls -l /dev/kvm
ls: cannot access /dev/kvm: No such file or directory
dmesg:
[10925.939670] has_svm: can't execute cpuid_8000000a
[10925.939677] kvm: no hardware support
init fails due to
cat /etc/init/qemu-kvm.conf
...
pre-start script
# Silently exit if the package isn't installed anymore
if [ ! -e /usr/bin/kvm ]; then
exit 0
fi
[ -r /etc/default/qemu-kvm ] && . /etc/default/qemu-kvm
# Load the appropriate module, respecting blacklists
if grep -qs "^flags.* vmx" /proc/cpuinfo; then
modprobe -b kvm_intel "$KVM_NESTED" || true
chown root:kvm /dev/kvm
chmod 0660 /dev/kvm
elif grep -qs "^flags.* svm" /proc/cpuinfo; then
modprobe -b kvm_amd || true
chown root:kvm /dev/kvm
chmod 0660 /dev/kvm
fi
...
It appears that guest might have been passed bad CPU flags and qemu-kvm in host might not be allowing kvm acceleration to load. It appears that similar results have been noted in Debian upstream, where they are testing for -e /dev/kvm before attempting to load more acceleration
in Debian SID
case "$1" in
start|restart|force-reload)
[ ! -e /dev/kvm ] || exit 0 # nothing to do |
|
2014-05-07 14:51:19 |
Serge Hallyn |
bug |
|
|
added subscriber Ubuntu Stable Release Updates Team |
2014-05-13 10:27:35 |
Mike Scherbakov |
fuel: assignee |
Fuel QA Team (fuel-qa) |
Tatyana (tatyana-leontovich) |
|
2014-05-13 10:27:41 |
Mike Scherbakov |
fuel: status |
In Progress |
Fix Committed |
|
2014-05-15 23:20:17 |
Brian Murray |
qemu-kvm (Ubuntu Precise): status |
Confirmed |
Fix Committed |
|
2014-05-15 23:20:23 |
Brian Murray |
bug |
|
|
added subscriber SRU Verification |
2014-05-15 23:20:27 |
Brian Murray |
tags |
|
verification-needed |
|
2014-05-22 15:23:14 |
Marc Deslauriers |
bug |
|
|
added subscriber Marc Deslauriers |
2014-05-22 19:03:27 |
Serge Hallyn |
tags |
verification-needed |
verification-done |
|
2014-05-26 22:50:58 |
Scott Kitterman |
removed subscriber Ubuntu Stable Release Updates Team |
|
|
|
2014-05-26 22:56:12 |
Launchpad Janitor |
qemu-kvm (Ubuntu Precise): status |
Fix Committed |
Fix Released |
|
2014-05-28 09:08:51 |
Tatyanka |
fuel: assignee |
Tatyana (tatyana-leontovich) |
Fuel OSCI Team (fuel-osci) |
|
2015-09-15 11:48:56 |
Colin Watson |
fuel: assignee |
Registry Administrators (registry) |
|
|