KVM test: tests_base.cfg: Introduce parameter 'vm_type'
[autotest-zwu.git] / server / hypervisor.py
blob27a6108d1d829c88543d6269b078b601d12dcc07
2 # Copyright 2007 Google Inc. Released under the GPL v2
4 """
5 This module defines the Hypervisor class
7 Hypervisor: a virtual machine monitor
8 """
10 __author__ = """
11 mbligh@google.com (Martin J. Bligh),
12 poirier@google.com (Benjamin Poirier),
13 stutsman@google.com (Ryan Stutsman)
14 """
17 import installable_object
20 class Hypervisor(installable_object.InstallableObject):
21 """
22 This class represents a virtual machine monitor.
24 Implementation details:
25 This is an abstract class, leaf subclasses must implement the methods
26 listed here and in parent classes which have no implementation. They
27 may reimplement methods which already have an implementation. You
28 must not instantiate this class but should instantiate one of those
29 leaf subclasses.
30 """
32 host = None
33 guests = None
35 def __init__(self, host):
36 super(Hypervisor, self).__init__()
37 self.host= host
40 def new_guest(self):
41 pass
44 def delete_guest(self, guest_hostname):
45 pass
48 def reset_guest(self, guest_hostname):
49 pass