openstack中windows虚拟机时间显示异常问题处理

文章讲述了在使用OpenStack创建Windows虚拟机时遇到的时间问题,通过设置镜像的元数据中的os_type为windows,解决了时间差异问题。调整镜像元数据对确保Windows虚拟机功能正常运行至关重要。
摘要由CSDN通过智能技术生成


一、问题描述

openstack创建出windows虚拟机的时候,发现时间和当前时间相差8小时,用起来很难受。
参考:https://www.cnblogs.com/hraa0101/p/11365238.html

二、元数据信息

通过设置镜像的元数据确认镜像的操作系统类型

OS Type (os_type)
The operating system installed on the image. The libvirt driver contains logic that takes different actions depending on the value of the os_type parameter of the image. For example, for os_type=windows images, it creates a FAT32-based swap partition instead of a Linux swap partition, and it limits the injected host name to less than 16 characters.

os_type=“windows”

在这里插入图片描述

总结

总结记录,设置好元数据之后使用镜像创建新的云主机时间上就正常了。

  • 10
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值