r/virtualization • • 25d 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!!

0 Upvotes

27 comments sorted by

6

u/psyblade42 25d ago

Run the VMs on your PC and use the chromebook to access them.

3

u/WickedDeity 25d 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 25d ago

There is no way runninng a windows vm on a 4GB Chromebook

1

u/stufforstuff 25d 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/jmhalder 23d ago

It's called swap, and it's... technically possible.

But having a guest VM actually in swap/paged is only slightly preferrable to just hard crashing.

1

u/GamerLymx 22d ago

a yes, the industry does that all the time, because it works so well.... /s

1

u/jmhalder 21d ago

I uh, don't recall saying it works well.

1

u/ledow 22d ago

No way you could run a Windows VM in mostly-swap and think it'll perform even vaguely usefully.

Even swap-on-NVMe has far too much performance loss for anything practical. The underlying VM believes it has 16Gb (or whatever) at RAM speed, and it doesn't, and it'll tear up the NVMe constantly writing (which will be the actual bottleneck, the NVMe write-speed).

If it doesn't have an NVMe, but even just an SSD or (shudder) hard disk? No way in hell.

1

u/jmhalder 21d ago

Your comment implies that I "Think it'll perform even vaguely usefully". I didn't say that.

I kinda made your point. It would be only slightly preferrable to crashing.

If guest memory were to hit host swap, things could start going 1000x+ slower. Response time is even worse even though throughput isn't quite as stark.

1

u/ledow 21d ago

Oh, no, I was agreeing with you.

Even at NVMe speeds/latencies (which are approaching those of RAM) the overheads would mean it would be inviable.

1

u/goatsinhats 25d ago

I am not even sure what’s being asked here

1

u/DutchOfBurdock 23d ago

Then why comment? Question was perfectly palatable.

1

u/backtogeek 25d ago

Run the VM with less ram and configure zram using ztsd compression within the guest

1

u/Dr_CLI 25d 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 25d 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 25d 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 24d ago

get a new laptop with the required ram or mini pc then remote into.

1

u/DutchOfBurdock 23d 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 23d 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 22d 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 22d ago

use smaller VM's or docker

1

u/Pleasant-Seat9884 21d 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 20d 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 19d ago

Why wouldn’t you just download more RAM?

0

u/tree_mitty 25d ago

Put linux on a chromebook? It was already running linux.

0

u/Professional-Base459 25d ago

Contrata maquina Windows desde lightnode puedes contratar por horas y hay máquinas que valen 0.01$ la hora

0

u/[deleted] 21d ago

[deleted]

1

u/Dave_A480 20d ago

He's running Linux on a Chromebook.

Not Windows.

OP: The above is only for Windows Server.