This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
virtualization:xen_virtualization [2012/08/02 20:16] gcooper |
virtualization:xen_virtualization [2017/01/25 12:06] gcooper |
||
---|---|---|---|
Line 5: | Line 5: | ||
http:// | http:// | ||
- | Comparison - http://www.xensource.com/products/ | + | http://www.xen.org/products/cloudxen.html |
- | Support - http:// | + | ===== Xen Overview ===== |
- | Getting Started User Guide - http://www.xensource.com/ | + | http://wiki.xensource.com/ |
- | Wiki - http:// | + | Xen can run two types of Virtual Machines: |
- | Mail Lists - http://lists.xensource.com/ | + | * Paravirtualized |
+ | * No special hardware support required | ||
+ | * Requires VM be modified | ||
+ | * Generally only for Linux VMs | ||
+ | * Offers top performance | ||
+ | * HVM fully virtualized | ||
+ | * Requires hardware support by the mainboard, BIOS and CPU | ||
+ | * http://en.wikipedia.org/wiki/ | ||
+ | * Provides full virtualization of hardware including the BIOS | ||
- | [[XenServer]] - http:// | + | ===== Generic Xen ===== |
- | 2 sockets | + | http:// |
- | 4GB RAM | + | |
- | Manage single server at a time | + | |
- | Free | + | |
- | **CPU Support** | + | Generic Xen is managed using the " |
+ | There are also various other management consoles or tools for managing Xen: | ||
+ | |||
+ | http:// | ||
+ | |||
+ | ===== Xen Cloud Platform ===== | ||
+ | |||
+ | http:// | ||
+ | |||
+ | XCP is a free open-source bare-metal type 1 hypervisor originally based on XenServer. | ||
+ | |||
+ | http:// | ||
+ | |||
+ | XCP is managed using " | ||
+ | |||
+ | ===== XenServer ===== | ||
+ | |||
+ | http:// | ||
+ | |||
+ | [[virtualization: | ||
+ | |||
+ | XenServer is managed via a Windows application, | ||
+ | |||
+ | ===== Required CPU Support ===== | ||
+ | |||
+ | Xen requires hardware | ||
< | < | ||
egrep ' | egrep ' | ||
Line 34: | 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]]****[[ | + | ==== Ubuntu Server 8.04 ==== |
http:// | http:// | ||
Line 41: | Line 71: | ||
Create and install into a 10GB partition for Dom0 | Create and install into a 10GB partition for Dom0 | ||
+ | |||
+ | < | ||
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 |
+ | </ | ||
+ | |||
+ | < | ||
vi / | vi / | ||
- | loop max_loop=64 | + | |
+ | loop max_loop=64 | ||
+ | </ | ||
+ | |||
+ | < | ||
uname -a | uname -a | ||
xm list | xm list | ||
+ | </ | ||
- | **Centos 5.1** | + | ==== Centos 5.1 ==== |
- | [[Minimal Server Install | + | [[computing: |
- | 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 | + | |
- | 2.5. Create and install into a 10GB partition for Dom0 | + | |
- | 3. Proceed normally with the installation until it asks which packages to install | + | |
- | 4. Deselect all of the packages and then click on the " | + | |
- | 5. Hold down the " | + | |
- | 6. Finish the install | + | |
- | 7. Do a "yum update" | + | |
- | 8. Do a "yum install < | + | |
- | DomU | + | === DomU === |
Use separate disk partition | Use separate disk partition | ||
+ | < | ||
mkfs.ext3 /dev/sdxn | mkfs.ext3 /dev/sdxn | ||
+ | </ | ||
- | **Ubuntu Guest** | + | === Ubuntu Guest === |
+ | < | ||
mount /dev/sdxn /mnt | mount /dev/sdxn /mnt | ||
Line 77: | 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 / | + | chroot /mnt /bin/bash |
+ | </ | ||
- | 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 | + | |
+ | < | ||
cp / | cp / | ||
cp / | cp / | ||
Line 87: | Line 131: | ||
cp / | cp / | ||
cp -R / | cp -R / | ||
+ | </ | ||
- | Back int the original (chroot' | + | Back in the original (chroot' |
+ | < | ||
apt-get update | apt-get update | ||
apt-get upgrade | apt-get upgrade | ||
- | apt-get install vim [[ssh]] | + | apt-get install vim ssh |
+ | </ | ||
- | Edit the /etc/fstab file | + | Edit the '' |
- | / | + | |
+ | < | ||
+ | / | ||
+ | </ | ||
+ | |||
+ | < | ||
passwd | passwd | ||
exit #the chroot environment | exit #the chroot environment | ||
umount | umount | ||
+ | </ | ||
Create the Xen configuration file adjusting the IP addressing | Create the Xen configuration file adjusting the IP addressing | ||
- | vi / | + | < |
+ | vi / | ||
kernel | kernel | ||
Line 134: | Line 187: | ||
xm create / | xm create / | ||
- | xm list | + | xm list |
+ | </ | ||
**Centos Guest** | **Centos Guest** |