Change-Id: Iaa9536c8a91c3357573bf09809304aba2709481b
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/1946
Reviewed-by: suezzelur <anishs@vmware.com>
Tested-by: suezzelur <anishs@vmware.com>
| ... | ... |
@@ -23,6 +23,7 @@ def create_ova_image(raw_image_name, tools_path, build_scripts_path, config): |
| 23 | 23 |
vmdk_path = output_path + '/photon-ova.vmdk' |
| 24 | 24 |
ovf_path = output_path + '/photon-ova.ovf' |
| 25 | 25 |
mf_path = output_path + '/photon-ova.mf' |
| 26 |
+ ovfinfo_path = build_scripts_path + '/ovfinfo.txt' |
|
| 26 | 27 |
utils.runshellcommand("{} -convert {} -cap 16000 {}".format(vixdiskutil_path, raw_image_name, vmdk_path))
|
| 27 | 28 |
utils.runshellcommand("{} -wmeta toolsVersion 2147483647 {}".format(vixdiskutil_path, vmdk_path))
|
| 28 | 29 |
|
| ... | ... |
@@ -30,10 +31,14 @@ def create_ova_image(raw_image_name, tools_path, build_scripts_path, config): |
| 30 | 30 |
utils.replaceinfile(ovf_path, 'otherGuest', 'other3xLinux64Guest') |
| 31 | 31 |
|
| 32 | 32 |
#Add product info |
| 33 |
- for line in fileinput.input(ovf_path, inplace=True): |
|
| 34 |
- if line.strip() == '</VirtualSystem>': |
|
| 35 |
- print ' \t<ProductSection> \n \t\t<Info>Information about the installed software</Info> \n \t\t<Product>Photon</Product> \n \t\t<Vendor>VMware Inc.</Vendor> \n \t\t<Version>1.0</Version> \n \t\t<FullVersion>1.0</FullVersion> \n \t</ProductSection> ' |
|
| 36 |
- print line, |
|
| 33 |
+ if os.path.exists(ovfinfo_path): |
|
| 34 |
+ with open(ovfinfo_path) as f: |
|
| 35 |
+ lines = f.readlines() |
|
| 36 |
+ for line in fileinput.input(ovf_path, inplace=True): |
|
| 37 |
+ if line.strip() == '</VirtualSystem>': |
|
| 38 |
+ for ovfinfoline in lines: |
|
| 39 |
+ print ovfinfoline, |
|
| 40 |
+ print line, |
|
| 37 | 41 |
|
| 38 | 42 |
if os.path.exists(mf_path): |
| 39 | 43 |
os.remove(mf_path) |
| 40 | 44 |
new file mode 100644 |
| ... | ... |
@@ -0,0 +1,246 @@ |
| 0 |
+ <ProductSection> |
|
| 1 |
+ <Info>Information about the installed software</Info> |
|
| 2 |
+ <Product>Photon</Product> |
|
| 3 |
+ <Vendor>VMware Inc.</Vendor> |
|
| 4 |
+ <Version>1.0</Version> |
|
| 5 |
+ <FullVersion>1.0</FullVersion> |
|
| 6 |
+ </ProductSection> |
|
| 7 |
+ <EulaSection> |
|
| 8 |
+ <Info>End User License Agreement</Info> |
|
| 9 |
+ <License msgid="eula"> |
|
| 10 |
+ |
|
| 11 |
+ VMWARE END USER LICENSE AGREEMENT FOR PHOTON OS |
|
| 12 |
+ |
|
| 13 |
+IMPORTANT-READ CAREFULLY: BY DOWNLOADING, INSTALLING, OR USING THE PROGRAM, YOU (THE |
|
| 14 |
+ |
|
| 15 |
+INDIVIDUAL OR LEGAL ENTITY) AGREE TO BE BOUND BY THE TERMS OF THIS END USER LICENSE |
|
| 16 |
+ |
|
| 17 |
+AGREEMENT (“EULA”). IF YOU DO NOT AGREE TO THE TERMS OF THIS EULA, YOU MUST NOT DOWNLOAD, |
|
| 18 |
+ |
|
| 19 |
+INSTALL, OR USE THE PROGRAM, AND YOU MUST DELETE OR RETURN THE UNUSED PROGRAM TO THE |
|
| 20 |
+ |
|
| 21 |
+VENDOR FROM WHICH YOU ACQUIRED IT WITHIN THIRTY (30) DAYS. |
|
| 22 |
+ |
|
| 23 |
+1. DEFINITIONS. |
|
| 24 |
+ |
|
| 25 |
+1.1 “Documentation” means that documentation that is generally provided to You by |
|
| 26 |
+ |
|
| 27 |
+VMware with the Program, as revised by VMware from time to time, and which may include end |
|
| 28 |
+ |
|
| 29 |
+user manuals, operation instructions, installation guides, release notes, and on-line help |
|
| 30 |
+ |
|
| 31 |
+files regarding the use of the Program. |
|
| 32 |
+ |
|
| 33 |
+1.2 “GPL v2” means the GNU General Public License version 2 the terms of which are |
|
| 34 |
+ |
|
| 35 |
+available at http://www.gnu.org/licenses/old-licenses/gpl-2.0.en.html. |
|
| 36 |
+ |
|
| 37 |
+1.3 “Intellectual Property Rights” means all worldwide intellectual property rights, |
|
| 38 |
+ |
|
| 39 |
+including without limitation, copyrights, trademarks, service marks, trade secrets, know |
|
| 40 |
+ |
|
| 41 |
+how, inventions, patents, patent applications, moral rights and all other proprietary |
|
| 42 |
+ |
|
| 43 |
+rights, whether registered or unregistered. |
|
| 44 |
+ |
|
| 45 |
+1.4 “Open Source Software” or “OSS” means software components embedded in the Program |
|
| 46 |
+ |
|
| 47 |
+and provided under separate license terms, which can be found either in the |
|
| 48 |
+ |
|
| 49 |
+open_source_licenses.txt file (or similar file) provided with the Program or at the Photon |
|
| 50 |
+ |
|
| 51 |
+OS source repository at https://github.com/vmware/photon. |
|
| 52 |
+ |
|
| 53 |
+1.5 “Program” means the computer programs included in the object code version of |
|
| 54 |
+ |
|
| 55 |
+Photon OS. |
|
| 56 |
+ |
|
| 57 |
+1.6 “VMware” means VMware, Inc., a Delaware corporation, if You are purchasing |
|
| 58 |
+ |
|
| 59 |
+services for use in the United States and VMware International Limited, a company |
|
| 60 |
+ |
|
| 61 |
+organized and existing under the laws of Ireland, for all other purchases. |
|
| 62 |
+2. LICENSE GRANT. |
|
| 63 |
+ |
|
| 64 |
+2.1 General License Grant. VMware grants to You a license to use the Program pursuant |
|
| 65 |
+ |
|
| 66 |
+to the terms of the GPL v2. |
|
| 67 |
+ |
|
| 68 |
+2.2 Open Source Software. Notwithstanding anything herein to the contrary, Open |
|
| 69 |
+ |
|
| 70 |
+Source Software is licensed to You under such OSS’s own applicable license terms, which |
|
| 71 |
+ |
|
| 72 |
+can be found in the open_source_licenses.txt file, or the corresponding source files for |
|
| 73 |
+ |
|
| 74 |
+the Program available at https://github.com/vmware/photon. To the extent the license for |
|
| 75 |
+ |
|
| 76 |
+any Open Source Software requires VMware to make available to You the corresponding source |
|
| 77 |
+ |
|
| 78 |
+code and/or modifications (the "Source Files"), You may obtain a copy of the applicable |
|
| 79 |
+ |
|
| 80 |
+Source Files from the Photon OS source repository at https://github.com/vmware/photon or |
|
| 81 |
+ |
|
| 82 |
+by sending a written request, with Your name and address to: VMware, Inc., 3401 Hillview |
|
| 83 |
+ |
|
| 84 |
+Avenue, Palo Alto, CA 94304, United States of America. All requests should clearly |
|
| 85 |
+ |
|
| 86 |
+specify: Open Source Files Request, Attention: General Counsel. This offer to obtain a |
|
| 87 |
+ |
|
| 88 |
+copy of the Source Files is valid for three years from the date You acquired this Program. |
|
| 89 |
+ |
|
| 90 |
+2.3 Copying of Documentation Permitted. You may copy the Documentation as necessary to |
|
| 91 |
+ |
|
| 92 |
+install, run and use the Program, but otherwise for archival purposes only. |
|
| 93 |
+ |
|
| 94 |
+2.4 Restrictions. You are not authorized to redistribute modified versions of the |
|
| 95 |
+ |
|
| 96 |
+Program with VMware trademarks and logos. |
|
| 97 |
+ |
|
| 98 |
+2.5 Intellectual Property in Trademarks and Documentation. Notwithstanding the terms |
|
| 99 |
+ |
|
| 100 |
+applicable to the Program, VMware and its licensors retain all ownership in VMware |
|
| 101 |
+ |
|
| 102 |
+trademarks and the Documentation, including all modifications, enhancements and derivative |
|
| 103 |
+ |
|
| 104 |
+works thereof, and all Intellectual Property Rights therein. Your rights to use the |
|
| 105 |
+ |
|
| 106 |
+Documentation and VMware trademarks are limited to those expressly granted in this EULA, |
|
| 107 |
+ |
|
| 108 |
+and no other rights are implied. |
|
| 109 |
+ |
|
| 110 |
+3. SUPPORT AND SUBSCRIPTION SERVICES. VMware does not provide any support or |
|
| 111 |
+ |
|
| 112 |
+subscription services for the Program under this EULA. |
|
| 113 |
+ |
|
| 114 |
+4. DATA PRIVACY. You agree that VMware may process technical and related information |
|
| 115 |
+ |
|
| 116 |
+about Your use of the Program which may include internet protocol address, hardware |
|
| 117 |
+ |
|
| 118 |
+identification, operating system, application software, peripheral hardware, and non- |
|
| 119 |
+ |
|
| 120 |
+personally identifiable Program usage statistics to facilitate the provisioning of online |
|
| 121 |
+ |
|
| 122 |
+services and may transfer such information to other companies in the VMware worldwide |
|
| 123 |
+ |
|
| 124 |
+group of companies from time to time. To the extent that this information constitutes |
|
| 125 |
+ |
|
| 126 |
+personal data, VMware shall be the controller of such personal data. To the extent that it |
|
| 127 |
+ |
|
| 128 |
+acts as a controller, each party shall comply at all times with its obligations under |
|
| 129 |
+ |
|
| 130 |
+applicable data protection legislation. |
|
| 131 |
+ |
|
| 132 |
+5. WARRANTY DISCLAIMER & LIMITATION OF LIABILITY |
|
| 133 |
+ |
|
| 134 |
+5.1 Limitation of Liability. IN ADDITION TO ANY AND ALL LIMITATION OF LIABILITY IN THE GPL |
|
| 135 |
+ |
|
| 136 |
+V2, IN RESPECT TO THE DOCUMENTATION AND OTHERWISE, TO THE MAXIMUM EXTENT MANDATED BY LAW, |
|
| 137 |
+ |
|
| 138 |
+IN NO EVENT WILL VMWARE AND ITS LICENSORS BE LIABLE FOR ANY LOST PROFITS OR BUSINESS |
|
| 139 |
+ |
|
| 140 |
+OPPORTUNITIES, LOSS OF USE, LOSS OF REVENUE, LOSS OF GOODWILL, BUSINESS INTERRUPTION, LOSS |
|
| 141 |
+ |
|
| 142 |
+OF DATA, OR ANY INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES UNDER ANY THEORY |
|
| 143 |
+ |
|
| 144 |
+OF LIABILITY, WHETHER BASED IN CONTRACT, TORT, NEGLIGENCE, PRODUCT LIABILITY, OR |
|
| 145 |
+ |
|
| 146 |
+OTHERWISE. BECAUSE SOME JURISDICTIONS DO NOT ALLOW THE EXCLUSION OR LIMITATION OF |
|
| 147 |
+ |
|
| 148 |
+LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES, THE PRECEDING LIMITATION MAY NOT APPLY |
|
| 149 |
+ |
|
| 150 |
+TO YOU. VMWARE’S AND ITS LICENSORS’ LIABILITY UNDER THIS EULA WILL NOT, IN ANY EVENT, |
|
| 151 |
+ |
|
| 152 |
+REGARDLESS OF WHETHER THE CLAIM IS BASED IN CONTRACT, TORT, STRICT LIABILITY, OR |
|
| 153 |
+ |
|
| 154 |
+OTHERWISE, EXCEED USD$100. THE FOREGOING LIMITATIONS SHALL APPLY REGARDLESS OF WHETHER |
|
| 155 |
+ |
|
| 156 |
+VMWARE OR ITS LICENSORS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES AND |
|
| 157 |
+ |
|
| 158 |
+REGARDLESS OF WHETHER ANY REMEDY FAILS OF ITS ESSENTIAL PURPOSE. |
|
| 159 |
+ |
|
| 160 |
+5.2 Further Limitations. VMware’s licensors shall have no liability of any kind under |
|
| 161 |
+ |
|
| 162 |
+this EULA and VMware’s liability with respect to any third party software embedded in the |
|
| 163 |
+ |
|
| 164 |
+Program shall be subject to Section 5.1 (Limitation of Liability). You may not bring a |
|
| 165 |
+ |
|
| 166 |
+claim under this EULA more than eighteen (18) months after the cause of action arises. |
|
| 167 |
+ |
|
| 168 |
+5.3 Documentation Warranty Disclaimer: TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE |
|
| 169 |
+ |
|
| 170 |
+LAW, VMWARE AND ITS LICENSORS MAKE NO EXPRESS WARRANTIES UNDER THIS EULA IN RESPECT TO THE |
|
| 171 |
+ |
|
| 172 |
+DOCUMENTATION OR OTHERWISE, AND DISCLAIM ALL IMPLIED WARRANTIES OF MERCHANTABILITY, |
|
| 173 |
+ |
|
| 174 |
+FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT, AND ANY WARRANTY ARISING BY |
|
| 175 |
+ |
|
| 176 |
+STATUTE, OPERATION OF LAW, COURSE OF DEALING OR PERFORMANCE, OR USAGE OF TRADE. VMWARE AND |
|
| 177 |
+ |
|
| 178 |
+ITS LICENSORS DO NOT WARRANT THAT THE DOCUMENTATION WILL BE FREE FROM DEFECTS OR THAT IT |
|
| 179 |
+ |
|
| 180 |
+WILL MEET YOUR REQUIREMENTS. |
|
| 181 |
+ |
|
| 182 |
+6. COMPLIANCE WITH LAWS; EXPORT CONTROL; GOVERNMENT REGULATIONS. Each party shall |
|
| 183 |
+ |
|
| 184 |
+comply with all laws applicable to the actions contemplated by this EULA. You acknowledge |
|
| 185 |
+ |
|
| 186 |
+that the Program is of United States origin, is provided subject to the U.S. Export |
|
| 187 |
+ |
|
| 188 |
+Administration Regulations, may be subject to the export control laws of the applicable |
|
| 189 |
+ |
|
| 190 |
+territory, and that diversion contrary to applicable export control laws is prohibited. |
|
| 191 |
+ |
|
| 192 |
+You represent that (1) you are not, and are not acting on behalf of, (a) any person who is |
|
| 193 |
+ |
|
| 194 |
+a citizen, national, or resident of, or who is controlled by the government of any country |
|
| 195 |
+ |
|
| 196 |
+to which the United States has prohibited export transactions; or (b) any person or entity |
|
| 197 |
+ |
|
| 198 |
+listed on the U.S. Treasury Department list of Specially Designated Nationals and Blocked |
|
| 199 |
+ |
|
| 200 |
+Persons, or the U.S. Commerce Department Denied Persons List or Entity List; and (2) you |
|
| 201 |
+ |
|
| 202 |
+will not permit the Program to be used for, any purposes prohibited by law, including, any |
|
| 203 |
+ |
|
| 204 |
+prohibited development, design, manufacture or production of missiles or nuclear, chemical |
|
| 205 |
+ |
|
| 206 |
+or biological weapons. The Program and Documentation are deemed to be “commercial computer |
|
| 207 |
+ |
|
| 208 |
+software” and “commercial computer software documentation”, respectively, pursuant to |
|
| 209 |
+ |
|
| 210 |
+DFARS Section 227.7202 and FAR Section 12.212(b), as applicable. Any use, modification, |
|
| 211 |
+ |
|
| 212 |
+reproduction, release, performing, displaying or disclosing of the Program and |
|
| 213 |
+ |
|
| 214 |
+Documentation by or for the U.S. Government shall be governed solely by the terms and |
|
| 215 |
+ |
|
| 216 |
+conditions of this EULA. |
|
| 217 |
+ |
|
| 218 |
+11 |
|
| 219 |
+12 |
|
| 220 |
+12.5 |
|
| 221 |
+12.6 |
|
| 222 |
+7. GOVERNING LAW. This EULA is governed by the laws of the State of California, |
|
| 223 |
+ |
|
| 224 |
+United States of America (excluding its conflict of law rules), and the federal laws of |
|
| 225 |
+ |
|
| 226 |
+the United States. To the extent permitted by law, the state and federal courts located in |
|
| 227 |
+ |
|
| 228 |
+Santa Clara County, California will be the exclusive jurisdiction for disputes arising out |
|
| 229 |
+ |
|
| 230 |
+of or in connection with this EULA. The U.N. Convention on Contracts for the International |
|
| 231 |
+ |
|
| 232 |
+Sale of Goods does not apply. |
|
| 233 |
+ |
|
| 234 |
+Photon OS 1.0 GA EULA_2016May19 |
|
| 235 |
+ |
|
| 236 |
+ </License> |
|
| 237 |
+ </EulaSection> |
|
| 238 |
+ |
|
| 239 |
+ <AnnotationSection> |
|
| 240 |
+ <Info>Description of the Product</Info> |
|
| 241 |
+ <Annotation>This OVA provides a minimal installed profile of PhotonOS. |
|
| 242 |
+ Default password for root user is changeme. However user will be prompted to change the password during first login. |
|
| 243 |
+ </Annotation> |
|
| 244 |
+ |
|
| 245 |
+ </AnnotationSection> |
|
| 0 | 246 |
\ No newline at end of file |