LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 08-15-2013, 12:44 PM   #1
muafiu
LQ Newbie
 
Registered: Aug 2013
Posts: 6

Rep: Reputation: Disabled
Question Build LFS on VirtualBox


hi everyone .
I have study project : Build LFS and make it boot from USB.
Anyone can answer the questions ?
- Can i build LFS on VitualBox ?
- i create new machine, then i use liveCD LFS to boot GUI xfce4 , so , can i build LFS from this environment ? (GUI xfce4 - from LiveCD)

- anyone have exp build LFS from Vitualbox , shared 2 me ./
Thanks !
 
Old 08-15-2013, 04:18 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
You can't use the LiveCD anymore for a modern LFS system. The LiveCD will not build the current and stable releases of LFS.

It's best to work outside of VirtualBox anyway as VirtualBox does have some bugs in the recent version with how the mouse and X11 support works causing mouse and handling instabilities.

I recommend using another distribution to build it in real-time such as Gentoo or Slackware.
 
1 members found this post helpful.
Old 08-15-2013, 05:10 PM   #3
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,152

Rep: Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856
+1 Slackware - I t is compliant 'out of the box'

A lot of problems on the LFS forums seem to be posted by people building on virtualbox.
 
1 members found this post helpful.
Old 08-15-2013, 09:46 PM   #4
DeeGee
Member
 
Registered: Apr 2013
Distribution: Debian, Linux From Scratch, Mint
Posts: 118

Rep: Reputation: 24
I used Virtualbox for my first LFS build, and I don't recommend it.

To get the true principle of what LFS really is, you have to delve in deeper and get your hands dirty.

Also, considering you as a beginner to Linux, its better to get the 'feel' of what Linux is than dive head-first into merely copying and pasting the commands in the book. Use a host distro like Debian if Slackware is too complex.
 
1 members found this post helpful.
Old 08-15-2013, 10:24 PM   #5
muafiu
LQ Newbie
 
Registered: Aug 2013
Posts: 6

Original Poster
Rep: Reputation: Disabled
I had build LFS 6.2 on live CD LFS run on Vmware 2 week ago . Everything is ok ( I have to rebuild 3 times ) until chapter 8.3 , when i run :
make mrproper ( linux-2.6.16.27 ) have error. Cant compile to test kernel . ( the reason is the resolution of Vmware too small : only 640 x 480 ) .
That the reason i change to virtualbox .
I'm amateur in linux os . So , i try to build LFS 6.2 on LiveCD to have exp before build on os real. ( other version later dont support LiveCD )
Anyone plz give me some advices ? ( i've 2 choices )
1/ I still rebuild LFS 6.2 on LiveCD LFS ( build on xfce4 environment ) on virtualbox ?
2/ i'll install one of linux os and use live CD LFS to build (build on os master ) ? ( ofcourse all actions are done on Vmware or Virtualbox )
Actually , after 2 week to build LFS step by step , i study alot of new things about linux . I think , if i have good result about this project, may be in the future, i'll study linux more and more (i'm curious about balancing on linux )
 
Old 08-15-2013, 10:24 PM   #6
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
Not only that but VirtualBox also has a huge resource overhead being a Virtual Machine. It takes about 2-3 times longer to build LFS on VirtualBox and any other VM than it does an actual system.
 
1 members found this post helpful.
Old 08-15-2013, 10:31 PM   #7
muafiu
LQ Newbie
 
Registered: Aug 2013
Posts: 6

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ReaperX7 View Post
Not only that but VirtualBox also has a huge resource overhead being a Virtual Machine. It takes about 2-3 times longer to build LFS on VirtualBox and any other VM than it does an actual system.
Can i rebuild on Virtualbox like build on Vmware i had done ?
Build on Live CD ( environment xfce4 ? ) ?

plz give me some advices ? ( i only 've 2 choices )

1/ I still rebuild LFS 6.2 on LiveCD LFS ( build on xfce4 environment ) on virtualbox ?
2/ i'll install one of linux os and use live CD LFS to build (build on os master ) ? ( ofcourse all actions are done on Vmware or Virtualbox )

Last edited by muafiu; 08-15-2013 at 10:32 PM.
 
Old 08-15-2013, 11:48 PM   #8
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
If you want to virtualize it, I'd recommend building with another OS so you can build the modern system. Gentoo and Slackware both work well for this by default. I'd get the Gentoo Live DVD for this however, or Slackware, so you can install the system without too much of a hassle.
 
Old 08-16-2013, 08:34 AM   #9
frieza
Senior Member
 
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,233

Rep: Reputation: 406Reputation: 406Reputation: 406Reputation: 406Reputation: 406
Quote:
Originally Posted by muafiu View Post
I had build LFS 6.2 on live CD LFS run on Vmware 2 week ago . Everything is ok ( I have to rebuild 3 times ) until chapter 8.3 , when i run :
make mrproper ( linux-2.6.16.27 ) have error. Cant compile to test kernel . ( the reason is the resolution of Vmware too small : only 640 x 480 ) .
That the reason i change to virtualbox .
i don't think the 640x488 screen resolution is why the kernel won't compile, that wouldn't stop anything from compiling
Quote:
Originally Posted by muafiu View Post
I'm amateur in linux os.
So , i try to build LFS 6.2 on LiveCD to have exp before build on os real. ( other version later dont support LiveCD )
Anyone plz give me some advices ? ( i've 2 choices )
1/ I still rebuild LFS 6.2 on LiveCD LFS ( build on xfce4 environment ) on virtualbox ?
2/ i'll install one of linux os and use live CD LFS to build (build on os master ) ? ( ofcourse all actions are done on Vmware or Virtualbox )
Actually , after 2 week to build LFS step by step , i study alot of new things about linux . I think , if i have good result about this project, may be in the future, i'll study linux more and more (i'm curious about balancing on linux )
lfs isn't really an amateur project, i would take the suggestion of installing and learning a more mainstream distribution and installing software on it from source, then once you understand a bit more of linux, trying to build lfs. that being said, good luck.

as for the virtualbox thing, you've been advised to not use any virtual machine when building LFS system, that being said if you can get it to work, more power to you, if you have a hard time though, you can't say you weren't warned.

lastly, LFS is up to version 7.3, why are you building 6.2?
and no, the live cd won't work with 7.3
p.s.
this is a technical forum, we speak english here, not text speak (please, not plz, experience, not exp etc..)
second, if you're going to ask for help, you're going to need to provide more details, such as compile options used and error messages returned, 'it didn't work' isn't enough to go by.

Last edited by frieza; 08-16-2013 at 08:35 AM.
 
Old 08-16-2013, 10:52 PM   #10
muafiu
LQ Newbie
 
Registered: Aug 2013
Posts: 6

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by frieza View Post
i don't think the 640x488 screen resolution is why the kernel won't compile, that wouldn't stop anything from compiling


lfs isn't really an amateur project, i would take the suggestion of installing and learning a more mainstream distribution and installing software on it from source, then once you understand a bit more of linux, trying to build lfs. that being said, good luck.

as for the virtualbox thing, you've been advised to not use any virtual machine when building LFS system, that being said if you can get it to work, more power to you, if you have a hard time though, you can't say you weren't warned.

lastly, LFS is up to version 7.3, why are you building 6.2?
and no, the live cd won't work with 7.3
p.s.
this is a technical forum, we speak english here, not text speak (please, not plz, experience, not exp etc..)
second, if you're going to ask for help, you're going to need to provide more details, such as compile options used and error messages returned, 'it didn't work' isn't enough to go by.
i dont know, but actually , that is the error message from VMware ( and i think to increase resolution , i have to install VMware tools ).
That the reason i start again with Virtualbox .


you ask me why dont start with the LFS 7.x ?
I'm beginner . I have to learn to start with LFS 6.2 because i can use LiveCD 6.2 to learn from basic to hard . With LiveCD, i am not looking for a host outside .It provides a known good host for building LFS . I can build direct on LiveCD .
When i success , i'll learn to start with LFS 7.x by os host outside .
And this is my project in class , i cannot get any support from my teacher except have advices like :" try to find on google .." .
I only have 4 week to complete this project and write report .
I'm from Vietnam , so my english is not good , sorry about this.
Now, i'm building in chapter 5.x . I'm hope everything will be good and lucky .


Thanks you. If i have error, i will report here to get some help.
Have nice weekend.
 
Old 08-17-2013, 01:36 AM   #11
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
Hi

Lfs 6.2 is,nt a beginners disc it,s Old version, 7.3 even 7.4 now is the same but updated.
I have built 7.3 using a Debain live disc there is a link in my signature how to use the disc if thats the way you want to go. You could also build straight onto usb stick as well, making the usb bootable to the installed system.

Last edited by spiky0011; 08-17-2013 at 02:18 AM.
 
Old 08-17-2013, 06:18 PM   #12
frieza
Senior Member
 
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,233

Rep: Reputation: 406Reputation: 406Reputation: 406Reputation: 406Reputation: 406
to be quite honest, any live CD on which you can install compilers can be used to install LFS. the process of installing LFS system
building an lfs system are most simplistically the following steps
----------------------
1) build temporary build system
2) chroot into temporary build system
3) build base system and remove temporary build system
4) reboot into base system
5) build the rest of the system

only steps 1-3 are done on a live cd, and it doesn't have to be the LFS live cd to do so.
 
1 members found this post helpful.
Old 08-20-2013, 04:37 AM   #13
muafiu
LQ Newbie
 
Registered: Aug 2013
Posts: 6

Original Poster
Rep: Reputation: Disabled
on chapter 6.13.1 .Can you answer to me ?
should i remove this folder ? ( db-4.4.20 )
root:/sources/db-4.4.20/build_unix
 
Old 08-20-2013, 05:09 AM   #14
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Quote:
Originally Posted by muafiu View Post
on chapter 6.13.1 .Can you answer to me ?
should i remove this folder ? ( db-4.4.20 )
root:/sources/db-4.4.20/build_unix
All the package source directories have to be removed after building it, unless stated differently in the specific chapter.
 
1 members found this post helpful.
Old 08-24-2013, 11:30 AM   #15
muafiu
LQ Newbie
 
Registered: Aug 2013
Posts: 6

Original Poster
Rep: Reputation: Disabled
i had build LFS 6.2 success on Virtualbox .

http://i5.upanh.com/2013/0824/16//57...nuxfromsct.jpg
http://i6.upanh.com/2013/0824/16//57276015.boot.jpg

It can boot from harddisk now .
1/ How can i copy the source of LFS from hard disk to usb ?
i try to boot from CD by live CD LFS 6.2 and boot to xfce4 , but i dont know where the location of LFS system on HardDisk.
2/ How to make it boot from usb ?
 
  


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
[SOLVED] LFS in VirtualBox, booting problem cortman Linux From Scratch 4 05-17-2013 04:36 PM
[SOLVED] Is LFS in VirtualBox over Windows 8 possible? DavidLee1A Linux From Scratch 4 05-12-2013 09:39 PM
The LFS LiveCd doesn't work on Oracle VirtualBox LFS-Hunter Linux From Scratch 34 03-22-2012 06:11 PM
[SOLVED] Interface eth0 doesn't exist. LFS 6.5 on VirtualBox guodah Linux From Scratch 5 11-18-2010 09:39 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 09:35 AM.

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