LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 03-03-2011, 03:44 AM   #1
osdevkid
LQ Newbie
 
Registered: Mar 2011
Location: India, Chennai
Posts: 14

Rep: Reputation: 0
How to run Linux Kernel on VMware Player / BOCHS


Dear experts,

Please clarify the below

1. Linux Kernel also have inbuild bootloader is it? then,

2. Is it possible to run/install Linux Kernel on VMware Player without GRUB bootloader ?

3. Or, is it possible to run the same on BOCHS

4. How to compile and create a iso image file for GRUB bootloader.

5. Or, is it possible to run the GRUB binary file in BOCHS.

Kindly provide your guidelines.
 
Old 03-04-2011, 12:13 AM   #2
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
WTF?

Yes, it's possible to run "Linux" on VMWare or Bochs. Or Xen, Virtual Box, or many other virtualization programs.

Yes, I imagine it's possible to substitute whatever bootloader you prefer.

Regardless of whether you're using a VM, or a real, physical host. The same would apply in either case.

No, strictly speaking the bootloader is NOT part of the "Linux kernel". Nor, for that matter, are most of the runtime libraries, scripts and programs we often take for granted as being "Linux". For example, in an embedded system you might run BusyBox instead of a shell.

So it really boils down to:

1) What exactly are you trying to learn about
... and/or ...
2) What exactly are you trying to accomplish

I hope that helps clarify things ... at least a little bit.
 
Old 03-04-2011, 12:41 AM   #3
osdevkid
LQ Newbie
 
Registered: Mar 2011
Location: India, Chennai
Posts: 14

Original Poster
Rep: Reputation: 0
I want to modify Linux source code for study purpose and want to run the modified code on VMware Player or BOCHS.

THATS IT.
 
Old 03-04-2011, 04:05 AM   #4
bsat
Member
 
Registered: Feb 2009
Posts: 347

Rep: Reputation: 72
To do that I think it would be simplest if you

1. Installed any latest distro in a VM

2. Download the source from kernel.org

3. Compile the modified kernel in the vm and boot the same to test your changes.
 
Old 03-04-2011, 11:32 AM   #5
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
Quote:
Q: I want to modify Linux source code for study purpose and want to run the modified code on VMware Player or BOCHS.
Why didn't you say this in your first post? If you ask a question, it helps if you can give the CONTEXT for your question!

Yes, a running "Linux OS" is MORE than just a "Linux kernel". The kernel needs some "help" in order to get started (it needs a "bootloader", such as Grub or Lilo), it assumes some kind of "runtime" once it's started (for example, anything from a minimal BusyBox shell to a full-fledged Gnome desktop), and it assumes whatever other runtime support is needed to accomplish anything useful (for example, an sshd daemon to log in, an smbd daemon to share Windows disks, etc etc).

And yes, you can customize the boot process and however you want

And yes, you can treat an .iso file as though it were an actual CD/DVD. However, it's the VIRTUALIZATION PROGRAM (e.g. VMWare) that does this, NOT the guest kernel. It's up to VMWare (for example) to "trick" the guest boatloader and guest kernel into thinking it's talking to a "real" CD/DVD.

Last edited by paulsm4; 03-04-2011 at 11:33 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
DISCUSSION: Howto run Windows with VMware Player in Linux for free mariusm LinuxAnswers Discussion 11 03-01-2012 09:13 AM
VMWare Player - Fedora 13 - no kernel-header files... PastorWirl Linux - Virtualization and Cloud 5 01-24-2011 08:47 AM
vmware player problem with slackware current(kernel 2.6.32.7) yuchankit Slackware 3 04-25-2010 09:17 PM
Why won't VMWare Player run on Fedora 8 slsscoot Linux - Software 16 03-10-2008 11:00 PM
Debug Linux kernel in vmware (two machines in vmware)?? cyu021 Programming 0 03-30-2005 07:46 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 10:19 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