appvm.py 465 B

1234567891011121314151617
  1. #!/usr/bin/python2 -O
  2. import qubes.vm.qubesvm
  3. class AppVM(qubes.vm.qubesvm.QubesVM):
  4. '''Application VM'''
  5. template = qubes.VMProperty('template', load_stage=4,
  6. vmclass=qubes.vm.templatevm.TemplateVM,
  7. doc='Template, on which this AppVM is based.')
  8. def __init__(self, D):
  9. super(AppVM, self).__init__(D)
  10. # Some additional checks for template based VM
  11. assert self.template
  12. self.template.appvms.add(self)