KVM, QEMU, and kernel project management
Posted Mar 26, 2010 21:43 UTC (Fri) by rahvin (subscriber, #16953)
The second is that accessing the guest to run perf won't provide the complete picture and could mislead you. You really need perf on the host to see how the guest is interacting with the host and other guests. IIRC Vmware provides tools which allow this kind of performance analysis with their Sphere products and they don't require access to the hosts to do it.
Posted Mar 26, 2010 21:47 UTC (Fri) by dlang (subscriber, #313)
Posted Mar 27, 2010 1:57 UTC (Sat) by rahvin (subscriber, #16953)
Basically you can't trust the guests and the guests can't trust the host as well. Contracted hosting is an interesting situation because neither group can realistically trust the other with their data because they don't screen each other's employees. Maybe there are hosting companies that offer to assign management screened by the contractee but it would seem easier to just put your own server in their rack and manage the whole thing yourself, otherwise you have to deal with a situation where no one can trust each other. So Emperor Mingo's comment that perf needs to be runnable without guest client access (or guest host access) is the reality of data center VM.
Posted Mar 27, 2010 2:12 UTC (Sat) by dlang (subscriber, #313)
I see it that the host does not want to trust the guest, but to a large extent the guest has no choice but to trust the host. There are just too many things that the host can do to the guest.
Remember the host has control of your cpu, your ram, and all your I/O
If the host really wants to it can search through the physical ram looking for 'interesting' data in the guest. the guest can try to keep things encrypted, but it has to store the encryption key somewhere, and wherever it is stored the host can get at it.
you can try to lock down the host to prevent it from getting at part of it's own resources (this is the type of thing that SELinux is designed for), but doing this completely is a very hard task, if it's even possible.
Posted Mar 29, 2010 19:07 UTC (Mon) by jeremiah (subscriber, #1221)
As far as perf is concerned though, could this just be a parameter in the guest os that could disable
the feature. That way the guest could trust that it has disabled the host from spying or whatever on
Posted Mar 29, 2010 21:03 UTC (Mon) by dlang (subscriber, #313)
In theory SELinux can protect you, but you really have to trust both it's implementation and it's configuration. This requires placing a large amount of trust the the System Administrator team that you are trying to be protected from.
To some extent you either trust your system administrators or you don't.
If you don't how can you trust that they properly configured SELinux?
If you do, do you really need SELinux to be configured?
things do get a bit messier when you talk about multiple guests on one box and you want to make sure that you don't get attacked from the other guests, but there you can go a long way by simply having each guest run as a different user that has no permissions to anything else on the system (which does take careful auditing of the system, modern linux systems are not put together with multi-user security in mind)
but in my opinion, right now the real answer is that you really don't want to use virtualization as a security critical barrier between hostile parties and their targets.
Posted Mar 30, 2010 1:30 UTC (Tue) by jeremiah (subscriber, #1221)
Posted Mar 30, 2010 3:28 UTC (Tue) by dlang (subscriber, #313)
what is possible in theory is that the host could prevent one guest from escaping then using the host privileges to attack another guest. However this is the same theory that says that one user on a system can be prevented from attacking another user on the same system. That hasn't worked in real life, and I doubt if the protecting one guest form another will work much better.
Posted Mar 30, 2010 11:21 UTC (Tue) by jeremiah (subscriber, #1221)
Posted Mar 30, 2010 19:57 UTC (Tue) by nix (subscriber, #2304)
It is simply not possible to protect a VM guest from root on its host. The
host controls *everything*.
Copyright © 2017, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds