GithubHelp home page GithubHelp logo

isabella232 / compute-centos5-drivers Goto Github PK

View Code? Open in Web Editor NEW

This project forked from googlecloudplatform/compute-centos5-drivers

0.0 0.0 0.0 39 KB

License: GNU General Public License v2.0

Makefile 100.00%

compute-centos5-drivers's Introduction

Linux virtio_scsi driver RHEL5 / CentOS5 Backport

Overview

This package contains the virtio_scsi driver as backported originally from 3.3 to 2.6.39 and now to 2.6.18 RHEL5 / CentOS5 kernels. These kernels already have some virtio devices backported to it including virtio_net and virtio_blk, but do not support virtio_scsi directly.

This driver allows using these older kernels on with virtio_scsi devices and works with implementations such as qemu and Google Compute Engine.

This is not an official Google product.

Building

This code distribution can work in one of two forms:

Direct KBuild invocation

This driver can be invoked from the top-level directory of configured and built kernel sources:

  $ cd ${HOME}/rpm/BUILD/kernel-2.6.18/linux-2.6.18.x86_64/   # KSRC
  $ make M=${HOME}/virtio_scsi                                # this package

When invoking this way, the driver may require specifying whether it should use find_vq(),del_vq() or find_vqs(),del_vqs(). This can be overriden on the build using the USE_FIND_VQS flag:

  $ cd ${HOME}/rpm/BUILD/kernel-2.6.18/linux-2.6.18.x86_64/   # KSRC
  $ make M=${HOME}/virtio_scsi USE_FIND_VQS=1

Building RPMs

By default, when "make" is run, it will use the included kmodtool to configure and build a kernel module package (.rpm). By default, this will build against the currently running kernel. To build for another kernel version, be sure to have installed the matching kernel-devel package and invoke "make" specifying the KVERSION flag:

  $ make                                # builds rpms for current kernel
  $ make KVERSION=2.6.18-371.12.1.el5   # builds rpms for another version

Booting with the driver (initrd setup)

Be sure to rebuild your initrd to ensure that the driver is available when looking for the boot disk. This is done using mkinitrd on RHEL5, using the /--with/ flag to specify additional modules to include. The virtio_pci driver must also be installed/available in the initrd! otherwise your device will not be found!:

  $ sudo /sbin/mkinitrd --with virtio_scsi --with virtio_pci \
      /boot/initrd-2.6.18-164.el5.img 2.6.18-164.el5

compute-centos5-drivers's People

Contributors

waych avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.