r/linuxfromscratch • • Mar 17 '20

LFS on a virtual machine (VirtualBox)

Hey, y’all. So, I’ve been trying to build an LFS system on a virtual machine (cause I don’t have any extra drives, nor the money to buy one), and I’m coming across some weird issues. The first one is that any time I shut down my VM and reopen it to continue my work, everything works just fine, with the exception of Chrome. I’m not sure if this is an issue with the VM itself or with the build process. And the second issue is that I have stupidly long compile times, even though half of my system’s resources are allocated for the VM (4 cores and 12GiB of RAM) and I’m using the “-j4” option with the “make” command. Also, I have Arch Linux on the host machine and Manjaro running on the guest/as the LFS host. Any ideas?

8 Upvotes

7 comments sorted by

View all comments

Show parent comment

1

u/rydogthekidrs Apr 14 '20

It's all good. At least we tried to work through it. Thanks for complimenting my rig, btw.

1

u/[deleted] Apr 15 '20

Ooh. Wait a minute.

How did you define the $LFS variable? Is it in ~/.bashrc so that it reappears when you spin up a new boot? In particular does it point to swap correctly?

I guess I am wondering, do you by any chance lose your $LFS variable on reboot, then the thing can’t point at the other thing?