XEN Notes
Jump to navigation
Jump to search
Contents
1 limit memory consumtion for dom0
vi /etc/rc.local --- /usr/sbin/xm mem-set Domain-0 384M' ---
2 turn off dumping memory
turn off dumping memory to /var/lib/xen/save when stopping xendomains service
vi /etc/sysconfig/xendomains --- XENDOMAINS_MIGRATE="" XENDOMAINS_SAVE= ---
3 VM Config for Windows Machine
Xen VM config file for Windows with Mouse Support on Console
vi /etc/xen/auto/windows01
---
import os, re
arch = os.uname()[4]
if re.search('64', arch):
arch_libdir = 'lib64'
else:
arch_libdir = 'lib'
kernel = "/usr/lib/xen/boot/hvmloader"
builder='hvm'
memory = 384
shadow_memory = 8
name = "xen7"
acpi=0
vif = [ 'type=ioemu, mac=ab:00:01:00:00:07, bridge=xenbr0' ]
disk = [ 'phy:/dev/VG0/lv_win01,ioemu:hda,w' ]
on_poweroff = 'restart'
on_reboot = 'restart'
on_crash = 'restart'
device_model = '/usr/' + arch_libdir + '/xen/bin/qemu-dm'
boot="c"
sdl=1
vnc=1
stdvga=0
serial='pty'
usb=1
usbdevice='mouse'
4 XEND vnc settings
vi /etc/xen/xend-config.sxp --- (vnc-listen '0.0.0.0') (vncpasswd 'sekret!') (keymap 'de-ch')