Ubuntu 1404 image for openstack
来源:互联网 发布:simulink 输入数组 编辑:程序博客网 时间:2024/05/18 21:49
1> prepare the image with kvm
virt-install \--name os-u1404 \--ram 4096 \--disk path=/var/lib/libvirt/images/os-u1404.img,format=qcow2,size=30 \--vcpus 2 \--os-type linux \--os-variant ubuntutrusty \--network bridge=br0 --graphics none \--console pty,target_type=serial \--location 'http://192.168.3.17/ubuntu/dists/trusty/installer-amd64/' --extra-args 'console=ttyS0,115200n8 serial'
通过3.17这个服务器提供网络安装启动源。
启动后选择手工输入安装源, 输入
mirrors.aliyun.com
安装组件选取OpenSSH服务,其他服务可以不用选择,留待需要时候再安装。
2>update and install packages
检查更新apt的源文件 /etc/apt/sources.list
deb http://mirrors.aliyun.com/ubuntu/ trusty main restricted universe multiversedeb http://mirrors.aliyun.com/ubuntu/ trusty-security main restricted universe multiversedeb http://mirrors.aliyun.com/ubuntu/ trusty-updates main restricted universe multiversedeb http://mirrors.aliyun.com/ubuntu/ trusty-proposed main restricted universe multiversedeb http://mirrors.aliyun.com/ubuntu/ trusty-backports main restricted universe multiversedeb-src http://mirrors.aliyun.com/ubuntu/ trusty main restricted universe multiversedeb-src http://mirrors.aliyun.com/ubuntu/ trusty-security main restricted universe multiversedeb-src http://mirrors.aliyun.com/ubuntu/ trusty-updates main restricted universe multiversedeb-src http://mirrors.aliyun.com/ubuntu/ trusty-proposed main restricted universe multiversedeb-src http://mirrors.aliyun.com/ubuntu/ trusty-backports main restricted universe multiverse
更改几个系统配置
vi /etc/ssh/ssd_config "PermitRootLogin yes"----------vi /etc/default/grub "GRUB_CMDLINE_LINUX_DEFAULT="console=ttyS0""update-grub2
更新和安装其他几个软件
apt-get updateapt-get install ntp acpi nmon vim-runtime apt-get -y dist-upgraderebootshutdown -h now
备份这个镜像文件作为其他试验的基础。
cp /var/lib/libvirt/images/os-u1404.img /var/lib/libvirt/images/os-u1404.img.00
3>install cloud-init and update
启动镜像
virsh start os-u1404virsh console os-u1404
安装 cloud-init, 配置cloud-init去除掉不需要的监听服务,修改用户等等
apt-get install cloud-initdpkg-reconfigure cloud-init
检查更改 /etc/cloud-init/cloud.conf
然后停机
shutdown -h now
4>Prepare for openstack image
清除掉数据以便可以运行到OpenStack环境中
virt-sysprep -d os-u1404
5>upload to glance and enjoy it
qemu-img convert -O raw os-u1404.img os-u1404-raw.imgglance image-create --name "os-u1404" --file os-u1404-raw.img --disk-format raw --container-format bare --is-public True --progress
0 0
- Ubuntu 1404 image for openstack
- CREATING A WINDOWS IMAGE FOR OPENSTACK(转)
- up-to-date Ubuntu image for touch
- openstack upload image脚本
- Openstack Generate image
- Openstack image制作方法详解
- openstack image guide总结
- VMware-Openstack(image)
- OpenStack Mitaka for Ubuntu 16.04 LTS 部署指南
- OpenStack Mitaka for Ubuntu 16.04 LTS 部署指南
- OpenStack Mitaka for Ubuntu 16.04 LTS 部署指南
- Ubuntu 12.04 Server ARMHF Image for Mele A1000/A2000
- 在openstack项目中制作ubuntu 和 rhel 时image遇到的问题总结
- Ubuntu 16.04下安装OpenStack(juno) 之add the image service报错分析
- OpenStack Image制作、发布&管理
- Openstack Glance Image状态迁移
- openstack shaker-image的build
- spice for openstack
- many to one
- 匆忙的北京面试
- git - 分支的管理
- 父窗口设定iframe中元素值
- MySQL基础入门之查询
- Ubuntu 1404 image for openstack
- Word转为PDF带书签
- linux清楚日志脚本
- swift 语言获取触摸点坐标 touchesBegan 中的 touches的坐标获取
- LeetCode190——Reverse Bits
- 进程死锁
- PHP register_shutdown_function函数详解
- openSessionInview的原理
- JVM32和64的区别