[one-users] ONE 3.2 VM Management issues

deeepdish deeepdish at gmail.com
Thu Jan 26 06:59:15 PST 2012


Hello.

Thanks for the response.   I followed the published instructions for KVM when I installed ONE.   dymanic_ownership = 0 is definitely in /etc/libvirt/qemu.conf on both of my compute nodes.   I'm still getting the CHOWN (0,0) error.   I have a work around in place at the moment, where by my NFS storage is exported with no_root_squash (not desired, and should not be necessary given that QEMU is running as oneadmin).

As a concequence (I think) of the above, I'm unable to successfully shutdown a VM.   Once it starts, selecting it and clicking Shutdown simply returns the machine back to running state on the next poll interval.   I've also disabled apparmor for libvirt by touching /etc/apparmor.d/disable/usr.sbin.libvirtd.   


The information about contextualization did the trick.   That seems to be working fine.

Thank you.


On Jan 26, 2012, at 09:33 , Carlos Martín Sánchez wrote:

> Hi,
> 
> Your 1st problem might be related to the qemu dynamic_ownership configuration, check the kvm configuration guide [1] for more details.
> 
> About the automatic IP assignment, you need to contextualize your VMs so they can configure the IP leased by OpenNebula, see [2] for more information.
> 
> Regards.
> 
> [1] http://opennebula.org/documentation:rel3.2:kvmg#kvm_configuration
> [2] http://opennebula.org/documentation:rel3.2:cong
> 
> --
> Carlos Martín, MSc
> Project Engineer
> OpenNebula - The Open Source Toolkit for Data Center Virtualization
> www.OpenNebula.org | cmartin at opennebula.org | @OpenNebula
> 
> 
> On Thu, Jan 19, 2012 at 7:55 PM, Deep Dish <deeepdish at gmail.com> wrote:
> Good day,
> 
> 
> I’m performing an initial deployment of OpenNebula 3.2 (same issues
> persist on 2.2, 3.0 as well) and having several challenges:
> 
> The environment:
> 
> 
> Ubuntu 11.10 server (front-end + compute nodes)
> 
> ONE 3.2 built from source
> 
> Installed as per instructions on OpenNebula.org for v3.2.
> 
> QEMU is running as user oneadmin and group cloud.
> 
> 1.      A VM can be deployed using a template I create and .raw disk
> image uploaded as an image.   The VM enters the RUNNING state, however
> issues exist when attempting to stop the image.   It seems that
> there’s permissions missing somewhere.
> 
> 2.      Automatic assignment of hostname + network address does not
> work.   Although, when the VM is in RUNNING state an IP address is
> properly leased out to the instance from the available pool, it is not
> configured on the instance.   VM NIC is configured for DHCP
> assignment.
> 
> 
> /var/log/libvirt/libvirt.log:
> 
> 13:30:44.127: 1478: error : virFileOpenAsNoFork:669 : cannot chown
> '/var/lib/one//3/images/checkpoint' to (0, 0): Invalid argument
> 
> 13:30:44.128: 1478: error : qemudDomainSaveFlag:2084 : Failed to
> create domain save file '/var/lib/one//3/images/checkpoint': Invalid
> argument
> 
> 
> 
> 3.log:
> 
> Thu Jan 19 13:28:17 2012 [DiM][I]: New VM state is ACTIVE.
> 
> Thu Jan 19 13:28:17 2012 [LCM][I]: New VM state is PROLOG.
> 
> Thu Jan 19 13:28:17 2012 [VM][I]: Virtual Machine has no context
> 
> Thu Jan 19 13:28:33 2012 [TM][D]: tm_clone.sh:
> hst04:/var/lib/one/images/0deab2bb9b8d75c9f1e9c195a2aa4eed
> hst05:/var/lib/one//3/images/disk.0
> 
> Thu Jan 19 13:28:33 2012 [TM][D]: tm_clone.sh: DST:
> /var/lib/one//3/images/disk.0
> 
> Thu Jan 19 13:28:33 2012 [TM][I]: tm_clone.sh: Creating directory
> /var/lib/one//3/images
> 
> Thu Jan 19 13:28:33 2012 [TM][I]: tm_clone.sh: Executed "mkdir -p
> /var/lib/one//3/images".
> 
> Thu Jan 19 13:28:33 2012 [TM][I]: tm_clone.sh: Executed "chmod a+w
> /var/lib/one//3/images".
> 
> Thu Jan 19 13:28:33 2012 [TM][I]: tm_clone.sh: Cloning
> /var/lib/one/images/0deab2bb9b8d75c9f1e9c195a2aa4eed
> 
> Thu Jan 19 13:28:33 2012 [TM][I]: tm_clone.sh: Executed "cp -r
> /var/lib/one/images/0deab2bb9b8d75c9f1e9c195a2aa4eed
> /var/lib/one//3/images/disk.0".
> 
> Thu Jan 19 13:28:33 2012 [TM][I]: tm_clone.sh: Executed "chmod a+rw
> /var/lib/one//3/images/disk.0".
> 
> Thu Jan 19 13:28:33 2012 [TM][I]: ExitCode: 0
> 
> Thu Jan 19 13:29:27 2012 [LCM][I]: New VM state is BOOT
> 
> Thu Jan 19 13:29:27 2012 [VMM][I]: Generating deployment file:
> /var/lib/one/3/deployment.0
> 
> Thu Jan 19 13:29:27 2012 [VMM][I]: ExitCode: 0
> 
> Thu Jan 19 13:29:27 2012 [VMM][I]: Successfully execute network driver
> operation: pre.
> 
> Thu Jan 19 13:29:29 2012 [VMM][I]: ExitCode: 0
> 
> Thu Jan 19 13:29:29 2012 [VMM][I]: Successfully execute virtualization
> driver operation: deploy.
> 
> Thu Jan 19 13:29:29 2012 [VMM][I]: ExitCode: 0
> 
> Thu Jan 19 13:29:29 2012 [VMM][I]: Successfully execute network driver
> operation: post.
> 
> Thu Jan 19 13:29:34 2012 [LCM][I]: New VM state is RUNNING
> 
> Thu Jan 19 13:30:43 2012 [LCM][I]: New VM state is SAVE_STOP
> 
> Thu Jan 19 13:30:44 2012 [VMM][I]: Command execution fail:
> /var/tmp/one/vmm/kvm/save one-3 /var/lib/one//3/images/checkpoint
> hst05 3 hst05
> 
> Thu Jan 19 13:30:44 2012 [VMM][E]: save: Command "virsh --connect
> qemu:///system save one-3 /var/lib/one//3/images/checkpoint" failed.
> 
> Thu Jan 19 13:30:44 2012 [VMM][E]: save: error: Failed to save domain
> one-3 to /var/lib/one//3/images/checkpoint
> 
> Thu Jan 19 13:30:44 2012 [VMM][I]: error: Failed to create domain save
> file '/var/lib/one//3/images/checkpoint': Invalid argument
> 
> Thu Jan 19 13:30:44 2012 [VMM][E]: Could not save one-3 to
> /var/lib/one//3/images/checkpoint
> 
> Thu Jan 19 13:30:44 2012 [VMM][I]: ExitCode: 1
> 
> Thu Jan 19 13:30:44 2012 [VMM][I]: Failed to execute virtualization
> driver operation: save.
> 
> Thu Jan 19 13:30:44 2012 [VMM][E]: Error saving VM state: Could not
> save one-3 to /var/lib/one//3/images/checkpoint
> 
> Thu Jan 19 13:30:44 2012 [LCM][I]: Fail to save VM state. Assuming
> that the VM is still RUNNING (will poll VM).
> 
> Thu Jan 19 13:30:44 2012 [VMM][I]: ExitCode: 0
> 
> Thu Jan 19 13:30:45 2012 [VMM][D]: Monitor Information:
> 
>         CPU   : 25
> 
>         Memory: 1048576
> 
>         Net_TX: 0
> 
>         Net_RX: 3046
> _______________________________________________
> 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/20120126/f1ed3494/attachment-0003.htm>


More information about the Users mailing list