Create Kernel Driver: Difference between revisions

From bibbleWiki
Jump to navigation Jump to search
Created page with "=Introduction= This seems like a way to create a VM for kernel development so thought I might take some notes =Setup= Install snap install multipass Create box multipass shell Edit /etc/ssh/sshd_config and change KbdInteractiveAuthentication yes Reload daemon sudo systemctl daemon-reload restart daemon sudo systemctl restart ssh.service"
 
Line 1: Line 1:
=Introduction=
=Introduction=
This seems like a way to create a VM for kernel development so thought I might take some notes
This seems like a way to create a VM for kernel development so thought I might take some notes
=Setup=
=Setup Multipass=
Install
Install
  snap install multipass
  snap install multipass
Line 12: Line 12:
restart daemon
restart daemon
  sudo systemctl restart ssh.service
  sudo systemctl restart ssh.service
set passwd
sudo passwd ubuntu
get IP (never knew this)
hostname -I
=Setup VS Code=
Go to extensions and in remote development extension. Connect via ssh
=Restart Multipass=
List what we have
multipass list
For this we just type
multipass shell
=Install Software for Driver Development=
To do this
sudo apt update
sudo apt upgrade
sudo apt install build-essential linux-headers-$(uname -r) kmod

Revision as of 04:08, 20 January 2025

Introduction

This seems like a way to create a VM for kernel development so thought I might take some notes

Setup Multipass

Install

snap install multipass

Create box

multipass shell

Edit /etc/ssh/sshd_config and change

KbdInteractiveAuthentication yes

Reload daemon

sudo systemctl daemon-reload

restart daemon

sudo systemctl restart ssh.service

set passwd

sudo passwd ubuntu

get IP (never knew this)

hostname -I

Setup VS Code

Go to extensions and in remote development extension. Connect via ssh

Restart Multipass

List what we have

multipass list

For this we just type

multipass shell

Install Software for Driver Development

To do this

sudo apt update
sudo apt upgrade
sudo apt install build-essential linux-headers-$(uname -r) kmod