linux/kernel/user mode VM

From Lazarus wiki
Jump to navigationJump to search

Overview

This section is inteneded to help users interested in developping linux kernel modules to setup an UML VM to debug it during devlopmement phase.

Please note that this page will focus in configuring a VM running on a debian distribution based host.

Installation

First of all you need to install the package user-mode-linux

apt-get install user-mode-linux

Then you need the package uml-utilities

apt-get install uml-utilities

Configuration

File System Image

The easiest way to do that is to download an already build image

wget ftp://ftp.freepascal.org/<some path>/fsroot.img.bz2

Then you need to decompress it

bunzip2 fsroot.img.bz2

Please note that this is really a minimal installation, including the fp-compiler and aptitude packages. The lattest will allow you installing any package you want providing you setup your network correctly.

The provided root file system image has already VM part networking configured, so you need just to configure the host part as described in next section.

Networking

--Mazen 23:52, 16 October 2007 (CEST)