我正在研究OVF的多语言,并遵循this文档。 我能够成功生成ova,但是在部署ova时出现服务不可用错误。
我检查了ova(由该ovf-descriptor生成)的内容,对我来说一切都很好。
我创建了两个消息文件和一个ovf描述符,如下所示 MyVM-zh-CN.msg文件的内容
<Strings xmlns:ovf="http://schemas.dmtf.org/ovf/envelope/1" xmlns="http://schemas.dmtf.org/ovf/envelope/1" xml:lang="en_US">
<Msg ovf:msgid="Product.label">Product in English </Msg>
</Strings>
MyVM-zh-CN.msg文件的内容
<Strings xml:lang="zh-CN">
<Msg ovf:msgid="Product.label">▒▒▒ Product in Chinese</Msg>
</Strings>
OVF描述符的外观如下
<Envelope xml:lang="en-US">
<References>
<File ovf:href="MyVM-zh-CN.msg" ovf:id="msgs1"/>
<File ovf:href="MyVM-en-US.msg" ovf:id="msgs3"/>
</References>
<VirtualSystem>
<AnnotationSection ovf:required="false">
<Info>A human-readable annotation</Info>
<Annotation ovf:msgid="Product.label">OVF NAME: abc
</Annotation>
</AnnotationSection>
</VirtualSystem>
<Strings xml:lang="ja_JP" ovf:fileRef="msgs2"/>
<Strings xml:lang="en_US" ovf:fileRef="msgs3"/>
</Envelope>
部署ova时我会跌倒
服务不可用。错误获取https://:443 / cls / data / 5fdc4919-c82b-4d3f-8a34-c13a7c91c86c / abc-file3.msg:HTTP / 1.1 503
但是,如果我嵌入语言环境文件,OVA可以很好地工作。