Linux - Virtualization and CloudThis forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.
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.
A casual Linux user here. I know a little bit on how to use CLI and have basic understanding in shell scripts, c programming etc..
I would like to learn more about Linux System-level and Device Drivers development, so I started reading a book on Linux Device Drivers. Right now I don't have money to buy a system I can use to run some of examples. I do have a laptop with VirtualBox installed that I use to run Ubuntu. However, It looks like the book I'm reading utilizes serial port as an example, so it looks like without an actual hardware my learning experience won't be optimal.
I just want to check to see if anyone has ever learned Linux system level/device drivers programming using VirtualBox.
I have an old laptop with 4GB RAM that is currently running Windows 10. I'm thinking to install Ubuntu on it, but for learning device driver, maybe a desktop is better? If yes, any recommendation on system setup/configuration you guys can share that would be great!
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881
Rep:
While this isn't exactly your question, it might inform you about making Linux drivers.
Personally, I'd say a driver is a driver regardless of whether it's a laptop or desktop machine you're talking about.
Virtualbox just simulates a real machine, so for all intensive purposes, the OS still works in the same way - it's just not running on a "real" machine.
It depends on what the example driver is trying to illustrate i.e. is it trying to access the hardware pins or just send characters. If just sending characters you probably can get by with configure the VB guest serial port for a tcp connection and then connect it to PuTTy raw connection on the host or pipe it to a file.
Otherwise you probably need a real hardware serial port. These days real serial port hardware is not common on desktops or laptops anymore so I might consider skipping and moving to the next one. I would of thought a Hello World driver would be the first example...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.