Linux From ScratchThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Well, the subject say's it all, don't it. To say it explicitly, can I do a linux from scratch project on a vmware virtual pc? Is it possible? And so yes, how should I proceed.
I don't have to much ram on my (real) computer, about 160 MB. I reserved 96 MB for vmware, that was the recomondated amount. I tried booting vmware with knoppix, and although I was able to boot, It didn't start kde because of the limmited ram. I did manage to boot tomsrtbt on floppy distro.
It would help I could acces the host's OS file system. But I don't know how to do that. According to the manual, the host and the guest can share files via an virtual network. The guest OS sees a ethernet card which is actually a virual device made by vmware. I have zero experiance with networking. So I would apreciate if any one who has experiance with vmware and networking would help me out.
I hope im not being vague. To sum it up;
- To do a LFS project, I need an alraidy up and running linux instalation.
- I plan to use an mini linux distro for that job, somthing like tomsrtbt or knoppix.
- That mini linux distro must use files stored on my "real" file system.
- For that I need to establisch network connection between the guest and the host OS
And that last bit is the problem, cos I don't know how to do that.
And as to the question why I want to do this; just for the experiance. I don't have a spare partiton on my real system, so I figured this is the next best thing.
I think it will be a bit easier than it is made out to be. I believe you could just mount the win drive (assuming it's fat32) and then use the files from it. You would boot up with knoppix or tom's and then fdisk -l to find the partition, make a directory (or mount to an existing one) and then go from there. The fallback being that you will lose your existing setup when you reboot vmware. So, you would need to do the LFS book in 1 full swoop, without shutting down. No biggie, just 1 slight setback.
As for how...
Boot into your boot distro (tom's or knoppix) and create a directory for your lfs to go (this would actually be on your vmware filesystem). From there it's just following the book.
Good Luck, it's going to be a bit of work, but I think it'll be a very good learning experience, and be fun as well
If you do end up needing to establish a network connection, boot up to your boot distro (on vmware) and then run ifconfig and show us what shows up. Also, can you access the network (internet) from your boot distro via vmware?
I believe you could just mount the win drive (assuming it's fat32) and then use the files from it.
Hi Master,
I'm afraid you're wrong ... the virtual PC that runs
your Linux will only see its *own virtual hard-drive*,
no physical access to the physical host drive.
Really.... So it's kind of like cygwin see's HD's. Wow, so I guess for now, we would want to know whether or not he can access the 'net with a stock setup?
The only way you can access other partitions using VMware is if you set it up to use a physical drive instead of a virtual drive. It does work as well but it takes a bit of work to do it.
atko, I don't think that's true. You can reach the physical drive via a network connection. The guest OS will think the host OS is on a computer on the network. It says so in the manual. A friend of mine also has vmware and that's the way he acceses his physical drive.
Any way, Im at school right now so can can't give you the output of "ifconfig", but it detected a (virtual) ethernet card "eth0". The IP adress was asignd to it via dhcp and it began with 192 . So That's no good. I don't have internet connection in the virtual pc, but I do on my real one.
How do you establisch a connection between two pc's running linux? I mean in general.
Once I can get to the file system on my physical drive, I should be straigt forward (relativally speaking) to install LFS.
In vmware you are able to access the disk directly. At least in the 3.2 workstation version this is possible. You have to add a raw disk to the virtual machine. Read the docs at http://www.vmware.com/support/ws3/do...3.html#1008918
The only thing is that the os itself needs to be able to read the partition type. So you can't let a version of windows read your native linux partitions since windows doesn't get very far with that unless you use a third party tool.
Also I'm not sure if this raw access works as a normal user. It might be possible to get it working after allowing extra access rights but I haven't really looked into that.
And for the network setup could you maybe describe your network setup and how each computer is connected to the internet and which ip's they use.
I've got a internal network using 192.168.x.x addresses. My router NAT's everything from there to the internet. So all I had to do in the virtual machine was pick another 192.168.x.x address in my range and I was online. I did that with windows 98 running in a virtual machine but it shouldn't be any different for another OS.
Mik you are correct. The user needs to have read/write access to that partition. When setting up you need to ensure that particular partition is not mounted by linux. Then setup will locate it. I use VMware 3.2 at work but the raw drive did not install properly - I kept getting missing NLDR or something like that. Eventually I did setup a virtual drive as opposed to the raw drive and I run in using the network. All seems to be okay as fortunately everything I need is saved to and run off the server anyway. I am running W2K within VMware using RH8 incidentally as linux recognises the windows file system in VMware. May be different the otherway round though, I've never tried it to be honest.
Moved: More suitable in the LFS forum. Lets try to place threads in the most logical forum. Everything doesn't go in Linux - General, only if you have no idea where it should go it should be placed there. Thanks.
Sorry for the delay in my responce.
I don't get it. If I read correctly, A rawdisk is an unused partition on my physical HD. But I don't have an spare partition and I don't feel like creatig one.
vmnet1 Link encap:Ethernet HWaddr 00:50:56:C0:00:01
inet addr:192.168.241.1 Bcast:192.168.241.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:45 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
vmnet8 Link encap:Ethernet HWaddr 00:50:56:C0:00:08
inet addr:172.16.193.1 Bcast:172.16.193.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
On one of the virtual HD's I also installed windows XP. So within the virtual mchine I started IE and went to "ftp://192.168.241.1" and voila, I was in "/home/ftp" of my physical HD. So that's a step in the right direction. But I can't get to the rest of my FS.
VMWare say's it installls samba so you can share files with the host OS. But I know nothing about samba.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.