LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-17-2011, 12:21 AM   #1
bird234
LQ Newbie
 
Registered: Aug 2011
Posts: 2

Rep: Reputation: Disabled
Testing a Linux kernel module


I want to test a simple device driver module.

For testing purposes, I know that it is better to use a virtual machine, than loading it in to the original kernel.

My question is, is it 'strictly recommended' that one should try these modules in a virtual machine? Can testing a simple 'hello world' module be harmful? Can anyone give an example situation where it can harm the kernel? Or if anyone has had a bad experience, please share it.

Thanks.

Last edited by bird234; 08-17-2011 at 02:17 AM.
 
Old 08-18-2011, 01:39 AM   #2
trist007
Senior Member
 
Registered: May 2008
Distribution: Slackware
Posts: 1,027

Rep: Reputation: 69
If you're not running any live services on your box, then sure go ahead. If it's just a hello world kernel module then it's no biggie. Worst that can happen, you have to reboot the box, that's it.

I've never had bad experiences other than having to start a new virtual terminal connection. I can't think of a harmful example. You're just loading a kernel module, as opposed to setting it up to load everytime the OS boots, in which case is still solvable via single user mode.

No worries, have fun.
 
1 members found this post helpful.
Old 08-18-2011, 07:32 AM   #3
bird234
LQ Newbie
 
Registered: Aug 2011
Posts: 2

Original Poster
Rep: Reputation: Disabled
Smile

@trist007: Thanks a lot
 
  


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
Testing the Linux Kernel ananth86coolguy Linux - Newbie 3 06-25-2009 09:56 AM
Testing kernel module in a non-root user zvivered Linux - Kernel 1 10-10-2007 11:03 PM
Testing Driver Module for Linux 2.4.xxx rbushlow Programming 1 02-15-2007 02:01 PM
LXer: Howto: build Linux kernel module against installed kernel w/o full kernel source tree LXer Syndicated Linux News 0 09-03-2006 09:21 PM
Burning CDs using Pat's Linux 2.6.7 kernel from /testing fader Slackware 2 01-31-2005 03:44 PM


All times are GMT -5. The time now is 11:14 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration