templatevm.py 342 B

12345678910111213
  1. #!/usr/bin/python2 -O
  2. import qubes
  3. import qubes.vm.qubesvm
  4. class TemplateVM(qubes.vm.qubesvm.QubesVM):
  5. '''Template for AppVM'''
  6. def __init__(self, D):
  7. super(TemplateVM, self).__init__(D)
  8. # Some additional checks for template based VM
  9. assert self.root_img is not None, "Missing root_img for standalone VM!"