This shows you the differences between two versions of the page.
xenvirtualmachines [2015/09/05 21:17] ian |
xenvirtualmachines [2020/02/13 22:55] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | |||
- | ====== Xen Virtual Machines ====== | ||
- | |||
- | ====== Xen Server dom0 ====== | ||
- | You should create a partition a bit larger than the amount of ram allocated to domU guests. | ||
- | |||
- | < | ||
- | lvcreate --size 16.1g --name xen vg01 | ||
- | mkdir / | ||
- | </ | ||
- | |||
- | And add to /etc/fstab | ||
- | |||
- | < | ||
- | / | ||
- | </ | ||
- | |||
- | and mount | ||
- | |||
- | < | ||
- | mount / | ||
- | </ | ||
- | |||
- | ====== Xen Client domU using netboot ====== | ||
- | |||
- | This creates the LV with equal-sized stripes over a 2 drive Volume Group (Creates a raid0 LV for write performance). | ||
- | |||
- | < | ||
- | # lvcreate --size 10g -i 2 --name ubuntu14 vg01 | ||
- | Using default stripesize 64.00 KiB | ||
- | Logical volume ' | ||
- | </ | ||
- | |||
- | < | ||
- | mkdir / | ||
- | cd / | ||
- | wget -c http:// | ||
- | wget -c http:// | ||
- | </ | ||
- | |||
- | **/ | ||
- | |||
- | < | ||
- | name = ' | ||
- | |||
- | memory = 4000 | ||
- | vcpus = 4 | ||
- | |||
- | disk = [ ' | ||
- | vif = [ ' | ||
- | |||
- | kernel = '/ | ||
- | ramdisk = '/ | ||
- | extra = ' | ||
- | </ | ||
- | Start the installer: | ||
- | |||
- | < | ||
- | xm create -c ubuntu14.cfg | ||
- | </ | ||
- | After the install, revise the cfg file to comment out the local kernel/ | ||
- | |||
- | < | ||
- | ... | ||
- | #kernel = '/ | ||
- | #ramdisk = '/ | ||
- | #extra = ' | ||
- | bootloader = ' | ||
- | </ | ||