[one-users] Error when instantiating VM from image - next status

Juanra amon.raj at gmail.com
Sat Jun 23 02:50:36 PDT 2012


El 22/06/2012 17:18, "Ruben S. Montero" <rsmontero at opennebula.org> escribió:
>
> Seems the same thing... is it /var/lib/one/ in an NFS volume in the host?
>
> BTW, you need ACPI installed in the guest domains to shutdown them, if
not you can just use cancel
>
>
> On Fri, Jun 22, 2012 at 4:39 PM, Jan Benadik <jan.benadik at atos.net> wrote:
>>
>> Other error message (with SSH transfer driver used):
>> Fri Jun 22 14:08:53 2012 [LCM][I]: New VM state is BOOT
>> Fri Jun 22 14:08:53 2012 [VMM][I]: Generating deployment file:
/var/lib/one/0/deployment.1
>> Fri Jun 22 14:08:53 2012 [VMM][I]: ExitCode: 0
>> Fri Jun 22 14:08:53 2012 [VMM][I]: Successfully execute network driver
operation: pre.
>> Fri Jun 22 14:09:24 2012 [VMM][I]: Command execution fail: cat << EOT |
/var/tmp/one/vmm/kvm/deploy /var/lib/one/0/images/deployment.1 10.0.5.201 0
10.0.5.201
>> Fri Jun 22 14:09:24 2012 [VMM][I]: error: Failed to create domain from
/var/lib/one/0/images/deployment.1
>> Fri Jun 22 14:09:24 2012 [VMM][I]: error: monitor socket did not show
up.: No such file or directory
>> Fri Jun 22 14:09:24 2012 [VMM][E]: Could not create domain from
/var/lib/one/0/images/deployment.1
>> Fri Jun 22 14:09:24 2012 [VMM][I]: ExitCode: 255
>> Fri Jun 22 14:09:24 2012 [VMM][I]: Failed to execute virtualization
driver operation: deploy.
>> Fri Jun 22 14:09:24 2012 [VMM][E]: Error deploying virtual machine:
Could not create domain from /var/lib/one/0/images/deployment.1
>> Fri Jun 22 14:09:25 2012 [DiM][I]: New VM state is FAILED
>>
>> In syslog it is very similar:
>> Jun 22 16:45:01 tyan-host kernel: [82002.423842] type=1505
audit(1340376301.285:71):  operation="profile_load" pid=24477
name="libvirt-3cd36a8d-dd19-6b86-333e-f0249700ba79"
>> Jun 22 16:45:01 tyan-host libvirtd: 16:45:01.317: error :
qemuDomainSetFileOwnership:2222 : cannot set ownership on
/var/lib/one/0/images/disk.0: Permission denied
>> Jun 22 16:45:31 tyan-host libvirtd: 16:45:31.327: error :
qemuMonitorOpenUnix:268 : monitor socket did not show up.: No such file or
directory
>> Jun 22 16:45:31 tyan-host libvirtd: 16:45:31.328: error :
qemuConnectMonitor:822 : Failed to connect monitor for one-0#012
>> Jun 22 16:45:31 tyan-host kernel: [82032.643614] type=1505
audit(1340376331.505:72):  operation="profile_remove" pid=24585
name="libvirt-3cd36a8d-dd19-6b86-333e-f0249700ba79" namespace="root"
>>
>>
>> Jan
>>
>>
>>
>>
>>
>>
>>
>> Dňa 22.06.2012 11:58, Jaime Melis  wrote / napísal(a):
>>>
>>> Hello Jan,
>>>
>>> I forgot to mention that it's not enough with using the SSH transfer
driver, you also have to unmount all your NFS exports in your hypervisor
node, so the disk images aren't copied to an NFS filesystem.
>>>
>>> Cheers,
>>> Jaime
>>>
>>> On Fri, Jun 22, 2012 at 11:21 AM, Jaime Melis <jmelis at opennebula.org>
wrote:
>>>>
>>>> Hello Jan,
>>>>
>>>> let's try without NFS just to rule it out. Can you use the SSH
transfer driver:
>>>>
http://opennebula.org/documentation:rel3.4:fs_ds#using_the_ssh_transfer_driver
>>>> and try launching the VM again?
>>>>
>>>> By the way, after reading your logs it seems you're not using the last
stable release OpenNebula 3.4. Could you upgrade to this release?
>>>>
>>>> Regards,
>>>> Jaime
>>>>
>>>>
>>>> On Fri, Jun 22, 2012 at 8:01 AM, Jan Benadik <jan.benadik at atos.net>
wrote:
>>>>>
>>>>> Yes, it runs:
>>>>> oneadmin at nebula-3:~$ ps aux |grep oned
>>>>> oneadmin 10158  0.0  0.1 1172252 8020 ?        Sl   Jun21   0:22
/usr/bin/oned -f
>>>>>
>>>>> When I changed security_driver in qemu.conf to default state
>>>>>
>>>>> /etc/libvirt/qemu.conf:
>>>>> # security_driver = "selinux"
>>>>>
>>>>> my error message went back to previous state (but still was there) ...
>>>>>
>>>>> When I replaced OS on host to Ubuntu 10.04 Server (with the same
settings), error message is:
>>>>>
>>>>> Thu Jun 21 16:41:17 2012 [LCM][I]: New VM state is BOOT
>>>>> Thu Jun 21 16:41:17 2012 [VMM][I]: Generating deployment file:
/var/lib/one/1/deployment.4
>>>>> Thu Jun 21 16:41:17 2012 [VMM][I]: ExitCode: 0
>>>>> Thu Jun 21 16:41:17 2012 [VMM][I]: Successfully execute network
driver operation: pre.
>>>>> Thu Jun 21 16:41:48 2012 [VMM][I]: Command execution fail: cat << EOT
| /var/tmp/one/vmm/kvm/deploy /var/lib/one/1/images/deployment.4 tyan 1 tyan
>>>>> Thu Jun 21 16:41:48 2012 [VMM][I]: error: Failed to create domain
from /var/lib/one/1/images/deployment.4
>>>>> Thu Jun 21 16:41:48 2012 [VMM][I]: error: cannot set ownership on
/var/lib/one/1/images/disk.1: Permission denied
>>>>> Thu Jun 21 16:41:48 2012 [VMM][E]: Could not create domain from
/var/lib/one/1/images/deployment.4
>>>>> Thu Jun 21 16:41:48 2012 [VMM][I]: ExitCode: 255
>>>>> Thu Jun 21 16:41:48 2012 [VMM][I]: Failed to execute virtualization
driver operation: deploy.
>>>>> Thu Jun 21 16:41:48 2012 [VMM][E]: Error deploying virtual machine:
Could not create domain from /var/lib/one/1/images/deployment.4
>>>>> Thu Jun 21 16:41:49 2012 [DiM][I]: New VM state is FAILED
>>>>>
>>>>> Messages in /var/log/syslog at the same time:
>>>>> Jun 22 10:17:01 tyan-host CRON[12881]: (root) CMD (   cd / &&
run-parts --report /etc/cron.hourly)
>>>>> Jun 22 10:22:04 tyan-host kernel: [59025.594722] type=1505
audit(1340353324.455:27):  operation="profile_load" pid=13044
name="libvirt-f42d2d5f-e5a0-3bcd-a445-1d3d876451e1"
>>>>> Jun 22 10:22:04 tyan-host libvirtd: 10:22:04.470: error :
qemuDomainSetFileOwnership:2222 : cannot set ownership on
/var/lib/one/1/images/disk.0: Permission denied
>>>>> Jun 22 10:22:34 tyan-host libvirtd: 10:22:34.481: error :
qemuMonitorOpenUnix:268 : monitor socket did not show up.: No such file or
directory
>>>>> Jun 22 10:22:34 tyan-host libvirtd: 10:22:34.481: error :
qemuConnectMonitor:822 : Failed to connect monitor for one-1#012
>>>>> Jun 22 10:22:34 tyan-host libvirtd: 10:22:34.665: error :
qemuDomainSetFileOwnership:2222 : cannot set ownership on
/var/lib/one/1/images/disk.1: Permission denied
>>>>> Jun 22 10:22:34 tyan-host libvirtd: 10:22:34.665: warning :
qemudShutdownVMDaemon:2703 : Failed to restore all device ownership for
one-1
>>>>> Jun 22 10:22:34 tyan-host kernel: [59055.797448] type=1505
audit(1340353354.655:28):  operation="profile_remove" pid=13051
name="libvirt-f42d2d5f-e5a0-3bcd-a445-1d3d876451e1" namespace="root"
>>>>>
>>>>> Jan
>>>>>
>>>>>
>>>>>
>>>>> DĹ a 21.06.2012 17:19, Javier Fontan  wrote / napĂ­sal(a):
>>>>>>
>>>>>> Also, I supposte oned is running as oneadmin user. Just to check.
>>>>>>
>>>>>> On Thu, Jun 21, 2012 at 5:19 PM, Javier Fontan <
jfontan at opennebula.org> wrote:
>>>>>>>
>>>>>>> I am checking my configuration ans the only differences are:
>>>>>>>
>>>>>>> * oneadmin is in group oneadmin
>>>>>>> * qemu group is oneadmin
>>>>>>> * ďż˝/var/lib/one/** lrwk, line is in
/etc/apparmor.d/local/usr.sbin.libvirtd
>>>>>>>
>>>>>>> Can you try moving the line of apparmor to
>>>>>>> /etc/apparmor.d/local/usr.sbin.libvirtd? Maybe there's a precedence
>>>>>>> problem that we don't know of. Unfortunately I am not an apparmor.
>>>>>>>
>>>>>>> On Thu, Jun 21, 2012 at 9:55 AM, Jan Benadik <jan.benadik at atos.net>
wrote:
>>>>>>>>
>>>>>>>> So - now I have still the same error message in oned.log:
>>>>>>>> Thu Jun 21 09:26:42 2012 [LCM][I]: New VM state is BOOT
>>>>>>>> Thu Jun 21 09:26:42 2012 [VMM][I]: Generating deployment file:
>>>>>>>> /var/lib/one/0/deployment.38
>>>>>>>> Thu Jun 21 09:26:42 2012 [VMM][I]: ExitCode: 0
>>>>>>>> Thu Jun 21 09:26:42 2012 [VMM][I]: Successfully execute network
driver
>>>>>>>> operation: pre.
>>>>>>>> Thu Jun 21 09:26:44 2012 [VMM][I]: Command execution fail: cat <<
EOT |
>>>>>>>> /var/tmp/one/vmm/kvm/deploy /var/lib/one/0/images/deployment.38
myto 0 myto
>>>>>>>> Thu Jun 21 09:26:44 2012 [VMM][I]: error: Failed to create domain
from
>>>>>>>> /var/lib/one/0/images/deployment.38
>>>>>>>> Thu Jun 21 09:26:44 2012 [VMM][I]: error: Unable to read from
monitor:
>>>>>>>> Connection reset by peer
>>>>>>>> Thu Jun 21 09:26:44 2012 [VMM][E]: Could not create domain from
>>>>>>>> /var/lib/one/0/images/deployment.38
>>>>>>>> Thu Jun 21 09:26:44 2012 [VMM][I]: ExitCode: 255
>>>>>>>> Thu Jun 21 09:26:44 2012 [VMM][I]: Failed to execute
virtualization driver
>>>>>>>> operation: deploy.
>>>>>>>> Thu Jun 21 09:26:44 2012 [VMM][E]: Error deploying virtual
machine: Could
>>>>>>>> not create domain from /var/lib/one/0/images/deployment.38
>>>>>>>> Thu Jun 21 09:26:45 2012 [DiM][I]: New VM state is FAILED
>>>>>>>>
>>>>>>>> At the same time in the /var/log/libvirt/libvirtd.log the
following message
>>>>>>>> appears:
>>>>>>>> 2012-06-21 09:27:43.610+0000: 1114: warning :
>>>>>>>> virDomainDiskDefForeachPath:13244 : Ignoring open failure on
>>>>>>>> /var/lib/one/0/images/disk.1: Permission denied
>>>>>>>> 2012-06-21 09:27:44.296+0000: 1110: error : qemuMonitorIORead:513
: Unable
>>>>>>>> to read from monitor: Connection reset by peer
>>>>>>>>

Try changing libvirt sock group to cloud.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20120623/a31ac754/attachment-0003.htm>


More information about the Users mailing list