LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 07-03-2014, 07:16 PM   #1
basica
Member
 
Registered: Nov 2011
Location: Australia
Distribution: Arch, LFS
Posts: 171

Rep: Reputation: 38
VirtualBox Starter Pack - LFS as a Host For Your LFS Build


I just finished yet another install and I have a basic LFS system with a few extra packages (see my signature). I notice a lot of people seem to have troubles using appropriate hosts and further, a lot like me seem to be trying it in VirtualBox.

So, with that in mind I am considering putting up my latest install for people to download and use to build their first (or second, or whatever) LFS system. I'll also have the packages already on disk in the VM.

If you're interested, please post here and I'll organise a torrent file or some other method in the next couple days.
 
Old 07-03-2014, 08:29 PM   #2
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
There are plenty of posts here that describe using Slackware or SalixOS as a host to build LFS as the recommended distribution.

While it's good people at least try LFS out in VBox, I would actually argue against it, as VirtualBox does significantly reduce the speed of compiling software significantly often increasing the time frames needed by 2-4 times the standard amount. VirtualBox also has several ongoign issues with Linux at the moment that haven't been resolved.

The best and recommended solution is to use a SalixOS live disk; version 13.37 still works fine, and one-shot build the bootstrap system in Chapter 5. Afterwards you can use the live disk to chroot into the bootstrap system and build the final version with ease saving a lot of diskspace. The only other issue with that is if you are using a dual-boot OS, Grub-2.00 will require installing os-prober before you install Grub-2.00. If you use a dual-disk (multi-HDD) solution, just setup LFS on one of the spare drives and use the BIOS/UEFI boot selection menu.

I dare argue, but QEmu-KVM might be a better virtual machine solution.
 
Old 07-03-2014, 09:03 PM   #3
basica
Member
 
Registered: Nov 2011
Location: Australia
Distribution: Arch, LFS
Posts: 171

Original Poster
Rep: Reputation: 38
Thanks for your input Reaper, I was just looking to help people who were already planning on using VirtualBox but if you wish to discuss its merits (or lack thereof), sure. Why not. We can do that too.

I've personally gone through the LFS process several times now with VirtualBox so I can be reasonably certain that people shouldn't have any issues using it, that's not a guarantee of course but I think the very fact I am providing a LFS system shows that it is definitely not anywhere near a hard or impossible task to accomplish.

Further, I agree that the compilation times are obviously slower than doing it straight onto your computer but if you have anywhere remotely near a recent machine the times shouldn't really matter. I was done in about 4.5 hours in my VM on a laptop that's about 4 years old, getting close to 5.

With those concerns addressed, I think the main benefit of a VM is snapshots. Regular snapshots make it easy to recover and minimise the amount of time lost due to mistakes. It's saved me several times after making foolish mistakes. Most recently I was removing debugging symbols and somehow totally wrecked the whole LFS system. It was back to the starting board had it not been for my snapshot.

The other benefits, really vary. If you have hardware which gives you issues under linux then with VBox, that's not a problem. I use to have a modem years ago that never worked under linux so in order to play around with it I'd install VMware and full screen my linux VM and use it as if I booted straight into it. Another could be that you simply don't want to partition your drive to play around with LFS then go mucking around to remove it when done and rejoin it to your main partition/s again.

I think that we've really covers both sides of the issue, so once again. If anyone is interested in using my VM, feel free to reply and I'll organise something
 
Old 07-04-2014, 03:44 AM   #4
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
One other benefit of the VBox install is the save states you can create and not do actual shutdown or reboots.

I think you should publish them.

However, one thing I would recommend is possibly using VHD virtual drives rather than the native VBox drives, VHDs can be mounted in Windows 7 or later as a real drive and Using EasyBCD, BCD can be edited to boot from that drive if it has an EasyBCD compatible boot loader.
 
Old 11-25-2015, 12:02 PM   #5
petedc
LQ Newbie
 
Registered: Nov 2015
Posts: 1

Rep: Reputation: Disabled
Yes, If I'm not to late

Basica, If I am not to late and the help you can give is still relavent I would like access to your torrent.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Build LFS on VirtualBox muafiu Linux From Scratch 15 02-24-2014 09:37 AM
Building LFS in VirtualBox with Ubuntu 13.04 Host basica Linux From Scratch 7 08-30-2013 11:32 AM
[SOLVED] LFS 6.7 : $LFS/sources and $LFS/tools folders missing prakashsince92 Linux From Scratch 5 12-09-2010 02:26 PM
Can I use x86_64 as a host to build an LFS? is-1-prime? Linux From Scratch 4 11-09-2009 04:35 PM
Will compiling LFS on an 64 bit distro build an 64 bit LFS? Vampirite Linux From Scratch 4 08-31-2007 02:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 06:26 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration