[Bug 1029889] Re: LVM Based KVM VM taking 100% CPU on first start and hangs.
*** This bug is a duplicate of bug 1012946 *** https://bugs.launchpad.net/bugs/1012946 Still not fixed... I have found a workaround which was working (bellow) but now its not working anymore... Same stuff like above in previous posts... Someone spotted: Please note that if you want to create a qunatal or precise guest, you need to either add the option --addpkg=linux-image-generic or apply the patch from http://markmail.org/threadhg747mkmnkpy4icc#query:+page:1+mid:7rxyi4wjo6vkssh7+state:results because otherwise the build process will fail!!! This KVM installation with VMBuilder is rotten somewhere deep in my opinion, it has never worked properly. This is a different machine (X86_64) a lots of memory and space... PROCEDURE TO INSTALL AS LVM WHICH WAS WORKING BEFORE... 1.) Instal VM as file based with --addpkg=linux-image-generic 2.) Wait for the install to finish... 3.) Afterwards, you can find an XML configuration file for the VM in /etc/libvirt/qemu/ (= /etc/libvirt/qemu/vm4.xml): root@host:~# ls -l /etc/libvirt/qemu/ This process will create VM image (qcow2) in /var/lib/libvirt/images/vm4 /ubuntu-kvm root@host:~# cd /var/lib/libvirt/images/vm4/ubuntu-kvm Now that we know the name of our image (tmp09XnBf.qcow2), we can convert it as follows: root@host:~# qemu-img convert tmp09XnBf.qcow2 -O raw /dev/virtualvg2/vm4 Afterwards you can delete the disk image: root@host:~# rm -f tmp09XnBf.qcow2 Now we must modify the VM's configuration... root@host:~# virsh edit vm4 ... and change the following section... - [...] disk type='file' device='disk' driver name='qemu' type='qcow2'/ source file='/var/lib/libvirt/images/vm4/ubuntu-kvm/tmp09XnBf.qcow2'/ target dev='hda' bus='ide'/ address type='drive' controller='0' bus='0' unit='0'/ /disk [...] - ... so that it looks as follows: - [...] disk type='file' device='disk' driver name='qemu' type='raw'/ source file='/dev/virtualvg2/vm4'/ target dev='hda' bus='ide'/ address type='drive' controller='0' bus='0' unit='0'/ /disk [...] - Now we activate the VM: root@host:~# virsh --connect qemu:///system virsh # define /etc/libvirt/qemu/vm4.xml virsh # start vm4 Making VM survive host reboot virsh # autostart vm4 Result now not working taking 100% cpu and hangs! -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to qemu-kvm in Ubuntu. https://bugs.launchpad.net/bugs/1029889 Title: LVM Based KVM VM taking 100% CPU on first start and hangs. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/1029889/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 1029889] Re: LVM Based KVM VM taking 100% CPU on first start and hangs.
Ok will give it a try and post on bug bug 1012946. -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to qemu-kvm in Ubuntu. https://bugs.launchpad.net/bugs/1029889 Title: LVM Based KVM VM taking 100% CPU on first start and hangs. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/1029889/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 1029889] Re: LVM Based KVM VM taking 100% CPU on first start and hangs.
Sorry for the delay I have tried File based VM works without problems. I can add another File based VM - I have installed via vmbuilder: vmbuilder kvm ubuntu \ --suite=precise \ --flavour=virtual \ --arch=amd64 \ --mem=512 \ --hostname=vm4 \ --bridge=br0 \ --mirror=http://de.archive.ubuntu.com/ubuntu \ -o --libvirt=qemu:///system \ --ip x.x.x.x \ --mask x.x.x.x \ --net x.x.x.x \ --bcast x.x.x.x \ --gw x.x.x.x \ --dns 8.8.8.8 \ --part=/var/lib/libvirt/images/vm4/vmbuilder.partition \ --templates=/var/lib/libvirt/images/kvm-custom-temp \ --user=tuser \ --name=Tem User \ --pass=xxx \ --addpkg=vim-nox \ --addpkg=acpid \ --firstboot=/var/lib/libvirt/images/vm4/boot.sh \ 21 | tee vmbuilder-install-log.txt LVM based is not working! It is a mystery because all my other working VMs are LVM ... -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to qemu-kvm in Ubuntu. https://bugs.launchpad.net/bugs/1029889 Title: LVM Based KVM VM taking 100% CPU on first start and hangs. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/1029889/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 1029889] Re: LVM Based KVM VM taking 100% CPU on first start and hangs.
vgdisplay and lvdisplay Is there any minimum space required on volume group to create LVM based VM apart of the LV size of the particular VM ? ** Attachment added: lvdisplay.txt https://bugs.launchpad.net/ubuntu/+source/qemu-kvm/+bug/1029889/+attachment/3397953/+files/lvdisplay.txt -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to qemu-kvm in Ubuntu. https://bugs.launchpad.net/bugs/1029889 Title: LVM Based KVM VM taking 100% CPU on first start and hangs. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/1029889/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 1029889] Re: LVM Based KVM VM taking 100% CPU on first start and hangs.
** Attachment added: vgdisplay.txt https://bugs.launchpad.net/ubuntu/+source/qemu-kvm/+bug/1029889/+attachment/3397954/+files/vgdisplay.txt -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to qemu-kvm in Ubuntu. https://bugs.launchpad.net/bugs/1029889 Title: LVM Based KVM VM taking 100% CPU on first start and hangs. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/1029889/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 1029889] Re: LVM Based KVM VM taking 100% CPU on first start and hangs.
@Serge, Let me know what else we could try to diagnose this problem. This is the same VM machine created via vmbuilder with LVM volumes: lvcreate -L26G -n vm5 virtualvg vmbuilder.partition root 2 swap 6000 boot.sh # Install openssh-server apt-get update apt-get install -qqy --force-yes openssh-server vmbuilder kvm ubuntu \ --suite=precise \ --flavour=virtual \ --arch=amd64 \ --mem=512 \ --hostname=vm5 \ --bridge=br0 \ --mirror=http://de.archive.ubuntu.com/ubuntu \ -o --libvirt=qemu:///system \ --ip x.x.x.x \ --mask x.x.x.x \ --net x.x.x.x \ --bcast x.x.x.x \ --gw x.x.x.x \ --dns 8.8.8.8 \ --part=/var/lib/libvirt/images/vm5/vmbuilder.partition \ --raw=/dev/mapper/virtualvg-vm5 \ --templates=/var/lib/libvirt/images/kvm-custom-temp \ --user=tuser \ --name=Temp User \ --pass=xxx \ --addpkg=vim-nox \ --addpkg=acpid \ --firstboot=/var/lib/libvirt/images/vm5/boot.sh \ 21 | tee vmbuilder-install-lvm-based-log.txt The VM hangs taking 100% CPU! There is screenshot: ** Attachment added: KVM-lvm-based-VM-takes-100CPU.png https://bugs.launchpad.net/ubuntu/+source/qemu-kvm/+bug/1029889/+attachment/3398044/+files/KVM-lvm-based-VM-takes-100CPU.png -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to qemu-kvm in Ubuntu. https://bugs.launchpad.net/bugs/1029889 Title: LVM Based KVM VM taking 100% CPU on first start and hangs. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/1029889/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 1029889] Re: LVM Based KVM VM taking 100% CPU on first start and hangs.
VM Builder Logs for VM4 - File Based and VM5 - LVM Based Partition setup and boot.sh are identical: vmbuilder.partition root 2 swap 6000 boot.sh # Install openssh-server apt-get update apt-get install -qqy --force-yes openssh-server RESULT: VM4 (File Based) - Works No Problem VM5 (LVM Based) - HANGS 100% CPU Tomas ** Attachment added: vmbuilder-install-img-based-log.txt https://bugs.launchpad.net/ubuntu/+source/qemu-kvm/+bug/1029889/+attachment/3398045/+files/vmbuilder-install-img-based-log.txt -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to qemu-kvm in Ubuntu. https://bugs.launchpad.net/bugs/1029889 Title: LVM Based KVM VM taking 100% CPU on first start and hangs. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/1029889/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 1029889] Re: LVM Based KVM VM taking 100% CPU on first start and hangs.
** Attachment added: vmbuilder-install-lvm-based-log.txt https://bugs.launchpad.net/ubuntu/+source/qemu-kvm/+bug/1029889/+attachment/3398046/+files/vmbuilder-install-lvm-based-log.txt -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to qemu-kvm in Ubuntu. https://bugs.launchpad.net/bugs/1029889 Title: LVM Based KVM VM taking 100% CPU on first start and hangs. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/1029889/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 1029889] Re: LVM Based KVM VM taking 100% CPU on first start and hangs.
** Attachment added: lvdisplay-after-vm5-install.txt https://bugs.launchpad.net/ubuntu/+source/qemu-kvm/+bug/1029889/+attachment/3398048/+files/lvdisplay-after-vm5-install.txt -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to qemu-kvm in Ubuntu. https://bugs.launchpad.net/bugs/1029889 Title: LVM Based KVM VM taking 100% CPU on first start and hangs. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/1029889/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 1029889] Re: LVM Based KVM VM taking 100% CPU on first start and hangs.
** Attachment added: vgdisplay-after-vm5-install.txt https://bugs.launchpad.net/ubuntu/+source/qemu-kvm/+bug/1029889/+attachment/3398047/+files/vgdisplay-after-vm5-install.txt -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to qemu-kvm in Ubuntu. https://bugs.launchpad.net/bugs/1029889 Title: LVM Based KVM VM taking 100% CPU on first start and hangs. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/1029889/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 1029889] Re: LVM Based KVM VM taking 100% CPU on first start and hangs.
@Serge I have not tried that with non-LVM backend as we generalu use faster LVM backend. Will do a test next week after my vacations. -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to qemu-kvm in Ubuntu. https://bugs.launchpad.net/bugs/1029889 Title: LVM Based KVM VM taking 100% CPU on first start and hangs. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/1029889/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 1029889] Re: LVM Based KVM VM taking 100% CPU on first start and hangs.
Hi, I still suffer from the issue described above even after various kernel and libvirt updates which were issued by ubuntu. Serge Hallyn tried to repeat this issue but without success. Please try the procedures I was trying and post the logs and debug information here along with your VM setup etc. You will find all the details in this post. It would be great if we could resolve that issue as it affects my only machine with Xeon E processor others with the same seutup and AMD are working fine. Best Lewdmole -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to qemu-kvm in Ubuntu. https://bugs.launchpad.net/bugs/1029889 Title: LVM Based KVM VM taking 100% CPU on first start and hangs. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/1029889/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs