随笔分类 -  nova

摘要:file injection代码file injection原理来讲是比较简单的,在nova boot命令中,有参数--file,是将文件inject到image中nova boot --flavor 2 --image d96b0e41-8264-41de-8dbb-6b31ce9bfbfc --... 阅读全文
posted @ 2014-07-10 11:50 popsuper1982 阅读(5192) 评论(0) 推荐(0) 编辑
摘要:guestmount root# guestmount -a ubuntutest1.img -m /dev/sda1 ubuntutestp1 root# cd ubuntutestp1/root:/home/cliu8/images/ubuntutestp1# lsa b c d hello lost+found worldroot:/home/cliu8/images/ubuntutest... 阅读全文
posted @ 2014-07-09 14:24 popsuper1982 阅读(2114) 评论(0) 推荐(0) 编辑
摘要:添加一个drive:guestfs_add_drive_optsadd-drive filename [readonly:true|false] [format:..] [iface:..] [name:..] [label:..] [protocol:..] [server:..]This function adds a disk image called filename to the han... 阅读全文
posted @ 2014-07-09 13:56 popsuper1982 阅读(1864) 评论(0) 推荐(0) 编辑
摘要:要编辑一个image,则运行下面的命令 guestfish -a ubuntutest.img > 会弹出一个命令行工具 运行run > run 我们来ps一下进程 root# ps aux | grep guestroot 11697 0.0 0.0 96216 4604 pts/0 S+ 02:14 0:00 guestfish -a ubuntutest.imgroot 11832 7.0 ... 阅读全文
posted @ 2014-07-09 11:43 popsuper1982 阅读(3298) 评论(0) 推荐(0) 编辑
摘要:方法一:mount成为一个loop device 参考http://smilejay.com/2012/08/mount-an-image-file/ 方法一:找出分区开始的开始位置,使用mount命令的offset参数偏移掉前面不需要的,即可得到真正的分区。其具体步骤如下:1. 用“fdisk -lu my.img”查询image信息;2. 计算image内分区开始的地方(计算offset),用... 阅读全文
posted @ 2014-07-08 00:29 popsuper1982 阅读(4950) 评论(0) 推荐(0) 编辑
摘要:网络块设备是通过NBD Server将虚拟块设备通过TCP/IP export出来,可以远程访问。 NBD Server通常是qemu-nbd 可以提供unix socket qemu-nbd -t -k /home/cliu8/images/ubuntutest-nbd ubuntutest.img 打开另一个窗口,可以连接这个unix socket qemu-system-x86_64 -e... 阅读全文
posted @ 2014-07-07 23:11 popsuper1982 阅读(2267) 评论(0) 推荐(0) 编辑
摘要:External Snapshot managementSymptomAs of at least libvirt 1.1.1, external snapshot support is incomplete. For example, with 1.0.5 or later, an externa... 阅读全文
posted @ 2014-07-07 14:14 popsuper1982 阅读(2377) 评论(0) 推荐(0) 编辑
摘要:首先要创建一个bootable volumecurl -i http://16.158.166.197:8776/v1/c24c59846a7f44538d958e7548cc74a3/volumes -X POST -H "X-Auth-Project-Id: openstack" -H "Use... 阅读全文
posted @ 2014-07-06 19:49 popsuper1982 阅读(2517) 评论(0) 推荐(0) 编辑
摘要:http://rwmj.wordpress.com/2010/07/17/virtio-balloon/After someone asked me a question about “balloons” (in the virtualization sense) today, I noticed ... 阅读全文
posted @ 2014-07-04 15:22 popsuper1982 阅读(889) 评论(0) 推荐(0) 编辑
摘要:前面讲了QEMU的qcow2格式的internal snapshot和external snapshot,这都是虚拟机文件格式的功能。 这是文件级别的。 还可以是文件系统级别的,比如很多文件系统支持snapshot,如OCFS2 还可以是block级别的,比如LVM支持snapshot 我们这节来分析openstack中各种snapshot的实现。 在Openstack中,Instance的启动大... 阅读全文
posted @ 2014-07-04 10:52 popsuper1982 阅读(2185) 评论(0) 推荐(0) 编辑
摘要:我们首先启动一台机器,启动的时候attach一个volume 创建一个空的cinder volume root:~# cinder create --display-name emptyvolume11g 11+---------------------+--------------------------------------+| Property | Value |+------------... 阅读全文
posted @ 2014-07-02 16:16 popsuper1982 阅读(2263) 评论(0) 推荐(0) 编辑
摘要:Linux target framework (tgt) aims to simplify various SCSI target driver (iSCSI, Fibre Channel, SRP, etc) creation and maintenance. The key goals are ... 阅读全文
posted @ 2014-07-02 14:27 popsuper1982 阅读(2101) 评论(0) 推荐(0) 编辑
摘要:Configure Storage Server with iSCSI. A storage on a network is called iSCSI Target, a Client which connects to iSCSI Target is called iSCSI Initiator.... 阅读全文
posted @ 2014-07-02 12:30 popsuper1982 阅读(461) 评论(0) 推荐(0) 编辑
摘要:This guide explains how you can set up an iSCSI target and an iSCSI initiator (client), both running Ubuntu 10.04. The iSCSI protocol is a storage are... 阅读全文
posted @ 2014-07-02 12:22 popsuper1982 阅读(727) 评论(0) 推荐(0) 编辑
摘要:AppArmor https://help.ubuntu.com/14.04/serverguide/apparmor.html AppArmor 是一个实施了基于名称强制存取控制的Linux安全模组。AppArmor 界定了单个程序进入一组文件列表的权限并遵循posix 1003.1e 草稿的能力。 默认情况下AppArmor已安装并载入。它使用每个程序的profiles来确定这个程序需要什么文... 阅读全文
posted @ 2014-07-01 12:44 popsuper1982 阅读(1909) 评论(0) 推荐(0) 编辑
摘要:RAW raw是默认的格式,格式简单,容易转换为其他的格式。需要文件系统的支持才能支持sparse file 创建image # qemu-img create -f raw flat.img 10GFormatting 'flat.img', fmt=raw size=10737418240 如果我们ls则看到 ls -lh flat.img -rw-r--r-- 1 root root 1... 阅读全文
posted @ 2014-07-01 10:04 popsuper1982 阅读(4687) 评论(0) 推荐(1) 编辑
摘要:KVM/QEMU hypervisor driverProject LinksDeployment pre-requisitesConnections to QEMU driverDriver security architectureDriver instancesPOSIX users/grou... 阅读全文
posted @ 2014-07-01 09:22 popsuper1982 阅读(656) 评论(0) 推荐(0) 编辑
摘要:http://www.cloudbase.it/create-windows-openstack-images/We get regularly a lot of requests about how to generate Windows OpenStack images, especially ... 阅读全文
posted @ 2014-06-30 11:55 popsuper1982 阅读(694) 评论(0) 推荐(0) 编辑
摘要:Volume managersSome Unix systems have snapshot-capable logical volume managers. These implement copy-on-write on entire block devices by copying chang... 阅读全文
posted @ 2014-06-30 11:14 popsuper1982 阅读(466) 评论(0) 推荐(1) 编辑
摘要:http://kashyapc.com/2011/10/04/snapshotting-with-libvirt-for-qcow2-images/ Libvirt 0.9.6 was recently out. Take a look at 0.9.5 changelog for truckload of features/bugfixes/cleanups(specifically snaps... 阅读全文
posted @ 2014-06-30 09:43 popsuper1982 阅读(763) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示