Ask Your Question
0

learning vm out of memory with quest command

asked 2014-06-25 10:57:58 -0500

lqueryvg gravatar image

updated 2014-06-25 11:07:58 -0500

Hi,

I downloaded the Puppet learning vm today. After clean boot of the VM and before starting any quests, running "quest" command takes 40 seconds to complete. After which I can see 148 ruby processes running, many of which look like the following:

root      3011  3009  2 16:29 ?        00:00:00 /opt/puppet/bin/ruby /root/.testing/test.rb --list brief
root      3012  3007  2 16:29 ?        00:00:00 /opt/puppet/bin/ruby /root/.testing/test.rb --progress brief
root      3013  3010  2 16:29 ?        00:00:00 /opt/puppet/bin/ruby /root/.testing/test.rb --progress brief
root      3014  3006  2 16:29 ?        00:00:00 /opt/puppet/bin/ruby /root/.testing/test.rb --list brief
root      3018  2132  0 16:29 ?        00:00:00 /bin/bash /root/bin/quest --list brief
root      3019  2132  0 16:29 ?        00:00:00 /bin/bash /root/bin/quest --progress brief
root      3020  2132  0 16:29 ?        00:00:00 /bin/bash /root/bin/quest --list brief
root      3021  2132  0 16:29 ?        00:00:00 /bin/bash /root/bin/quest --progress brief

Then I start seeing out of memory issues on the console and the VM becomes unusable and I get logged out. Seems like some kind of infinite recursion problem.

My machine specs:

Windows 7 Pro
i5-2540M processor @ 2.6GHz
4GiB real memory
Virtualbox 4.3.12.r937333
The VM has 1.5GiB RAM assigned.

And for anyone who wants to question the integrity of my download:

$ \ls -l learn_puppet_centos-6.5-pe-3.2.2-ovf.zip
-rwx------+ 1 Administrators None 1850583882 Jun 25 10:48 learn_puppet_centos-6.5-pe-3.2.2-ovf.zip

$ md5sum learn_puppet_centos-6.5-pe-3.2.2-ovf.zip
09eafeca5fd74c36c6694a66ad54320d *learn_puppet_centos-6.5-pe-3.2.2-ovf.zip

And the files extracted look like this:

-rwx------+ 1 Administrators None      10607 Apr 17 11:50 learn_puppet_centos-6.5-pe-3.2.2.ovf
-rwx------+ 1 Administrators None 1883390464 Apr 17 11:52 learn_puppet_centos-6.5-pe-3.2.2-disk1.vmdk
-rwx------+ 1 Administrators None     958504 Apr 17 12:07 Quest_Guide.pdf

Checksums:

$ md5sum *
0ed51a4fa983e7590db32996f6eb5c5b *learn_puppet_centos-6.5-pe-3.2.2.ovf
4dd98e60c0eca1b768f8f0a677bad424 *learn_puppet_centos-6.5-pe-3.2.2-disk1.vmdk
0a4f03c6785295dbb5c6fac037edcc45 *Quest_Guide.pdf
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2014-06-26 06:10:31 -0500

lqueryvg gravatar image

updated 2016-01-06 13:34:21 -0500

Issue alleviated somewhat by increasing the number of virtual CPUs from 1 to 2. But this solution was found randomly - i don't think I saw it mentioned in the docs.

After this cpu/memory issue I immediately hit a cert error which I'm trying to deal with, where the host name is different from the one in the cert. It also doesn't help that tmux is configured to run quest every 2 seconds.

I wouldn't recommend using this VM to learn puppet unless you're a complete noob to Linux too. You're probably better off installing puppet from scratch.

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

Question Tools

Stats

Asked: 2014-06-25 10:57:58 -0500

Seen: 373 times

Last updated: Jan 06 '16