Re: [one-users] Configure hosts to use qemu without kvm hardware acceleration
Probably you need to modify /etc/one/vmm_exec/vmm_exec_kvm.conf and add EMULATOR = /usr/libexec/qemu-kvm Cheers Ruben On Tue, Mar 25, 2014 at 1:51 PM, Marco Fanti marco.fa...@studenti.polito.it wrote: Thank you for the answers, this was the log file of the vm that don't start because of the missing kvm module (so it does not fall back to qemu --no-kvm when the kvm module is not present on the system. Mon Mar 24 15:11:02 2014 [DiM][I]: New VM state is ACTIVE. Mon Mar 24 15:11:02 2014 [LCM][I]: New VM state is PROLOG. Mon Mar 24 15:11:02 2014 [VM][I]: Virtual Machine has no context Mon Mar 24 15:11:03 2014 [LCM][I]: New VM state is BOOT Mon Mar 24 15:11:03 2014 [VMM][I]: Generating deployment file: /var/lib/one/vms/2/deployment.0 Mon Mar 24 15:11:03 2014 [VMM][I]: ExitCode: 0 Mon Mar 24 15:11:03 2014 [VMM][I]: Successfully execute network driver operation: pre. Mon Mar 24 15:11:03 2014 [VMM][I]: Command execution fail: cat EOT | /var/tmp/one/vmm/kvm/deploy '/var/lib/one//datastores/0/2/deployment.0' 'on-compute1' 2 on-compute1 Mon Mar 24 15:11:03 2014 [VMM][I]: error: Failed to create domain from /var/lib/one//datastores/0/2/deployment.0 Mon Mar 24 15:11:03 2014 [VMM][I]: error: internal error Child process (LC_ALL=C PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin HOME=/ /usr/bin/kvm -no-user-config -device ? -device pci-assign,? -device virtio-blk-pci,? -device virtio-net-pci,? -device scsi-disk,?) unexpected exit status 1: Could not access KVM kernel module: No such file or directory Mon Mar 24 15:11:03 2014 [VMM][I]: failed to initialize KVM: No such file or directory Mon Mar 24 15:11:03 2014 [VMM][I]: No accelerator found! Mon Mar 24 15:11:03 2014 [VMM][I]: Mon Mar 24 15:11:03 2014 [VMM][E]: Could not create domain from /var/lib/one//datastores/0/2/deployment.0 Mon Mar 24 15:11:03 2014 [VMM][I]: ExitCode: 255 2014-03-25 13:14 GMT+01:00 Javier Fontan jfon...@opennebula.org: OpenNebula can be configured to use qemu emulation instead of kvm virtualization but not per VM but in the driver definition. The type of the VM driver can be changed from kvm to qemu in oned.conf. For example: --8-- VM_MAD = [ name = kvm, executable = one_vmm_ssh, arguments = -t 15 -r 0 kvm, default= vmm_ssh/vmm_ssh_kvm.conf, type = qemu ] --8-- This is used in the tryout images as they are already virtualized. It will be also useful for the infrastructure Marco Fanti wants to create. Still this is not useful to have mixed virtualized and emulated machines in the same host. Maybe this parameter can be changed to a VM setting instead of a driver setting. Thank you Javier, this solution is actually documented in the oned.conf comments, I'm sorry that i didn't noticed it before. On Tue, Mar 25, 2014 at 10:28 AM, Carlo Daffara carlo.daff...@cloudweavers.eu wrote: It is nevertheless an interesting feature. For example, when emulating legacy OSes like DOS or Windows 3.11 you have to disable KVM anyway, or the OS does not boot. (And yes, we *do* have sometimes to bring legacy operating systems into OpenNebula :-)) Maybe we can add it as a feature? It should be mainly a matter of passing the -no-kvm switch cheers, Carlo Daffara - Messaggio originale - Da: Jon three1...@gmail.com A: Marco Fanti marco.fa...@studenti.polito.it Cc: Users OpenNebula users@lists.opennebula.org Inviato: Martedì, 25 marzo 2014 10:20:50 Oggetto: Re: [one-users] Configure hosts to use qemu without kvm hardware acceleration Shouldn't qemu fallback to paravitualization when hardware acceleration isn't available? http://blog.vmsplice.net/2011/03/should-i-use-qemu-or-kvm.html?m=1 I was confident that qemu could detect on the fly if hardware virtualization was available and would enable it or not as appropriate. until your post... Are you getting an error with OpenNebula? Thanks, Jon A On Mar 25, 2014 1:41 AM, Marco Fanti marco.fa...@studenti.polito.it wrote: Hi all, I'm building a testing environment and I need to use some kvm virtual machines as host nodes. Since I cannot enable the hardware acceleration inside a virtual machine*, I'd like to know how to configure a host node like the configuration that there is in the kvm sandbox (that actually use qemu-kvm with the parameter -no-kvm). As frontend node and host nodes I'm using Debian 7, and opennebula is installed from the .deb packages for Debian 7 downloaded from the opennebula website. Thank you all, Marco Fanti *I know it is possible to enable nested kvm inside kvm, the guide is http://palexster.wordpress.com/2013/03/06/enable-nested-virtualization-on-kvm/, BUT this features has a lot of bug, especially in the old versions of kvm like the one in Debian Stable, so I'd like a more stable solution, like to use qemu without kvm as in the kvm sandbox
[one-users] Configure hosts to use qemu without kvm hardware acceleration
Hi all, I'm building a testing environment and I need to use some kvm virtual machines as host nodes. Since I cannot enable the hardware acceleration inside a virtual machine*, I'd like to know how to configure a host node like the configuration that there is in the kvm sandbox (that actually use qemu-kvm with the parameter -no-kvm). As frontend node and host nodes I'm using Debian 7, and opennebula is installed from the .deb packages for Debian 7 downloaded from the opennebula website. Thank you all, Marco Fanti *I know it is possible to enable nested kvm inside kvm, the guide is http://palexster.wordpress.com/2013/03/06/enable-nested-virtualization-on-kvm/ , BUT this features has a lot of bug, especially in the old versions of kvm like the one in Debian Stable, so I'd like a more stable solution, like to use qemu without kvm as in the kvm sandbox ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] Configure hosts to use qemu without kvm hardware acceleration
Shouldn't qemu fallback to paravitualization when hardware acceleration isn't available? http://blog.vmsplice.net/2011/03/should-i-use-qemu-or-kvm.html?m=1 I was confident that qemu could detect on the fly if hardware virtualization was available and would enable it or not as appropriate. until your post... Are you getting an error with OpenNebula? Thanks, Jon A On Mar 25, 2014 1:41 AM, Marco Fanti marco.fa...@studenti.polito.it wrote: Hi all, I'm building a testing environment and I need to use some kvm virtual machines as host nodes. Since I cannot enable the hardware acceleration inside a virtual machine*, I'd like to know how to configure a host node like the configuration that there is in the kvm sandbox (that actually use qemu-kvm with the parameter -no-kvm). As frontend node and host nodes I'm using Debian 7, and opennebula is installed from the .deb packages for Debian 7 downloaded from the opennebula website. Thank you all, Marco Fanti *I know it is possible to enable nested kvm inside kvm, the guide is http://palexster.wordpress.com/2013/03/06/enable-nested-virtualization-on-kvm/ , BUT this features has a lot of bug, especially in the old versions of kvm like the one in Debian Stable, so I'd like a more stable solution, like to use qemu without kvm as in the kvm sandbox ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] Configure hosts to use qemu without kvm hardware acceleration
It is nevertheless an interesting feature. For example, when emulating legacy OSes like DOS or Windows 3.11 you have to disable KVM anyway, or the OS does not boot. (And yes, we *do* have sometimes to bring legacy operating systems into OpenNebula :-)) Maybe we can add it as a feature? It should be mainly a matter of passing the -no-kvm switch cheers, Carlo Daffara - Messaggio originale - Da: Jon three1...@gmail.com A: Marco Fanti marco.fa...@studenti.polito.it Cc: Users OpenNebula users@lists.opennebula.org Inviato: Martedì, 25 marzo 2014 10:20:50 Oggetto: Re: [one-users] Configure hosts to use qemu without kvm hardware acceleration Shouldn't qemu fallback to paravitualization when hardware acceleration isn't available? http://blog.vmsplice.net/2011/03/should-i-use-qemu-or-kvm.html?m=1 I was confident that qemu could detect on the fly if hardware virtualization was available and would enable it or not as appropriate. until your post... Are you getting an error with OpenNebula? Thanks, Jon A On Mar 25, 2014 1:41 AM, Marco Fanti marco.fa...@studenti.polito.it wrote: Hi all, I'm building a testing environment and I need to use some kvm virtual machines as host nodes. Since I cannot enable the hardware acceleration inside a virtual machine*, I'd like to know how to configure a host node like the configuration that there is in the kvm sandbox (that actually use qemu-kvm with the parameter -no-kvm). As frontend node and host nodes I'm using Debian 7, and opennebula is installed from the .deb packages for Debian 7 downloaded from the opennebula website. Thank you all, Marco Fanti *I know it is possible to enable nested kvm inside kvm, the guide is http://palexster.wordpress.com/2013/03/06/enable-nested-virtualization-on-kvm/ , BUT this features has a lot of bug, especially in the old versions of kvm like the one in Debian Stable, so I'd like a more stable solution, like to use qemu without kvm as in the kvm sandbox ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] Configure hosts to use qemu without kvm hardware acceleration
OpenNebula can be configured to use qemu emulation instead of kvm virtualization but not per VM but in the driver definition. The type of the VM driver can be changed from kvm to qemu in oned.conf. For example: --8-- VM_MAD = [ name = kvm, executable = one_vmm_ssh, arguments = -t 15 -r 0 kvm, default= vmm_ssh/vmm_ssh_kvm.conf, type = qemu ] --8-- This is used in the tryout images as they are already virtualized. It will be also useful for the infrastructure Marco Fanti wants to create. Still this is not useful to have mixed virtualized and emulated machines in the same host. Maybe this parameter can be changed to a VM setting instead of a driver setting. On Tue, Mar 25, 2014 at 10:28 AM, Carlo Daffara carlo.daff...@cloudweavers.eu wrote: It is nevertheless an interesting feature. For example, when emulating legacy OSes like DOS or Windows 3.11 you have to disable KVM anyway, or the OS does not boot. (And yes, we *do* have sometimes to bring legacy operating systems into OpenNebula :-)) Maybe we can add it as a feature? It should be mainly a matter of passing the -no-kvm switch cheers, Carlo Daffara - Messaggio originale - Da: Jon three1...@gmail.com A: Marco Fanti marco.fa...@studenti.polito.it Cc: Users OpenNebula users@lists.opennebula.org Inviato: Martedì, 25 marzo 2014 10:20:50 Oggetto: Re: [one-users] Configure hosts to use qemu without kvm hardware acceleration Shouldn't qemu fallback to paravitualization when hardware acceleration isn't available? http://blog.vmsplice.net/2011/03/should-i-use-qemu-or-kvm.html?m=1 I was confident that qemu could detect on the fly if hardware virtualization was available and would enable it or not as appropriate. until your post... Are you getting an error with OpenNebula? Thanks, Jon A On Mar 25, 2014 1:41 AM, Marco Fanti marco.fa...@studenti.polito.it wrote: Hi all, I'm building a testing environment and I need to use some kvm virtual machines as host nodes. Since I cannot enable the hardware acceleration inside a virtual machine*, I'd like to know how to configure a host node like the configuration that there is in the kvm sandbox (that actually use qemu-kvm with the parameter -no-kvm). As frontend node and host nodes I'm using Debian 7, and opennebula is installed from the .deb packages for Debian 7 downloaded from the opennebula website. Thank you all, Marco Fanti *I know it is possible to enable nested kvm inside kvm, the guide is http://palexster.wordpress.com/2013/03/06/enable-nested-virtualization-on-kvm/ , BUT this features has a lot of bug, especially in the old versions of kvm like the one in Debian Stable, so I'd like a more stable solution, like to use qemu without kvm as in the kvm sandbox ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org -- Javier Fontán Muiños Developer OpenNebula - The Open Source Toolkit for Data Center Virtualization www.OpenNebula.org | @OpenNebula | github.com/jfontan ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] Configure hosts to use qemu without kvm hardware acceleration
Thank you for the answers, this was the log file of the vm that don't start because of the missing kvm module (so it does not fall back to qemu --no-kvm when the kvm module is not present on the system. Mon Mar 24 15:11:02 2014 [DiM][I]: New VM state is ACTIVE. Mon Mar 24 15:11:02 2014 [LCM][I]: New VM state is PROLOG. Mon Mar 24 15:11:02 2014 [VM][I]: Virtual Machine has no context Mon Mar 24 15:11:03 2014 [LCM][I]: New VM state is BOOT Mon Mar 24 15:11:03 2014 [VMM][I]: Generating deployment file: /var/lib/one/vms/2/deployment.0 Mon Mar 24 15:11:03 2014 [VMM][I]: ExitCode: 0 Mon Mar 24 15:11:03 2014 [VMM][I]: Successfully execute network driver operation: pre. Mon Mar 24 15:11:03 2014 [VMM][I]: Command execution fail: cat EOT | /var/tmp/one/vmm/kvm/deploy '/var/lib/one//datastores/0/2/deployment.0' 'on-compute1' 2 on-compute1 Mon Mar 24 15:11:03 2014 [VMM][I]: error: Failed to create domain from /var/lib/one//datastores/0/2/deployment.0 Mon Mar 24 15:11:03 2014 [VMM][I]: error: internal error Child process (LC_ALL=C PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin HOME=/ /usr/bin/kvm -no-user-config -device ? -device pci-assign,? -device virtio-blk-pci,? -device virtio-net-pci,? -device scsi-disk,?) unexpected exit status 1: Could not access KVM kernel module: No such file or directory Mon Mar 24 15:11:03 2014 [VMM][I]: failed to initialize KVM: No such file or directory Mon Mar 24 15:11:03 2014 [VMM][I]: No accelerator found! Mon Mar 24 15:11:03 2014 [VMM][I]: Mon Mar 24 15:11:03 2014 [VMM][E]: Could not create domain from /var/lib/one//datastores/0/2/deployment.0 Mon Mar 24 15:11:03 2014 [VMM][I]: ExitCode: 255 2014-03-25 13:14 GMT+01:00 Javier Fontan jfon...@opennebula.org: OpenNebula can be configured to use qemu emulation instead of kvm virtualization but not per VM but in the driver definition. The type of the VM driver can be changed from kvm to qemu in oned.conf. For example: --8-- VM_MAD = [ name = kvm, executable = one_vmm_ssh, arguments = -t 15 -r 0 kvm, default= vmm_ssh/vmm_ssh_kvm.conf, type = qemu ] --8-- This is used in the tryout images as they are already virtualized. It will be also useful for the infrastructure Marco Fanti wants to create. Still this is not useful to have mixed virtualized and emulated machines in the same host. Maybe this parameter can be changed to a VM setting instead of a driver setting. Thank you Javier, this solution is actually documented in the oned.conf comments, I'm sorry that i didn't noticed it before. On Tue, Mar 25, 2014 at 10:28 AM, Carlo Daffara carlo.daff...@cloudweavers.eu wrote: It is nevertheless an interesting feature. For example, when emulating legacy OSes like DOS or Windows 3.11 you have to disable KVM anyway, or the OS does not boot. (And yes, we *do* have sometimes to bring legacy operating systems into OpenNebula :-)) Maybe we can add it as a feature? It should be mainly a matter of passing the -no-kvm switch cheers, Carlo Daffara - Messaggio originale - Da: Jon three1...@gmail.com A: Marco Fanti marco.fa...@studenti.polito.it Cc: Users OpenNebula users@lists.opennebula.org Inviato: Martedì, 25 marzo 2014 10:20:50 Oggetto: Re: [one-users] Configure hosts to use qemu without kvm hardware acceleration Shouldn't qemu fallback to paravitualization when hardware acceleration isn't available? http://blog.vmsplice.net/2011/03/should-i-use-qemu-or-kvm.html?m=1 I was confident that qemu could detect on the fly if hardware virtualization was available and would enable it or not as appropriate. until your post... Are you getting an error with OpenNebula? Thanks, Jon A On Mar 25, 2014 1:41 AM, Marco Fanti marco.fa...@studenti.polito.it wrote: Hi all, I'm building a testing environment and I need to use some kvm virtual machines as host nodes. Since I cannot enable the hardware acceleration inside a virtual machine*, I'd like to know how to configure a host node like the configuration that there is in the kvm sandbox (that actually use qemu-kvm with the parameter -no-kvm). As frontend node and host nodes I'm using Debian 7, and opennebula is installed from the .deb packages for Debian 7 downloaded from the opennebula website. Thank you all, Marco Fanti *I know it is possible to enable nested kvm inside kvm, the guide is http://palexster.wordpress.com/2013/03/06/enable-nested-virtualization-on-kvm/, BUT this features has a lot of bug, especially in the old versions of kvm like the one in Debian Stable, so I'd like a more stable solution, like to use qemu without kvm as in the kvm sandbox ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org ___ Users mailing list Users