Revision 32e21ab7

b/image_creator/os_type/windows.py
59 59
        """Returns a list of needed sysprep parameters. Each element in the
60 60
        list is a SysprepParam object.
61 61
        """
62

  
63 62
        password = self.SysprepParam(
64 63
            'password', 'Image Administrator Password', 20, lambda x: True)
65 64

  
......
72 71
        self._guest_exec('netsh interface ipv6 set global '
73 72
                         'randomizeidentifiers=disabled store=persistent')
74 73

  
74
    @sysprep('Disabling Teredo interface')
75
    def disable_teredo(self):
76
        """Disable Teredo interface"""
77

  
78
        self._guest_exec('netsh interface teredo set state disabled')
79

  
80
    @sysprep('Disabling ISATAP Adapters')
81
    def disable_isatap(self):
82
        """Disable ISATAP Adapters"""
83

  
84
        self._guest_exec('netsh interface isa set state disabled')
85

  
86
    @sysprep('Enabling ping responses')
87
    def enable_pings(self):
88
        """Enable ping responces"""
89

  
90
        self._guest_exec('netsh firewall set icmpsetting 8')
91

  
92
    @sysprep('Setting the system clock to UTC')
93
    def utc(self):
94
        """Set the hardware clock to UTC"""
95

  
96
        path = r'HKLM\SYSTEM\CurrentControlSet\Control\TimeZoneInformation'
97
        self._guest_exec(
98
            r'REG ADD %s /v RealTimeIsUniversal /t REG_DWORD /d 1 /f' % path)
99

  
75 100
    @sysprep('Executing sysprep on the image (may take more that 10 minutes)')
76 101
    def microsoft_sysprep(self):
77
        """Run the Microsoft System Preparation Tool on the Image. This will
78
        remove system-specific data and will make the image ready to be
79
        deployed. After this no other task may run.
102
        """Run the Microsoft System Preparation Tool. This will remove
103
        system-specific data and will make the image ready to be deployed.
104
        After this no other task may run.
80 105
        """
81 106

  
82 107
        self._guest_exec(r'C:\Windows\system32\sysprep\sysprep '
......
144 169

  
145 170
            ms_sysprep_enabled = False
146 171
            if len(enabled) != size:
147
                enabled.append(self.ms_sysprep)
172
                enabled.append(self.microsoft_sysprep)
148 173
                ms_sysprep_enabled = True
149 174

  
150 175
            cnt = 0

Also available in: Unified diff