Mark Pace | 1 Feb 01:19

Re: GPLPV Network Driver causing VM crash

Sweet.  Thanks James.  That did the trick.

Would this 3.3.0 bug affect the Windows VMs regardless of the PV drivers?


pace

James Harper wrote:
I'm running Xen 3.3.0 with AMD Opteron 2350s. Windows 2003 32bit SP2+patches. When I bring a Windows VM up with the GPLPV drivers, it runs until I
try
to do anything with the network and then it crashes. Trying to web
browse
will lock the VM up, RDPing to it will lock the VM up. I've tried
0.9.11
and 0.9.12pre13, both with the same results. I've removed the
type=ioemu
from the vif line without any change as well. Any ideas?
Add this to your domu config, all on one line: cpuid = ['0x80000005:ecx=xxxxxxxxxxxxxxxxxxxxxxxxkkkkkkkk,edx=xxxxxxxxxxxxxxxxxx xxxxxxkkkkkkkk'] that will correct a bug in 3.3.0 where it wasn't exporting the cache line size to windows, which would cause Windows to hang the first time it received a packet making use of rx csum offload. It only affects AMD cpu's. James
_______________________________________________
Xen-users mailing list
Xen-users <at> lists.xensource.com
http://lists.xensource.com/xen-users
Fajar A. Nugraha | 1 Feb 02:12

Re: Storage Question

On Sun, Feb 1, 2009 at 5:08 AM, Ramon Moreno <rammor1 <at> gmail.com> wrote:
> Option 1:
> I present a single iscsi lun to my systems in the cluster. I then
> carve it up using lvm for the vms. The problem with this solution is
> that if I clone a vm, it takes mass network bandwidth.

True. But for most iscsi servers cloning will take mass amount of
resources anyway (whether it's network, disk I/O, or both). Using
ionice during cloning process might help by giving cloning process
lowest priority.

> Option 2:
> I present multiple iscsi luns to the systems in the cluster. I still
> add to lvm so I dont have to about labeling and such.
> Adding to lvm
> ensures things dont change with the lun on reboot.

I think you can also use /dev/disk/by-path and by-id for that purpose

> With this option I
> can use the storage layer (using a netapp like solution) to clone luns
> and such.

If you clone LUNs on storage/target side, then you can't use LVM on
the initiator. The cloning process will copy any LVM label on it
making the cloned LUN a duplicate PV, which can't be used on the same
host.

> This eliminates the possibility of saturating the network
> interfaces when cloning vms.

How does your iscsi server (netapp or whatever) clone a LUN? If it
copies data, then you'd still be I/O bound.

An exception is if you use zfs-backed iscsi server (like opensolaris)
where cloning process requires near-zero I/O with zfs clone.

Note that with option 2 you can also avoid using clustering altogether
(by putting config files on NFS or synchronizing them manually), which
eliminates the need of fencing. This would greatly reduce complexity.

Regards,

Fajar
James Harper | 1 Feb 03:45
Picon

RE: GPLPV Network Driver causing VM crash

> 
> Sweet.  Thanks James.  That did the trick.
> 
> Would this 3.3.0 bug affect the Windows VMs regardless of the PV
drivers?
> 

I'm not sure. I have only heard of it being a problem when using my PV
drivers. There is a kernel call in Windows that preloads a certain
amount of data into the cache. This is a gross oversimplification, but
the routine in question runs like:

bytes_loaded = 0
while (bytes_loaded < bytes_to_load)
{
  ...
  bytes_loaded += cache_line_size
}

Because the cpuid isn't correct in 3.3.0 for AMD processors,
cache_line_size is always zero so bytes_loaded never increases and it
just spins forever.

NDIS (windows network stack) calls the above code when I give it a
packet and tell it that the checksum has already been calculated, but
that's the only time I have ever seen it called. It's a bit of a
mystery.

James
Mark Pace | 1 Feb 03:59

Re: GPLPV Network Driver causing VM crash


> NDIS (windows network stack) calls the above code when I give it a
> packet and tell it that the checksum has already been calculated, but
> that's the only time I have ever seen it called. It's a bit of a
> mystery.
>
>   
Sounds like the issue would only crop up if the Realtek driver did
checksum offloading.  From a brief search, you may be able to get newer
drivers that support that.  I'm not sure that warrants any research
since I see on xen-devel that they've fixed this for 3.3.1...

Thanks again,
pace
Matthew Sacks | 1 Feb 10:19
Picon
Gravatar

Load Balancing VM's

Does anyone have suggestions for doing live migrations with Xen?
Is LBVM any good?
What are the other options?
Pasi Kärkkäinen | 1 Feb 11:09
Picon
Picon
Favicon

Re: Storage Question

On Sun, Feb 01, 2009 at 08:12:23AM +0700, Fajar A. Nugraha wrote:
> On Sun, Feb 1, 2009 at 5:08 AM, Ramon Moreno <rammor1 <at> gmail.com> wrote:
> > Option 1:
> > I present a single iscsi lun to my systems in the cluster. I then
> > carve it up using lvm for the vms. The problem with this solution is
> > that if I clone a vm, it takes mass network bandwidth.
> 
> True. But for most iscsi servers cloning will take mass amount of
> resources anyway (whether it's network, disk I/O, or both). Using
> ionice during cloning process might help by giving cloning process
> lowest priority.
>

And in some storage arrays is just takes 1 or 2 seconds, no matter if it's 
huge or small volume :) 

For example Equallogic does that.. data is not really copied, since
everything is virtualized.

-- Pasi
Boris Derzhavets | 1 Feb 11:19
Picon
Favicon
Gravatar

Re: Linux distributions supported by Xen as PVM domUs

Sorry, to install "hg" in common location on CentOS 5.2
 cd /working_dir/mercurial-1.1.2
 make local
 cp -R hg* /usr/local/bin
 cp -R mercurial /usr/local/bin


--- On Tue, 1/27/09, Boris Derzhavets <bderzhavets <at> yahoo.com> wrote:
From: Boris Derzhavets <bderzhavets <at> yahoo.com>
Subject: Re: [Xen-users] Linux distributions supported by Xen as PVM domUs
To: xen-users <at> lists.xensource.com, "Michael Monnerie" <michael.monnerie <at> is.it-management.at>
Date: Tuesday, January 27, 2009, 5:27 AM

***************************************************************
To port Xen 3.3.1 to xen disabled CentOS 5.2 instance (64 bit)
***************************************************************
Download recent versions of git and mercurial (tar.gz)
and install .
make install for "hg" requires :-
# cd Working_dir
# make
# make install
# cp -R mercurial /usr/local/bin

Directory where "hg" has been copied requires
mercurial folder, when you do "make local" everything is OK , but you have:-
# export PATH=Working_dir:$PATH.
When you do "make install" a workaround above is required.

Then:-
# which hg
would work fine

# cd /usr/src/
# tar -zxvf xen-3.3.1.tar.gz
# cd xen-3.3.1
# make world
# make install
Determine the name of the Xen Linux kernel version that was installed.
# ls /lib/modules
There should be a directory for the Xen Linux kernel (e.g.2.6.18.8-xen)
Generate the module dependency list and map files
# /sbin/depmod 2.6.18.8-xen
Create the Xen initial ramdisk image
# /sbin/mkinitrd /boot/initrd-2.6.18.8-xen.img 2.6.18.8-xen
Disable tls
# mv /lib64/tls /lib64/tls.disabled
Set xend service to start
# /sbin/chkconfig –add xend
# /sbin/chkconfig xend on
Install bridge-utils:-
# yum install bridge-utils
************************************************************************
Edit /boot/grub/grub.conf and copy one of the existing boot entries
to make the required changes for Xen and reboot into new kernel.
*************************************************************************
title Xen-3.3.1 CentOS 5.2 x86_64 (2.6.18.8-xen) (/dev/sdb12)
root (hd1,11)
kernel /xen-3.3.gz
module /vmlinuz-2.6.18.8-xen ro root=/dev/VolGroup01/LogVol00 rhgb quiet
module /initrd-2.6.18.8-xen.img

Next :-
You are missing libvirt,virt-install ant etc.
You need openSUSE 11.1 ;(
No, really you don't:-
http://lxer.com/module/newswire/view/112300/index.html


--- On Tue, 1/27/09, Michael Monnerie <michael.monnerie <at> is.it-management.at> wrote:
From: Michael Monnerie <michael.monnerie <at> is.it-management.at>
Subject: Re: [Xen-users] Linux distributions supported by Xen as PVM domUs
To: xen-users <at> lists.xensource.com
Date: Tuesday, January 27, 2009, 2:14 AM

On Montag 19 Januar 2009 Jason Voorhees wrote:
> I would like to run different Linux distros paravirtualized, maybe
> Opensolaris or FreeBSD. Is it possible?

openSUSE 11.1 runs as XEN dom0 or domU automatically.
http://opensuse.org/

mfg zmi
--
// Michael Monnerie, Ing.BSc
----- http://it-management.at
// Tel: 0660 / 415 65 31 .network.your.ideas.
// PGP Key: "curl -s http://zmi.at/zmi.asc | gpg --import"
// Fingerprint: AC19 F9D5 36ED CD8A EF38 500E CE14 91F7 1C12 09B4
// Keyserver: wwwkeys.eu.pgp.net Key-ID: 1C1209B4


_______________________________________________
Xen-users mailing list
Xen-users <at> lists.xensource.com
http://lists.xensource.com/xen-users


_______________________________________________
Xen-users mailing list
Xen-users <at> lists.xensource.com
http://lists.xensource.com/xen-users
Felix Chu | 1 Feb 15:32

Question about adding CPU/RAM to Windows DomU

I have a DomU(HVM) installed with Windows 2003 server. I try to add ram and cpu dynamically (tried both virsh and xm), the command has no error. But in Windows, I cannot see the changes. Finally I rebooted the Windows, and then ram/cpu are adjusted. I want to know it is limitation of Windows? Or Xen HVM?

 

If using para-virtualization method, I can add ram/cpu dynamically to the para-virtualized Linux DomU.

 

 

_______________________________________________
Xen-users mailing list
Xen-users <at> lists.xensource.com
http://lists.xensource.com/xen-users
Maik Brauer | 1 Feb 15:35

Re: Re: Windows Setup hangs during start

Hi,

this is causing an infinity loop.
The virtual machine is in a cyclic restart then. After the Message: "Windows files are loading..." was written, the
system restarts again and again.

So, what else can I do ?

Cheers,
Maik


On Jan 31, 2009, at 5:54 PM, Oliver Wilcock wrote:

Have you tried the following?
apic=0
vcpus=1


_______________________________________________
Xen-users mailing list
Xen-users <at> lists.xen source.com
http://lists.xensource.com/xen-users

_______________________________________________
Xen-users mailing list
Xen-users <at> lists.xensource.com
http://lists.xensource.com/xen-users
Kirill Bychkov | 1 Feb 19:24
Picon

usb problem

Hi all,

I have a trouble with several usb devices support in the domU. I'm use debian with kernel 2.6.26-1-xen-686 and xen 3.2.1 and win2003 as guest system. I need two usb devices (flash disks) in the win2003.

#lsusb
...........
Bus 005 Device 003: ID 0951:1607 Kingston traveler
Bus 006 Device 001: ID 1307:0163 Transcend
.............
my config (usb part) version 1:

usb=1
usbdevice=[ 'host:0951:1607' ]
usbdevice=[ 'host:1307:0163' ]

With this config, win2003 have a only one flash drive - Transcend

my config (usb part) version 2:
usb=1
usbdevice = [ 'host:0951:1607', 'host:1307:0163' ]

With this config, win2003 don't have any usb flash drive...

How connect to domU more than one device?

Thanx

--


_______________________________________________
Xen-users mailing list
Xen-users <at> lists.xensource.com
http://lists.xensource.com/xen-users

Gmane