[one-users] Problems running VM
Andre Gustavo Pereira da Silva
agps at cin.ufpe.br
Tue Aug 27 15:05:07 PDT 2013
Hi Carlos
>How did you end up with the wrong kvm.conf path in oned.conf?
I dont remember. Maye on the internet. But i really changed it.
I did some corrections on OpenNebula configuration and some erros were
fixed, but i still can not run a VM. The current error is:
Tue Aug 27 18:01:09 2013 [LCM][I]: New VM state is BOOT
Tue Aug 27 18:01:09 2013 [VMM][I]: Generating deployment file:
/var/lib/one/vms/10/deployment.0
Tue Aug 27 18:01:10 2013 [LCM][E]: monitor_done_action, VM in a wrong state
Tue Aug 27 18:01:11 2013 [VMM][I]: ExitCode: 0
Tue Aug 27 18:01:11 2013 [VMM][I]: Successfully execute network driver
operation: pre.
Tue Aug 27 18:01:11 2013 [VMM][I]: Command execution fail: cat << EOT |
/var/tmp/one/vmm/kvm/deploy /var/lib/one//datastores/0/10/deployment.0
centos2 10 centos2
Tue Aug 27 18:01:11 2013 [VMM][I]: error: Failed to create domain from
/var/lib/one//datastores/0/10/deployment.0
Tue Aug 27 18:01:11 2013 [VMM][I]: error: unsupported configuration: Domain
requires KVM, but it is not available. Check that virtualization is enabled
in the host BIOS, and host configuration is setup to load the kvm modules.
Tue Aug 27 18:01:11 2013 [VMM][E]: Could not create domain from
/var/lib/one//datastores/0/10/deployment.0
Tue Aug 27 18:01:11 2013 [VMM][I]: ExitCode: 255
Tue Aug 27 18:01:11 2013 [VMM][I]: Failed to execute virtualization driver
operation: deploy.
Tue Aug 27 18:01:11 2013 [VMM][E]: Error deploying virtual machine: Could
not create domain from /var/lib/one//datastores/0/10/deployment.0
Tue Aug 27 18:01:11 2013 [DiM][I]: New VM state is FAILED
In "/ var / log / messages" file there is this following error:
Aug 27 13:26:21 localhost libvirtd: 9945: info : libvirt version: 0.10.2,
package: 18.el6_4.9 (CentOS BuildSystem <http://bugs.centos.org>,
2013-07-02-11:19:29, c6b8.bsys.dev.centos.org)
Aug 27 13:26:21 localhost libvirtd: 9945: error : udevGetDMIData:1502 :
Failed to get udev device for syspath '/sys/devices/virtual/dmi/id' or
'/sys/class/dmi/id'
Aug 27 13:26:21 localhost kernel: Ebtables v2.0 registered
Aug 27 13:26:22 localhost kernel: lo: Disabled Privacy Extensions
Aug 27 13:26:40 localhost polkitd[10145]: started daemon version 0.96 using
authority implementation `local' version `0.96'
Aug 27 13:28:35 localhost libvirtd: 9937: error : qemuProcessStart:3696 :
unsupported configuration: Domain requires KVM, but it is not available.
Check that virtualization is enabled in the host BIOS, and host
configuration is setup to load the kvm modules.
Aug 27 13:28:35 localhost libvirtd: 9937: error : qemuRemoveCgroup:768 :
internal error Unable to find cgroup for one-8
Aug 27 13:28:35 localhost libvirtd: 9937: warning : qemuProcessStop:4349 :
Failed to remove cgroup for one-8
Some considerations:
- The kvm is running:
[root at centos2 default]# lsmod | grep kvm
kvm 316506 0
- The libvirtd also:
[root at centos2 default]# service libvirtd status
libvirtd (pid 9933) is running..
- Libvirt Version:
[root at centos2 default]# rpm -qa | grep libvirt
libvirt-client-0.10.2-18.el6_4.9.x86_64
libvirt-0.10.2-18.el6_4.9.x86_6
- The KVM tutorial for OpenNebula [1] quotes the following file, that does
not exist in my installation: "/ etc / default / libvirt-bin". Should I
create it? what is its content?
- Does the dummy driver uses the libvirtd? is it possible to create a VM
with it?
thank you,
André
[1] http://opennebula.org/documentation:rel4.2:kvmg#kvm_configuration
2013/8/27 Carlos Martín Sánchez <cmartin at opennebula.org>
> Hi André,
>
> How did you end up with the wrong kvm.conf path in oned.conf? I simply
> copied the default configuration.
>
> And yes, localhost is treated just like any other host, OpenNebula needs
> you to configure passwordless ssh for the oneadmin account.
>
> Regards
>
>
> --
> Join us at OpenNebulaConf2013 <http://opennebulaconf.com> in Berlin,
> 24-26 September, 2013
> --
> Carlos Martín, MSc
> Project Engineer
> OpenNebula - The Open-source Solution for Data Center Virtualization
> www.OpenNebula.org | cmartin at opennebula.org | @OpenNebula<http://twitter.com/opennebula><cmartin at opennebula.org>
>
>
> On Mon, Aug 26, 2013 at 11:05 PM, Andre Gustavo Pereira da Silva <
> agps at cin.ufpe.br> wrote:
>
>> Hi Carlos
>>
>> Your tip did the loading of driver KVM work! Thank you.
>>
>> About the problem with SSH, i've found the solution on the link below,
>> and now it works:
>> http://bugs.centos.org/view.php?id=6468
>>
>> All the previous errors disappeared. However, the VM still does not
>> deploy. The log reported that the kvm is not installed on the host. I'm
>> gointo to follow the official documentation to try to resolve the problem.
>> http://opennebula.org/documentation:rel4.2:kvmg
>>
>> Another question arised when I tried to create a VM on the server ONE
>> (localhost). The error message (this message continues after the log):
>> Mon Aug 26 17:47:46 2013 [TM] [I]: Command execution fail: / var / lib /
>> one / remotes / tm / shared / clone centos1
>> var/lib/one/datastores/1/4db7457fbfefc1bbea96380d787d874e :/ localhost: /
>> var / lib / one / / datastores/0/4/disk.0 4 1
>> Mon Aug 26 17:47:46 2013 [TM] [I]: clone: Cloning /
>> var/lib/one/datastores/1/4db7457fbfefc1bbea96380d787d874e in localhost :/
>> var / lib / one / / datastores/0/4/disk. 0
>> Mon Aug 26 17:47:46 2013 [TM] [E]: clone: Command "cd /
>> var/lib/one/datastores/0/4; cp-r /
>> var/lib/one/datastores/1/4db7457fbfefc1bbea96380d787d874e /
>> var/lib/one/datastores/0/4/disk.0 "failed: Permission denied, please try
>> again.
>> Mon Aug 26 17:47:46 2013 [TM] [I]: Permission denied, please try again.
>> Mon Aug 26 17:47:46 2013 [TM] [I]: Permission denied (publickey,
>> gssapi-keyex, gssapi-with-mic, password).
>> Mon Aug 26 17:47:46 2013 [TM] [E]: Error copying centos1 :/
>> var/lib/one/datastores/1/4db7457fbfefc1bbea96380d787d874e to localhost :/
>> var / lib / one / / datastores/0/4/disk .0
>> Mon Aug 26 17:47:46 2013 [TM] [I]: ExitCode: 255
>> Mon Aug 26 17:47:46 2013 [TM] [E]: Error executing image transfer script:
>> Error copying centos1 :/
>> var/lib/one/datastores/1/4db7457fbfefc1bbea96380d787d874e to localhost :/
>> var / lib / one / / datastores / 0/4/disk.0
>> Mon Aug 26 17:47:46 2013 [DiM] [I]: New VM state is FAILED
>>
>> The question is: when I create a VM on localhost, it creates an SSH
>> session with himself?
>>
>> thank you,
>>
>> André
>>
>>
>> 2013/8/26 Carlos Martín Sánchez <cmartin at opennebula.org>
>>
>>> Hi,
>>>
>>> Your first error log seems related to the ssh configuration.
>>> XCP is not supported, only xen, kvm and vmware [1].
>>>
>>> About the second error log, opennebula should not be looking for that
>>> file, it should be this one instead:
>>> /etc/one/vmm_exec/vmm_exec_kvm.conf
>>>
>>> Please check your /etc/one/oned.conf, does it contain this driver
>>> definition?
>>>
>>> VM_MAD = [
>>> name = "kvm",
>>> executable = "one_vmm_exec",
>>> arguments = "-t 15 -r 0 kvm",
>>> default = "vmm_exec/vmm_exec_kvm.conf",
>>> type = "kvm" ]
>>>
>>>
>>> Regards.
>>>
>>> [1] http://opennebula.org/documentation:rel4.2:vmmg
>>>
>>>
>>>
>>> --
>>> Join us at OpenNebulaConf2013 <http://opennebulaconf.com> in Berlin,
>>> 24-26 September, 2013
>>> --
>>> Carlos Martín, MSc
>>> Project Engineer
>>> OpenNebula - The Open-source Solution for Data Center Virtualization
>>> www.OpenNebula.org | cmartin at opennebula.org | @OpenNebula<http://twitter.com/opennebula><cmartin at opennebula.org>
>>>
>>>
>>> On Sat, Aug 24, 2013 at 12:10 AM, Andre Gustavo Pereira da Silva <
>>> agps at cin.ufpe.br> wrote:
>>>
>>>> Hi
>>>>
>>>> I'm beginning to study ONE and I'm finding some problems to run a VM.
>>>>
>>>> The error described in the log when I try to run a VM is (this message
>>>> continues after the message log):
>>>> Mon Aug 19 18:43:15 2013 [DiM][I]: New VM state is ACTIVE.
>>>> Mon Aug 19 18:43:15 2013 [LCM][I]: New VM state is PROLOG.
>>>> Mon Aug 19 18:43:15 2013 [TM][I]: Command execution fail:
>>>> /var/lib/one/remotes/tm/shared/clone
>>>> localhost.localdomain:/var/lib/one/datastores/1/4db7457fbfefc1bbea96380d787d874e
>>>> centos2:/var/lib/one//datastores/0/2/disk.0 2 1
>>>> Mon Aug 19 18:43:15 2013 [TM][I]: clone: Cloning
>>>> /var/lib/one/datastores/1/4db7457fbfefc1bbea96380d787d874e in
>>>> centos2:/var/lib/one//datastores/0/2/disk.0
>>>> Mon Aug 19 18:43:15 2013 [TM][E]: clone: Command "cd
>>>> /var/lib/one/datastores/0/2; cp -r
>>>> /var/lib/one/datastores/1/4db7457fbfefc1bbea96380d787d874e
>>>> /var/lib/one/datastores/0/2/disk.0" failed: Warning: Permanently added
>>>> 'centos2,10.66.66.21' (RSA) to the list of known hosts.
>>>> Mon Aug 19 18:43:15 2013 [TM][I]: Permission denied, please try again.
>>>> Mon Aug 19 18:43:15 2013 [TM][I]: Permission denied, please try again.
>>>> Mon Aug 19 18:43:15 2013 [TM][I]: Permission denied
>>>> (publickey,gssapi-keyex,gssapi-with-mic,password).
>>>> Mon Aug 19 18:43:15 2013 [TM][E]: Error copying
>>>> localhost.localdomain:/var/lib/one/datastores/1/4db7457fbfefc1bbea96380d787d874e
>>>> to centos2:/var/lib/one//datastores/0/2/disk.0
>>>> Mon Aug 19 18:43:15 2013 [TM][I]: ExitCode: 255
>>>> Mon Aug 19 18:43:15 2013 [TM][E]: Error executing image transfer
>>>> script: Error copying
>>>> localhost.localdomain:/var/lib/one/datastores/1/4db7457fbfefc1bbea96380d787d874e
>>>> to centos2:/var/lib/one//datastores/0/2/disk.0
>>>> Mon Aug 19 18:43:15 2013 [DiM][I]: New VM state is FAILED
>>>>
>>>> Some considerations:
>>>> - My cloud server infrastructure is: XCP 1.6 (hypervisor) + CentOS 6.4
>>>> + ONE 4.0.1
>>>> - The host has the same infrastructure, except the ONE server.
>>>> - I've installed the ONE node package on the host.
>>>> - Oned.log includes the following error on ONE startup:
>>>> Fri Aug 23 18:00:40 2013 [VMM][E]: Error loading driver configuration
>>>> file /etc/Fri Aug 23 18:14:54 2013 [VMM][I]: Loading driver: kvm (KVM)
>>>> Fri Aug 23 18:14:54 2013 [VMM][E]: Error loading driver configuration
>>>> file /etc/one/vmm_ssh/vmm_ssh_kvm.conf : Error opening template file
>>>>
>>>> - I'm using the tutorial:
>>>> http://wiki.centos.org/Cloud/OpenNebula/QuickStart
>>>> - I can not log on host using SSH without password during boot. I have
>>>> to stop the SSH deamon service and then start it with the command '/ usr /
>>>> sbin / ssh'. Only then oneadmin user can log in the host without password.
>>>> I've read that other people go through the same problem and could not find
>>>> the answer. For example:
>>>> http://bugs.centos.org/print_bug_page.php?bug_id=4959
>>>> - In my installation there is no file called '/ etc / one / vmm_ssh /
>>>> vmm_ssh_kvm.conf '. This directory is quoted in oned.log. This means that
>>>> kvm is not installed? how to do it?
>>>> - I can only add hosts to the ONE server using 'dummy' protocol.
>>>>
>>>> I appreciate any help.
>>>>
>>>> sorry for my bad english.
>>>>
>>>> André Gustavo
>>>> Brazil
>>>> agps at cin.ufpe.br
>>>>
>>>>
>>>> _______________________________________________
>>>> Users mailing list
>>>> Users at lists.opennebula.org
>>>> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>>>>
>>>>
>>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20130827/adf299ab/attachment-0002.htm>
More information about the Users
mailing list