Coder Social home page Coder Social logo

openvz-tools's Introduction

README

Tools for Ubuntu + OpenStack + OpenVZ

Building a Kernel

Building an OpenVZ kernel on Ubuntu is only supported on Oneiric (11.10). This is due to the requirement for a specific version of gcc. You also need at least 10 GB free space for the build directory.

Run the following to build a kernel on a fresh Oneiric VM:

./create-openvz-kernel.sh -D <build-dir> -L <build-name>

This will take care of installing all the prerequisites, downloading the linux kernel and the latest openvz kernel patch set, setting up the fakeroot environment, and building some .deb packages.

Package files will be placed in along with a few log files.

Installing the Kernel

Once you've built an openvz-enabled kernel, you can install it on Natty, Oneiric, or Precise with the following script.

# you can override the default kernel location in the install script
# or download my kernel build by default
export KERNEL_URL='http://your.server.here/'
export KERNEL_NAME='package-name-here'

./install-openvz-kernel.sh

This will do several things to your system:

  1. download and install the kernel image and headers
  2. make some risky changes to grub to force it to use the new (old) kernel
  3. install some openvz-related packages
  4. install an old version of rsyslog to get around this bug: https://bugs.launchpad.net/ubuntu/+source/rsyslog/+bug/523610

After this finishes, you will need to restart the host before you can use the new kernel. You can verify that it is running by checking the kernel version and looking in processlist.

ubuntu@oneiric:~$ uname -a
Linux oneiric 2.6.32-openvz #1 SMP Thu May 24 16:09:56 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux

ubuntu@oneiric:~$ ps u `pidof vzmond`
USER         PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
root         878  0.0  0.0      0     0 ?        S    17:41   0:00 [vzmond]

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.