Quantcast
Channel: Ask OpenStack: Q&A Site for OpenStack Users and Developers - Individual question feed
Viewing all articles
Browse latest Browse all 9

Allocate more ram to guests

Previous: Comment by itm-mra for I have setup openstack using this guide: http://ubuntu-cloud-installer.readthedocs.org/en/latest/single-installer.guide.html (http://ubuntu-cloud-installer.readthe...) I am able to create multiple instances with the m1.small flavor which uses 2 GB ram, but when I try to create an instance with any more ram it fails. When I try to create the instance in Horizon it gives the error: "Error: Failed to launch instance "test": Please try again later [Error: No valid host was found. Exceeded max scheduling attempts 3 for instance 39f73c98-0b77-4613-a13d-244c357efb55. Last exception: [u'Traceback (most recent call last):\n', u' File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 2039, in _do]." Looking at the nova-conductor.log I have the error: "internal error: process exited while connnecting to monitor: Cannot set up guest memory 'pc.ram': Cannot allocate memory" I am assuming that I need to allow the virtulization to give each guest more than 2 gb ram, but I just do not know where to start setting that up. EDIT: I have checked the hypervisors in horizons admin panel, and it reports Type: QEMU VCPU: 3 used out of 1 total Ram: 6.5GB out of 3.9GB total Storage: 60GB out of 39 GB So it seems that I am using more than what is available for the QEMU, but how do I increase that in this setup on ubuntu? A reinstallation of openstack is an ok solution if I can configure it on installation. * EDIT 2 * I tried to see what qemu was actually running on the host and this is the output of ps -aux | grep qemu root@VERA02:/etc# ps -aux | grep qemu mysql 3189 23.1 2.4 10648276 6408256 ? Sl maj26 2055:53 qemu-system-x86_64 -enable-kvm -name ubuntu-local-machine-3 -S -machine pc-i440fx-trusty,accel=kvm,usb=off -m 6144 -realtime mlock=off [... snipped ...] mysql 3219 6.0 0.4 4592928 1157632 ? Sl maj26 540:15 qemu-system-x86_64 -enable-kvm -name ubuntu-local-machine-2 -S -machine pc-i440fx-trusty,accel=kvm,usb=off -m 2048 -realtime mlock=off [... snipped ...] mysql 3244 17.7 1.6 8517516 4289784 ? Sl maj26 1575:22 qemu-system-x86_64 -enable-kvm -name ubuntu-local-machine-1 -S -machine pc-i440fx-trusty,accel=kvm,usb=off -m 4096 -realtime mlock=off [... snipped ...] root 16734 0.0 0.0 11940 2264 pts/8 S+ 14:56 0:00 grep --color=auto qemu I noticed two things. First off I wonder why the user is mysql? but perhaps more important the last entry has -name ubuntu-local-machine-1 which is the same as Horizons tells me the hypervisor is running on, and that entry has -m 4096 matching the memory of the hypervisor, so if this is indeed the correct process, how do I increase the memory? It must be set up automatically during the installation.
$
0
0
I have setup openstack using this guide: http://ubuntu-cloud-installer.readthedocs.org/en/latest/single-installer.guide.html I am able to create multiple instances with the m1.small flavor which uses 2 GB ram, but when I try to create an instance with any more ram it fails. When I try to create the instance in Horizon it gives the error: "Error: Failed to launch instance "test": Please try again later [Error: No valid host was found. Exceeded max scheduling attempts 3 for instance 39f73c98-0b77-4613-a13d-244c357efb55. Last exception: [u'Traceback (most recent call last):\n', u' File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 2039, in _do]." Looking at the nova-conductor.log I have the error: "internal error: process exited while connnecting to monitor: Cannot set up guest memory 'pc.ram': Cannot allocate memory" I am assuming that I need to allow the virtulization to give each guest more than 2 gb ram, but I just do not know where to start setting that up. **EDIT:** I have checked the hypervisors in horizons admin panel, and it reports Type: QEMU VCPU: 3 used out of 1 total Ram: 6.5GB out of 3.9GB total Storage: 60GB out of 39 GB So it seems that I am using more than what is available for the QEMU, but how do I increase that in this setup on ubuntu? A reinstallation of openstack is an ok solution if I can configure it on installation. ** EDIT 2 ** I tried to see what qemu was actually running on the host and this is the output of ps -aux | grep qemu root@VERA02:/etc# ps -aux | grep qemu mysql 3189 23.1 2.4 10648276 6408256 ? Sl maj26 2055:53 qemu-system-x86_64 -enable-kvm -name ubuntu-local-machine-3 -S -machine pc-i440fx-trusty,accel=kvm,usb=off -m 6144 -realtime mlock=off [... snipped ...] mysql 3219 6.0 0.4 4592928 1157632 ? Sl maj26 540:15 qemu-system-x86_64 -enable-kvm -name ubuntu-local-machine-2 -S -machine pc-i440fx-trusty,accel=kvm,usb=off -m 2048 -realtime mlock=off [... snipped ...] mysql 3244 17.7 1.6 8517516 4289784 ? Sl maj26 1575:22 qemu-system-x86_64 -enable-kvm -name ubuntu-local-machine-1 -S -machine pc-i440fx-trusty,accel=kvm,usb=off -m 4096 -realtime mlock=off [... snipped ...] root 16734 0.0 0.0 11940 2264 pts/8 S+ 14:56 0:00 grep --color=auto qemu I noticed two things. First off I wonder why the user is mysql? but perhaps more important the last entry has `-name ubuntu-local-machine-1` which is the same as Horizons tells me the hypervisor is running on, and that entry has `-m 4096` matching the memory of the hypervisor, so if this is indeed the correct process, how do I increase the memory? It must be set up automatically during the installation.

Viewing all articles
Browse latest Browse all 9

Latest Images

Trending Articles





Latest Images