Ruben,<br>Adding the "rw" option to the $ONE_LOCATION in apparmor config worked like a champ!<br><br>-- <br>Thanks,<br>Rosh<br><a href="http://blogs.plexibus.com">http://blogs.plexibus.com</a><br><br><br><div class="gmail_quote">
On Wed, Feb 10, 2010 at 12:37 PM, Ruben S. Montero <span dir="ltr"><<a href="mailto:rubensm@dacya.ucm.es">rubensm@dacya.ucm.es</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi Jack,<br>
<br>
You may have problems if you are using the last version of Ubuntu<br>
(9.10) . The default configuration of apparmor prevents the libvirt<br>
daemon to write checkpoint files under $ONE_LOCATION...<br>
<br>
If you are using Karmic follow slide 47 of [1]. You should apply that<br>
to all the cluster nodes. If this is not the problem you may find a<br>
hint of what is going on in /var/log/kern.log<br>
<br>
Cheers<br>
<br>
Ruben<br>
<br>
<br>
REFS<br>
[1] <a href="http://www.slideshare.net/rsmontero/building-clouds-one-14" target="_blank">http://www.slideshare.net/rsmontero/building-clouds-one-14</a><br>
<div><div></div><div class="h5"><br>
On Wed, Feb 10, 2010 at 6:10 PM, Jack Jill <<a href="mailto:jacknjill111@gmail.com">jacknjill111@gmail.com</a>> wrote:<br>
> I was attempting to migrate a running vm to a different host via "onevm<br>
> migrate" command. The command kicked off the "Save" phase, but it seems<br>
> stuck there.<br>
><br>
> oneadmin@uecA:~/scratch$ onevm list<br>
> ID USER NAME STAT CPU MEM HOSTNAME TIME<br>
> 35 oneadmin ubuntuWo runn 0 1048576 192.168.0.100 00 17:56:54<br>
> 37 oneadmin ubuntuWo save 0 262144 uecB 00 01:12:16<br>
><br>
> oneadmin@uecA:~/scratch$ onevm show 37<br>
> VIRTUAL MACHINE 37<br>
> INFORMATION<br>
> ID : 37<br>
> NAME : ubuntuWorkerB<br>
> STATE : ACTIVE<br>
> LCM_STATE : SAVE_MIGRATE<br>
> START TIME : 02/10 09:45:13<br>
> END TIME : -<br>
> DEPLOY ID: : one-37<br>
><br>
> VIRTUAL MACHINE<br>
> TEMPLATE<br>
> CPU=0.25<br>
> DISK=[<br>
> BUS=virtio,<br>
> READONLY=no,<br>
> SOURCE=/opt/nebula/images/ubuntuWorker5.img,<br>
> TARGET=vda ]<br>
> FEATURES=[<br>
> ACPI=yes,<br>
> PAE=yes ]<br>
> MEMORY=256<br>
> NAME=ubuntuWorkerB<br>
> NIC=[<br>
> BRIDGE=br0,<br>
> IP=192.168.5.9,<br>
> MAC=00:03:c0:a8:05:09,<br>
> MODEL=virtio,<br>
> NETWORK=Small network,<br>
> VNID=3 ]<br>
> NIC=[<br>
> BRIDGE=br0,<br>
> IP=10.0.1.2,<br>
> MAC=00:03:0a:00:01:02,<br>
> MODEL=virtio,<br>
> NETWORK=RoshPrivateLAN,<br>
> VNID=4 ]<br>
> RAW=[<br>
> DATA=,<br>
> TYPE=kvm ]<br>
> VMID=37<br>
><br>
><br>
> 37/vm.log:<br>
> -------------<br>
> Wed Feb 10 09:51:32 2010 [LCM][I]: New VM state is RUNNING<br>
> Wed Feb 10 09:51:47 2010 [VMM][D]: Monitor Information:<br>
> CPU : -1<br>
> Memory: 262144<br>
> Net_TX: -1<br>
> Net_RX: -1<br>
> Wed Feb 10 10:02:41 2010 [VMM][D]: Monitor Information:<br>
> CPU : -1<br>
> Memory: 262144<br>
> Net_TX: -1<br>
> Net_RX: -1<br>
> Wed Feb 10 10:02:48 2010 [LCM][I]: New VM state is SAVE_MIGRATE<br>
><br>
> oned.log :<br>
> ------------<br>
> Wed Feb 10 10:02:41 2010 [VMM][D]: Message received: POLL SUCCESS 37<br>
> STATE=a USEDMEMORY=262144<br>
><br>
> Wed Feb 10 10:02:41 2010 [VMM][D]: Message received: POLL SUCCESS 35<br>
> STATE=a USEDMEMORY=1048576<br>
><br>
> Wed Feb 10 10:02:48 2010 [ReM][D]: HostPoolInfo method invoked<br>
> Wed Feb 10 10:02:48 2010 [ReM][D]: VirtualMachineMigrate invoked<br>
> Wed Feb 10 10:02:48 2010 [DiM][D]: Migrating VM 37<br>
> Wed Feb 10 10:03:42 2010 [InM][I]: Monitoring host uecB (0)<br>
> Wed Feb 10 10:03:43 2010 [InM][I]: Monitoring host 192.168.0.100 (3)<br>
><br>
> The VM (id: 37) that I am trying to migrate was originally on 192.168.0.100<br>
> host. "onevm list" indicates it's on uecB host. But I don't see a directory<br>
> "37" (vm directory) on uecB.<br>
><br>
> Any thoughts on why the VM is stuck in the "Save" state.<br>
> --<br>
> Thanks,<br>
> Rosh<br>
> <a href="http://blogs.plexibus.com" target="_blank">http://blogs.plexibus.com</a><br>
><br>
><br>
</div></div>> _______________________________________________<br>
> Users mailing list<br>
> <a href="mailto:Users@lists.opennebula.org">Users@lists.opennebula.org</a><br>
> <a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org" target="_blank">http://lists.opennebula.org/listinfo.cgi/users-opennebula.org</a><br>
><br>
><br>
<font color="#888888"><br>
<br>
<br>
--<br>
Dr. Ruben Santiago Montero<br>
Associate Professor, Complutense University of Madrid<br>
<br>
URL: <a href="http://dsa-research.org/doku.php?id=people:ruben" target="_blank">http://dsa-research.org/doku.php?id=people:ruben</a><br>
Weblog: <a href="http://blog.dsa-research.org/?author=7" target="_blank">http://blog.dsa-research.org/?author=7</a><br>
</font></blockquote></div><br><br clear="all"><br><br><br>