[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-users] Guest - slow response to keystroke.



Am Freitag, den 28.11.2008, 09:09 +0800 schrieb Stephen Liu:
> Hi folks,
> 
> 
> Host - Debian Etch
> Guests - Debian Etch.
> 
> 
> Performed following steps to create duplicate guest, a mail server.

i hope you stopped the server before copying...
> 
> 
> 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']
> 
> #  Hostname
> name = 'guest-2_hostname'
> 
> #  Networking
> vif = ['ip=guest-2_localIP, mac=00:16:3E:C2:AA:77']

did you alter the mac-address?

> 2)
> # mkdir /vserver/domains/guest-2_directory
> 
> # cp /vserver/domains/guest-1_directory/disk.img
> /vserver/domains/guest-2_directory/
> 
> # cp /vserver/domains/guest-1_directory/swap.img
> /vserver/domains/guest-2_directory/
> 
> 
> 3)
> Start guest-2 and login with password of guest-1
> 
> Edit /etc/hosts, /etc/hostname, /etc/network/interfaces, root_password,
> user_passwords, etc.

instead of this you could also loopback-mount in dom0

mount -o loop /vserver/domains/guest-2_directory/disk.img /mnt
chroot /mnt && do your stuff
exit && xm create xyz

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

sounds strange :)

>  I have to sit back and wait.  Please advise where shall I check and
> how to fix this problem?  TIA
> 
> 
> Besides, is there a better way to clone a guest on the same Xen box?

use lvm and snapshots.... i often prepare master-images in lvols and
each guest works on a snapshot of this. I love this CoW-Stuff :)


> 
> 
> B.R.
> Stephen L

Thomas


_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.