def build_domain_install(self, params): domain = xmlgenerator.domain_xml(params, True) self.add_disk(params, domain) if params['guesttype'] != 'xenpv': if params.has_key('bootcd'): self.add_cdrom(params, domain) self.add_interface(params, domain) if __DEBUG__: self.write_toxml(domain) return domain.toxml()
def build_domain_install_win(self, params): domain = xmlgenerator.domain_xml(params, True) self.add_disk(params, domain) self.add_floppy(params, domain) if params.has_key('bootcd'): self.add_cdrom(params, domain) self.add_interface(params, domain) if __DEBUG__: self.write_toxml(domain) return domain.toxml()
def add_domain(self, params): domain = xmlgenerator.domain_xml(params) return domain