制作windows puppet Openstack镜像过程

int32位 posted @ Mar 22, 2016 03:52:05 PM in openstack , 1523 阅读
转载请注明:http://krystism.is-programmer.com/若有错误,请多多指正,谢谢!

 

由于电信需要远程部署软件,拟使用puppet进行远程服务管理

前提

  1. windows系统已经安装
  2. windows已经安装virtio driver
  3. 远程桌面开启,最好关闭防火墙

设置MTU

在没有安装cloudinit情况下需要手动配置mtu大小为1454,否则无法上网,仅在使用neutron并且使用gre隧道情况下需要设置。

设置hosts文件

把一些常用的host放到C:/windows/system32/driver/etc/host,尤其是master的,务必设置!!

设置时间同步

agent需要和master保持时间同步,因此需要设置windows更新时间服务器为master

安装win32-dir

需要安装win32-dir 版本大于0.43, 安装方法为管理员start command prompt with puppet, run:

gem install win32-dir

修改puppet facter下的timezone

timezone默认输出中文,会出现编码错误,设置setcode 为英文字符,最好是世界时区标准格式

安装clouinit

下载地址:官网

关机

在这前清空puppet ssl目录,位于C:/programdata,并根据实际情况可以设置puppet.conf 。为了减少磁盘文件大小,最好运行下磁盘 清理,并删除掉一些无用文件。

格式转化

把格式转化,一方面为了合并base image,另一方面也可以起到重新整理磁盘文件,减少文件大小,run:

qemu-img convert -O qcow2 origin.qcow2 new.qcow2

上传镜像

把镜像上传到glance下,记得设置os_type = windows否则,会出现RTC时间问题

启动主机

启动云主机,记得设置os_type = windows, 原因同上!

转载请注明:http://krystism.is-programmer.com/若有错误,请多多指正,谢谢!
  • 无匹配
  • 无匹配
Alyssa 说:
2022年12月23日 16:03

Openstack is a cloud operating system that provides users with on-demand access to a variety of cloud services, including compute, storage, and networking. One of the benefits real estate agency Palo Alto of using Openstack is the ability to create custom images, which can be used to boot new virtual machines (VMs). Creating a custom image for use with Openstack is a two-step process. First, you'll need to create a base image, which will be used as a template for your custom image.

SEO 说:
2023年4月03日 23:30 very interesting keep posting. Essential tips
Bushra 说:
2023年4月04日 00:37

very interesting keep posting. See This Article

Bushra 说:
2023年4月08日 23:54

Thanks for your information, it was really very helpfull.. pressure washing services near Gibsonia PA

Bushra 说:
2023年4月09日 04:02

I really appreciate the kind of topics you post here. Thanks for sharing us a great information that is actually helpful. Good day! See This Article

Bushra 说:
2023年4月09日 04:23

I am hoping the same best effort from you in the future as well. In fact your creative writing skills has inspired me. Click Through to This Article

tech 说:
2024年6月06日 05:51

It is perfect time to make some plans for the future and it is time to be happy. I've read this post and if I could I desire to suggest you some interesting things or suggestions. Perhaps you could write next articles referring to this article. I want to read more things about it! 土耳其 大使館在印度尼西亞

tech 说:
2024年7月21日 06:53

nice post, keep up with this interesting work. It really is good to know that this topic is being covered also on this web site so cheers for taking time to discuss this! indian e visa eligibility greek citizens

tech 说:
2024年8月05日 02:02

Excellent website! I adore how it is easy on my eyes it is. I am questioning how I might be notified whenever a new post has been made. Looking for more new updates. Have a great day! link judi bola terbaru

tech 说:
2024年8月21日 06:29

Having just visited your blog for the first time, I'm quite impressed with the content you offer. Give me enough information. I am grateful for the material you have shared. I'll come back for more amazing posts. Indisches Visum für kanadische Staatsbürger

tech 说:
2024年8月28日 03:54

Without fail, this is a fantastic web post. Actually, not many individuals would behave in the manner that you just did. I find it impressive that so much knowledge has been discovered on this topic and that you have once again outperformed yourself with such high caliber. Well Done! 印度电子签证资格 马耳他公民

tech 说:
2024年10月14日 23:56

Upon visiting this page, I found a wealth of wonderful information, so much so that I bookmarked it. la política de visats indis es personalitzarà


登录 *


loading captcha image...
(输入验证码)
or Ctrl+Enter