hi,
my procedure for installing it on a debian squeeze amd64 box is like that.
2x250gb raid1 (md0,md1) > swap and /
2x2tb raid1 (md2) > lvm2
16gb ram
lvm group: vgmain
lvm sections: lv_server01, 100gb
thanks walter
aptitude install lsof mc ssh console-data git-core mercurial locales udev initramfs-tools
rm -r /etc/kernel-img.conf
touch /etc/kernel-img.conf
nano /etc/kernel-img.conf
***
do_symlinks = yes
relative_links = yes
do_bootloader = no
do_bootfloppy = no
do_initrd = yes
link_in_boot = no
***
aptitude update
dpkg-reconfigure locales
dpkg-reconfigure tzdata
dpkg-reconfigure console-data
aptitude update
aptitude safe-upgrade
apt-get clean
aptitude clean
# xen install
aptitude install gcc make uuid-dev libcurl4-openssl-dev flex gettext libncurses5-dev bin86 bcc iasl python-dev python texinfo texi2html pciutils-dev bison bzip2 checkinstall autoconf debhelper debconf-utils docbook-xml docbook-xsl dpatch xsltproc bridge-utils
cd /usr/src
hg clone http://xenbits.xensource.com/xen-unstable.hg xen-unstable
cd /usr/src/xen-unstable
make clean
make xen
make tools
make stubdom
make install-xen
make install-tools PYTHON_PREFIX_ARG=
make install-stubdom
rm -r /etc/xen/xend-config.sxp
touch /etc/xen/xend-config.sxp
nano /etc/xen/xend-config.sxp
***
# -*- sh -*-
#(logfile /var/log/xen/xend.log)
#(loglevel DEBUG)
#(xsm_module_name dummy)
#(xen-api-server ((unix)))
#(xend-http-server no)
#(xend-unix-server no)
#(xend-tcp-xmlrpc-server no)
#(xend-unix-xmlrpc-server yes)
(xend-relocation-server yes)
#(xend-relocation-ssl-server no)
#(xend-udev-event-server no)
#(xend-unix-path /var/lib/xend/xend-socket)
#(xend-tcp-xmlrpc-server-address 'localhost')
#(xend-tcp-xmlrpc-server-port 8006)
#(xend-tcp-xmlrpc-server-ssl-key-file xmlrpc.key)
#(xend-tcp-xmlrpc-server-ssl-cert-file xmlrpc.crt)
#(xend-port 8000)
(xend-relocation-port 8002)
#(xend-relocation-ssl-port 8003)
# xend-relocation-ssl-server is set.
#(xend-relocation-server-ssl-key-file xmlrpc.key)
#(xend-relocation-server-ssl-cert-file xmlrpc.crt)
#(xend-relocation-ssl no)
#(xend-address '')
#(xend-address localhost)
(xend-relocation-address '')
#(xend-relocation-hosts-allow '')
(xend-relocation-hosts-allow '^localhost$ ^localhost\\.localdomain$')
#(console-limit 1024)
(network-script 'network-bridge antispoof=yes')
(vif-script vif-bridge)
#(vif-script vif-route)
#(vif-script vif-nat)
(dom0-min-mem 256)
(enable-dom0-ballooning yes)
(total_available_memory 0)
(dom0-cpus 0)
#(enable-dump no)
#(external-migration-tool '')
(vnc-listen '0.0.0.0')
(vncpasswd '')
#(vnc-tls 1)
#(vnc-x509-cert-dir vnc)
#(vnc-x509-verify 1)
(keymap 'de-ch')
#(resource-label-change-script '')
#(qemu-dm-logrotate-count 10)
#(xend-domains-path /var/lib/xend/domains)
#(device-create-timeout 100)
#(pscsi-device-mask ('*'))
***
rm -r /etc/default/xendomains
touch /etc/default/xendomains
nano /etc/default/xendomains
***
XENDOMAINS_SYSRQ=""
XENDOMAINS_USLEEP=100000
XENDOMAINS_CREATE_USLEEP=5000000
XENDOMAINS_MIGRATE=""
XENDOMAINS_SAVE=/var/lib/xen/save
XENDOMAINS_SHUTDOWN="--halt --wait"
XENDOMAINS_SHUTDOWN_ALL="--all --halt --wait"
XENDOMAINS_RESTORE=false
XENDOMAINS_AUTO=/etc/xen/auto
XENDOMAINS_AUTO_ONLY=true
XENDOMAINS_STOP_MAXWAIT=500
***
rm -r /etc/default/grub
touch /etc/default/grub
nano /etc/default/grub
***
GRUB_DEFAULT=0
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet"
GRUB_CMDLINE_LINUX=""
#GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"
#GRUB_TERMINAL=console
#GRUB_GFXMODE=640x480
#GRUB_DISABLE_LINUX_UUID=true
#GRUB_DISABLE_LINUX_RECOVERY=true
GRUB_DISABLE_OS_PROBER=true
#GRUB_INIT_TUNE="480 440 1"
***
rm -r /etc/grub.d/08_xen
touch /etc/grub.d/08_xen
nano /etc/grub.d/08_xen
***
#!/bin/sh
exec tail -n +3 $0
menuentry "Xen Unstable / Debian Squeeze kernel 2.6.39.3" {
insmod ext2
insmod multiboot2
insmod lvm
insmod part_msdos
set root='(md/1)'
search --no-floppy --fs-uuid --set xxx
echo 'Loading multiboot kernel ...'
multiboot (md/1)/boot/xen.gz dummy dom0_mem=1024M
echo 'Loading initial kernel ...'
module (md/1)/boot/vmlinuz-2.6.39.3 dummy root=UUID=xxx ro quiet console=tty0 nomodeset
echo 'Loading initial ramdisk ...'
module (md/1)/boot/initrd.img-2.6.39.3
}
***
chmod -x /etc/grub.d/20_linux_xen
chmod 755 /etc/grub.d/08_xen
update-grub2
update-rc.d xencommons defaults 19 18
update-rc.d xend defaults 20 21
update-rc.d xendomains defaults 21 20
/etc/init.d/xencommons start
/etc/init.d/xend start
/etc/init.d/xendomains start
rm -r /etc/modules
touch /etc/modules
nano /etc/modules
***
loop max_loop=64
lp
rtc
xen-evtchn
xen-gntdev
xen-netback
xen-blkback
xenfs
blktap
***
rm -r /etc/xen/server01.cfg
touch /etc/xen/server01.cfg
nano /etc/xen/server01.cfg
***
name = 'server01'
kernel = 'hvmloader'
builder = 'hvm'
device_model = 'qemu-dm'
maxmem = 1024
memory = 1024
vcpus = 1
acpi = 1
apic = 1
vif = [ 'mac=02:00:c0:a8:00:10,bridge=xenbr0,script=vif-bridge' ]
disk = [ 'phy:/dev/vgmain/lv_server02,hda,w','file:/var/xen/debian-6.0.2.1-amd64-netinst.iso,hdc:cdrom,r' ]
vfb = [ 'vnc=1,vnclisten=0.0.0.0,vncunused=1,keymap=de-ch,vncviewer=1']
boot = 'cd'
usbdevice = 'tablet'
sdl = 0
stdvga = 1
serial = 'pty'
#ne2000 = "1"
on_poweroff = 'destroy'
on_reboot = 'restart'
on_crash = 'restart'
***
init 6
From: Tiantian Liu [mailto:tiantianl@xxxxxxxxx]
Sent: Samstag, 23. Juli 2011 15:46
To: ditwal001
Subject: Re: [Xen-users] Did anybody used 'remus' in Xen4.0.1?
Thanks for your promptly reply!
could you give me the address to download Xen 4.2?
Since I can not access internet in my office, could you give me some detail instructions
On Thu, Jul 21, 2011 at 10:56 PM, ditwal001 <ditwal001@xxxxxxxxx> wrote:
remus in 4.0.1, no chance, remus in 4.1.1, no chance.
i work now with 4.2 unsrable, 2.6.39.3, squeeze, hp dl320g5 and remus works pritty ok.
the only thing o am working on is drbd 8.4 with xen support, named protocol D. drbd does better disk sync!
Hello eveyone, did anybody built Xen4.1.1?
I am working on Xen4.0.1, I am planning to implement high avaliability by 'remus', which included in Xen4.0.1, among virtual machines.
But I met some problem, I show you my project step by setp:
I enabled Intel VT in BIOS setting, and built dom0 by Xen4.0.1, kernel 2.6.31.8 on CentOS5.5.
I created a Windows XP Guest OS.
//start a VM
# xm cr <vm.hvm>
//used remus created a backup machine on another physic machine
//I used 'xm list' checked the backup machine on another machine, its status is 'p'
# remus --no-net <VMID> <IP>
//destroy primary machine
# xm destroy <VMID>
at the same time, the backup VM's status transfered to 'r', but when I login the VM by vncviewer, I found the backup VM almost liked a zombie without any response and could not be operated!
Did anybody met this problem? How to addressed the problem?
Some persons told me that the Xen4.0.1 is not very stable about remus, they suggested me to use Xen4.2.1, but I cann't find Xen4.2.1. So I download Xen4.1.1 from Xen offical website.
Since I can not access internet in my office, so I should built Xen in an offline way! It is really a tough job!
Did anybody has experience about building Xen4.1.1 in an offline way? and give me some detail information about the process?
I would really pleasure if you could give some advices, thanks lot!
yours
Tiantian Liu