- Page 1 and 2: Running Xen: A Hands-On Guide to th
- Page 3 and 4: Working with Prebuilt Guest Images
- Page 5 and 6: Copyright Many of the designations
- Page 7 and 8: Dedication This book is dedicated t
- Page 9 and 10: Preface We began using Xen in the f
- Page 11 and 12: Acknowledgments We are indebted to
- Page 13 and 14: About the Authors Jeanna Matthews i
- Page 15 and 16: Chapter 1. Xen—Background and Vir
- Page 17 and 18: oot or administrative access, make
- Page 19 and 20: Virtual machine monitors also provi
- Page 21 and 22: Types of Virtualization Many techni
- Page 23 and 24: For x86, virtualization systems are
- Page 25 and 26: A fourth technique is operating sys
- Page 27 and 28: Type Description the same Advantage
- Page 29 and 30: Virtualization Heritage Virtualizat
- Page 31 and 32: During late 2004, Xen 2.0 came on t
- Page 33 and 34: VMware— Founded in 1998, was the
- Page 35 and 36: elevant results for a single VPS. O
- Page 37 and 38: Summary In this chapter we introduc
- Page 39: Chapter 2. A Quick Tour with the Xe
- Page 44 and 45: Step 2: Choosing a Domain0 Image fr
- Page 46 and 47: Figure 2.3. The desktop automatical
- Page 48 and 49: Step 4: Creating Guests You can fol
- Page 50 and 51: INIT: Entering runlevel: 3 Starting
- Page 52 and 53: Step 5: Deleting a Guest If you cre
- Page 54 and 55: Figure 2.7. VNC session showing the
- Page 56 and 57: Figure 2.9. All three of our virtua
- Page 58 and 59: Step 7: Testing Your Networking Net
- Page 60 and 61: Note the IP address (prefixed with
- Page 62 and 63: Summary Now that you have experimen
- Page 64 and 65: Chapter 3. The Xen Hypervisor The X
- Page 66 and 67: Chapter 3. The Xen Hypervisor The X
- Page 68 and 69: A Privileged Position The hyperviso
- Page 70 and 71: Domain0 The hypervisor is not alone
- Page 72 and 73: Xen Boot Options The Xen hypervisor
- Page 74 and 75: Option Category Description Default
- Page 76 and 77: the scheduling policy easy. A numbe
- Page 78 and 79: Choosing an OS for Domain0 With har
- Page 80 and 81: [root@dom0]#xend status xend Logs x
- Page 82: Filename Often vif-bridge vif-route
- Page 85 and 86: Entry uuid ssidref on_reboot on_pow
- Page 87 and 88: Entry target Description Target mem
- Page 89 and 90: Summary In this chapter, we discuss
- Page 91 and 92:
Chapter 4. Hardware Requirements an
- Page 93 and 94:
Chapter 4. Hardware Requirements an
- Page 95 and 96:
Hardware Device Support and Recomme
- Page 97 and 98:
Memory Requirements Keep in mind th
- Page 99 and 100:
Choosing and Obtaining a Version of
- Page 101 and 102:
Commercial Support Solutions Citrix
- Page 103 and 104:
[View full size im Linux Distributi
- Page 105 and 106:
[View full size im The OpenSUSE boo
- Page 107 and 108:
Figure 4.6. Selecting all the packa
- Page 109 and 110:
--> Processing Dependency: xen-libs
- Page 111 and 112:
After you have rebooted the system,
- Page 113 and 114:
correct kernel and that you have a
- Page 115 and 116:
title Xen 3.0 (Dom0 Based on Linux
- Page 117 and 118:
After this file is configured and s
- Page 119 and 120:
[View full size im Finally, we use
- Page 121 and 122:
One exceptionally interesting featu
- Page 123 and 124:
Type Advantages Disadvantages Gento
- Page 125 and 126:
Note that you might be prompted wit
- Page 127 and 128:
References and Further Reading Xen
- Page 129 and 130:
Xen-compatible kernel (for paravirt
- Page 131 and 132:
Xen DomU guest images can also be i
- Page 133 and 134:
Chapter 5. Using Prebuilt Guest Ima
- Page 135 and 136:
entire physical disk such as hda or
- Page 137 and 138:
oot = '/dev/nfs' nfs_server = '2.3.
- Page 139 and 140:
Technically, it would be possible t
- Page 141 and 142:
Next, before we can download and pl
- Page 143 and 144:
configuration file is set up correc
- Page 145 and 146:
[root@dom0]# cp -r /lib/modules/`un
- Page 147 and 148:
The first step is to mount the preb
- Page 149 and 150:
Once unmounted, we are ready to boo
- Page 151 and 152:
We then type in a value for Free Sp
- Page 153 and 154:
fdisk We now use fdisk , a partitio
- Page 155 and 156:
We now have three partitions: /dev/
- Page 157 and 158:
In the fstab , we need to pay parti
- Page 159 and 160:
which were instances of the Openfil
- Page 161 and 162:
Summary In this chapter we looked a
- Page 163 and 164:
"Xen source browser: lomount." Xen.
- Page 165 and 166:
Code View: [root@dom0]# xm ERROR:
- Page 167 and 168:
Chapter 6. Managing Unprivileged Do
- Page 169 and 170:
Listing 6.6. Using xm help [root@do
- Page 171 and 172:
the memory variable, if not set oth
- Page 173 and 174:
[root@dom0]# xm list --long (domain
- Page 175 and 176:
In this section, we walk through so
- Page 177 and 178:
Guest Configuration Files In the pr
- Page 179 and 180:
Code View: [user@domU]$ cat /proc/c
- Page 181 and 182:
Diagnosing Problems with Guest Crea
- Page 183 and 184:
Listing 6.26. Incorrect Syntax of P
- Page 185 and 186:
[root@dom0]# xm create generic-gues
- Page 187 and 188:
Listing 6.39. Fixing /bin/sh to Lin
- Page 189 and 190:
Automatically Starting DomUs After
- Page 191 and 192:
Shutting Down Guest Domains After y
- Page 193 and 194:
The shutdown command returned in ab
- Page 195 and 196:
[root@dom0]# xm reboot generic-gues
- Page 197 and 198:
Pausing Domains In addition to comp
- Page 199 and 200:
Interacting with a Guest Nongraphic
- Page 201 and 202:
SSH offers an attractive option to
- Page 203 and 204:
In the previous section entitled "S
- Page 205 and 206:
Virtual Network Computing (VNC) use
- Page 207 and 208:
Virtual Frame Buffer and Integrated
- Page 209 and 210:
Freenx Freenx is similar to VNC but
- Page 211 and 212:
Summary This chapter covered the ba
- Page 213 and 214:
Chapter 7. Populating Guest Images
- Page 215 and 216:
the physical CD-ROM. Next, we selec
- Page 217 and 218:
vcpus=1 # HVM guest PAE support (de
- Page 219 and 220:
What would you like to use for the
- Page 221 and 222:
HVM population is in many ways the
- Page 223 and 224:
Figure 7.6. Clicking the Add button
- Page 225 and 226:
The Create a Virtual Machine window
- Page 227 and 228:
After clicking Connect, assuming th
- Page 229 and 230:
Figure 7.12. The Naming Your Virtua
- Page 231 and 232:
The Fedora and CentOS installation
- Page 233 and 234:
At this point, the operating system
- Page 235 and 236:
Listing 7.10. The xm create Command
- Page 237 and 238:
for tools, such as rpmstrap, rinse,
- Page 239 and 240:
[output omitted] [root@dom0]# mkdir
- Page 241 and 242:
[perl-cleaner output omitted] [root
- Page 243 and 244:
DOMI_DISK_SPARSE="yes" DOMI_XEN_CON
- Page 245 and 246:
### fedora-example: save yum cache
- Page 247 and 248:
We use the Debian Sarge Guest Templ
- Page 249 and 250:
After the installation has finished
- Page 251 and 252:
At the end of the boot process, a o
- Page 253 and 254:
You now have a functional Debian Sa
- Page 255 and 256:
Compile flags and options can be co
- Page 257 and 258:
Note The location of the hvmloader
- Page 259 and 260:
Listing 7.7 contains a sample guest
- Page 261 and 262:
# start in full screen (default=0 n
- Page 263 and 264:
Figure 7.4. Windows XP is running a
- Page 265 and 266:
Gentoo Linux. quickpkg is the packa
- Page 267 and 268:
Figure 7.7. The Create a Virtual Ma
- Page 269 and 270:
For all installation types, be sure
- Page 271 and 272:
To create a new guest, click the Ne
- Page 273 and 274:
You can choose from a Normal (physi
- Page 275 and 276:
After you click Finish, a Creating
- Page 277 and 278:
Note The details of a Fedora instal
- Page 279 and 280:
[root@dom0]# mkfs.ext3 -F /xen/imag
- Page 281 and 282:
For Gentoo, we cover two options. T
- Page 283 and 284:
Now comes an important part of usin
- Page 285 and 286:
[Bootup process output omitted] log
- Page 287 and 288:
###fedora-example: setup disk ###(s
- Page 289 and 290:
Clicking on the Install XenVM butto
- Page 291 and 292:
When you are happy with your settin
- Page 293 and 294:
After the guest starts automaticall
- Page 295 and 296:
You now can click on the Graphical
- Page 297 and 298:
Note The default window manager ins
- Page 299 and 300:
Guest Image Customization When maki
- Page 301 and 302:
proc /proc proc defaults 0 0 /dev/h
- Page 303 and 304:
to be used as a Xen guest. For read
- Page 305 and 306:
Summary This chapter showed various
- Page 307 and 308:
Timme, Falko. "The Perfect Xen 3.1.
- Page 309 and 310:
Using an LVM to store your Xen gues
- Page 311 and 312:
[root@dom0#] mkfs.ext3 /dev/xen_vg/
- Page 313 and 314:
Code View: [root@dom0]# umount /dev
- Page 315 and 316:
[root@dom0]# modprobe dm-snapshot [
- Page 317 and 318:
Using an LVM to store your Xen gues
- Page 319 and 320:
[root@dom0#] mkfs.ext3 /dev/xen_vg/
- Page 321 and 322:
Code View: [root@dom0]# umount /dev
- Page 323 and 324:
[root@dom0]# modprobe dm-snapshot [
- Page 325 and 326:
Alacritech and Qlogic). Server Setu
- Page 327 and 328:
Listing 8.20. iscsiadm Commands to
- Page 329 and 330:
[root@dom0]# vblade 1 1 eth0 /dev/s
- Page 331 and 332:
NFS Distributed file systems, such
- Page 333 and 334:
kernel = "/boot/vmlinuz-2.6.16-xen"
- Page 335 and 336:
[root@linux]# tar -czpf /linux-root
- Page 337 and 338:
Now, let's add the seek option to t
- Page 339 and 340:
oot@dom0# losetup -f /dev/loop1 roo
- Page 341 and 342:
[root@dom0]# modprobe dm-multipath
- Page 343 and 344:
[user@dom0]$ mkfs.ext3 -F guest_par
- Page 345 and 346:
with the loop option. Notice that i
- Page 347 and 348:
References and Further Reading "Acc
- Page 349 and 350:
Chapter 9. Device Virtualization an
- Page 351 and 352:
Chapter 9. Device Virtualization an
- Page 353 and 354:
Backends and Frontends The basic ar
- Page 355 and 356:
sector-size— Sector or block size
- Page 357 and 358:
event-channel— Event channel used
- Page 359 and 360:
To use this method of hiding the de
- Page 361 and 362:
If you have any trouble with this p
- Page 363 and 364:
contain only the operating system,
- Page 366 and 367:
Future Directions In this section,
- Page 368 and 369:
References and Further Reading Fras
- Page 370 and 371:
Chapter 10. Network Configuration C
- Page 372 and 373:
4. For each guest, determine the nu
- Page 374:
Bridging, Routing, and Network Addr
- Page 377 and 378:
In routing mode, the packets from g
- Page 379 and 380:
In Domain0, backend vif0.0 is calle
- Page 381 and 382:
The network scripts define and set
- Page 383 and 384:
Note Xen users definitely want to h
- Page 385 and 386:
(network-script network-bridge) (vi
- Page 387 and 388:
inet6 addr: fe80::fcff:ffff:feff:ff
- Page 389 and 390:
Code View: [user@DomU]# ifconfig -a
- Page 391 and 392:
[View full size image] Figure 10.7.
- Page 393 and 394:
network segment. The backend vifs o
- Page 395 and 396:
complicated than the bridging mode.
- Page 397 and 398:
vif0.0 vif0.1 vif0.2 vif0.3 vif1.0
- Page 399 and 400:
Code View: [user@Dom0]# route -n Ke
- Page 401 and 402:
Using one domain to serve a particu
- Page 403 and 404:
Listing 10.20. The Driver Domain NA
- Page 405 and 406:
Testing Results Testing whether Xen
- Page 407 and 408:
We can tell from the trace on the g
- Page 409 and 410:
Configuring Purely Virtual Network
- Page 411 and 412:
In OpenSUSE, set the value of SETUP
- Page 413 and 414:
1. Set up the virtual bridge by usi
- Page 415 and 416:
Assigning MAC Addresses to Virtual
- Page 417 and 418:
Assigning IP Addresses Unlike MAC a
- Page 419 and 420:
The backend vif and the frontend vi
- Page 421 and 422:
In the Xend configuration file, put
- Page 423 and 424:
Information Items Idx BE MAC Addr.
- Page 425 and 426:
vnet—Domain Virtual Network VPN (
- Page 427 and 428:
Suboption Arguments Description Non
- Page 429 and 430:
References and Further Reading "An
- Page 431 and 432:
Chapter 11. Securing a Xen System W
- Page 433 and 434:
Chapter 11. Securing a Xen System W
- Page 435 and 436:
Securing the Privileged Domain If t
- Page 437 and 438:
Listing 11.3. Netstat List of Activ
- Page 439 and 440:
Firewall and Network Monitors Xen's
- Page 441 and 442:
Listing 11.5. Adding iptable Rules
- Page 443 and 444:
they are required. To allow Xen rel
- Page 445 and 446:
Var 'lo_ADDRESS' defined, value len
- Page 447 and 448:
Mandatory Access Control with sHype
- Page 449 and 450:
All organizations are automatically
- Page 451 and 452:
SystemManagement CompetitorA C
- Page 453 and 454:
Listing 11.24. Domain Denied withou
- Page 455 and 456:
DomU Security After considering att
- Page 457 and 458:
Summary In this chapter, we saw how
- Page 459 and 460:
Chapter 12. Managing Guest Resource
- Page 461 and 462:
total_memory — The total amount o
- Page 463 and 464:
(XEN) 000000000009d400 - 0000000000
- Page 465 and 466:
xentop displays a dynamic, changing
- Page 467 and 468:
Listing 12.8. An Example of xm upti
- Page 469 and 470:
The first four attributes displayed
- Page 471 and 472:
[root@dom0]# The error received whe
- Page 473 and 474:
ERROR messages are printed when som
- Page 475 and 476:
14— Number of network devices own
- Page 477 and 478:
Allocating Guest Memory Memory is o
- Page 479 and 480:
From the user's perspective, intera
- Page 481 and 482:
[root@dom0]# xm list Name ID Mem(Mi
- Page 483 and 484:
[root@dom0]# xm mem-max generic-gue
- Page 485 and 486:
Figure 12.3. Logical CPU numbering
- Page 487:
[root@dom0]#xm vcpu-set generic-gue
- Page 490 and 491:
settings for each guest, if a guest
- Page 492 and 493:
Choosing a Guest IO Scheduler There
- Page 494 and 495:
the sort of operations you will be
- Page 496 and 497:
References and Further Reading Arch
- Page 498 and 499:
Chapter 13. Guest Save, Restore, an
- Page 500 and 501:
xm save Saving a guest VM's state f
- Page 502 and 503:
xm restore Restoring a guest domain
- Page 504 and 505:
[root@dom0]# xm restore TestGuest.c
- Page 506 and 507:
its destination host after its stat
- Page 508 and 509:
the act of seamlessly moving its ex
- Page 510 and 511:
contents of memory and consistently
- Page 512 and 513:
trusted network. It is important to
- Page 514 and 515:
cause undesirable effects such as i
- Page 516 and 517:
Experience with xm migrate Xen's in
- Page 518 and 519:
TestGuest, residing on Domain0_Host
- Page 520 and 521:
[root@Other_Workstation ~]# ping Te
- Page 522 and 523:
Summary In this chapter, we explore
- Page 524 and 525:
Chapter 14. An Overview of Xen Ente
- Page 526 and 527:
Chapter 14. An Overview of Xen Ente
- Page 528 and 529:
Citrix XenServer Enterprise, Standa
- Page 530 and 531:
Virtual Iron Virtual Iron is anothe
- Page 532 and 533:
IBM Virtualization Manager An alter
- Page 534 and 535:
Figure 14.4 and Figure 14.5 illustr
- Page 536 and 537:
virt-manager Another popular tool f
- Page 538 and 539:
[root@dom0]# gunzip -c virt-manager
- Page 540 and 541:
available to this XenMan instance.
- Page 542 and 543:
XenMan allows you all the same opti
- Page 544 and 545:
Managing Multiple Systems Individua
- Page 546 and 547:
References and Further Reading "Cit
- Page 548 and 549:
Appendix A. Resources Xen is still
- Page 550 and 551:
XenWiki.
- Page 553 and 554:
Xen Summits If you are interested i
- Page 555 and 556:
Figure A.7. If you just want to rea
- Page 557 and 558:
Distribution-Specific Resources Dep
- Page 559 and 560:
Subcommand Options Description xm d
- Page 561 and 562:
Subcommand Options Description xm m
- Page 563 and 564:
Subcommand Options Description xm i
- Page 565 and 566:
Parameters Default Value Descriptio
- Page 567 and 568:
Parameter Format cpus="integer, ...
- Page 569 and 570:
The only significant difference in
- Page 571 and 572:
Figure E.3 reports our results for
- Page 573 and 574:
Figure E.6. The performance results
- Page 575 and 576:
Appendix E. Xen Performance Evaluat
- Page 577 and 578:
[View full size image] Finally, we
- Page 579 and 580:
Figure E.5. The same results on the
- Page 581 and 582:
In Figure E.8, we add measurements
- Page 583 and 584:
In these experiments, their perform
- Page 585 and 586:
Experiment Pinging Domain Pinged Do
- Page 587 and 588:
Summary In this appendix, we collec
- Page 589 and 590:
Index [A] [B] [C] [D] [E] [F] [G] [
- Page 591 and 592:
Index [A] [B] [C] [D] [E] [F] [G] [
- Page 593 and 594:
Index [A] [B] [C] [D] [E] [F] [G] [
- Page 595 and 596:
logfile option loglevel option netw
- Page 597 and 598:
Index [A] [B] [C] [D] [E] [F] [G] [
- Page 599 and 600:
definition GRUB (Grand Unified Boot
- Page 601 and 602:
Index [A] [B] [C] [D] [E] [F] [G] [
- Page 603 and 604:
Index [A] [B] [C] [D] [E] [F] [G] [
- Page 605 and 606:
Index [A] [B] [C] [D] [E] [F] [G] [
- Page 607 and 608:
xm console command number of operat
- Page 609 and 610:
oot process [See boot process.] cap
- Page 611 and 612:
IOMMU (I/O Memory Management Unit)
- Page 613 and 614:
Index [A] [B] [C] [D] [E] [F] [G] [
- Page 615 and 616:
system image contents TCP (Transmis
- Page 617 and 618:
Index [A] [B] [C] [D] [E] [F] [G] [
- Page 619 and 620:
Index [A] [B] [C] [D] [E] [F] [G] [
- Page 621 and 622:
configuration example guest NFS par
- Page 623 and 624:
Index [A] [B] [C] [D] [E] [F] [G] [
- Page 625 and 626:
external Xen compatible kernels mou
- Page 627 and 628:
Index [A] [B] [C] [D] [E] [F] [G] [
- Page 629 and 630:
Xen Summit meetings XenWiki resourc
- Page 631 and 632:
overview privileges, listing inform
- Page 633 and 634:
SXP format Symposium on Operating S
- Page 635 and 636:
Index [A] [B] [C] [D] [E] [F] [G] [
- Page 637 and 638:
virtual block devices (VBDs) virtua
- Page 639 and 640:
vnet-list option xm command xm vnet
- Page 641 and 642:
Index [A] [B] [C] [D] [E] [F] [G] [
- Page 643 and 644:
XenServer Express Edition XenSource
- Page 645 and 646:
Index [A] [B] [C] [D] [E] [F] [G] [