Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 08-16-2011, 11:21 PM   #1
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.


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

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, 06:32 AM   #3
LQ Newbie
Registered: Aug 2011
Posts: 2

Original Poster
Rep: Reputation: Disabled

@trist007: Thanks a lot


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 08:56 AM
Testing kernel module in a non-root user zvivered Linux - Kernel 1 10-10-2007 10:03 PM
Testing Driver Module for Linux rbushlow Programming 1 02-15-2007 01: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 08:21 PM
Burning CDs using Pat's Linux 2.6.7 kernel from /testing fader Slackware 2 01-31-2005 02:44 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:15 AM.

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