4 ms·
The main problem is my little VM powered by CentOS or Amazon Linux 2 (which is based upon Fedora Linux) runs out of memory when I run "yum update". I have 1 cor
by nixcraft 4y ago
The main problem is my little VM powered by CentOS or Amazon Linux 2 (which is based upon Fedora Linux) runs out of memory when I run "yum update". I have 1 core CPU with 512MB ram. The BaseOS repo from RHEL and co is just too big. It requires a minimum of 3 GB RAM. So work around is to add swap to AWS EC2/Lightsail instance. I believe there is a dnf bug open in RHN, but no progress was made so far https://bugzilla.redhat.com/show_bug.cgi?id=2040170 https://bugzilla.redhat.com/show_bug.cgi?id=2040170 Adding a 4/8GB swap space file solved my problem with the `yum update`. That is just one example. There are many users with few resources.
- 2Gkashmiri 4y agothere are vps that are being sold for peants. i have a 128mb ram NAT vps... bought it out of curiosity and i concur. i am unable to update that thing because of the out of memory thing
- indigodaddy 4y agoChange it to Debian or Alpine? Any VM under 512M I’d never deploy as RH-based.
- numpad0 4y ago“128MB NAT VPS” thing is OpenVZ or otherwise container based. $5 per YEAR for a container, 128MB RAM, 1GB persistent storage, SolusVM user panel, and 123.45.67.89:16300 - 16320 NATd to your enp0s3. swapon/swapoff don’t work. I tried installing QEMU, didn’t work either because storage is I/O rate limited. IIRC, OpenVZ has some sort of unified cache control for RAM and storage I/O, and trying to circumvent quota through “disk” don’t work because of it. I’m not sure what the use case might be, legal or not, but there seems to be dozen or so operators taking our credit cards in the exact same manner. Maybe the operation itself is a money laundering, or maybe it’s to run elaborate offsite contraptions for illegal activities, or to run SEO fake sites? I don’t know.
- indigodaddy 4y agoSure. I’m familiar with the NAT VPS providers. For the most part they are just providing an ultra cheap service, as there seems to be a market for that. Some people are OK with Ipv6 only or some ipv4 ports and they will just funnel the needful thru Cloudflare and they have an ultra ultra cheap website/service. Even cheaper than the cheapest shared hosting but they still have a box they can control to some extent. Even with openvz/LXC though, they will generally give you a few choices of distro flavors. So in general if given a memory allowance 256 or under, definitely don’t choose anything Red Hat based or you’ll suffer from yum potentially not working.
- Arnavion 4y agoIt may require more than 512MiB RAM but it certainly requires nowhere close to 3GiB. I used to have a 1GiB RAM VM CentOS 8 VM on Azure until recently and it had no problems updating.