r/virtualization • u/Moist_Rule • 29d ago
Alternative ways to run VMs when not enough memory on device?
Hi all, first post on here as I'm looking for some help.
Recently I put linux on a chromebook I wasn't using to give it new life and decided to use the device for college. The problem is that the laptop only has 4GB RAM and I'm a cyber student who uses VMs a lot. Obviously the windows VMs I need won't run because theres not enough memory to accommodate them, and chromebooks are famous for having soldered RAM so I can't upgrade.
Are there any other ways to run a VM when the device doesn't have enough memory? Or should I just call it a day and give up on this? I'm not getting a new device as I don't need it and have a perfectly good working PC, just looking for a way to transport VMs from college to home easier for studying purposes (USBs also out of the question as it takes the entire 3 hour class to copy it)
I don't have much hope but I'd be grateful for any tips or advice, thanks!
Edit:
Thanks everyone for your replies! I considered several suggestions but ultimately, with some help from you, my lecturers, and other folks in my life, decided to go for a new device and keep the chromebook for browsing and movies for my family so it at least gets some use. I'm now looking into getting a laptop that will hopefully last me several years and be able to handle all the VMs I need to run for my studies without too much messing around. I considered a secondhand laptop to use as a server of sorts and remote into it using the chromebook like some suggested however with the current prices for devices and parts in my area I'm genuinely better buying a whole new actually good machine that will last longer. Thanks all, I appreciate the suggestions!!
6
u/psyblade42 29d ago
Run the VMs on your PC and use the chromebook to access them.
3
u/WickedDeity 29d ago
You do need a new device because your use case/needs dictates it. It's rough to just browse the Internet with 4GB RAM these days.
1
u/BumseBBine 29d ago
There is no way runninng a windows vm on a 4GB Chromebook
1
u/stufforstuff 29d ago
You're a "cyber student" (whatever that is) and think they is some MAGIC way to create ram space? Might be time to change majors.
1
u/goatsinhats 29d ago
I am not even sure what’s being asked here
1
u/backtogeek 29d ago
Run the VM with less ram and configure zram using ztsd compression within the guest
1
u/Dr_CLI 29d ago
Find a decent used PC. I'd say to get a minimum of 32GB RAM and enough HD/SSD space to store your VMs. Load a type 1 hypervisor (like Proxmox) and setup your Windows and other VMs on it. You can then use the Chromebook to access the remote console of whichever VM you need to access and work on.
1
u/Deacon51 29d ago
Maybe you can find a low cost / student discount VPS for a pretty low cost?
I don't have any recommendations, just a thought
1
u/TEK1_AU 29d ago
Take a look at NixOS and in particular zram, zswap configuration options. Also look into microvm.nix configs.
I currently run the latest (unstable/26.11) NixOS Gnome on a 2011 dual core laptop with only 4GB RAM for a particular use case and it is incredibly performant!
1
u/jack_hudson2001 VCP VCAP 28d ago
get a new laptop with the required ram or mini pc then remote into.
1
u/DutchOfBurdock 27d ago
Would a virtual private server not work? That way you can run Windows on a remote server at a DC and remote into it as you need. Ofc it will cost, a quick quote from Fasthosts, a Windows instance with 8GB RAM, 2 CPUs and 120GB of NVMe storage from £24 pcm (cheaper if you roll for a year).
1
u/jmhalder 27d ago
I bought a Lenovo L390 laptop with 16GB of memory back in June. It was ~$150.
Your computer isn't up to the task, and that's fine. I love shitbox computers, I still have my C720 Chromebook around for light Linux use. I have a 4GB Galaxy Book Go (ARM) running Windows for media browsing.
I just want to be clear, your laptop isn't useless... But it can't effectively be used for this. It's just a tool. Buy a better tool.
Alternatively, you can run a VM at home on something like Proxmox, setup a VPN at home so you can connect back and SSH/VNC/RDP into your VM. Just use your Chromebook as a thin client for it.
1
u/lovejo1 26d ago
Just use a large swap.. it'll suck, but it'll work. Also, don't run more than 1 vm at once.
1
u/GamerLymx 26d ago
use smaller VM's or docker
1
u/Pleasant-Seat9884 25d ago
I give up.. what’s a cyber student? Depending on your school, they may provide you a loaner for the semester or a VM for you to do your work (depending on how good you are to their IT department)
1
u/Dave_A480 24d ago
Run your VMs on a desktop PC (Proxmox or (gag) HyperV) or in the cloud ...
Connect to them with the Chromebook.
Remember, Chromebooks are built to be dumb terminals.... All the heavy lifting for Chrome apps is done in the cloud....
If you want to go crazy with local virtualization you need a proper laptop with 16+GB RAM
P.S. If you want to be any good at cyber security you're going to have to learn how this stuff works.... Nobody in Ops/Infra will take a security guy seriously who doesn't know how a hypervisor works or how much RAM it needs....
1
u/jhenryscott 23d ago
Why wouldn’t you just download more RAM?
0
u/tree_mitty 29d ago
Put linux on a chromebook? It was already running linux.
0
u/Professional-Base459 29d ago
Contrata maquina Windows desde lightnode puedes contratar por horas y hay máquinas que valen 0.01$ la hora
0
u/[deleted] 25d ago
[deleted] — view deleted comment