He has worked in Australia,
New Zealand, and US and for the past 10 years he has been involved in many
projects. Currently, he is a Consultant and Trainer in Poste Italiane, however, he
continuously supports the BlackSun Factory Tiger team. Stefano is preparing a book
on Network Admission Control framework, which is based on the experience he has
gained in the last two years. He participates actively on the security research field.
I would like to thank my wife Lorena for her love, support, and
patience. I would also like to thank my entire crew at BlackSun
Factory for their friendship, help, and the spirit that they put in the
hacking matter and in everyday life.
Table of Contents
Preface 1
Chapter 1: Introduction 5
What is Xen? 6
How Does it Work? 7
What Can I Do with It? 9
Xen Terminologies 10
Summary 10
Chapter 2: Running Xen 11
Installing Xen from Binary Packages 11
Time for Action??”Installing Xen with yum 12
Installing Xen from Source 16
Time for Action??”Compile Xen 17
Summary 26
Chapter 3: Creating Virtual Machines 27
A Plan for Creating Xen Domains 27
Physical Address Extension 28
Compiling a domU Kernel 30
Xen Domain Memory 32
Pygrub 32
Ubuntu Feisty 32
Time for Action??”Bootstrapping an Ubuntu System 33
NetBSD 40
Time for Action??”Install NetBSD 40
CentOS 44
Time for Action??”Using qemu to Create a CentOS Image 45
Table of Contents
[ ii ]
Slackware 49
Time for Action??”Utilize Xen Images from jailtime.org 49
Summary 51
Chapter 4: Managing Xen 53
Xen Domain Configuration Files 53
Xen Management User Interface??”xm 56
Time for Action??”Xen Manager 57
XenMan??” Installing and Running 64
Time for Action??”Install and Run XenMan 65
Virtual Machine Manager 68
Time for Action??”Running virt-manager 69
Summary 72
Chapter 5: Networking 73
Bridged Networking 74
Time for Action??”Using Bridged Networking 75
Routed Networking 79
Time for Action??”Using Routed Networking 80
Virtual Local Network with Network Address Translation 84
Time for Action??”Using VLAN with NAT 84
Summary 86
Chapter 6: Storage 87
Files 87
NFS 88
Time for Action??”Using NFS 88
Logical Volume Management 93
Time for Action??”Using LVM 94
Advanced Storage Options 98
Redundant Array of Independent/Inexpensive Drives 98
Global Network Block Device 99
Summary 99
Chapter 7: Encryption 101
Device Mapper-Based Encryption 101
Time for Action??”Encrypting Block Devices 102
Device Mapper-Based Encryption Using LUKS 107
Time for Action??”by Extending dm-crypt 107
Summary 111
Chapter 8: Migration 113
Migration Requirements 113
Saving and Restoring a Domain 114
Table of Contents
[ iii ]
Time for Action??”Migrate Domains on your Xen Server 114
Live Migration 116
Time for Action??”Relocation of an Active Running domain 116
Summary 122
Chapter 9: Xen Future 123
Index 129
Preface
This book covers Xen??”an open-source paravirtualization technology that provides a
platform for running multiple operating systems on one physical hardware resource,
while providing close to native performance.
Pages:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25