WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: chroot sh: Out of virtual memory!  (Read 2549 times)

Offline smultita

  • Newbie
  • *
  • Posts: 13
    • EmbLin
chroot sh: Out of virtual memory!
« on: September 10, 2011, 11:50:49 AM »
When running
chroot /mnt/hdb1/oldlinux
I get
sh: Out of virtual memory!

I'm running tinycore3.8.4 in VirtualPC on Win7 host
with 1 GB mem for the VM

Any suggestions to solf the out of memory?

Offline maro

  • Hero Member
  • *****
  • Posts: 1228
Re: chroot sh: Out of virtual memory!
« Reply #1 on: September 10, 2011, 08:42:33 PM »
You seem to have a talent to pick the one VM system that has (for obvious reason) probably the worst possible Linux support.

Having said this, I've just done a quick test with a few different parameters: using a WinXP host, booting TC 3.8.4 from a CD-ROM image in a VirtualPC VM with 256 MBytes RAM and running my own little chroot setup script I was not able to re-produce your finding.

Obviously I don't know know how you've set up your 'chroot', and what you intend to do whitin it. Maybe you could use my little script as a test to see whether you get a different result.

Other then this I come back to my usual advice in these matters: using QEMU or VirtualBox has pretty much never let me down (and I tend to boot multiple TC VMs of either "flavour" every day either on a WinXP or a Linux host).

Offline smultita

  • Newbie
  • *
  • Posts: 13
    • EmbLin
Re: chroot sh: Out of virtual memory!
« Reply #2 on: September 12, 2011, 04:13:25 AM »
Thanx Maro, your chroot setup script works even on Win7 VirtualPC.
I need this to re-compile some old programs for a Linux 2.0.40 box.