User Tools

Site Tools


virtualization:xen_virtualization

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
virtualization:xen_virtualization [2012/08/02 20:55]
gcooper
virtualization:xen_virtualization [2017/01/25 12:06]
gcooper
Line 47: Line 47:
 http://www.citrix.com/xenserver http://www.citrix.com/xenserver
  
-[[virtualization:citrix:xenserver|XenServer]] is a bare-metal type 1 hypevisor.  It is free but the license has to be renewed by Citrix and every year.+[[virtualization:xenserver:xenserver|XenServer]] is a bare-metal type 1 hypevisor.  It is free but the license has to be renewed by Citrix and every year.
  
 XenServer is managed via a Windows application, XenCenter, or using "xm" commandline tools. XenServer is managed via a Windows application, XenCenter, or using "xm" commandline tools.
Line 64: Line 64:
 Use hardware supports Intel VT or AMD SVM for fully virtualized guests (Windows). Use hardware supports Intel VT or AMD SVM for fully virtualized guests (Windows).
  
-**[[Ubuntu Server]]****[[ 8.04]]**+==== Ubuntu Server 8.04 ====
  
 http://www.howtoforge.com/high-performance-xen-on-ubuntu-8.04-amd64 http://www.howtoforge.com/high-performance-xen-on-ubuntu-8.04-amd64
Line 71: Line 71:
  
 Create and install into a 10GB partition for Dom0 Create and install into a 10GB partition for Dom0
 +
 +<file>
 apt-get update apt-get update
 apt-get upgrade apt-get upgrade
 apt-get install ubuntu-xen-server apt-get install ubuntu-xen-server
-apt-get install vim [[ssh]]-server+apt-get install vim openssh-server 
 +</file> 
 + 
 +<file>
 vi /etc/modules  vi /etc/modules 
- loop max_loop=64+ 
 +loop max_loop=64 
 +</file> 
 + 
 +<file>
 uname -a uname -a
 xm list xm list
 +</file>
  
-**Centos 5.1**+==== Centos 5.1 ====
  
-[[Minimal Server Install (Centos 5)]]+[[computing:linux:minimal_centos_install|Minimal Server Install - CentOS 5]]
  
-1. Boot to CD 1, the only CD needed +  - Boot to CD 1, the only CD needed 
-2. Enter "linux text" to get the text installation setup started +  Enter "linux text" to get the text installation setup started 
-2.5. Create and install into a 10GB partition for Dom0 +  Create and install into a 10GB partition for Dom0 
-3. Proceed normally with the installation until it asks which packages to install +  Proceed normally with the installation until it asks which packages to install 
-4. Deselect all of the packages and then click on the "customize package selection" check box +  Deselect all of the packages and then click on the "customize package selection" check box 
-5. Hold down the "-" key, which scrolls through all of the package options, and deselects them all +  Hold down the "-" key, which scrolls through all of the package options, and deselects them all 
-6. Finish the install +  Finish the install 
-7. Do a "yum update" +  Do a "yum update" 
-8. Do a "yum install <package>" for needed packages such as [[ssh]]-server+  Do a "yum install <package>" for needed packages such as [[ssh]]-server
  
-DomU+=== DomU ===
  
 Use separate disk partition Use separate disk partition
  
 +<file>
 mkfs.ext3 /dev/sdxn mkfs.ext3 /dev/sdxn
 +</file>
  
-**Ubuntu Guest**+=== Ubuntu Guest ===
  
 +<file>
 mount /dev/sdxn /mnt  mount /dev/sdxn /mnt 
  
Line 107: Line 120:
 mount --bind /dev /mnt/dev mount --bind /dev /mnt/dev
 mount proc /mnt/proc -t proc mount proc /mnt/proc -t proc
-chroot /mnt /bin/bash +chroot /mnt /bin/bash 
 +</file> 
  
-Open another terminal and copy some files to the new guest partition +Open another terminal and copy some files to the new guest partition.  You may need to create some folders first.
-You may need to create some folders first+
  
 +<file>
 cp /etc/resolv.conf /mnt/etc/resolv.conf cp /etc/resolv.conf /mnt/etc/resolv.conf
 cp /etc/network/interface /mnt/network/interface cp /etc/network/interface /mnt/network/interface
Line 117: Line 131:
 cp /etc/apt/source.list /mnt/etc/apt/sources.list cp /etc/apt/source.list /mnt/etc/apt/sources.list
 cp -R /lib/modules/2.6.24-17-xen/* /mnt/lib/modules/2.6.24-17-xen/ cp -R /lib/modules/2.6.24-17-xen/* /mnt/lib/modules/2.6.24-17-xen/
 +</file>
  
-Back int the original (chroot'ed) terminal+Back in the original (chroot'ed) terminal:
  
 +<file>
 apt-get update apt-get update
 apt-get upgrade apt-get upgrade
-apt-get install vim [[ssh]]+apt-get install vim ssh 
 +</file>
  
-Edit the /etc/fstab file +Edit the ''/etc/fstab'' file:
-/dev/hda1               /               ext3 defaults        1       2+
  
 +<file>
 +/dev/hda1               /               ext3 defaults        1  2
 +</file>
 +
 +<file>
 passwd passwd
 exit    #the chroot environment exit    #the chroot environment
 umount  /mnt/dev /mnt/proc /mnt umount  /mnt/dev /mnt/proc /mnt
 +</file>
  
 Create the Xen configuration file adjusting the IP addressing Create the Xen configuration file adjusting the IP addressing
  
-vi /etc/xen/domu1.cfg +<file> 
 +vi /etc/xen/domu1.cfg
  
 kernel      = '/boot/vmlinuz-2.6.24-17-xen' kernel      = '/boot/vmlinuz-2.6.24-17-xen'
Line 164: Line 187:
 xm create /etc/xen/domu1.cfg -c xm create /etc/xen/domu1.cfg -c
  
-xm list +xm list 
 +</file> 
  
 **Centos Guest** **Centos Guest**
virtualization/xen_virtualization.txt · Last modified: 2017/01/25 12:06 by gcooper