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''] # Hostname name = ''guest-2_hostname'' # Networking vif = [''ip=guest-2_localIP, mac=00:16:3E:C2:AA:77''] 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. 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 Besides, is there a better way to clone a guest on the same Xen box? 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
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 LThomas _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Hi Thomas, Thanks for your advice. --- Thomas Halinka <lists@thohal.de> wrote:> 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?No, I did not make any change on MAC. I have been playing round on this practice sometimes to duplicate guest image. IIRC touching MAC resulting in other guests/host can''t ping this guest.> > 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 xyzWhether editing the data on chroot environment. On exiting a new disk.img will be created with all new data included? What about the swap.img?> > 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 still can''t explain. It happens occasionally. If only running the new guest or its master it never happens.> > 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.Could you please explain in more detail? Thanks. There is no partition on the Xen box using the entire HD.> I love this CoW-Stuff :)Whether you meant; Copy-on-write; http://en.wikipedia.org/wiki/Copy_on_write http://www.etherboot.org/wiki/cow Pointers would be appreciated. TIA B.R. Stephen 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
Hi Stephen,> Thanks for your advice. > > > --- Thomas Halinka <lists@thohal.de> wrote: > > > 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? > > > No, I did not make any change on MAC. I have been playing round on > this practice sometimes to duplicate guest image. IIRC touching MAC > resulting in other guests/host can''t ping this guest.so - guest01 and 02 have the same MAC-Adress? It is not a goog idea to have identical Mac-adresses.> > > > 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 > > > Whether editing the data on chroot environment. On exiting a new > disk.img will be created with all new data included? What about the > swap.img? > > > > > 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 still can''t explain. It happens occasionally. If only running the > new guest or its master it never happens. > > > > > > 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. > > > Could you please explain in more detail? Thanks. There is no > partition on the Xen box using the entire HD. > > > > I love this CoW-Stuff :) > > > Whether you meant; > > Copy-on-write; > http://en.wikipedia.org/wiki/Copy_on_write.... nd should not be used to replace backups. COW may also be used as the underlying mechanism for snapshots provided by logical volume management and Microsoft Volume Shadow Copy Service. The copy-on-write technique can be used to emulate a read-write storage on media that require wear levelling or are physically Write Once Read Many.> > http://www.etherboot.org/wiki/cowJust imagine you have lvm running. you create a new lvol mount it to /mnt eg. debootstrap xyz /mnt umount /mnt lvcreate -s creates a snapshot of this image, which is writeable. so you can assign this snapshot to your xen-guest.> > > Pointers would be appreciated. TIAhttp://tldp.org/HOWTO/LVM-HOWTO/> > > B.R. > StephenThomas _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Stephen Liu
2008-Nov-28 14:36 UTC
Re: [Xen-users] Guest - slow response to keystroke (SOLVED)
Hi Thomas,> so - guest01 and 02 have the same MAC-Adress? It is not a goog idea > to > have identical Mac-adresses.You''re right. I found my solution removing the MAC address. Now the problem disappears.> > > 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 > > > > > > Whether editing the data on chroot environment. On exiting a new > > disk.img will be created with all new data included? What about > the > > swap.img?Sorry I read your advice wrongly. Actually I need to duplicate both disk.img and swap.img. Instead of starting the guest just mount the disk.img and edit the files on chroot environment. One disadvantage, I can''t execute problem on chroot environment. E.G. after editing /et/hosts I can''t run /etc/init.d/hostname.sh to take effect. Nor to run; # hostname and # hostname -f to check the output. - snip -> > > I love this CoW-Stuff :) > > > > > > Whether you meant; > > > > Copy-on-write; > > http://en.wikipedia.org/wiki/Copy_on_write > > .... nd should not be used to replace backups. > > COW may also be used as the underlying mechanism for snapshots > provided > by logical volume management and Microsoft Volume Shadow Copy > Service. > > The copy-on-write technique can be used to emulate a read-write > storage > on media that require wear levelling or are physically Write Once > Read > Many.Noted with thanks.> Just imagine you have lvm running. > > you create a new lvol > mount it to /mnt eg. > debootstrap xyz /mnt > umount /mnt > > lvcreate -s creates a snapshot of this image, which is writeable. > so you can assign this snapshot to your xen-guest. > > > > > > > Pointers would be appreciated. TIA > > http://tldp.org/HOWTO/LVM-HOWTO/Thanks. I''ll test it on next Xen box. B.R. Stephen 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
Thomas Halinka
2008-Nov-28 14:46 UTC
Re: [Xen-users] Guest - slow response to keystroke (SOLVED)
Hi Stephen, Am Freitag, den 28.11.2008, 22:36 +0800 schrieb Stephen Liu:> Hi Thomas, > > > > so - guest01 and 02 have the same MAC-Adress? It is not a goog idea > > to > > have identical Mac-adresses. > > > You''re right. I found my solution removing the MAC address. Now the > problem disappears.Removing the mac-adress is not a good idea, since xen generates one on every domu-startup, if this is not defined. So you will increase your ethX on every domu-startup, because for udev its a new nic, since it has a new MAC-Adress. Please supply a Mac, but it _has_ to be unique!> > > B.R. > Stephen >hth, Thomas _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Stephen Liu
2008-Nov-28 15:46 UTC
Re: [Xen-users] Guest - slow response to keystroke (SOLVED)
Hi Thomas,> Removing the mac-adress is not a good idea, since xen generates one > on > every domu-startup, if this is not defined. > > So you will increase your ethX on every domu-startup, because for > udev > its a new nic, since it has a new MAC-Adress.I have 19 guests created on the Xen box. Most *.cfg file don''t have MAC-Address, only 2 of them having it. I checked them to confirm. So I just follow them. I have no idea how this happens.> Please supply a Mac, but it _has_ to be unique!What does it mean "it _has_ to be unique"? Please provide an example. 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
Joseph L. Casale
2008-Nov-28 15:53 UTC
RE: [Xen-users] Guest - slow response to keystroke (SOLVED)
>> Please supply a Mac, but it _has_ to be unique! > >What does it mean "it _has_ to be unique"? Please provide an example.You should take a moment to give a quick read on how tcp/ip actually works. The hardware address is like an ip address, they have to be unique. (that''s grossly oversimplified though...) http://en.wikipedia.org/wiki/MAC_address http://en.wikipedia.org/wiki/Tcp/ip _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Thomas Halinka
2008-Nov-28 15:55 UTC
Re: [Xen-users] Guest - slow response to keystroke (SOLVED)
Am Freitag, den 28.11.2008, 23:46 +0800 schrieb Stephen Liu:> Hi Thomas, > > > > Removing the mac-adress is not a good idea, since xen generates one > > on > > every domu-startup, if this is not defined. > > > > So you will increase your ethX on every domu-startup, because for > > udev > > its a new nic, since it has a new MAC-Adress. > > > I have 19 guests created on the Xen box. Most *.cfg file don''t have > MAC-Address, only 2 of them having it.ok, take one of this 17 guests, which has no mac assigned. xm console guestxyz e.g. shows eth0 with MAC-ADRESS_A xm shutdown guestxyz xm create guestxyz no more eth0 is present, since a new mac is assigned. ifconfig -a shows only eth1 xm shutdown xm create eth1 is gone, now you have eth2 because mac has changed. and so on....> I checked them to confirm. So > I just follow them. I have no idea how this happens. > > > > Please supply a Mac, but it _has_ to be unique! > > What does it mean "it _has_ to be unique"That in your entire Network, a MAC-Adress is only used once! the same with ip-adresses - they also have to be unique in a network - same for macs.> Please provide an example.its useless....> TIA. > > > B.R. > Stephen Lhth Thomas _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Stephen Liu
2008-Nov-29 03:52 UTC
Re: [Xen-users] Guest - slow response to keystroke (SOLVED)
--- Thomas Halinka <lists@thohal.de> wrote:> Am Freitag, den 28.11.2008, 23:46 +0800 schrieb Stephen Liu: > > Hi Thomas, > > > > > > > Removing the mac-adress is not a good idea, since xen generates > one > > > on > > > every domu-startup, if this is not defined. > > > > > > So you will increase your ethX on every domu-startup, because for > > > udev > > > its a new nic, since it has a new MAC-Adress. > > > > > > I have 19 guests created on the Xen box. Most *.cfg file don''t > have > > MAC-Address, only 2 of them having it. > > ok, take one of this 17 guests, which has no mac assigned. > > xm console guestxyz > e.g. shows eth0 with MAC-ADRESS_AHi Thomas, I know why only 2 guests have MAD address. The rest 17s don''t have it. Most times I ran ssh-connect the guests to do the job after having them created. In seldom occasion I ran "xm console ..." to connect guest. Thanks for your hint. I''ll come back to other points later. I''m not on the Xen box. B.R. Stephen> xm shutdown guestxyz > xm create guestxyz > no more eth0 is present, since a new mac is assigned. > ifconfig -a shows only eth1 > xm shutdown > xm create > eth1 is gone, now you have eth2 because mac has changed. > and so on.... > > > I checked them to confirm. So > > I just follow them. I have no idea how this happens. > > > > > > > Please supply a Mac, but it _has_ to be unique! > > > > What does it mean "it _has_ to be unique" > > That in your entire Network, a MAC-Adress is only used once! the same > with ip-adresses - they also have to be unique in a network - same > for > macs. > > > Please provide an example. > > its useless.... > > > TIA. > > > > > > B.R. > > Stephen L > > > hth > > Thomas > > > > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users >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-Nov-29 15:06 UTC
Re: [Xen-users] Guest - slow response to keystroke (SOLVED)
--- Thomas Halinka <lists@thohal.de> wrote:> Am Freitag, den 28.11.2008, 23:46 +0800 schrieb Stephen Liu: > > Hi Thomas, > > > > > > > Removing the mac-adress is not a good idea, since xen generates > one > > > on > > > every domu-startup, if this is not defined. > > > > > > So you will increase your ethX on every domu-startup, because for > > > udev > > > its a new nic, since it has a new MAC-Adress. > > > > > > I have 19 guests created on the Xen box. Most *.cfg file don''t > have > > MAC-Address, only 2 of them having it. > > ok, take one of this 17 guests, which has no mac assigned. > > xm console guestxyz > e.g. shows eth0 with MAC-ADRESS_A > xm shutdown guestxyz > xm create guestxyz > no more eth0 is present, since a new mac is assigned. > ifconfig -a shows only eth1 > xm shutdown > xm create > eth1 is gone, now you have eth2 because mac has changed. > and so on....Performed following steps; # xm create /etc/xen/xen1.satimis.com.cfg Using config file "/etc/xen/xen1.satimis.com.cfg". Started domain xen1.satimis.com # xm console xen1.satimis.com Linux version 2.6.18-xen (shand@endor) (gcc version 3.4.4 20050314 (prerelease) (Debian 3.4.3-13)) #1 SMP Fri May 18 16:11:33 BST 2007 BIOS-provided physical RAM map: Xen: 0000000000000000 - 0000000002800000 (usable) 0MB HIGHMEM available. 40MB LOWMEM available. ACPI in unprivileged domain disabled Allocating PCI resources starting at 10000000 (gap: 02800000:fd800000) Detected 2009.274 MHz processor. Built 1 zonelists. Total pages: 10240 Kernel command line: root=/dev/hda1 ro Enabling fast FPU save and restore... done. Enabling unmasked SIMD FPU exception support... done. Initializing CPU#0 PID hash table entries: 256 (order: 8, 1024 bytes) Xen reported: 2009.258 MHz processor. Console: colour dummy device 80x25 Dentry cache hash table entries: 8192 (order: 3, 32768 bytes) Inode-cache hash table entries: 4096 (order: 2, 16384 bytes) Software IO TLB disabled vmalloc area: c3000000-fb7fe000, maxmem 33ffe000 Memory: 28788k/40960k available (2075k kernel code, 3960k reserved, 738k data, 192k init, 0k highmem) Checking if this processor honours the WP bit even in supervisor mode... Ok. Calibrating delay using timer specific routine.. 4021.22 BogoMIPS (lpj=20106147) Security Framework v1.0.0 initialized Capability LSM initialized Mount-cache hash table entries: 512 CPU: L1 I Cache: 64K (64 bytes/line), D cache 64K (64 bytes/line) CPU: L2 Cache: 512K (64 bytes/line) Checking ''hlt'' instruction... OK. SMP alternatives: switching to UP code Freeing SMP alternatives: 12k freed Brought up 1 CPUs migration_cost=0 NET: Registered protocol family 16 Brought up 1 CPUs PCI: setting up Xen PCI frontend stub ACPI: Interpreter disabled. Linux Plug and Play Support v0.97 (c) Adam Belay pnp: PnP ACPI: disabled xen_mem: Initialising balloon driver. PCI: System does not support PCI PCI: System does not support PCI NET: Registered protocol family 2 IP route cache hash table entries: 512 (order: -1, 2048 bytes) TCP established hash table entries: 2048 (order: 2, 16384 bytes) TCP bind hash table entries: 1024 (order: 1, 8192 bytes) TCP: Hash tables configured (established 2048 bind 1024) TCP reno registered IA-32 Microcode Update Driver: v1.14a-xen <tigran@veritas.com> audit: initializing netlink socket (disabled) audit(1227969147.575:1): initialized VFS: Disk quotas dquot_6.5.1 Dquot-cache hash table entries: 1024 (order 0, 4096 bytes) Initializing Cryptographic API io scheduler noop registered io scheduler anticipatory registered io scheduler deadline registered io scheduler cfq registered (default) Floppy drive(s): fd0 is unknown type 15 (usb?), fd1 is unknown type 15 (usb?) Failed to obtain physical IRQ 6 floppy0: no floppy controllers found RAMDISK driver initialized: 16 RAM disks of 16384K size 1024 blocksize loop: loaded (max 8 devices) Xen virtual console successfully installed as tty1 Event-channel device installed. netfront: Initialising virtual ethernet driver. Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2 ide: Assuming 50MHz system bus speed for PIO modes; override with idebus=xx PNP: No PS/2 controller found. Probing ports directly. i8042.c: No controller found. mice: PS/2 mouse device common for all mice md: md driver 0.90.3 MAX_MD_DEVS=256, MD_SB_DISKS=27 md: bitmap version 4.39 NET: Registered protocol family 1 NET: Registered protocol family 17 Using IPI No-Shortcut mode netfront: device eth0 has copying receive path. xen-vbd: registered block device major 3 blkfront: hda1: barriers enabled blkfront: hda2: barriers enabled XENBUS: Device with no driver: device/console/0 md: Autodetecting RAID arrays. md: autorun ... md: ... autorun DONE. EXT2-fs warning (device hda1): ext2_fill_super: mounting ext3 filesystem as ext2 VFS: Mounted root (ext2 filesystem) readonly. Freeing unused kernel memory: 192k freed serial_core: no version for "struct_module" found: kernel tainted. Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing disabled INIT: version 2.86 booting Activating swap...Adding 262136k swap on /dev/hda2. Priority:-1 extents:1 across:262136k done. Checking root file system...fsck 1.40-WIP (14-Nov-2006) /dev/hda1: clean, 26007/262144 files, 143870/524288 blocks done. Setting the system clock.. Cleaning up ifupdown.... Loading kernel modules...done. Loading device-mapper supportdevice-mapper: ioctl: 4.7.0-ioctl (2006-06-24) initialised: dm-devel@redhat.com . Checking file systems...fsck 1.40-WIP (14-Nov-2006) done. Setting kernel variables...done. Mounting local filesystems...done. Activating swapfile swap...done. Setting up networking.... Configuring network interfaces...done. INIT: Entering runlevel: 2 Starting system log daemon: syslogd. Starting kernel log daemon: klogd. Not starting estmaster - edit /etc/default/hyperestraier and change NO_START to be 0. * Not starting internet superserver: no services enabled. Starting Postfix Mail Transport Agent: postfix. Starting OpenBSD Secure Shell server: sshdNET: Registered protocol family 10 lo: Disabled Privacy Extensions IPv6 over IPv4 tunneling driver . Starting mail server: dovecot. Starting periodic command scheduler: crond. Debian GNU/Linux 4.0 xen1.satimis.com tty1 No MAC address found. # xm shutdow xen1.satimis.com No complaint # nano /etc/xen/xen1.satimis.com.cfg Can''t find MAC address on file # xm create /etc/xen/xen1.satimis.com.cfg Using config file "/etc/xen/xen1.satimis.com.cfg". StAddarted domain xen1.satimis.com # xm console xen1.satimis.com Linux version 2.6.18-xen (shand@endor) (gcc version 3.4.4 20050314 (prerelease) (Debian 3.4.3-13)) #1 SMP Fri May 18 16:11:33 BST 2007 BIOS-provided physical RAM map: Xen: 0000000000000000 - 0000000002800000 (usable) 0MB HIGHMEM available. 40MB LOWMEM available. ACPI in unprivileged domain disabled Allocating PCI resources starting at 10000000 (gap: 02800000:fd800000) Detected 2009.288 MHz processor. Built 1 zonelists. Total pages: 10240 Kernel command line: root=/dev/hda1 ro Enabling fast FPU save and restore... done. Enabling unmasked SIMD FPU exception support... done. Initializing CPU#0 PID hash table entries: 256 (order: 8, 1024 bytes) Xen reported: 2009.258 MHz processor. Console: colour dummy device 80x25 Dentry cache hash table entries: 8192 (order: 3, 32768 bytes) Inode-cache hash table entries: 4096 (order: 2, 16384 bytes) Software IO TLB disabled vmalloc area: c3000000-fb7fe000, maxmem 33ffe000 Memory: 28788k/40960k available (2075k kernel code, 3960k reserved, 738k data, 192k init, 0k highmem) Checking if this processor honours the WP bit even in supervisor mode... Ok. Calibrating delay using timer specific routine.. 4021.00 BogoMIPS (lpj=20105012) Security Framework v1.0.0 initialized Capability LSM initialized Mount-cache hash table entries: 512 CPU: L1 I Cache: 64K (64 bytes/line), D cache 64K (64 bytes/line) CPU: L2 Cache: 512K (64 bytes/line) Checking ''hlt'' instruction... OK. SMP alternatives: switching to UP code Freeing SMP alternatives: 12k freed Brought up 1 CPUs migration_cost=0 NET: Registered protocol family 16 Brought up 1 CPUs PCI: setting up Xen PCI frontend stub ACPI: Interpreter disabled. Linux Plug and Play Support v0.97 (c) Adam Belay pnp: PnP ACPI: disabled xen_mem: Initialising balloon driver. PCI: System does not support PCI PCI: System does not support PCI NET: Registered protocol family 2 IP route cache hash table entries: 512 (order: -1, 2048 bytes) TCP established hash table entries: 2048 (order: 2, 16384 bytes) TCP bind hash table entries: 1024 (order: 1, 8192 bytes) TCP: Hash tables configured (established 2048 bind 1024) TCP reno registered IA-32 Microcode Update Driver: v1.14a-xen <tigran@veritas.com> audit: initializing netlink socket (disabled) audit(1227971109.885:1): initialized VFS: Disk quotas dquot_6.5.1 Dquot-cache hash table entries: 1024 (order 0, 4096 bytes) Initializing Cryptographic API io scheduler noop registered io scheduler anticipatory registered io scheduler deadline registered io scheduler cfq registered (default) Floppy drive(s): fd0 is unknown type 15 (usb?), fd1 is unknown type 15 (usb?) Failed to obtain physical IRQ 6 floppy0: no floppy controllers found RAMDISK driver initialized: 16 RAM disks of 16384K size 1024 blocksize loop: loaded (max 8 devices) Xen virtual console successfully installed as tty1 Event-channel device installed. netfront: Initialising virtual ethernet driver. Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2 ide: Assuming 50MHz system bus speed for PIO modes; override with idebus=xx PNP: No PS/2 controller found. Probing ports directly. i8042.c: No controller found. mice: PS/2 mouse device common for all mice md: md driver 0.90.3 MAX_MD_DEVS=256, MD_SB_DISKS=27 md: bitmap version 4.39 NET: Registered protocol family 1 NET: Registered protocol family 17 Using IPI No-Shortcut mode xen-vbd: registered block device major 3 blkfront: hda1: barriers enabled blkfront: hda2: barriers enabled netfront: device eth0 has copying receive path. XENBUS: Device with no driver: device/console/0 md: Autodetecting RAID arrays. md: autorun ... md: ... autorun DONE. EXT2-fs warning (device hda1): ext2_fill_super: mounting ext3 filesystem as ext2 VFS: Mounted root (ext2 filesystem) readonly. Freeing unused kernel memory: 192k freed serial_core: no version for "struct_module" found: kernel tainted. Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing disabled INIT: version 2.86 booting Activating swap...Adding 262136k swap on /dev/hda2. Priority:-1 extents:1 across:262136k done. Checking root file system...fsck 1.40-WIP (14-Nov-2006) /dev/hda1: clean, 26007/262144 files, 143883/524288 blocks done. Setting the system clock.. Cleaning up ifupdown.... Loading kernel modules...done. Loading device-mapper supportdevice-mapper: ioctl: 4.7.0-ioctl (2006-06-24) initialised: dm-devel@redhat.com . Checking file systems...fsck 1.40-WIP (14-Nov-2006) done. Setting kernel variables...done. Mounting local filesystems...done. Activating swapfile swap...done. Setting up networking.... Configuring network interfaces...done. INIT: Entering runlevel: 2 Starting system log daemon: syslogd. Starting kernel log daemon: klogd. Not starting estmaster - edit /etc/default/hyperestraier and change NO_START to be 0. * Not starting internet superserver: no services enabled. Starting Postfix Mail Transport Agent: postfix. Starting OpenBSD Secure Shell server: sshdNET: Registered protocol family 10 lo: Disabled Privacy Extensions IPv6 over IPv4 tunneling driver . Starting mail server: dovecot. Starting periodic command scheduler: crond. Debian GNU/Linux 4.0 xen1.satimis.com tty1 Also no MAC address found. B.R. Stephen> > > I checked them to confirm. So > > I just follow them. I have no idea how this happens. > > > > > > > Please supply a Mac, but it _has_ to be unique! > > > > What does it mean "it _has_ to be unique" > > That in your entire Network, a MAC-Adress is only used once! the same > with ip-adresses - they also have to be unique in a network - same > for > macs. > > > Please provide an example. > > its useless.... > > > TIA. > > > > > > B.R. > > Stephen L > > > hth > > Thomas > > > > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users >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
Thomas Halinka
2008-Nov-29 15:22 UTC
Re: [Xen-users] Guest - slow response to keystroke (SOLVED)
Am Samstag, den 29.11.2008, 23:06 +0800 schrieb Stephen Liu:> --- Thomas Halinka <lists@thohal.de> wrote: > > > Am Freitag, den 28.11.2008, 23:46 +0800 schrieb Stephen Liu: > > > Hi Thomas, > > > > > > > > > > Removing the mac-adress is not a good idea, since xen generates > > one > > > > on > > > > every domu-startup, if this is not defined. > > > > > > > > So you will increase your ethX on every domu-startup, because for > > > > udev > > > > its a new nic, since it has a new MAC-Adress. > > > > > > > > > I have 19 guests created on the Xen box. Most *.cfg file don''t > > have > > > MAC-Address, only 2 of them having it. > > > > ok, take one of this 17 guests, which has no mac assigned. > > > > xm console guestxyz > > e.g. shows eth0 with MAC-ADRESS_A > > xm shutdown guestxyz > > xm create guestxyz > > no more eth0 is present, since a new mac is assigned. > > ifconfig -a shows only eth1 > > xm shutdown > > xm create > > eth1 is gone, now you have eth2 because mac has changed. > > and so on.... > > > Performed following steps; > > > # xm create /etc/xen/xen1.satimis.com.cfg > Using config file "/etc/xen/xen1.satimis.com.cfg". > Started domain xen1.satimis.comlets have a look at "ifconfig -a | grep Hardware"> > > # xm console xen1.satimis.com > Linux version 2.6.18-xen (shand@endor) (gcc version 3.4.4 20050314.....> Debian GNU/Linux 4.0 xen1.satimis.com tty1 > > > No MAC address found.each Network-Device has a MAC-Adress!> > > # xm shutdow xen1.satimis.com > No complaint > > > # nano /etc/xen/xen1.satimis.com.cfg > > Can''t find MAC address on file > > > # xm create /etc/xen/xen1.satimis.com.cfg > Using config file "/etc/xen/xen1.satimis.com.cfg". > StAddarted domain xen1.satimis.com > > > # xm console xen1.satimis.com > Linux version 2.6.18-xen (shand@endor) (gcc version 3.4.4 20050314 > (prerelease) (Debian 3.4.3-13)) #1 SMP Fri May 18 16:11:33 BST 2007 > .... > Debian GNU/Linux 4.0 xen1.satimis.com tty1 > > > Also no MAC address found.ifconfig -a | grep Hardware again and you will understand... your mac-adress will change on every start-up so you never get persistant network-settings, since your network-devices change. on first boot you have eth0, on the next eth1 and so on....> > > B.R. > Stephen >Regards, Thomas _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Stephen Liu
2008-Nov-30 11:00 UTC
Re: [Xen-users] Guest - slow response to keystroke (SOLVED)
--- Thomas Halinka <lists@thohal.de> wrote:> Am Samstag, den 29.11.2008, 23:06 +0800 schrieb Stephen Liu: > > --- Thomas Halinka <lists@thohal.de> wrote: > > > > > Am Freitag, den 28.11.2008, 23:46 +0800 schrieb Stephen Liu: > > > > Hi Thomas, > > > > > > > > > > > > > Removing the mac-adress is not a good idea, since xen > generates > > > one > > > > > on > > > > > every domu-startup, if this is not defined. > > > > > > > > > > So you will increase your ethX on every domu-startup, because > for > > > > > udev > > > > > its a new nic, since it has a new MAC-Adress. > > > > > > > > > > > > I have 19 guests created on the Xen box. Most *.cfg file don''t > > > have > > > > MAC-Address, only 2 of them having it. > > > > > > ok, take one of this 17 guests, which has no mac assigned. > > > > > > xm console guestxyz > > > e.g. shows eth0 with MAC-ADRESS_A > > > xm shutdown guestxyz > > > xm create guestxyz > > > no more eth0 is present, since a new mac is assigned. > > > ifconfig -a shows only eth1 > > > xm shutdown > > > xm create > > > eth1 is gone, now you have eth2 because mac has changed. > > > and so on.... > > > > > > Performed following steps; > > > > > > # xm create /etc/xen/xen1.satimis.com.cfg > > Using config file "/etc/xen/xen1.satimis.com.cfg". > > Started domain xen1.satimis.com > > lets have a look at "ifconfig -a | grep Hardware""ifconfig -a | grep Hardware" has no output. xen1:~# ifconfig -a | grep HWaddr eth0 Link encap:Ethernet HWaddr 00:16:3E:21:63:05 Started another guest without shutdown the first guest. # xm create /etc/xen/xen2.satimis.com.cfg # ssh xen2.satimis.com xen2:~# ifconfig -a | grep HWaddr eth0 Link encap:Ethernet HWaddr 00:16:3E:38:93:F1 I think "HWaddr 00:16:3E:38:93:F1" is the MAC address which is NOT fixed. Each time a new MAC address will be alloted after booting the guest. So we can''t set a fixed MAC address on *.cfg file.> > # xm console xen1.satimis.com > > Linux version 2.6.18-xen (shand@endor) (gcc version 3.4.4 20050314 > ..... > > Debian GNU/Linux 4.0 xen1.satimis.com tty1 > > > > > > No MAC address found. > > each Network-Device has a MAC-Adress!Yes. Even this is an onboard ethernet. It must have MAC address. On host; xen0:/home/satimis# ifconfig -a | grep HWaddr eth0 Link encap:Ethernet HWaddr 00:0E:A6:F9:A3:5B peth0 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF veth1 Link encap:Ethernet HWaddr 00:00:00:00:00:00 veth2 Link encap:Ethernet HWaddr 00:00:00:00:00:00 veth3 Link encap:Ethernet HWaddr 00:00:00:00:00:00 vif0.0 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF vif0.1 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF vif0.2 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF vif0.3 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF vif1.0 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF xenbr0 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF "HWaddr 00:0E:A6:F9:A3:5B" is the MAC address of the ethernet.> > # xm shutdow xen1.satimis.com > > No complaint > > > > > > # nano /etc/xen/xen1.satimis.com.cfg > > > > Can''t find MAC address on file > > > > > > # xm create /etc/xen/xen1.satimis.com.cfg > > Using config file "/etc/xen/xen1.satimis.com.cfg". > > StAddarted domain xen1.satimis.com > > > > > > # xm console xen1.satimis.com > > Linux version 2.6.18-xen (shand@endor) (gcc version 3.4.4 20050314 > > (prerelease) (Debian 3.4.3-13)) #1 SMP Fri May 18 16:11:33 BST 2007 > > .... > > Debian GNU/Linux 4.0 xen1.satimis.com tty1 > > > > > > Also no MAC address found. > > ifconfig -a | grep Hardware > > again and you will understand... your mac-adress will change on every > start-up so you never get persistant network-settings, since your > network-devices change. on first boot you have eth0, on the next eth1 > and so on....The ethX number won''t change still retaining eth0 on the 2nd guest only with a new MAC address assigned. 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