[opensuse-buildservice] OBS 2.5 / openSUSE 13.1 / KVM Worker - could not find /dev/sda
I upgraded our production machine to 2.5 this morning. Only a few hiccups. However, one major one is that KVM does not work. I installed the KVM package using zypper, (zypper in kvm), and that installed a bunch of stuff. obsworker then found KVM and attempted to use it, but starting of the VMs failed -- it complained about not being able to find /dev/sda during boot of the VM, instead referring to /dev/disk/by-id/..... Has anyone seen this? Did I miss a step? Thanks. -Matt
Here's the full log output: [ 0s] Using BUILD_ROOT=/var/cache/obs/worker/root_15/.mount [ 0s] Using BUILD_ARCH=x86_64:i686:i586:i486:i386 [ 0s] Doing kvm build in /var/cache/obs/worker/root_15/root [ 0s] [ 0s] [ 0s] obs01 started "build _service:set_version:_service:extract_file:bpgen.spec" at Thu Sep 4 19:44:28 UTC 2014. [ 0s] [ 0s] Building app__bpgen-1.9.26 for project 'home:mdrobnak' repository 'common_CentOS_5' arch 'x86_64' srcmd5 '9f6ecb9697a15e67f334c4c65a68a885' [ 0s] [ 0s] processing recipe /var/cache/obs/worker/root_15/.build-srcdir/_service:set_version:_service:extract_file:bpgen.spec ... [ 0s] running changelog2spec --target rpm --file /var/cache/obs/worker/root_15/.build-srcdir/_service:set_version:_service:extract_file:bpgen.spec [ 0s] init_buildsystem --configdir /obs/run/worker/15/build/configs --cachedir /var/cache/build --prepare --clean --rpmlist /var/cache/obs/worker/root_15/.build.rpmlist /var/cache/obs/worker/root_15/.build-srcdir/_service:set_version:_service:extract_file:bpgen.spec build rpmlint-Factory ... [ 1s] cycle: coreutils -> pam [ 1s] breaking dependency pam -> coreutils [ 1s] cycle: rpm -> rpm-libs [ 1s] breaking dependency rpm -> rpm-libs [ 1s] [1/45] preinstalling libgcc... [ 1s] [2/45] preinstalling setup... [ 1s] [3/45] preinstalling filesystem... [ 1s] [4/45] preinstalling glibc... [ 1s] [5/45] preinstalling bzip2-libs... [ 1s] [6/45] preinstalling e2fsprogs-libs... [ 1s] [7/45] preinstalling elfutils-libelf... [ 1s] [8/45] preinstalling expat... [ 1s] [9/45] preinstalling libattr... [ 1s] [10/45] preinstalling libtermcap... [ 1s] [11/45] preinstalling mktemp... [ 1s] [12/45] preinstalling perl... [ 1s] [13/45] preinstalling popt... [ 2s] [14/45] preinstalling zlib... [ 2s] [15/45] preinstalling libstdc++... [ 2s] [16/45] preinstalling attr... [ 2s] [17/45] preinstalling libacl... [ 2s] [18/45] preinstalling bash... [ 2s] [19/45] preinstalling beecrypt... [ 2s] [20/45] preinstalling pcre... [ 2s] [21/45] preinstalling libsepol... [ 2s] [22/45] preinstalling ncurses... [ 2s] [23/45] preinstalling nspr... [ 2s] [24/45] preinstalling acl... [ 2s] [25/45] preinstalling bzip2... [ 2s] [26/45] preinstalling libselinux... [ 2s] [27/45] preinstalling nss... [ 2s] [28/45] preinstalling info... [ 2s] [29/45] preinstalling shadow-utils... [ 2s] [30/45] preinstalling diffutils... [ 2s] [31/45] preinstalling m4... [ 2s] [32/45] preinstalling readline... [ 2s] [33/45] preinstalling sed... [ 2s] [34/45] preinstalling findutils... [ 2s] [35/45] preinstalling grep... [ 2s] [36/45] preinstalling tar... [ 2s] [37/45] preinstalling sqlite... [ 2s] [38/45] preinstalling pam... [ 2s] [39/45] preinstalling coreutils... [ 3s] [40/45] preinstalling krb5-libs... [ 3s] [41/45] preinstalling rpm... [ 3s] [42/45] preinstalling openssl... [ 3s] [43/45] preinstalling policycoreutils... [ 3s] [44/45] preinstalling rpm-libs... [ 3s] [45/45] preinstalling neon... [ 3s] [ 3s] [1/3] preinstalling device-mapper... [ 3s] [2/3] preinstalling perl... [ 4s] [3/3] preinstalling util-linux... [ 4s] copying packages... [ 5s] reordering...cycle: libselinux -> mcstrans -> initscripts -> psmisc [ 5s] breaking dependency initscripts -> psmisc [ 5s] cycle: libselinux -> mcstrans -> initscripts -> coreutils -> findutils [ 5s] breaking dependency initscripts -> coreutils [ 5s] cycle: libselinux -> mcstrans -> initscripts -> shadow-utils [ 5s] breaking dependency initscripts -> shadow-utils [ 5s] cycle: libselinux -> mcstrans -> initscripts -> SysVinit [ 5s] breaking dependency initscripts -> SysVinit [ 5s] cycle: libselinux -> mcstrans -> initscripts -> udev -> MAKEDEV -> shadow-utils [ 5s] breaking dependency initscripts -> udev [ 5s] cycle: device-mapper -> libselinux -> mcstrans -> initscripts -> e2fsprogs [ 5s] breaking dependency initscripts -> e2fsprogs [ 5s] cycle: module-init-tools -> mkinitrd [ 5s] breaking dependency mkinitrd -> module-init-tools [ 5s] cycle: libselinux -> mcstrans -> initscripts -> module-init-tools -> mkinitrd -> util-linux -> pam -> shadow-utils [ 5s] breaking dependency mkinitrd -> util-linux [ 5s] cycle: libselinux -> mcstrans -> initscripts -> module-init-tools -> mkinitrd -> coreutils -> findutils [ 5s] breaking dependency mkinitrd -> coreutils [ 5s] cycle: libselinux -> mcstrans -> initscripts -> module-init-tools -> mkinitrd -> udev -> MAKEDEV -> shadow-utils [ 5s] breaking dependency mkinitrd -> udev [ 5s] cycle: device-mapper -> libselinux -> mcstrans -> initscripts -> module-init-tools -> mkinitrd [ 5s] breaking dependency mkinitrd -> device-mapper [ 5s] cycle: device-mapper -> libselinux -> mcstrans -> initscripts -> module-init-tools -> mkinitrd -> device-mapper-multipath -> kpartx [ 5s] breaking dependency mkinitrd -> device-mapper-multipath [ 5s] cycle: dmraid -> dmraid-events [ 5s] breaking dependency dmraid -> dmraid-events [ 5s] cycle: device-mapper -> libselinux -> mcstrans -> initscripts -> module-init-tools -> mkinitrd -> dmraid -> kpartx [ 5s] breaking dependency mkinitrd -> dmraid [ 5s] cycle: device-mapper -> libselinux -> mcstrans -> initscripts -> module-init-tools -> mkinitrd -> e2fsprogs [ 5s] breaking dependency mkinitrd -> e2fsprogs [ 5s] cycle: libselinux -> mcstrans -> initscripts -> module-init-tools -> mkinitrd -> findutils [ 5s] breaking dependency mkinitrd -> findutils [ 5s] cycle: initscripts -> module-init-tools -> mkinitrd [ 5s] breaking dependency mkinitrd -> initscripts [ 5s] cycle: device-mapper -> libselinux -> mcstrans -> initscripts -> module-init-tools -> mkinitrd -> kpartx [ 5s] breaking dependency mkinitrd -> kpartx [ 5s] cycle: libselinux -> mcstrans -> initscripts -> module-init-tools -> mkinitrd [ 5s] breaking dependency initscripts -> module-init-tools [ 5s] cycle: libselinux -> mcstrans -> initscripts -> util-linux -> pam -> shadow-utils [ 5s] breaking dependency util-linux -> pam [ 5s] cycle: libselinux -> mcstrans -> initscripts -> util-linux -> coreutils -> findutils [ 5s] breaking dependency util-linux -> coreutils [ 5s] cycle: e2fsprogs-libs -> device-mapper -> libselinux -> mcstrans -> initscripts -> util-linux [ 5s] breaking dependency util-linux -> e2fsprogs-libs [ 5s] cycle: libselinux -> mcstrans -> initscripts -> util-linux [ 5s] breaking dependency initscripts -> util-linux [ 5s] cycle: libselinux -> mcstrans -> initscripts -> net-tools [ 5s] breaking dependency mcstrans -> initscripts [ 5s] cycle: libselinux -> mcstrans [ 5s] breaking dependency mcstrans -> libselinux [ 5s] cycle: coreutils -> pam [ 5s] breaking dependency pam -> coreutils [ 5s] cycle: python -> coreutils -> pam -> cracklib [ 5s] breaking dependency pam -> cracklib [ 5s] cycle: sysklogd -> initscripts [ 5s] breaking dependency sysklogd -> initscripts [ 5s] cycle: rpm -> rpm-libs [ 5s] breaking dependency rpm -> rpm-libs [ 5s] done [ 5s] booting kvm... [ 5s] /usr/bin/qemu-kvm -no-reboot -nographic -vga none -net none -cpu host -kernel /boot/vmlinuz -initrd /boot/initrd -append root=/dev/sda panic=1 quiet no-kvmclock nmi_watchdog=0 rw rd.driver.pre=binfmt_misc elevator=noop console=ttyS0 init=/.build/build -m 10000 -drive file=/var/cache/obs/worker/root_15/root,if=none,id=disk,serial=0,cache=unsafe -device ide-hd,drive=disk -drive file=/var/cache/obs/worker/root_15.swap,if=none,id=swap,serial=1,cache=unsafe -device ide-hd,drive=swap -smp 4 [ 9s] [ 0.575570] microcode: CPU0 update to revision 0x415 failed [ 9s] [ 0.576195] microcode: CPU1 update to revision 0x415 failed [ 9s] [ 0.576799] microcode: CPU2 update to revision 0x415 failed [ 9s] [ 0.577298] microcode: CPU3 update to revision 0x415 failed [ 41s] Waiting for device /dev/sda to appear: ..............................Could not find /dev/sda. [ 41s] Want me to fall back to /dev/disk/by-id/scsi-36c81f660d52d0c001ae321fb066cea81-part1? (Y/n) What should I do? -Matt
"Matthew" == Matthew Drobnak <mdrobnak@appnexus.com> writes: Not that I run private OBS but I use osc locally to build with kvm and I had a similar issue.
Matthew> Here's the full log output: Matthew> [ 5s] /usr/bin/qemu-kvm -no-reboot -nographic -vga none -net none Matthew> -cpu host -kernel /boot/vmlinuz -initrd /boot/initrd -append ^^^^^^ I solved that by creating a initrd-virtio and the problem was solved but I am not sure if that would help your case as well Togan -- Life is endless possibilities -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
You found the right reason, but I didn't understand why it worked before.... I had not rebooted at some point..and I should have. The code in obsstoragesetup: if grep ^flags /proc/cpuinfo | egrep -q " (svm| vmx) " && modprobe kvm; then echo "Found KVM virtualization" RUN_VIRT=1 # support virtio # FIXME: find a better way to do this without getting removed by kiwi again. if ! grep -q "^INITRD_MODULES=.*virtio_pci virtio_blk" /etc/sysconfig/kernel; then sed -i 's,^INITRD_MODULES="\(.* \)",INITRD_MODULES="\1 loop dm-mod dm-snapshot binfmt-misc fuse kqemu squashfs ext2 ext3 ext4 reiserfs nf_conntrack_ipv6 binfmt_misc virtio_pci virtio_blk fat vfat nls_cp437 nls_iso8859-1",' /etc/sysconfig/kernel mkinitrd || unset RUN_VIRT Shows that is why it auto-fixes itself. It's now working fine. Thanks. -Matt On Thu, 2014-09-04 at 22:02 +0200, Togan Muftuoglu wrote:
"Matthew" == Matthew Drobnak <mdrobnak@appnexus.com> writes: Not that I run private OBS but I use osc locally to build with kvm and I had a similar issue.
Matthew> Here's the full log output: Matthew> [ 5s] /usr/bin/qemu-kvm -no-reboot -nographic -vga none -net none Matthew> -cpu host -kernel /boot/vmlinuz -initrd /boot/initrd -append ^^^^^^
I solved that by creating a initrd-virtio and the problem was solved but I am not sure if that would help your case as well
Togan -- Life is endless possibilities
participants (2)
-
Matthew Drobnak
-
Togan Muftuoglu