Re: live migration problems.

2012-03-31 Thread Riccardo Veraldi

Thank you very much, this solved my problem, not even 1 ping is lost!
I did not find this hint in the documentation though.
Really thanks again

Riccardo


On 3/30/12 11:58 PM, Andrew Cathrow wrote:


- Original Message -

From: "Riccardo Veraldi"
To: kvm@vger.kernel.org
Sent: Friday, March 30, 2012 5:45:47 PM
Subject: live migration problems.

Hello,
I have problems with live migration.
I have several VMs in a CentOS 6.2 cluster environment.

When I migrate one virtual machine from nodeA to nodeB the migration
goes smoothly but
in the same time the VM is migrated an external ping cannot reach the
VM.
I ping the VM before migration and after the migration is done ping
stops to work.
This happens for some VM and does not happen for other VM.
Apparently the VM are configured the same way so I can't understand
why
this is happening.
If I migrate the VM back to the original physical node the ping start
working again like if the switch did not
realize the VM mac address changed switch port.
To make things work always I Should make a ping from the VM console
to
whatever host and
in this case the arp table is updated on the switch.
The strange thing as I said is that some VM seems to always work
after
migration while other
seems never to work untl they are migrated back to original cluster
node.
Any hints or suggestions ?

Make sure you have DELAY=0 set in the ifcfg file for the bridge on both hosts.



thank you very much

Rick

--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: live migration problems.

2012-03-31 Thread Riccardo Veraldi


ifdown and ifup of the bridge is sufficient to enable the new delay config ?

thank you

Rick


On 3/30/12 11:58 PM, Andrew Cathrow wrote:


- Original Message -

From: "Riccardo Veraldi"
To: kvm@vger.kernel.org
Sent: Friday, March 30, 2012 5:45:47 PM
Subject: live migration problems.

Hello,
I have problems with live migration.
I have several VMs in a CentOS 6.2 cluster environment.

When I migrate one virtual machine from nodeA to nodeB the migration
goes smoothly but
in the same time the VM is migrated an external ping cannot reach the
VM.
I ping the VM before migration and after the migration is done ping
stops to work.
This happens for some VM and does not happen for other VM.
Apparently the VM are configured the same way so I can't understand
why
this is happening.
If I migrate the VM back to the original physical node the ping start
working again like if the switch did not
realize the VM mac address changed switch port.
To make things work always I Should make a ping from the VM console
to
whatever host and
in this case the arp table is updated on the switch.
The strange thing as I said is that some VM seems to always work
after
migration while other
seems never to work untl they are migrated back to original cluster
node.
Any hints or suggestions ?

Make sure you have DELAY=0 set in the ifcfg file for the bridge on both hosts.



thank you very much

Rick

--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


live migration problems.

2012-03-30 Thread Riccardo Veraldi

Hello,
I have problems with live migration.
I have several VMs in a CentOS 6.2 cluster environment.

When I migrate one virtual machine from nodeA to nodeB the migration 
goes smoothly but

in the same time the VM is migrated an external ping cannot reach the VM.
I ping the VM before migration and after the migration is done ping 
stops to work.

This happens for some VM and does not happen for other VM.
Apparently the VM are configured the same way so I can't understand why 
this is happening.
If I migrate the VM back to the original physical node the ping start 
working again like if the switch did not

realize the VM mac address changed switch port.
To make things work always I Should make a ping from the VM console to 
whatever host and

in this case the arp table is updated on the switch.
The strange thing as I said is that some VM seems to always work after 
migration while other

seems never to work untl they are migrated back to original cluster node.
Any hints or suggestions ?

thank you very much

Rick

--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


virtio-win problem

2010-05-06 Thread Riccardo Veraldi

Hello,
if I install virtio-win drivers on windows 2008 Server R2, I have the 
problem of signed device drivers.
I Can install the drivers but Windows 2008 server refuses to use them 
unless I start
the machine pressing F8 every time at each reboot bypassing the checking 
of signed certified drivers, and this is annoying,

since I Cannot reboot the virtual machien automatically.

Anyone solved this issue ?
thanks

Rick

--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: Very bad Speed with Virtio-net

2010-01-07 Thread Riccardo Veraldi

I have similar results, like yours, using CentOS 5.4 x86_64
I do not think it is possible to gain more than this right now... or 
better I wish it could be possible


If you can get better result please let me know

Rick

Benjamin Schweikert wrote:

Hello everybody,
this is my first post on a mailing list, so i hope everything works fine.

My host is a AMD X2 4850e with a 64bit Gentoo (unstable). I have 
tested qemu-kvm 0.11, 0.12.x and the git version from the 6. jan.
I created my own bridges, so i dont need the option from libvirt. I 
bridged a 1 Gb lan card for my VMs. When I use the virtio net driver,
i get something about 200-300 mbit form my desktop to one if my VMs. 
If iI use the e1000 driver instead of the virtio I get about

500 - 600 mbit.
I tested this with the following kernels:
Host: 2.6.31.6, 2.6.32.1, 2.6.32.2
Guests: 2.6.26, 2.6.30, 2.6.32 (debian)
2.6.32 (gentoo)

Here is a default result, virtio vs. e1000:

iperf -c 192.168.0.3 -w 512k -l 512k

Client connecting to 192.168.0.3, TCP port 5001
TCP window size:   256 KByte (WARNING: requested   512 KByte)

[  3] local 192.168.0.2 port 52968 connected with 192.168.0.3 port 5001
[ ID] Interval   Transfer Bandwidth
[  3]  0.0-10.0 sec438 MBytes267 Mbits/sec


iperf -c 192.168.0.3 -w 512k -l 512k

Client connecting to 192.168.0.3, TCP port 5001
TCP window size:   256 KByte (WARNING: requested   512 KByte)

[  3] local 192.168.0.2 port 52995 connected with 192.168.0.3 port 5001
[ ID] Interval   Transfer Bandwidth
[  3]  0.0-10.0 sec602 MBytes505 Mbits/sec

Any ideas what this could be? I attach a dmesg output of my host.
Thx.

Ben


--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


serial console

2009-12-30 Thread Riccardo Veraldi


hello,
how is possible ins ome way to have access to serial console using libvirt ?

until now I used quemu-kvm started inside a screen process.

but now I am managing my kvm machines with libvirt and in this way I 
have no access to a serial console.

IS there some way to do it ?

thanks

Rick

--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


asymmetric performance for network I/O

2009-10-06 Thread Riccardo Veraldi

Hello,
I did some tsts with KVM virtual machines.
I gan good results on gigabit interface with inbound traffic, I get almost
gigabit saturation (1Gb/s). I have lower perforance outbound
that is around 500Mbit/s.

Is it normal in your opinion ?
I mean is there some hard coded limit for network I/O performance ?

any experience of someone else about this topic ?

thanks

Rick

--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: how to manage KVM guests with libvirt ?

2009-06-01 Thread Riccardo Veraldi

thank you very much.

How do I know all the XML tag options ??

how to convert from comand line quemu options into XML tags ?

and here to put XML file ?


about the console I used to start qemu-kvm under SCREEN program.
is ther another better way to have serial console ?


thank you


Rick

Javier Guerra wrote:

On Mon, Jun 1, 2009 at 9:41 AM, Riccardo Veraldi
 wrote:
  

Hello,
I have always created my guests by hand with qemu-kvm syntax.
Is there a way to control and manage KVM guests with libvirt without being
forced to create the guest with virtmanager or with virtsh ?



i'm doing this, after seeing the managment tools available with
libvirt.  the easiest way is to write an XML that describes what you
already know how to do with command line.  there are still a couple of
missing options (most notably cache=none, and getting to the command
console); but you should be able to get it to work.

virt-install is a nice hack for installing well-behaved linux distros;
but for windows (where you have to pick exactly which features to
expose at different steps of the install), it's easier to do on the
command line and write the needed XML after that.

one tip, if you choose to allow libvirt to manage an LVM storage pool,
it's better not to create/destroy LVs manually.  use virsh for that or
just don't tell libvirt about your LVM.  i had a couple of host
crashes when the libvirt view of the storage got inconsistent with
reality.


  


--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


how to manage KVM guests with libvirt ?

2009-06-01 Thread Riccardo Veraldi

Hello,
I have always created my guests by hand with qemu-kvm syntax.
Is there a way to control and manage KVM guests with libvirt without being
forced to create the guest with virtmanager or with virtsh ?

what if I post a guest from XEN to KVM, how to manage it with libvirt ?

thanks


Rick

--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


virtio disk and network performances

2009-04-29 Thread Riccardo Veraldi


Hello,
I am little bit disappointed about virtio perormance.

speaking about virtio disk performance I get about the same performances 
of non-virtio quests.
I am using centos 5.3 2.6.18-128.1.6.el5  as host and the same centos 
5.3 2.6.18-128.1.6.el5 as kvm

guests with virtio backported to CentOS 5.2 kernel

virtio_net 47169  0
virtio_blk 41417  3
virtio_pci 41921  0
virtio_ring37441  1 virtio_pci
virtio 39365  3 virtio_net,virtio_blk,virtio_pci


FilesystemSize  Used Avail Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
 9.1G  1.5G  7.2G  17% /
/dev/vda1  99M   19M   76M  20% /boot
tmpfs 502M 0  502M   0% /dev/shm


I use bonnie++ for I/O tests and I got closely the same results for 
virtio guests and non-virtio guests.

Anyone experienced something different ?

Speaking about virtio net performance I get good results but they are 
not symmetric.


on a virtio guest I get ~1Gb/s inbound and ~600Mb/s outbound

without virtio I get ~600Gb/s inbound and ~200MB/s outbound

anyone has any idea how come hte performance is not symmetric ?

thanks

Rick

--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


problems with guests time and date

2009-04-22 Thread Riccardo Veraldi

Hello,
I have a problem.
my host with KVM has correct date set.
All the quests has a date 2 hours disaligned, and everytime they boot I must
ntpdate hte KVM guests.
How to solve this problem ?



guest at boot time
22 Apr 09:08:02 ntpdate[1901]: step time server x.y.z.t offset 
7297.100104 sec




this si the guest
[r...@abbone ~]# date
Wed Apr 22 09:09:52 CEST 2009
[r...@abbone ~]# hwclock
Wed 22 Apr 2009 07:08:19 AM CEST  -0.306596 seconds


this the host

[r...@xenserver2 guest]# hwclock
Wed 22 Apr 2009 09:08:46 AM CEST  -0.078768 seconds


thanks


Rick




--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


how to convert manual vm to libvirtd management

2009-04-09 Thread Riccardo Veraldi

Hello,
I have always created my VM under kvm manually starting them from a .sh 
script:


for example machine called  abbone


# abbone.sh
screen qemu-kvm -nographic -hda ./abbone.img -m 512 -net 
nic,model=e1000,macaddr=00:16:3e:05:00:07 -net tap -name abbone -vnc :0



I use screen so that I am hook to the serial console and it is so easy 
to manager machien via serial console.


But now I havea problem. I vould like to use virsh to manager my virtual 
machines.


now I installed all my VM MANUALLY vithout using virt-install so I do 
not have the proper virtual machine

XML descriptor files in /etc/libvirt/qemu

without a XML description is not possible to start, shutdown, destroy 
virtual machines via virsh or virt-manager tool.


so How can I create an XML file with all the options of the above command ?

actually with the above command a proper tapN interface is created upon 
VM startup via /etc/qemu-ifup script


#!/bin/sh
set -x

switch=sw1

if [ -n "$1" ];then
   /usr/sbin/tunctl -t $1
   /sbin/ip link set $1 up
   sleep 1
   /usr/sbin/brctl addif $switch $1
   exit 0
else
   echo "Error: no interface specified"
   exit 1
fi


thanks


Rick

--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


kvm network performance

2009-02-10 Thread Riccardo Veraldi

Hello,
I am using kvm83 on Centos 5.2
I did some iperf test on my kvm guest and I got the following results 
over a 1GB connection:


~650Mbit/s inbound
~250Mbit/s outbound

that is  performance appears to be asymmetric.

Is this normal ?

The inbound data flow is quite impressive as performance but the 
outbound is poorer.

How come this happens ?

I di dtest on the bare machine ad it is around 800Mbit/s inbound and 
outbound.


any hints ?

thank you

Rick

--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Press any key to continue.

2009-02-09 Thread Riccardo Veraldi

hello,
I configured my guests runing on KVM83 CentOS 5.2 to run in serial 
console mode.

it works and I use screen to manage multiple consoles.
The problem is that when I start a guest on the serial console I got 
this message repeating few times before

the guest effectively start booting.

"Press any key to continue."

then the guest starts.
This does not hapen in VNC mode.

anone have any suggestion ?

thanks

Rick

--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


kvm and cpu type

2009-01-22 Thread Riccardo Veraldi

Hello Iam using kvm83 on CentOS5.2

my system has 2x dual Core intel CPU

Intel(R) Xeon(R) CPU5110  @ 1.60GHz

asdetected by Centos.

If I start kvm-qemu with no CPU option everythign works and hte guest 
machine detects cpu as


QEMU Virtual CPU version 0.9.1


iv I run qemu-kvm -cpu core2duo

the guest hangs at boot time when it detects the CPU.

I do not know how to fix it.

I also do not know if using -cpu swtch can improve performances.

thank you


Rick

--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html