hello,everybody, i recently study on the remus,and install xen-4.2-unstable on cetos 5.5(x86_64),and the kernel version is 2.6.32.40. but i met a lot of problem,such as: 1)when using the configure "disk = [ 'tap2:remus:backup:9000|aio:imgpath,xvda,w' ]",after a few minutes,the vm looks just as dead and can NOT log in; 2)i install a centos hvm guest,and run the command "remus <domid>",error message is as follow: Disk is not replicated: tap:aio:/home/xen/tpl/hvm/base.img,xvda,w Segmentation fault 3)i install a centos pv guest,the configure file is as follows: name = "mailserver" memory = "512" disk = [ 'tap2:aio:/var/lib/xen/images/vmdisk.img,xvda,w', ] #disk = [ 'tap2:remus:192.168.226.201:9000|aio:/var/lib/xen/images/vmdisk.img,xvda,w', ] #disk = [ 'tap2:remus:server02:9000|aio:/var/lib/xen/images/vmdisk.img,xvda,w' ] #vif = [ 'bridge=xenbr0', ] #vif = [ "type=ioemu,bridge=eth0, mac=00:16:3e:38:9a:ff" ] #vif=[''] bootloader="/usr/bin/pygrub" vcpus=1 #on_reboot = 'destroy' #on_crash = 'destroy' on_reboot = 'restart' on_crash = 'restart' it can boot properly.but when run the command "remus <domid>",the error message is as follows: Disk is not replicated: tap:aio:/var/lib/xen/images/vmdisk.img,xvda,w WARNING: suspend event channel unavailable, falling back to slow xenstore signalling PROF: suspending at 1314608468.806815 PROF: resumed at 1314608468.828319 PROF: flushed memory at 1314608468.829534 PROF: suspending at 1314608469.022028 domain 9 not shut down xc: error: Suspend request failed: Internal error xc: error: Domain appears not to have suspended: Internal error PROF: resumed at 1314608469.035179 i really do not know what to do next and how to address this problem.could anybody tell me how to address them? What's more,could anybody tell me how to install xen that supports remus properly and how to install PV/HVM domains and the configure file in details ? I would really pleasure if you could give some advices, thanks lot! yours yunjie du _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Mon, Aug 29, 2011 at 05:18:21PM +0800, 350608693 wrote:> hello,everybody, > i recently study on the remus,and install xen-4.2-unstable on cetos > 5.5(x86_64),and the kernel version is 2.6.32.40.There''s a newer kernel already available for dom0, but dunno if that''ll help. Did you try the drbd backend for Remus? http://wiki.xensource.com/xenwiki/Remus I added CC to Shriram, maybe he can help.. -- Pasi> but i met a lot of problem,such as: > 1)when using the configure "disk = [ > ''tap2:remus:backup:9000|aio:imgpath,xvda,w'' ]",after a few minutes,the vm > looks just as dead and can NOT log in; > 2)i install a centos hvm guest,and run the command "remus <domid>",error > message is as follow: > Disk is not replicated: tap:aio:/home/xen/tpl/hvm/base.img,xvda,w > Segmentation fault > 3)i install a centos pv guest,the configure file is as follows: > name = "mailserver" > memory = "512" > disk = [ ''tap2:aio:/var/lib/xen/images/vmdisk.img,xvda,w'', ] > #disk = [ > ''tap2:remus:192.168.226.201:9000|aio:/var/lib/xen/images/vmdisk.img,xvda,w'', > ] > #disk = [ > ''tap2:remus:server02:9000|aio:/var/lib/xen/images/vmdisk.img,xvda,w'' ] > #vif = [ ''bridge=xenbr0'', ] > #vif = [ "type=ioemu,bridge=eth0, mac=00:16:3e:38:9a:ff" ] > #vif=[''''] > bootloader="/usr/bin/pygrub" > vcpus=1 > #on_reboot = ''destroy'' > #on_crash = ''destroy'' > on_reboot = ''restart'' > on_crash = ''restart'' > > it can boot properly.but when run the command "remus <domid>",the error > message is as follows: > Disk is not replicated: tap:aio:/var/lib/xen/images/vmdisk.img,xvda,w > WARNING: suspend event channel unavailable, falling back to slow xenstore > signalling > PROF: suspending at 1314608468.806815 > PROF: resumed at 1314608468.828319 > PROF: flushed memory at 1314608468.829534 > PROF: suspending at 1314608469.022028 > domain 9 not shut down > xc: error: Suspend request failed: Internal error > xc: error: Domain appears not to have suspended: Internal error > PROF: resumed at 1314608469.035179 > > > i really do not know what to do next and how to address this problem.could > anybody tell me how to address them? > What''s more,could anybody tell me how to install xen that supports remus > properly and how to install PV/HVM domains and the configure file in > details ? > > > I would really pleasure if you could give some advices, thanks lot! > > > > yours > > yunjie du> _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On 2011-08-29, at 10:33 PM, Pasi Kärkkäinen <pasik@iki.fi> wrote:> On Mon, Aug 29, 2011 at 05:18:21PM +0800, 350608693 wrote: >> hello,everybody, >> i recently study on the remus,and install xen-4.2-unstable on cetos >> 5.5(x86_64),and the kernel version is 2.6.32.40. > > There''s a newer kernel already available for dom0, but dunno if that''ll help. > > Did you try the drbd backend for Remus? > http://wiki.xensource.com/xenwiki/Remus > > I added CC to Shriram, maybe he can help.. > > -- Pasi > >> but i met a lot of problem,such as: >> 1)when using the configure "disk = [ >> ''tap2:remus:backup:9000|aio:imgpath,xvda,w'' ]",after a few minutes,the vm >> looks just as dead and can NOT log in;Are you sure that the problem is caused by the disk configuration ? Is imgpath same on both machines? More importantly, make sure that the disk is not on a shared storage>> 2)i install a centos hvm guest,and run the command "remus <domid>",error >> message is as follow: >> Disk is not replicated: tap:aio:/home/xen/tpl/hvm/base.img,xvda,wThis is a harmless error>> Segmentation faultThis is the actual issue. You ran Remus without specifying a backup host. You have enabled netbuffering but I don''t know if you installed appropriate modules. sch_plug IFB other netfilter modules. Checkout the wiki page that Pasi pointed to.>> 3)i install a centos pv guest,the configure file is as follows: >> name = "mailserver" >> memory = "512" >> disk = [ ''tap2:aio:/var/lib/xen/images/vmdisk.img,xvda,w'', ] >> #disk = [ >> ''tap2:remus:192.168.226.201:9000|aio:/var/lib/xen/images/vmdisk.img,xvda,w'', >> ] >> #disk = [ >> ''tap2:remus:server02:9000|aio:/var/lib/xen/images/vmdisk.img,xvda,w'' ] >> #vif = [ ''bridge=xenbr0'', ] >> #vif = [ "type=ioemu,bridge=eth0, mac=00:16:3e:38:9a:ff" ] >> #vif=[''''] >> bootloader="/usr/bin/pygrub" >> vcpus=1 >> #on_reboot = ''destroy'' >> #on_crash = ''destroy'' >> on_reboot = ''restart'' >> on_crash = ''restart'' >> >> it can boot properly.but when run the command "remus <domid>",the error >> message is as follows: >> Disk is not replicated: tap:aio:/var/lib/xen/images/vmdisk.img,xvda,w >> WARNING: suspend event channel unavailable, falling back to slow xenstore >> signalling >> PROF: suspending at 1314608468.806815 >> PROF: resumed at 1314608468.828319 >> PROF: flushed memory at 1314608468.829534 >> PROF: suspending at 1314608469.022028 >> domain 9 not shut down >> xc: error: Suspend request failed: Internal error >> xc: error: Domain appears not to have suspended: Internal error >> PROF: resumed at 1314608469.035179I am not sure what kind of kernel is running inside centos. It seems to support xenstore based suspend but something weird is happening.>> >> >> i really do not know what to do next and how to address this problem.could >> anybody tell me how to address them? >> What''s more,could anybody tell me how to install xen that supports remus >> properly and how to install PV/HVM domains and the configure file in >> details ? >>Try this wiki (one of Remus users created it) http://remusha.wikidot.com Also, in future, if you want to run remus on one system without disk replication and network buffering, try remus -i <interval> --no-net --blackhole domname>> >> I would really pleasure if you could give some advices, thanks lot! >> >> >> >> yours >> >> yunjie du > >> _______________________________________________ >> Xen-users mailing list >> Xen-users@lists.xensource.com >> http://lists.xensource.com/xen-users >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
hi,Shriram i install xen-4.2-unstable on squeeze(i386) according to http://remusha.wikidot.com/: 1)*install xen* #cd /usr/src #hg clone http://xenbits.xensource.com/xen-unstable.hg xen-unstable #cd xen-unstable #make clean #make xen tools #make install-xen #make install-tools PYTHON_PREFIX_ARG 2)*compile kernel 2.6.32.40* #cd /usr/src #git clone http://git.kernel.org/pub/scm/linux/kernel/git/jeremy/xen.git linux-2.6-xen #cd linux-2.6-xen #git reset --hard 2b494f184d3337d10d59226e3632af56ea66629a(必须的,将内核定在2.6.32.40) #wget http://remusha.wikidot.com/local--files/configuring-and-installing-remus/config-2.6.32.40-xen0-i386 #cp config-2.6.32.40-xen0-i386 .config #make menuconfig ARCH=i386 #make clean #make #make modules_install install #mkinitramfs -o /boot/initrd.img-2.6.32.40 2.6.32.40 3)*install xen-tools* #cd /usr/src #wget http://www.xen-tools.org/software/xen-tools/xen-tools-4.2.1.tar.gz #tar -xzvf xen-tools-4.2.1.tar.gz #cd /usr/src/xen-tools-4.2.1 #make clean #make install 4)*edit /etc/default/grub* # If you change this file, run ''update-grub'' afterwards to update # /boot/grub/grub.cfg. 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="" # Uncomment to enable BadRAM filtering, modify to suit your needs # This works with Linux (no patch required) and with any kernel that obtains # the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...) #GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef" # Uncomment to disable graphical terminal (grub-pc only) #GRUB_TERMINAL=console # The resolution used on graphical terminal # note that you can use only modes which your graphic card supports via VBE # you can see them in real GRUB with the command `vbeinfo'' #GRUB_GFXMODE=640x480 # Uncomment if you don''t want GRUB to pass "root=UUID=xxx" parameter to Linux #GRUB_DISABLE_LINUX_UUID=true # Uncomment to disable generation of recovery mode menu entries GRUB_DISABLE_LINUX_RECOVERY="true" # Uncomment to get a beep at grub start #GRUB_INIT_TUNE="480 440 1" # Disable OS prober to prevent virtual machines on logical volumes from appearing in the boot menu. GRUB_DISABLE_OS_PROBER="true" 5) *edit /etc/grub.d/08_xen* #!/bin/sh exec tail -n +3 $0 menuentry "Xen Unstable / Debian Squeeze kernel 2.6.32.40" { insmod part_msdos insmod ext2 set root=''(hd0,msdos1)'' search --no-floppy --fs-uuid --set 462d4924-f228-4721-a6ff-adc82d0f3c2b multiboot /boot/xen-4.2-unstable.gz dummy module /boot/vmlinuz-2.6.32.40 dummy root=UUID=462d4924-f228-4721-a6ff-adc82d0f3c2b ro quiet console=tty0 nomodeset module /boot/initrd.img-2.6.32.40 } the UUID is according to *blkid* command. 6)update grub #chmod -x /etc/grub.d/20_linux_xen #chmod 755 /etc/grub.d/08_xen #update-grub2 after reboot,xend boots proerly. i don''t install drbd. then i install a new centos 5.5(i386)HVM as usual,the VM config file is as follows: *kernel = "hvmloader" builder=''hvm'' memory = 1024 name = "centos-i386" vcpus=4 vif = [ ''type=ioemu, bridge=eth0,mac=00:16:3e:3a:7a:de'' ] pae = 1 acpi = 1 apic = 1 disk = [ ''tap2:aio:/home/xen/tpl/hvm/ubuntu.img,hda,w'', ''file:/home/xen/tpl/hvm/CentOS-5.5-i386-bin-DVD.iso,hdc:cdrom,r'' ] device_model = ''qemu-dm'' boot="cd" sdl = 0 vnc = 1 vnclisten = "0.0.0.0" stdvga = 0 serial = "pty"* after installation,i change the disk string to "disk = [ ''tap2:aio:/home/xen/tpl/hvm/centos.img,hda,w''] ",and then the CentOS HVM can boot successfully,the CentOS VM kernel is* 2.6.18-194.el5*. BUT these are some problems: 1)remus centos-i386 *Disk is not replicated: tap:aio:/home/xen/tpl/hvm/centos.img,hda,w tc qdisc add dev vif1.0 ingress Cannot find device "vif1.0" Traceback (most recent call last): File "/usr/bin/remus", line 219, in <module> run(cfg) File "/usr/bin/remus", line 125, in run bufs.append(BufferedNIC(vif)) File "/usr/local/lib/python2.6/dist-packages/xen/remus/device.py", line 326, in __init__ self.setup() File "/usr/local/lib/python2.6/dist-packages/xen/remus/device.py", line 358, in setup self.bufdev.install(self.vif) File "/usr/local/lib/python2.6/dist-packages/xen/remus/device.py", line 181, in install raise e xen.remus.util.PipeException: tc failed (errmsg: Cannot find device "vif1.0"): 1, Operation not permitted* 2)remus --no-net centos-i386 *Disk is not replicated: tap:aio:/home/xen/tpl/hvm/centos.img,hda,w Segmentation fault* 3)remus --no-net --blackhome centos-i386 *Segmentation fault* didn''t remus support CentOS HVM?but a try fedora/rhel/ubuntu/suse.....,the result is the same. so i think there is something wrong as i do,but i have not found it. any suggestions would be appreciated. best regards yous yunjiedu -- View this message in context: http://xen.1045712.n5.nabble.com/remus-problem-tp4745592p4917603.html Sent from the Xen - User mailing list archive at Nabble.com. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Wed, 2011-10-19 at 05:52 -0700, yunjiedu wrote:> hi,Shriram > i install xen-4.2-unstable on squeeze(i386) according to > http://remusha.wikidot.com/: > 1)*install xen* > #cd /usr/src > #hg clone http://xenbits.xensource.com/xen-unstable.hg xen-unstable > #cd xen-unstable > #make clean > #make xen tools > #make install-xen > #make install-tools PYTHON_PREFIX_ARGAs far as I know, the PYTHON_PREFIX_ARG statement is only for CentOS? Try without it?> 3)*install xen-tools* > #cd /usr/src > #wget http://www.xen-tools.org/software/xen-tools/xen-tools-4.2.1.tar.gz > #tar -xzvf xen-tools-4.2.1.tar.gz > #cd /usr/src/xen-tools-4.2.1 > #make clean > #make installWhy would you need to install the tools again? Last time I built (remus working) I did: hg clone http://xenbits.xensource.com/xen-unstable.hg cd xen-unstable.hg make -j2 xen make -j2 tools make -j2 stubdom make -j2 dist make install-xen make install-tools # I put in PYTHON_PREFIX_ARG as I''m using CentOS _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
> > 3)*install xen-tools* > > #cd /usr/src > > #wget http://www.xen-tools.org/software/xen-tools/xen-tools-4.2.1.tar.gz > > #tar -xzvf xen-tools-4.2.1.tar.gz > > #cd /usr/src/xen-tools-4.2.1 > > #make clean > > #make install > > Why would you need to install the tools again?Sorry, just realized I''m retarded and this is the tool package for all the added scripts and such. I don''t use them. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users