[one-users] Problems with VM
Aridane Jesús Sarrionandia de León
ajsarri at gmail.com
Mon Apr 29 10:51:33 PDT 2013
Hi again,
I checked what happened in XEN while I restarted the VM. With xm top I
could see that the domain one-XX appears for a moment and then is deleted,
but I have no Idea why... Does anyone know why?
2013/4/29 Aridane Jesús Sarrionandia de León <ajsarri at gmail.com>
> Hi Javier, thank you for your answer.
>
> After having a look at permissions I added root to the "cloud" group wich
> solved the problem of writing in the folders belonging to oneadmin. Now the
> VM poweroffs correctly but when I try to stop it, it goes to "SAVE" state
> and then "UNKOWN" again, but now the log message has changed.
> Now this is what I get:
>
> Mon Apr 29 16:34:22 2013 [LCM][I]: New VM state is RUNNING
> Mon Apr 29 16:39:31 2013 [LCM][I]: New VM state is SAVE_STOP
> Mon Apr 29 16:39:31 2013 [VMM][I]: Command execution fail:
> /var/tmp/one/vmm/xen/save one-29 /var/lib/one//datastores/0/29/checkpoint
> oneHost 29 oneHost
> Mon Apr 29 16:39:31 2013 [VMM][E]: save: Command "sudo /usr/sbin/xm save
> one-29 /var/lib/one//datastores/0/29/checkpoint" failed: Error: Domain
> 'one-29' does not exist.
> Mon Apr 29 16:39:31 2013 [VMM][E]: Could not save one-29 to
> /var/lib/one//datastores/0/29/checkpoint
> Mon Apr 29 16:39:31 2013 [VMM][I]: ExitCode: 3
> Mon Apr 29 16:39:31 2013 [VMM][I]: Failed to execute virtualization driver
> operation: save.
> Mon Apr 29 16:39:31 2013 [VMM][E]: Error saving VM state: Could not save
> one-29 to /var/lib/one//datastores/0/29/checkpoint
> Mon Apr 29 16:39:31 2013 [LCM][I]: Fail to save VM state. Assuming that
> the VM is still RUNNING (will poll VM).
> Mon Apr 29 16:39:35 2013 [VMM][I]: Found interface tap-1-768 but domain 1
> does not exist.
> Mon Apr 29 16:39:35 2013 [VMM][I]: Found interface tap-2-768 but domain 2
> does not exist.
> Mon Apr 29 16:39:35 2013 [VMM][I]: Found interface tap-3-768 but domain 3
> does not exist.
> Mon Apr 29 16:39:35 2013 [VMM][I]: Found interface tap-4-768 but domain 4
> does not exist.
> Mon Apr 29 16:39:35 2013 [VMM][I]: Found interface tap-5-768 but domain 5
> does not exist.
> Mon Apr 29 16:39:35 2013 [VMM][I]: Found interface tap-6-768 but domain 6
> does not exist.
> Mon Apr 29 16:39:35 2013 [VMM][I]: Found interface tap-7-768 but domain 7
> does not exist.
> Mon Apr 29 16:39:35 2013 [VMM][I]: Found interface tap-8-768 but domain 8
> does not exist.
> Mon Apr 29 16:39:35 2013 [VMM][I]: Found interface tap-9-768 but domain 9
> does not exist.
> Mon Apr 29 16:39:35 2013 [VMM][I]: Found interface tap-10-768 but domain
> 10 does not exist.
> Mon Apr 29 16:39:35 2013 [VMM][I]: Found interface tap-11-768 but domain
> 11 does not exist.
> Mon Apr 29 16:39:35 2013 [VMM][I]: Found interface tap-12-768 but domain
> 12 does not exist.
> Mon Apr 29 16:39:35 2013 [VMM][I]: Found interface tap-1-768 but domain 1
> does not exist.
> Mon Apr 29 16:39:35 2013 [VMM][I]: Found interface tap-2-768 but domain 2
> does not exist.
> Mon Apr 29 16:39:35 2013 [VMM][I]: Found interface tap-3-768 but domain 3
> does not exist.
> Mon Apr 29 16:39:35 2013 [VMM][I]: Found interface tap-4-768 but domain 4
> does not exist.
> Mon Apr 29 16:39:35 2013 [VMM][I]: Found interface tap-5-768 but domain 5
> does not exist.
> Mon Apr 29 16:39:35 2013 [VMM][I]: Found interface tap-6-768 but domain 6
> does not exist.
> Mon Apr 29 16:39:35 2013 [VMM][I]: Found interface tap-7-768 but domain 7
> does not exist.
> Mon Apr 29 16:39:35 2013 [VMM][I]: Found interface tap-8-768 but domain 8
> does not exist.
> Mon Apr 29 16:39:35 2013 [VMM][I]: Found interface tap-9-768 but domain 9
> does not exist.
> Mon Apr 29 16:39:35 2013 [VMM][I]: Found interface tap-10-768 but domain
> 10 does not exist.
> Mon Apr 29 16:39:35 2013 [VMM][I]: Found interface tap-11-768 but domain
> 11 does not exist.
> Mon Apr 29 16:39:35 2013 [VMM][I]: Found interface tap-12-768 but domain
> 12 does not exist.
> Mon Apr 29 16:39:35 2013 [VMM][I]: ExitCode: 0
> Mon Apr 29 16:39:35 2013 [VMM][I]: VM running but it was not found.
> Restart and delete actions available or try to recover it manually
> Mon Apr 29 16:39:35 2013 [LCM][I]: New VM state is UNKNOWN
>
>
> 2013/4/26 Javier Fontan <jfontan at opennebula.org>
>
>> It looks like a problem with root permissions. Add root to the group
>> oneadmin and make sure that the datastore directory is writable by
>> group oneadmin in the remote node. You may need to restart xen daemons
>> in the physical node. A reboot will probably be the safest way.
>>
>> On Wed, Apr 24, 2013 at 5:49 PM, Aridane Jesús Sarrionandia de León
>> <ajsarri at gmail.com> wrote:
>> > Hi everyone,
>> >
>> > I've got open nebula installed and a server with Xen running and I have
>> the
>> > following problem.
>> >
>> > I can create a VM with no problem, and reaches the state runn without
>> error
>> > messages.
>> > The thing is that if I try to stop (onevm stop X) or poweroff (onevm
>> > poweroff X) it goes to "unk" state.
>> >
>> > This is the VM template I used (a lot of things are in comments until I
>> get
>> > to solve the basic issues).
>> >
>> > CPU = 0.1
>> > MEMORY = 64
>> >
>> > DISK = [
>> > #BUS="ide",
>> > IMAGE="ttylinux",
>> > #IMAGE_UNAME="oneadmin",
>> > READONLY="no"#,
>> > #TARGET="xvda"
>> > ]
>> >
>> > NIC = [ NETWORK="Small network"]
>> >
>> > OS=[ KERNEL="/vmlinuz",
>> > INITRD="/initrd.img" ]
>> >
>> > #RAW=[ DATA="builder = 'hvm'
>> > #shadow_memory = 8
>> > # device_model = '/usr/lib/xen-default/bin/qemu-dm'
>> > # boot=\"c\"",
>> > # TYPE="xen" ]
>> >
>> > TEMPLATE_ID="1"
>> >
>> > #CONTEXT = [
>> > # hostname = "$NAME",
>> > # ip_public = "PUBLIC_IP",
>> > # files = "/path/to/init.sh /path/to/id_dsa.pub",
>> > # target = "hdc",
>> > # root_pubkey = "id_dsa.pub",
>> > # username = "opennebula",
>> > # user_pubkey = "id_dsa.pub"
>> > #]
>> >
>> >
>> >
>> > And this is the VM Log after the following commands:
>> >
>> > onevm create ttylinux_template.one
>> > onevm stop 13
>> > onevm restart 13
>> > onevm poweroff 13
>> >
>> > And this is the log:
>> >
>> > Wed Apr 24 16:36:20 2013 [DiM][I]: New VM state is ACTIVE.
>> > Wed Apr 24 16:36:20 2013 [LCM][I]: New VM state is PROLOG.
>> > Wed Apr 24 16:36:20 2013 [VM][I]: Virtual Machine has no context
>> > Wed Apr 24 16:36:21 2013 [TM][I]: clone: Cloning
>> > /var/lib/one/datastores/1/364fed6a7cfeeabca962d3fa160a8f60 in
>> > oneHost:/var/lib/one//datastores/0/13/disk.0
>> > Wed Apr 24 16:36:21 2013 [TM][I]: ExitCode: 0
>> > Wed Apr 24 16:36:21 2013 [LCM][I]: New VM state is BOOT
>> > Wed Apr 24 16:36:21 2013 [VMM][I]: Generating deployment file:
>> > /var/lib/one/vms/13/deployment.0
>> > Wed Apr 24 16:36:21 2013 [VMM][I]: ExitCode: 0
>> > Wed Apr 24 16:36:21 2013 [VMM][I]: Successfully execute network driver
>> > operation: pre.
>> > Wed Apr 24 16:36:23 2013 [VMM][D]: deploy: Credits set to 26
>> > Wed Apr 24 16:36:23 2013 [VMM][I]: ExitCode: 0
>> > Wed Apr 24 16:36:23 2013 [VMM][I]: Successfully execute virtualization
>> > driver operation: deploy.
>> > Wed Apr 24 16:36:23 2013 [VMM][I]: ExitCode: 0
>> > Wed Apr 24 16:36:23 2013 [VMM][I]: Successfully execute network driver
>> > operation: post.
>> > Wed Apr 24 16:36:23 2013 [LCM][I]: New VM state is RUNNING
>> > Wed Apr 24 16:36:54 2013 [LCM][I]: New VM state is SAVE_STOP
>> > Wed Apr 24 16:36:54 2013 [VMM][I]: Command execution fail:
>> > /var/tmp/one/vmm/xen/save one-13
>> /var/lib/one//datastores/0/13/checkpoint
>> > oneHost 13 oneHost
>> > Wed Apr 24 16:36:54 2013 [VMM][E]: save: Command "sudo /usr/sbin/xm save
>> > one-13 /var/lib/one//datastores/0/13/checkpoint" failed: Error: xm save:
>> > Unable to create file /var/lib/one/datastores/0/13/checkpoi
>> > nt
>> > Wed Apr 24 16:36:54 2013 [VMM][E]: Could not save one-13 to
>> > /var/lib/one//datastores/0/13/checkpoint
>> > Wed Apr 24 16:36:54 2013 [VMM][I]: ExitCode: 1
>> > Wed Apr 24 16:36:54 2013 [VMM][I]: Failed to execute virtualization
>> driver
>> > operation: save.
>> > Wed Apr 24 16:36:54 2013 [VMM][E]: Error saving VM state: Could not save
>> > one-13 to /var/lib/one//datastores/0/13/checkpoint
>> > Wed Apr 24 16:36:54 2013 [LCM][I]: Fail to save VM state. Assuming that
>> the
>> > VM is still RUNNING (will poll VM).
>> > Wed Apr 24 16:36:58 2013 [VMM][I]: Found interface tap-2-51712 but
>> domain 2
>> > does not exist.
>> > Wed Apr 24 16:36:58 2013 [VMM][I]: Found interface tap-3-51712 but
>> domain 3
>> > does not exist.
>> > Wed Apr 24 16:36:58 2013 [VMM][I]: Found interface tap-4-51712 but
>> domain 4
>> > does not exist.
>> > Wed Apr 24 16:36:58 2013 [VMM][I]: Found interface tap-5-51712 but
>> domain 5
>> > does not exist.
>> > Wed Apr 24 16:36:58 2013 [VMM][I]: Found interface tap-6-51712 but
>> domain 6
>> > does not exist.
>> > Wed Apr 24 16:36:58 2013 [VMM][I]: Found interface tap-7-768 but domain
>> 7
>> > does not exist.
>> > Wed Apr 24 16:36:58 2013 [VMM][I]: Found interface tap-8-768 but domain
>> 8
>> > does not exist.
>> > Wed Apr 24 16:36:58 2013 [VMM][I]: Found interface tap-9-768 but domain
>> 9
>> > does not exist.
>> > Wed Apr 24 16:36:58 2013 [VMM][I]: Found interface tap-2-51712 but
>> domain 2
>> > does not exist.
>> > Wed Apr 24 16:36:58 2013 [VMM][I]: Found interface tap-3-51712 but
>> domain 3
>> > does not exist.
>> > Wed Apr 24 16:36:58 2013 [VMM][I]: Found interface tap-4-51712 but
>> domain 4
>> > does not exist.
>> > Wed Apr 24 16:36:58 2013 [VMM][I]: Found interface tap-5-51712 but
>> domain 5
>> > does not exist.
>> > Wed Apr 24 16:36:58 2013 [VMM][I]: Found interface tap-6-51712 but
>> domain 6
>> > does not exist.
>> > Wed Apr 24 16:36:58 2013 [VMM][I]: Found interface tap-7-768 but domain
>> 7
>> > does not exist.
>> > Wed Apr 24 16:36:58 2013 [VMM][I]: Found interface tap-8-768 but domain
>> 8
>> > does not exist.
>> > Wed Apr 24 16:36:58 2013 [VMM][I]: Found interface tap-9-768 but domain
>> 9
>> > does not exist.
>> > Wed Apr 24 16:36:58 2013 [VMM][I]: ExitCode: 0
>> > Wed Apr 24 16:36:58 2013 [VMM][I]: VM running but it was not found.
>> Restart
>> > and delete actions available or try to recover it manually
>> > Wed Apr 24 16:36:58 2013 [LCM][I]: New VM state is UNKNOWN
>> > Wed Apr 24 16:37:44 2013 [LCM][I]: New VM state is BOOT_UNKNOWN
>> > Wed Apr 24 16:37:44 2013 [VMM][I]: Generating deployment file:
>> > /var/lib/one/vms/13/deployment.0
>> > Wed Apr 24 16:37:44 2013 [VMM][I]: ExitCode: 0
>> > Wed Apr 24 16:37:44 2013 [VMM][I]: Successfully execute network driver
>> > operation: pre.
>> > Wed Apr 24 16:37:46 2013 [VMM][D]: deploy: Credits set to 26
>> > Wed Apr 24 16:37:46 2013 [VMM][I]: ExitCode: 0
>> > Wed Apr 24 16:37:46 2013 [VMM][I]: Successfully execute virtualization
>> > driver operation: deploy.
>> > Wed Apr 24 16:37:46 2013 [VMM][I]: ExitCode: 0
>> > Wed Apr 24 16:37:46 2013 [VMM][I]: Successfully execute network driver
>> > operation: post.
>> > Wed Apr 24 16:37:46 2013 [LCM][I]: New VM state is RUNNING
>> > Wed Apr 24 16:37:54 2013 [LCM][I]: New VM state is SHUTDOWN_POWEROFF
>> > Wed Apr 24 16:37:55 2013 [VMM][I]: Command execution fail:
>> > /var/tmp/one/vmm/xen/shutdown one-13 oneHost 13 oneHost
>> > Wed Apr 24 16:37:55 2013 [VMM][E]: shutdown: Command "sudo /usr/sbin/xm
>> > shutdown one-13" failed: Error: Domain 'one-13' does not exist.
>> > Wed Apr 24 16:37:55 2013 [VMM][E]: Could not shutdown one-13
>> > Wed Apr 24 16:37:55 2013 [VMM][I]: ExitCode: 3
>> > Wed Apr 24 16:37:55 2013 [VMM][I]: Failed to execute virtualization
>> driver
>> > operation: shutdown.
>> > Wed Apr 24 16:37:55 2013 [VMM][E]: Error shuting down VM: Could not
>> shutdown
>> > one-13
>> > Wed Apr 24 16:37:55 2013 [LCM][I]: Fail to shutdown VM. Assuming that
>> the VM
>> > is still RUNNING (will poll VM).
>> > Wed Apr 24 16:37:58 2013 [VMM][I]: Found interface tap-2-51712 but
>> domain 2
>> > does not exist.
>> > Wed Apr 24 16:37:58 2013 [VMM][I]: Found interface tap-3-51712 but
>> domain 3
>> > does not exist.
>> > Wed Apr 24 16:37:58 2013 [VMM][I]: Found interface tap-4-51712 but
>> domain 4
>> > does not exist.
>> > Wed Apr 24 16:37:58 2013 [VMM][I]: Found interface tap-5-51712 but
>> domain 5
>> > does not exist.
>> > Wed Apr 24 16:37:58 2013 [VMM][I]: Found interface tap-6-51712 but
>> domain 6
>> > does not exist.
>> > Wed Apr 24 16:37:58 2013 [VMM][I]: Found interface tap-7-768 but domain
>> 7
>> > does not exist.
>> > Wed Apr 24 16:37:58 2013 [VMM][I]: Found interface tap-8-768 but domain
>> 8
>> > does not exist.
>> > Wed Apr 24 16:37:58 2013 [VMM][I]: Found interface tap-9-768 but domain
>> 9
>> > does not exist.
>> > Wed Apr 24 16:37:58 2013 [VMM][I]: Found interface tap-10-768 but
>> domain 10
>> > does not exist.
>> > Wed Apr 24 16:37:58 2013 [VMM][I]: Found interface tap-2-51712 but
>> domain 2
>> > does not exist.
>> > Wed Apr 24 16:37:58 2013 [VMM][I]: Found interface tap-3-51712 but
>> domain 3
>> > does not exist.
>> > Wed Apr 24 16:37:58 2013 [VMM][I]: Found interface tap-4-51712 but
>> domain 4
>> > does not exist.
>> > Wed Apr 24 16:37:58 2013 [VMM][I]: Found interface tap-5-51712 but
>> domain 5
>> > does not exist.
>> > Wed Apr 24 16:37:58 2013 [VMM][I]: Found interface tap-6-51712 but
>> domain 6
>> > does not exist.
>> > Wed Apr 24 16:37:58 2013 [VMM][I]: Found interface tap-7-768 but domain
>> 7
>> > does not exist.
>> > Wed Apr 24 16:37:58 2013 [VMM][I]: Found interface tap-8-768 but domain
>> 8
>> > does not exist.
>> > Wed Apr 24 16:37:58 2013 [VMM][I]: Found interface tap-9-768 but domain
>> 9
>> > does not exist.
>> > Wed Apr 24 16:37:58 2013 [VMM][I]: Found interface tap-10-768 but
>> domain 10
>> > does not exist.
>> > Wed Apr 24 16:37:58 2013 [VMM][I]: ExitCode: 0
>> > Wed Apr 24 16:37:58 2013 [VMM][I]: VM running but it was not found.
>> Restart
>> > and delete actions available or try to recover it manually
>> > Wed Apr 24 16:37:58 2013 [LCM][I]: New VM state is UNKNOWN
>> >
>> > Best regards,
>> > Aridane
>> >
>> > _______________________________________________
>> > Users mailing list
>> > Users at lists.opennebula.org
>> > http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>> >
>>
>>
>>
>> --
>> Javier Fontán Muiños
>> Project Engineer
>> OpenNebula - The Open Source Toolkit for Data Center Virtualization
>> www.OpenNebula.org | jfontan at opennebula.org | @OpenNebula
>>
> *
> *
>
--
*Aridane J. Sarrionandia de León
*Computer Engineering Student - Universidad de Las Palmas de Gran Canaria
Fundraising and corporate relations responsible
LBG Las Palmas - Board of European Students of Technology*
Tel: *+34 697 304 342*
E-mail: *aridane.sarrionandia.de.leon at BEST.eu.org*
Skype: *aridane.j*
*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20130429/652afe90/attachment-0002.htm>
More information about the Users
mailing list