This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
Home Products Support Community News


RE: [Xen-users] Did anybody used 'remus' in Xen4.0.1?

To: "'Tiantian Liu'" <tiantianl@xxxxxxxxx>
Subject: RE: [Xen-users] Did anybody used 'remus' in Xen4.0.1?
From: "Walter Robert Ditzler" <ditwal001@xxxxxxxxx>
Date: Sat, 23 Jul 2011 16:27:29 +0200
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Sat, 23 Jul 2011 07:29:22 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:to:cc:references:in-reply-to:subject:date:message-id :mime-version:content-type:x-priority:x-msmail-priority:x-mailer :importance:thread-index:content-language :disposition-notification-to; bh=Gde+nhbCjvkr2hc56kt/8iQHNhcauKcEDV6pCsCFVoY=; b=oPg/TlWqjdWFgptXhm24ssAaSbDr6zpW7U0S3t9l/26ehn6pHBc0SBxq7wSzH3qRU3 +qQAyQ/iLVbONziwioOHgKDYlfiaQRzftzj9VNWtBvthovsWQtWHB3QIP5e39hg1HDEX chEZES9U1XDbH8uJQtIJKv5X33pAeTvzTNN/0=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
Importance: High
In-reply-to: <CAG_H7iu-kxGSm1t8Eh1J2fan5eFCVO7hoc5+TrpfeYM7Cc1Lrw@xxxxxxxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <CAG_H7iutbtwSaj70z=E=WW_UGavyt_MeRhS3S7rP2RX90T26sw@xxxxxxxxxxxxxx> <EF5B13EE-F4A6-4EAB-B2A8-383503AFCAFC@xxxxxxxxx> <CAG_H7iu-kxGSm1t8Eh1J2fan5eFCVO7hoc5+TrpfeYM7Cc1Lrw@xxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AQK0dSCyp1bKDifV0QCZaGmjNsa0mADXNhDSAWeX0z2TF6YpsA==



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 '')

(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_SHUTDOWN_ALL="--all --halt --wait"







rm -r /etc/default/grub

touch /etc/default/grub

nano /etc/default/grub




GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`









#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



exec tail -n +3 $0

menuentry "Xen Unstable / Debian Squeeze kernel" {

      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- dummy root=UUID=xxx ro quiet console=tty0 nomodeset

      echo 'Loading initial ramdisk ...'

        module (md/1)/boot/initrd.img-




chmod -x /etc/grub.d/20_linux_xen

chmod 755 /etc/grub.d/08_xen



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











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-,hdc:cdrom,r' ]


vfb         = [ 'vnc=1,vnclisten=,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

to build xen4.2?

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,, 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!



On 21 Jul 2011, at 16:16, Tiantian Liu <tiantianl@xxxxxxxxx> wrote:

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 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!



                                           Tiantian Liu


Xen-users mailing list


Xen-users mailing list
<Prev in Thread] Current Thread [Next in Thread>