Ask Your Question
0

Juno Nova: Out of memory after instance creation

asked 2016-04-27 14:36:42 -0500

pirlouit32 gravatar image

updated 2016-04-27 14:37:45 -0500

Hello community
I have a problem when launching a Windows instance. The system gets out of memory until the crash of the compute node.
My "personal" cloud runs Juno.
Following the Openstack installation guide for Ubuntu, I have setup a 4 nodes (controller, Network, Compute, Object Storage) environment. One physical laptop (8Gb of RAM, Intel Core i5-4210U which is Dual Core) runs 3 nodes, each on a virtual VirtualBox VM:
_Controller: Ram: 4 Gb, 1 CPUs
_Compute: Ram: 6 Gb, 4 CPU
_Network (Neutron): Ram: 512 Mb, 1 CPU
On a separate physical machine (an old HP Compaq dc5850 Small Form Factor Business PC), I run one VM for Swift storage.
Glance uses Swift as default repository to store the images.
Hypervisor uses QEMU.
Everything is working fine, when working with Cirros instances.

Now I wanted to run a Windows VM, taken from a VmWare environment. Then I have downloaded an OVA from this website:
https://developer.microsoft.com/en-us...
I took the VmWare version of "IE10 - Win7".
Then I have extracted the VMDK file (10Gig), created an image with glance (successfully, as it seems) and launched an instance. During the creation (Instance has the status "BUILD" at the beginning), I can see the memory usage of the physical machine (laptop) increasing, until the whole system get stuck. Then, after 30 minutes, the Compute VM crashes and I can recover my system.
Below are some commands output. I also attach an extract of the nova-compute.log, and a screen capture of the monitoring tools and top command result just before the system gets stuck. Any help would be very appreciated.

image description

openstack@compute:/var/log/nova$ sudo grep -i virt /etc/nova/nova-compute.conf
compute_driver=libvirt.LibvirtDriver
[libvirt]
virt_type=qemu


porouge@thin-ub:~/VirtualBox VMs/IE10 - Win7$ sudo head IE10\ -\ Win7-disk1.vmdk 
KDM
Disk DescriptorFile
version=1
CID=9048cb38
parentCID=ffffffff
createType="monolithicSparse"

glance image-create --name "win7-vmware" --disk-format vmdk --container-format bare --is-public=true  --property vmware_disktype="sparse" --property vmware_adaptertype="buslogic" --property vmware_ostype="windows7Server64Guest"  < win7-vmdk.vmdk


openstack@controller:~$ source admin-openrc.sh 
openstack@controller:~$ glance image-list
+--------------------------------------+---------------------+-------------+------------------+------------+--------+
| ID                                   | Name                | Disk Format | Container Format | Size       | Status |
+--------------------------------------+---------------------+-------------+------------------+------------+--------+
| 3642f82a-5201-48da-80ca-68ff2e1ab6af | cirros-0.3.3-x86_64 | qcow2       | bare             | 13200896   | active |
| 20ae0f44-0743-41fa-8d4b-075ff0df54b9 | win7-vmware         | vmdk        | bare             | 9147252736 | active |
+--------------------------------------+---------------------+-------------+------------------+------------+--------+
openstack@controller:~$ glance image-show win7-vmware
+-------------------------------+--------------------------------------+
| Property                      | Value                                |
+-------------------------------+--------------------------------------+
| Property 'vmware_adaptertype' | buslogic                             |
| Property 'vmware_disktype'    | sparse                               |
| Property 'vmware_ostype'      | windows7Server64Guest                |
| checksum                      | 57515f5bead76e09b8f2de2f662ff08d     |
| container_format              | bare                                 |
| created_at                    | 2016-03-29T19:03:19                  |
| deleted                       | False                                |
| disk_format                   | vmdk                                 |
| id                            | 20ae0f44-0743-41fa-8d4b-075ff0df54b9 |
| is_public                     | True                                 |
| min_disk                      | 0                                    |
| min_ram                       | 0                                    |
| name                          | win7-vmware                          |
| owner                         | 87689a6b397240aa81000795c7cdb562     |
| protected                     | False                                |
| size                          | 9147252736                           |
| status                        | active                               |
| updated_at                    | 2016-03-29T19:09:05                  |
+-------------------------------+--------------------------------------+
openstack@controller:~$ 


openstack@controller:~$ !1966
nova boot --flavor m1.tinyForWin --image win7-vmware --nic net-id=ea446568-e8e8-4c48-aade-e5988186b584 --security-group default --key-name demo-key2 win7-swift-vmdk
+--------------------------------------+------------------------------------------------------+
| Property                             | Value                                                |
+--------------------------------------+------------------------------------------------------+
| OS-DCF:diskConfig                    | MANUAL                                               |
| OS-EXT-AZ:availability_zone          | nova                                                 |
| OS-EXT-STS:power_state               | 0                                                    |
| OS-EXT-STS:task_state                | scheduling                                           |
| OS-EXT-STS:vm_state                  | building                                             |
| OS-SRV-USG:launched_at               | -                                                    |
| OS-SRV-USG:terminated_at             | -                                                    |
| accessIPv4                           |                                                      |
| accessIPv6                           |                                                      |
| adminPass                            | 9JhXZy6XkHe6                                         |
| config_drive                         |                                                      |
| created                              | 2016-04-27T17:32:09Z                                 |
| flavor                               | m1.tinyForWin (7e5ec9b2-112a-478f-bbc0-cc5d1ed98a08) |
| hostId                               |                                                      |
| id                                   | dc79ccd3-6915-4679-a5bc-44dce9dc5543                 |
| image                                | win7-vmware (20ae0f44-0743-41fa-8d4b-075ff0df54b9)   |
| key_name                             | demo-key2                                            |
| metadata                             | {}                                                   |
| name                                 | win7-swift-vmdk                                      |
| os-extended-volumes:volumes_attached | []                                                   |
| progress                             | 0                                                    |
| security_groups                      | default                                              |
| status                               | BUILD                                                |
| tenant_id                            | f6cfdc1857e44cb9a2f717f8fe32d47d                     |
| updated                              | 2016-04-27T17:32:10Z                                 |
| user_id                              | af00028f6daf4516a29454c1f0533f56                     |
+--------------------------------------+------------------------------------------------------+

openstack@controller:~$ nova list
+--------------------------------------+-----------------+---------+------------+-------------+------------------------+
| ID                                   | Name ...
(more)
edit retag flag offensive close merge delete

2 answers

Sort by » oldest newest most voted
0

answered 2016-04-29 03:52:47 -0500

Daliya gravatar image

*Then I have extracted the VMDK file (10Gig), created an image with glance....

What is your flavor size? Try with a smaller vmdk image or a bigger flavor.

edit flag offensive delete link more
0

answered 2016-04-29 08:56:04 -0500

pirlouit32 gravatar image

Thank you for your response. As you can see in my previous post, I have created a specific flavor (m1.tinyForWin) with 512 Mb RAM, 11 GB of disk and 1 VCPU. Correct me If am wrong but it is difficult to get a less than 10 GB image for Win 7.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2016-04-27 14:36:42 -0500

Seen: 425 times

Last updated: Apr 29 '16