[one-users] onevm shutdown
Alejandro Feijoo Fraga
alfeijoo at cesga.es
Tue Jun 5 03:05:20 PDT 2012
The problem is at kvm dom0 (not opennebula) i have a similar problem
some times... but i dont know how solve...
in my case. when that happend i just return manually the image to the
repository.
for example, if the image disk is 111, the VM is 4444 and the dom0 is
99.99.99.99 i do the following
as oneadmin
oneimage show 111 | grep SOURCE
that return the path, similar like that:
/srv/cloud/one/var/images/5963e9e0f2ed9524e90c3b4c1d8b01ab
then make a backup (backup are your friend)
cp /srv/cloud/one/var/images/5963e9e0f2ed9524e90c3b4c1d8b01ab
/srv/cloud/one/var/images/5963e9e0f2ed9524e90c3b4c1d8b01ab.bk
now, i can shutdown the VM
ssh VM && shutdown -h now
check if at dom0 the VM is running (KVM)
virsh list | grep one-4444
(if no output, jump to scp command)
else do: virsh destroy one-4444 (or destroy VMID)
and after retreive the image:
scp 99.99.99.99:/path/to/image/4444/images/disk.0
/srv/cloud/one/var/images/5963e9e0f2ed9524e90c3b4c1d8b01ab
usually disk.0 is the image correct to backup, but see deployment.0 file
to see if you need backup other disk (deployment.0 file is at disk.0
directory)
at the last, delete VM under OpenNebula (onevm delete 4444)
Sure you yet know the steps, sorry 4 the possible spam :)
keep in touch to see if anybody can resolve the problem to stop an
unstoppable VM.
El 05/06/12 10:42, Mohsen Amini escribió:
> Hello everybody,
>
> I came to know that onevm shutdown <vmid> does not work.
>
> In fact, in the begining the VM goes to the "shutdown" state but after
> some time it again changes to "runn".
>
> Can someone help me on this issue?
>
> Regards,
> --------
> Mohsen Amini Salehi
> PhD Student
> CLOUDS Lab,
> Room 5.30A, ICT building,
> Department of Computing and Information Systems,
> Melbourne University,
> http://www.csse.unimelb.edu.au/~mohsena
> <http://www.csse.unimelb.edu.au/%7Emohsena>
>
>
>
> _______________________________________________
> 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/20120605/05d2cd74/attachment-0002.htm>
More information about the Users
mailing list