# virt/libvirt/driver.py
def _create_domain_and_network():
block_device_mapping = driver.block_device_info_get_mapping(
block_device_info)
LOG.info("[pykit] block_device_mapping: %s", block_device_mapping)
LOG.info("[pykit] network_info: %s", network_info)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
##prapare to install | |
# for all nodes | |
sudo useradd -d /home/ceph -m ceph | |
sudo passwd ceph | |
echo "ceph ALL = (root) NOPASSWD:ALL" | sudo tee /etc/sudoers.d/ceph | |
sudo chmod 0440 /etc/sudoers.d/ceph | |
##admin-node node(ceph and root) | |
ssh-keygen |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mv /var/lib/nova/instances/instance-00000026 /var/lib/nova/instances/instance-00000026_resize | |
mkdir -p /var/lib/nova/instances/instance-00000026 | |
qemu-img convert -f qcow2 -O qcow2 /var/lib/nova/instances/instance-00000026_resize/disk /var/lib/nova/instances/instance-00000026_resize/disk_rbase | |
mv /var/lib/nova/instances/instance-00000026_resize/disk_rbase /var/lib/nova/instances/instance-00000026/disk | |
qemu-img convert -f qcow2 -O qcow2 /var/lib/nova/instances/instance-00000026_resize/disk.local /var/lib/nova/instances/instance-00000026_resize/disk.local_rbase | |
mv /var/lib/nova/instances/instance-00000026_resize/disk.local_rbase /var/lib/nova/instances/instance-00000026/disk.local | |
finish_resize: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// request拦截器, 改变url 或 options. | |
request.interceptors.request.use((url, options) => { | |
const c_token = getAuthority() | |
console.log("token: %s", c_token); | |
if (c_token) { | |
const headers = { | |
'Content-Type': 'application/json', | |
'Accept': 'application/json', | |
'Authorization': 'JWT ' + c_token[0] | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
windows7 32位 链接:http://pan.baidu.com/s/1pLRq3P5 密码:qlgj | |
windows7 64位 链接:http://pan.baidu.com/s/1miOEGPi 密码:8qyu | |
Windows Server 2016 64位 链接:http://pan.baidu.com/s/1qXH4M1A 密码:1n80 | |
Windows Server 2012r2 64位 链接:http://pan.baidu.com/s/1kVmhecf 密码:iods | |
Windows Server 2012 64位 链接:http://pan.baidu.com/s/1slwKp8D 密码:amek | |
Windows Server 2008r2 64位 链接:http://pan.baidu.com/s/1slWBZy9 密码:m17p | |
Windows Server 2008 64位 链接:http://pan.baidu.com/s/1jH776QU 密码:vfb1 | |
Windows Server 2008 32位 链接:http://pan.baidu.com/s/1o82VXWm 密码:7iav | |
Windows Server 2003r2 64位 链接:http://pan.baidu.com/s/1bo1bTCF 密码:f8i3 | |
Windows Server 2003 32位 链接:http://pan.baidu.com/s/1gf9r0iR 密码:1pur |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl test for openstack api | |
; change token when you run the command. | |
; glance | |
; glance image-list | |
curl -i -X GET -H 'X-Auth-Token: XXXXXXXXXXXXX-TODO' -H 'Content-Type: application/json' -H 'User-Agent: python-glanceclient' http://192.168.14.80:9292/v1/images/detail?sort_key=nam e&sort_dir=asc&limit=20 |
Refrence:
[OpenStack Orchestration In Depth]
https://developer.rackspace.com/blog/openstack-orchestration-in-depth-part-1-introduction-to-heat/
[Heat Orchestration Template]
http://docs.openstack.org/developer/heat/template_guide/hot_spec.html
FUCK! $ LC_ALL=en_US.UTF-8 ssh ubuntu@192.168.32.39
- fuel-menu
- urwid
- make tutorial by ruanyifeng
- xorriso 是一个用来创建和操作 ISO 9660 文件系统(光盘格式)映像文件的工具,可以用来将映像文件烧录到 CD/DVD 光盘中。
- 一個最小的 x86 kernel
- Grub&Linux
NewerOlder