** Description changed: 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 + 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 - ... + # 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 + /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) + start|restart|force-reload) - [ ! -e /dev/kvm ] || exit 0 # nothing to do + [ ! -e /dev/kvm ] || exit 0 # nothing to do
-- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1316812 Title: ubuntu qemu-kvm package attempts to start a service and fails To manage notifications about this bug go to: https://bugs.launchpad.net/fuel/+bug/1316812/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
