Stephen Liu
2008-Dec-02 13:47 UTC
[Xen-users] Re: Problem on slow keystroke response - guest on Xen box
--- Javier Barroso <javibarroso@gmail.com> wrote:> Hi Stephen (sorry, I should responsed to the list ...)Hi Javier, Never mind. I''m now replying your mail cc xen-user mailing list.> On Tue, Dec 2, 2008 at 9:36 AM, Stephen Liu <satimis@yahoo.com> > wrote: > > > Hi Javier, > > > > > > Thanks for your advice. > > > > > > --- Javier Barroso <javibarroso@gmail.com> wrote: > > > > > On Fri, Nov 28, 2008 at 2:32 AM, Stephen Liu <satimis@yahoo.com> > > > wrote: > > > > > > > Hi folks, > > > > > > > > > > > > Host - Debian Etch > > > > Guests - Debian Etch. > > > > > > > > > > > > Performed following steps to create duplicate guest, a mail > server. > > > > > > > > > > > > 1) > > > > # cp /etc/xen/guest-1.cfg /etc/xen/guest-2.cfg > > > > > > > > > > > > edit guest-2.cfg changing the settings of:- > > > > disk > [''file:/vserver/domains/guest-2_directory/disk.img,hda1,w'', > > > > ''file:/vserver/domains/guest-2_directory/swap.img,hda2,w''] > > > > > > I''d recomend lvm better than files for perfomance > > > > > > Could you please explain in more detail? Thanks. > > > In xen list commets it:http://lists.xensource.com/archives/cgi-bin/mesg.cgi?a=xen-users&i=ed123fa30807311235i747a62aamcfdada5860d1ea1c%40mail.gmail.com Thanks for your link. I have bonnie++ installed. To check disk image on my system whether; # mount /vserver/domains/image_directory/disk.img /media/test1 and then run; # bonnie++ -s 5808 -d /media/test1 -u root ??? (remark : file size should be double RAM for good results) Can I create LVM image on my system? If YES please advise how. TIA - snip -> > I don''t have those directories/file here. > > > > > > # find / -name udev -type d > > # find / -name rules.d -type d > > # locate z25_network_persistent > > > > All without printout. > > > > > > OS - Debian Etch > > > > > > > > 4) > > > > Restart guest-2 and login with new data. The new mail server, > > > guest-2, > > > > is working. > > > > > > > > > > > > But occasionally I found running both guest-1 and guest-2 > > > > simultaneously slow response to keystroke will occur on either > of > > > them. > > > > I have to sit back and wait. Please advise where shall I > check > > > and > > > > how to fix this problem? TIA > > > > > > Are they Only slow when you have both system up ? > > > > > > Not only slow on keystroke response but the mouse pointer seems > > vibrating not under control. After removing the mac address on the > > .cfg file problem gone. Each time on starting the guest a dynamic > mac > > address will be assigned. > > But if you write two macs diferents on cfg your machines should be > fine, > without a new dynamic mac every time. > > With udev (xen-tools won''t install it on etch) package installed: > # cat /etc/udev/rules.d/z25_persistent-net.rules > # This file was automatically generated by the > /lib/udev/write_net_rules > # program, probably run by the persistent-net-generator.rules rules > file. > # > # You can modify it, as long as you keep each rule on a single line. > # MAC addresses must be written in lowercase. > > SUBSYSTEM=="net", DRIVERS=="?*", ATTRS{address}=="00:16:3e:22:61:ce", > NAME="eth0"Installed udev on repo. # cat /etc/udev/rules.d/z25_persistent-net.rules # This file was automatically generated by the /lib/udev/write_net_rules # program, probably run by the persistent-net-generator.rules rules file. # # You can modify it, as long as you keep each rule on a single line. # MAC addresses must be written in lowercase. SUBSYSTEM=="net", DRIVERS=="?*", ATTRS{address}=="00:16:3e:64:8f:5e", NAME="eth0" Whether put 00:16:3e:64:8f:5e on /etc/xen/*.cfg file as; vif = [ ''ip=192.168.0.211'', ''00:16:3e:64:8f:5e'' ] ??? TIA B.R. Stephen L Send instant messages to your online friends http://uk.messenger.yahoo.com _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Stephen Liu
2008-Dec-03 06:55 UTC
Re: [Xen-users] Re: Problem on slow keystroke response - guest on Xen box
--- Stephen Liu <satimis@yahoo.com> wrote:> > --- Javier Barroso <javibarroso@gmail.com> wrote: > > > Hi Stephen (sorry, I should responsed to the list ...) > > > Hi Javier, > > > Never mind. I''m now replying your mail cc xen-user mailing list. > > > > On Tue, Dec 2, 2008 at 9:36 AM, Stephen Liu <satimis@yahoo.com> > > wrote: > > > > > Hi Javier, > > > > > > > > > Thanks for your advice. > > > > > > > > > --- Javier Barroso <javibarroso@gmail.com> wrote: > > > > > > > On Fri, Nov 28, 2008 at 2:32 AM, Stephen Liu > <satimis@yahoo.com> > > > > wrote: > > > > > > > > > Hi folks, > > > > > > > > > > > > > > > Host - Debian Etch > > > > > Guests - Debian Etch. > > > > > > > > > > > > > > > Performed following steps to create duplicate guest, a mail > > server. > > > > > > > > > > > > > > > 1) > > > > > # cp /etc/xen/guest-1.cfg /etc/xen/guest-2.cfg > > > > > > > > > > > > > > > edit guest-2.cfg changing the settings of:- > > > > > disk > > [''file:/vserver/domains/guest-2_directory/disk.img,hda1,w'', > > > > > ''file:/vserver/domains/guest-2_directory/swap.img,hda2,w''] > > > > > > > > I''d recomend lvm better than files for perfomance > > > > > > > > > Could you please explain in more detail? Thanks. > > > > > > In xen list commets it: > >http://lists.xensource.com/archives/cgi-bin/mesg.cgi?a=xen-users&i=ed123fa30807311235i747a62aamcfdada5860d1ea1c%40mail.gmail.com> > > Thanks for your link. I have bonnie++ installed. > > > To check disk image on my system whether; > > # mount /vserver/domains/image_directory/disk.img /media/test1 > > > and then run; > # bonnie++ -s 5808 -d /media/test1 -u root > ??? > > (remark : file size should be double RAM for good results) > > > Can I create LVM image on my system? If YES please advise how. TIA > > > - snip - > > > > > I don''t have those directories/file here. > > > > > > > > > # find / -name udev -type d > > > # find / -name rules.d -type d > > > # locate z25_network_persistent > > > > > > All without printout. > > > > > > > > > OS - Debian Etch > > > > > > > > > > > 4) > > > > > Restart guest-2 and login with new data. The new mail > server, > > > > guest-2, > > > > > is working. > > > > > > > > > > > > > > > But occasionally I found running both guest-1 and guest-2 > > > > > simultaneously slow response to keystroke will occur on > either > > of > > > > them. > > > > > I have to sit back and wait. Please advise where shall I > > check > > > > and > > > > > how to fix this problem? TIA > > > > > > > > Are they Only slow when you have both system up ? > > > > > > > > > Not only slow on keystroke response but the mouse pointer seems > > > vibrating not under control. After removing the mac address on > the > > > .cfg file problem gone. Each time on starting the guest a > dynamic > > mac > > > address will be assigned. > > > > But if you write two macs diferents on cfg your machines should be > > fine, > > without a new dynamic mac every time. > > > > With udev (xen-tools won''t install it on etch) package installed: > > # cat /etc/udev/rules.d/z25_persistent-net.rules > > # This file was automatically generated by the > > /lib/udev/write_net_rules > > # program, probably run by the persistent-net-generator.rules rules > > file. > > # > > # You can modify it, as long as you keep each rule on a single > line. > > # MAC addresses must be written in lowercase. > > > > SUBSYSTEM=="net", DRIVERS=="?*", > ATTRS{address}=="00:16:3e:22:61:ce", > > NAME="eth0" > > > Installed udev on repo. > > > # cat /etc/udev/rules.d/z25_persistent-net.rules > # This file was automatically generated by the > /lib/udev/write_net_rules > # program, probably run by the persistent-net-generator.rules rules > file. > # > # You can modify it, as long as you keep each rule on a single line. > # MAC addresses must be written in lowercase. > > SUBSYSTEM=="net", DRIVERS=="?*", ATTRS{address}=="00:16:3e:64:8f:5e", > NAME="eth0" > > > Whether put 00:16:3e:64:8f:5e on /etc/xen/*.cfg file as; > > vif = [ ''ip=192.168.0.211'', ''00:16:3e:64:8f:5e'' ] > ??? > > > TIA > > > B.R. > Stephen LHi Javier, Further to my late posting; After installing udev on next boot the guest was completely cut off from outside world. It can''t be ssh-connected remotely. After starting it with "xm console ....." it can''t ping the host, other guests and Internet. # /etc/init.d/networking restart Reconfiguring network interfaces...SIOCSIFADDR: No such device eth0: ERROR while getting interface flags: No such device SIOCSIFNETMASK: No such device eth0: ERROR while getting interface flags: No such device Failed to bring up eth0. # find /sys -iname *eth* /sys/class/net/eth5 /sys/devices/xen/vif-0/net:eth5 I was compelled to remove udev. # apt-get remove udev # rm -rf /etc/udev # rm /etc/init.d/udev # reboot Then it returns normal. I think the guests must run dynamic MAC address. B.R. Stephen L Send instant messages to your online friends http://uk.messenger.yahoo.com _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users