Re: Detecting Co-residency of VMs on KVM

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

 



On 02/15/2012 11:08 AM, Shikhar Agarwal wrote:
> I am doing an experiment which involves detecting co-resident VMs (testing
> if 2 VMs are on the same physical machine) on KVM. I have tried using cache
> covert channel, but this test does not work if the VMs are on different
> processors within the same host as the caches are not shared then. If I use
> the tools netperf and iperf to differentiate using network channels, I am
> not getting clear results. This is because the network is really good (10
> Gbps). I believe there are better and more reliable ways for the same.
> Please suggest some of these.
> The idea is to find some resource (like memory, disk, etc) that is shared
> by the VMs and try to run some benchmarks that thrash this resource.
> Another idea is to take advantage of some optimization that kvm might be
> doing internally. Please help me.

By default, under the sVirt rules set up by libvirt, VMs should NOT be
sharing resources, and any VM that can reliably detect that it is
co-resident with another VM means you have potentially found a security
hole in qemu or sVirt.   In fact, recent libvirt additions such as the
use of cgroups for cpu and I/O throttling should manage even the
possibility for one VM to thrash resources in such a way that steals
time from other VMs.

As such, I'm afraid you might not get much public response for other
covert channels to look for; admitting to a security hole without also
providing a patch against it is difficult to do in a publicly archived list.

-- 
Eric Blake   eblake@xxxxxxxxxx    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature


[Index of Archives]     [Virt Tools]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]

  Powered by Linux