Building and Installing Xen 4.x and Linux Kernel 3.x on Fedora 19 Linux

Similar documents
Xen VGA Passthrough with NVIDIA Display Cards

Linux Kernel Update - from scratch (almost) Platform: Archlinux, UEFI, GRUB2, and initramfs. Prof. Rossano Pablo Pinto

This line defines Therefore, if your windows entry on the GRUB menu is 8 you should set this value to 7.

Installation and Maintenance Instructions for Intel(R) R-WPA VNF Package

Xen Recovery Guide. Version 8.2

Operating System. Hanyang University. Hyunmin Yoon Operating System Hanyang University

Reboot the server and start the hypervisor from the boot menu (Xen amd64 / Debian GNU/Linux, kernel xen-amd64)

Virtualization Guide. opensuse Leap 42.3

Xen. past, present and future. Stefano Stabellini

Development of I/O Pass-through: Current Status & the Future. Nov 21, 2008 Yuji Shimada NEC System Technologies, Ltd.

SUSE Linux Enterprise Server

Virtual LoadMaster for Xen (Para Virtualized)

OpenNebula 3 Cloud Computing

Introduction to Oracle VM (Xen) Networking

F5 BIG-IQ Centralized Management and Linux Xen Project: Setup. Version 5.0

Fedora Linux Installation Guide

Linux Virtualization Update

Virtualization Guide. opensuse Leap 15

Designing high-availability for Xen Virtual Machines with HP Serviceguard for Linux

Virtualization Guide. opensuse Leap 42.2

kernels-in-kernels kernels within kernels by Lee Elston Version 1.0 c CC-BY SA4

Junhong Jiang, Kevin Tian, Chris Wright, Don Dugger

Installing FreePBX 14 on CentOS 7

Virtualisation for Oracle databases and application servers

Xen Project 4.4: Features and Futures. Russell Pavlicek Xen Project Evangelist Citrix Systems

BIG-IP Virtual Edition and Xen Project: Setup. Version 13.1

The kernel constitutes the core part of the Linux operating system. Kernel duties:

SUSE Linux Enterprise Server

Xen is not just paravirtualization

Implementation and. Oracle VM. Administration Guide. Oracle Press ORACLG. Mc Grauv Hill. Edward Whalen

APPLICATION. NOTE Date:

Installation of Fedora 12 with CD

Linux Distribution: Kernel Configuration

Installing FreePBX 13 on CentOS 7

Red Hat Enterprise Linux 5 Virtualization Guide

Multiplying Your Server Ubuntu Server and Virtualization

POSTouch Open Source Driver (OSE) Installation Guide

Virtualization Guide. opensuse Leap 42.1

Enabling User Provided Kernels in Amazon EC2

Zephyr Kernel Installation & Setup Manual

Arch Linux Grub You Need To Load The Kernel First

Intel Visual Compute Accelerator Product Family

How To Configure Grub In Windows 7 Ip Address And Port

Xen on ARM ARMv7 with virtualization extensions

How To Compile A Kernel - The Mandriva Way

DSH-G300 Smart Hub. Manual

Xen VT status and TODO lists for Xen-summit. Arun Sharma, Asit Mallick, Jun Nakajima, Sunil Saxena

Xen on ARM. How fast is it, really? Stefano Stabellini. 18 August 2014

(Ubuntu 10.04), the installation command is slightly different.

Configuring Non-Volatile Memory Express* (NVMe*) over Fabrics on Intel Omni-Path Architecture

Citrix XenServer Recovery Guide. Version 8.2

Novell Virtualization Technology

KVM Guest Management With Virt-Manager On Ubuntu 8.10

Building Customized Linux Kernels A live demonstration. Mark Post August 17, 2004 Session # 9280

Deploy the ASAv Using KVM

Xen on ARM. Stefano Stabellini

Install and Configure Enterprise Linux on the First Virtual Machine

Tool installation for PMC-MC-X2/X4 with P2020 series processor

There are three separate utilities for configuring Linux kernel and they are listed below: Command-line interface # make config. Figure 1.

RHOSP 12 Director Installation on MaxCore TM Platform

VIA Fedora Linux Core 6 (x86/x86_64) VT6421(L)/VT8237R/VT8237A/VT8237S/VT8251/CX700 V-RAID V2.60 Driver Installation Guide

Citrix XenServer 7.0 Virtual Machine User's Guide. Published October Edition

Virtualization Guide. SUSE Linux Enterprise Server 12 SP3

Virtualization Guide. SUSE Linux Enterprise Server 12 SP3

KVM Virtualization With Enomalism 2 On An Ubuntu 8.10 Server

Virtualization Guide

Creating and Controlling KVM Guests using libvirt

Grub Manual Install Ubuntu Without >>>CLICK HERE<<<

Configuring and Building Palacios/Linux

Monthly Specification Update

Intel Media Server Studio 2017 R2 Driver, SDK for Linux* Getting Started Guide

Configuring Virtual Blades

Citrix XenServer 6.5 Virtual Machine User's Guide. Published Thursday, 15 January Edition

Intel Software Guard Extensions SDK for Linux* OS. Installation Guide

The only open-source type-1 hypervisor

Fibre Channel Adapter and Converged Network Adapter Inbox Driver Update for Linux Kernel 2.6.x and 3.x. Readme. QLogic Corporation All rights reserved

Citrix XenServer 7.2 Virtual Machine User's Guide. Published October Edition

Bash exercices. Write 6 random numbers between 0 and 9 in a file named randoms then display them in a sorted way on the screen.

Blueprints. Quick Start Guide for installing and running KVM

Citrix XenServer 7.1 Virtual Machine User's Guide. Published November Edition

Vendor: Oracle. Exam Code: 1Z Exam Name: oracle VM 2 for x86 Essentials. Version: Demo

Using KVM On Ubuntu 7.10 (Gutsy Gibbon)

Virtual Server Management

SDK. About the Cisco SDK. Installing the SDK. Procedure. This chapter contains the following sections:

Managing Xen With Xen-Tools, Xen-Shell, And Argo

Toon Boom Harmony V15.0

Red Hat Enterprise Linux 6

RocketRAID 231x/230x SATA Controller Fedora Linux Installation Guide

Integration Guide. SafeGuard CryptoServer PCI in Xen Environment Debian 5

Installation of the OS

Hardening The Linux Kernel With Grsecurity (Debian)

Open Source Virtualization - Software Freedom Day 2008

Course 55187B Linux System Administration

Release Notes for (Supporting 3ware 9690SA and 9650SE controllers)

Red Hat Enterprise Linux 8.0 Beta

Measuring Disk Performance with Bonnie++ Application Benchmarks httperf: A Load Generator for HTTP Servers Another Application Benchmark: POV-Ray

Björn Döbel. Microkernel-Based Operating Systems. Exercise 3: Virtualization

CST8177 Linux II. Linux Boot Process

Xen VGA passthrough. 1.1 VGA passthrough. 1 Introduction. 2 Xen architecture. 2.1 Structure

Linux Install Guide SOFTWARE VERSION 1.10

Transcription:

Building and Installing Xen 4.x and Linux Kernel 3.x on Fedora 19 Linux Version 1.3 Author: Teo En Ming (Zhang Enming) Website #1: http://www.teo-en-ming.com Website #2: http://www.zhang-enming.com Email #1: teo.en.ming@gmail.com Email #2: teo-en-ming@teo-en-ming.com Email #3: teo-en-ming@zhang-enming.com Mobile Phone(s): +65-8369-2618 / +65-9117-5902 / +65-9465-2119 Country: Singapore Date: 11 August 2013 Sunday 2:39 A.M. Singapore Time 1 Downloading the Linux Kernel wget https://www.kernel.org/pub/linux/kernel/v3.x/linux-3.10.5.tar.xz tar xfvj linux-3.10.5.tar.xz cd linux-3.10.5 2 Configuring the Linux Kernel cp /boot/config-3.9.5-301.fc19.x86_64.config make oldconfig Accept the defaults for new kernel configuration options by pressing enter. make menuconfig ***Starting with Linux kernel 3.10.0, you have to make sure that the following options are compiled in before Xen options will appear. Processor type and features ---> [*] Linux guest support ---> [*] Enable paravirtualization code [*] Xen guest support nano.config Page 1 of 7

3 Configuring the Kernel for dom0 Support NOTE: Xen dom0 support depends on ACPI support. Make sure you enable ACPI support or you won't see Dom0 options at all. In addition to the config options above you also need to enable: CONFIG_X86_IO_APIC=y CONFIG_ACPI=y CONFIG_ACPI_PROCFS=y (optional) CONFIG_XEN_DOM0=y CONFIG_PCI_XEN=y CONFIG_XEN_DEV_EVTCHN=y CONFIG_XENFS=y CONFIG_XEN_COMPAT_XENFS=y CONFIG_XEN_SYS_HYPERVISOR=y CONFIG_XEN_GNTDEV=y CONFIG_XEN_BACKEND=y CONFIG_XEN_NETDEV_BACKEND=m CONFIG_XEN_BLKDEV_BACKEND=m CONFIG_XEN_PCIDEV_BACKEND=m CONFIG_XEN_PRIVILEGED_GUEST=y CONFIG_XEN_BALLOON=y CONFIG_XEN_SCRUB_PAGES=y 4 Configuring the Kernel for domu Support 1. If building 32 bit kernel make sure you have CONFIG_X86_PAE enabled (which is set by selecting CONFIG_HIGHMEM64G) non-pae mode doesn't work in 2.6.25, and has been dropped altogether from 2.6.26 and newer kernel versions. 2. Enable these core options (Processor type and features Paravirtualized guest support] CONFIG_HYPERVISOR_GUEST=y (3.10+ only) CONFIG_PARAVIRT=y CONFIG_XEN=y CONFIG_PARAVIRT_GUEST=y CONFIG_PARAVIRT_SPINLOCKS=y 3. And Xen pv console device support (Device Drivers Character devices CONFIG_HVC_DRIVER=y CONFIG_HVC_XEN=y 4. And Xen disk and network support (Device Drivers Block devices and Device Drivers Network device support) CONFIG_XEN_FBDEV_FRONTEND=y CONFIG_XEN_BLKDEV_FRONTEND=y CONFIG_XEN_NETDEV_FRONTEND=y 5. And the rest (Device Drivers Xen driver support) CONFIG_XEN_PCIDEV_FRONTEND=y CONFIG_INPUT_XEN_KBDDEV_FRONTEND=y Page 2 of 7

CONFIG_XEN_FBDEV_FRONTEND=y CONFIG_XEN_XENBUS_FRONTEND=y CONFIG_XEN_SAVE_RESTORE=y CONFIG_XEN_GRANT_DEV_ALLOC=m 6. And for tmem support: CONFIG_XEN_TMEM=y CONFIG_CLEANCACHE=y CONFIG_FRONTSWAP=y CONFIG_XEN_SELFBALLOONING=y grep -i xen.config 5 Compiling the Linux Kernel make all -j <2*number_of_cores> 6 Installing the Linux Kernel make binrpm-pkg cd /home/teo-en-ming/rpmbuild/rpms/x86_64 sudo rpm -ivh kernel-3.10.5-2.x86_64.rpm sudo mkinitrd -f /boot/initrd-3.10.5.img 3.10.5 sudo dracut -f /boot/initrd-3.10.5.img 3.10.5 7 Installing mercurial sudo yum install mercurial 8 Downloading Xen 4.4-unstable cd hg clone -r 27305 http://xenbits.xen.org/hg/xen-unstable.hg xen-unstable.hg-cs27305 9 Installing Prerequisite Software sudo yum groupinstall "Development Libraries" "Development Tools" sudo yum install transfig wget tar less texi2html libaio-devel dev86 glibc-devel e2fsprogs-devel gitk mkinitrd iasl xz-devel bzip2-devel sudo yum install pciutils-libs pciutils-devel SDL-devel libx11-devel gtk2-devel bridge-utils PyXML qemu-common qemu-img mercurial texinfo sudo yum install libidn-devel yajl yajl-devel ocaml ocaml-findlib ocaml-findlib-devel python-devel uuid-devel libuuid-devel openssl-devel sudo yum install glibc-devel.i686 Page 3 of 7

10 Building and Installing Xen 4.4-unstable cd xen-unstable.hg-cs27305./configure --prefix=/usr make dist sudo make install 11 Turning On Xen Services sudo chkconfig xencommons on sudo chkconfig xendomains on sudo chkconfig xen-watchdog on 12 /etc/grub.d/40_custom sudo nano /etc/grub.d/40_custom menuentry 'Fedora 19 with Xen 4.4-unstable and 3.10.5' --class gnu-linux --class gnu --class os { insmod part_msdos insmod ext2 set root='hd0,msdos1' search --no-floppy --fs-uuid --set=root 7f255d3c-6d45-4401-bd83-b2f5a5b8949b multiboot /xen.gz placeholder dom0_mem=1024m iommu=1 loglvl=all guest_loglvl=all unrestricted_guest=1 msi=1 module /vmlinuz-3.10.5 placeholder root=/dev/mapper/fedora-root ro quiet xenpciback.hide=(00:02.0)(00:03.0)(00:14.0)(00:1a.0)(00:1b.0)(00:1d.0) xen-pciback.permissive module /initrd-3.10.5.img } su -c 'grub2-mkconfig -o /boot/grub2/grub.cfg' 13 Executing ldconfig sudo ldconfig 14 Starting Xen Services sudo service xencommons start sudo service xendomains start sudo service xen-watchdog start Page 4 of 7

15 Installing Virtual Machine Manager sudo yum install virt-manager To start the libvirtd service, sudo systemctl start libvirtd.service To start the libvirtd service automatically at boot time, sudo systemctl enable libvirtd.service Installing libvirt will create a network bridge virbr0. sudo yum install libvirt 16 Blacklist Kernel Modules sudo nano /lib/modprobe.d/dist-blacklist.conf blacklist i915 blacklist nouveau blacklist snd_hda_intel Rebuild the initial ramdisk. cd /boot sudo mv initrd-3.10.5.img initrd-3.10.5.img.backup sudo dracut -f /boot/initrd-3.10.5.img 3.10.5 Turn off gdm. sudo systemctl disable gdm.service systemctl list-unit-files grep gdm gdm.service disabled Page 5 of 7

17 XL Domain Configuration File for Windows 7 Ultimate 64-bit HVM domu # XL domain configuration file for Windows 7 Ultimate HVM domu # Please refer to "man xl.cfg" for further explanations. # See also docs/misc/xl-network-configuration.markdown and # docs/misc/xl-disk-configuration.txt # Written by Teo En Ming (Zhang Enming) # Email: teo.en.ming@gmail.com # Mobile Phone: +65-9117-5902 # Country: Singapore # Date: 18 July 2013 Sun device_model_override= '/usr/lib/xen/bin/qemu-dm' device_model_version="qemu-xen-traditional" name="windows7" builder="hvm" vcpus=4 memory=1024 on_poweroff="destroy" on_reboot="restart" on_crash="destroy" disk=[ 'format=raw, vdev=hda, access=rw, target=/etc/xen/images/windows7.img', 'format=raw, vdev=hdc, access=ro, devtype=cdrom, target=/home/teo-en-ming/windows7ultimate.iso' ] vif=[ 'bridge=virbr0,type=ioemu,model=e1000' ] #boot=[c d n] #Selects the emulated virtual device to boot from. Options are hard disk (c), cd-rom (d) or network/pxe (n). #Multiple options can be given and will be attempted in the order they are given. e.g. to boot from cd-rom #but fallback to the hard disk you can give dc. The default is cd. boot="dc" acpi=1 apic=1 xen_platform_pci=1 viridian=1 #stdvga=0 vnc=1 vnclisten="0.0.0.0" vncdisplay=0 vncunused=1 vncpasswd="" sdl=0 usb=1 usbdevice="tablet" # Enable Xen VGA Passthrough gfx_passthru=1 # VGA Passthrough Gigabyte Geforce GTX 560 1 GB GDDR5 PCI Express x16 VGA card. #pci = [ '01:00.0','01:00.1','00:1b.0','00:1a.0','00:1a.1','00:1a.2','00:1a.7','00:1d.0','00:1d.1','00:1d.2','00:1d.7' ] # PCI Passthrough Intel HD Audio Controller. #pci = [ '00:1b.0' ] # PCI Passthrough all the USB Controllers. # pci = [ '00:1a.0','00:1a.1','00:1a.2','00:1a.7','00:1d.0','00:1d.1','00:1d.2','00:1d.7' ] # Passthrough Intel HD Graphics 4600, audio controllers and USB controllers pci = [ '00:02.0','00:03.0','00:14.0','00:1a.0','00:1b.0','00:1d.0' ] #pci = [ '00:02.0' ] # Passthrough Gigabyte Geforce GTX 560, audio controllers and USB controllers on Asrock B85M Pro4 LGA1150 Motherboard #pci = [ '01:00.0','01:00.1','00:1b.0','00:14.0','00:1a.0','00:1d.0' ] 18 /etc/default/grub sudo nano /etc/default/grub GRUB_TIMEOUT=100 sudo grub2-mkconfig -o /boot/grub2/grub.cfg Page 6 of 7

19 Opening Firewall Port for VNC Server sudo firewall-config In Current View:, select Permanent Configuration. Click on the public zone. Click on the Ports tab. Click Add. Port / Port Range: 5900 Protocol: tcp Then click on the Options menu. Click on Reload Firewalld. Page 7 of 7