Nova create instnace

openstack keypair实践 登陆OS系统可以使用密码登录或者密钥登陆,密码登录是比较常见的一种方式,用户在操作系统中创建了用户名和密码,就可以使用自己的用户名和密码登录进去了;使用密钥登陆是另外一种方式,即用户创建一个密钥对(公钥和私钥),然后将公钥注入到OS中,在登陆时使用私钥校验,校验通过后就可以登入到OS。OpenStack提供了密钥登陆的功能,可以采用密钥注入或者文件注入的方式将公钥注入到OS中,本文采用了密钥注入的 阅读详情

1.创建公钥
[root@host-172-24-0-12 .ssh]# nova keypair-add --pub-key id_rsa.pub Andre-key
[root@host-172-24-0-12 .ssh]# nova keypair-list
+--------------------+-------------------------------------------------+
| Name | Fingerprint |
+--------------------+-------------------------------------------------+
| Andre-key | 9f:42:ca:c9:f4:ea:2d:52:f3:6c:5f:80:a4:3a:d9:0e |
| bunny_keypair | f0:7a:7c:19:94:73:82:25:4a:3f:55:bf:6c:77:2a:c2 |
| carloskey | c0:8f:14:76:34:cc:88:f1:da:54:93:86:ed:0d:fa:d6 |
| mihai-test | f8:32:f5:43:56:79:d6:fc:9e:71:e6:37:de:90:11:db |
| qa-admin-keypair | b7:6c:8a:1d:a8:58:84:ad:4f:53:1e:d8:c6:96:b8:83 |
| Rainkey | c0:8f:14:76:34:cc:88:f1:da:54:93:86:ed:0d:fa:d6 |
| staging_kaiyuan-qa | 3e:2f:ee:8d:ef:7d:76:53:a5:4e:87:a7:c9:7c:4b:04 |
+--------------------+-------------------------------------------------+
2.创建虚拟机
#image ID
[root@host-172-24-0-12 .ssh]# nova image-list
+--------------------------------------+------------------------------------+--------+--------------------------------------+
| ID | Name | Status | Server |
+--------------------------------------+------------------------------------+--------+--------------------------------------+
| fbc78f78-6757-4633-8833-16db66485929 | CentOS6.5_CATN-Gold-Master | ACTIVE | |
| c11ac990-cab3-48ab-ad3c-521033dff32b | CentOS65-x64-86_v2 | ACTIVE | |
| 72e29049-41ec-4c8e-b4d2-80a125261d96 | CentOS65-x64-86_v3 | ACTIVE | |
| 3e4cba23-c33f-478f-8ada-c50c47e377ce | Centos6.5 | ACTIVE | |
| a428d0a8-4ffc-4023-9005-238d7bbd310b | bj-Tom-platform-template-JDK1.7_55 | ACTIVE | da29764c-7df3-4d3f-bb5a-34dc15606942 |
| 0a3f5182-59b6-4959-90af-c56652d499cc | cirros2 | ACTIVE | |
+--------------------------------------+------------------------------------+--------+--------------------------------------+
# image 
[root@host-172-24-0-12 .ssh]# nova image-show 72e29049-41ec-4c8e-b4d2-80a125261d96
+----------------------+--------------------------------------+
| Property | Value |
+----------------------+--------------------------------------+
| OS-EXT-IMG-SIZE:size | 578295808 |
| created | 2014-05-29T09:52:39Z |
| id | 72e29049-41ec-4c8e-b4d2-80a125261d96 |
| minDisk | 0 |
| minRam | 0 |
| name | CentOS65-x64-86_v3 |
| progress | 100 |
| status | ACTIVE |
| updated | 2014-05-29T09:52:55Z |
+----------------------+--------------------------------------+
#zone-list
[root@host-172-24-0-12 .ssh]# nova availability-zone-list
+--------------------+-----------+
| Name | Status |
+--------------------+-----------+
| availability-zone1 | available |
| availability-zone2 | available |
+--------------------+-----------+

nova boot Yang-1 --flavor 1 --key_name  Andre-key  --image c11ac990-cab3-48ab-ad3c-521033dff32b --security_group Kaiyuan-QA --nic net-id=5d6528ad-2502-418a-bfb0-13e3b8401c09 --user-data hello.sh
#nova show Yang-1
[root@host-172-24-0-12 .ssh]# nova show Yang-1
+--------------------------------------+-------------------------------------------------------------------+
| Property | Value |
+--------------------------------------+-------------------------------------------------------------------+
| OS-DCF:diskConfig | MANUAL |
| OS-EXT-AZ:availability_zone | availability-zone2 |
| OS-EXT-STS:power_state | 1 |
| OS-EXT-STS:task_state | - |
| OS-EXT-STS:vm_state | active |
| OS-SRV-USG:launched_at | 2014-06-02T08:11:55.000000 |
| OS-SRV-USG:terminated_at | - |
| accessIPv4 | |
| accessIPv6 | |
| config_drive | |
| created | 2014-06-02T08:11:28Z |
| flavor | m1.small (1) |
| hostId | b0f885c6789ebc0622e0a9ed7f2f630d7a03e9e7020b5c11300ca895 |
| id | 150d4ec0-7613-4fe1-a47f-7f2058437ec5 |
| image | CentOS6.5_CATN-Gold-Master (fbc78f78-6757-4633-8833-16db66485929) |
| key_name | Andre-key |
| kyqa-net network | 172.24.0.16 |
| metadata | {} |
| name | Yang-1 |
| os-extended-volumes:volumes_attached | [] |
| progress | 0 |
| security_groups | Kaiyuan-QA |
| status | ACTIVE |
| tenant_id | 96fa84049b464c51828a73d6f83dfff1 |
| updated | 2014-06-02T08:11:46Z |
| user_id | 44ec3b4550d3424daa3c60fb49775ee1 |
+--------------------------------------+-------------------------------------------------------------------+
# login 
#ssh root@172.24.0.16
3.删除虚拟机
#nova delete Yang-1


openstack API API获取信息流程: #curl -k -X 'POST' -v http://172.16.9.60:5000/v2.0/tokens -d '{"auth":{"passwordCredentials":{"username": "admin", "password":"admin_pass"}, "tenantid":""}}' -H 'Content-type: application/ 阅读详情

相关推荐

2023年LitCTF web组wp

1、导弹迷踪2、1zjs3、php是世界上最好的语言!!4、Ping5、我Flag呢?7、作业管理系统8、Vim yyds10、这是什么?SQL!注一下!11、Flag点击就送!12、就当无事发生13、彩蛋。

m0_74160536的博客 1591

Nova常用命令

nova flavor-list openstack flavor list 查看flavor列表 neutron net-list opensatck network list 查看网络 openstack server create --flavor --image --network --security-group 虚拟机名字 创建虚拟机 nova-manage version .

m0_60764975的博客 6475

OpenClaw Browser Relay Extension 鉴权失败与 invalid handshake 问题的终极解决方案

在使用 OpenClaw 浏览器插件 (Browser Relay Extension) 时,许多用户可能会遇到两个主要问题:一是配置端口错误导致的连接失败,二是鉴权失败 (Gateway token rejected)。本文将详细解析这两个问题并提供解决方案。

gerryke的blog 5559

使用nova boot命令创建openstack实例

使用命令:nova boot --flavor 1 --key_name mykey--p_w_picpath 9e5c2bee-0373-414c-b4af-b91b0246ad3b --security_group default cirrOS其中:flavor是虚拟机的配置,比如说内存大小,硬盘大小等,默认下1为最小,4为最大。key_name是创建虚拟机使用的密钥,...

weixin_33725272的博客 2058

易灵思Ti60F100 FPGA的HyperRAM实战:从硬件连接到Native接口时序调试

本文详细介绍了易灵思Ti60F100 FPGA内置HyperRAM控制器的实战应用。文章从硬件设计要点(如400MHz+信号完整性、等长匹配)切入,重点解析了如何通过Interface Designer配置高效的Native接口,并分享了其时序详解与调试技巧,为开发者提供了一份从硬件连接到软件调试的深度指南。

weixin_29168153的博客 456

《网络安全自学教程》- Windows基线检查加固

Windows安全配置,基线检查标准,基线加固方式

wangyuxiang946的博客 1万+

nova常用命令

nova list nova stop nova start nova reboot nova resize [root@controller01 ~]# nova resize help usage: nova resize [--forcehost <forcehost>] [--poll] <server> <flavor> error: too few ...

qq_22808061的博客 3752

以阿克曼转向车为例对URDF和XACRO文件进行解读

   最近我在古月学院购买了在Gazebo中实现阿克曼转向车的仿真课程,课程资料的阿克曼小车的XACRO文件在Gazebo里加载的时候报了三个错误,在这之前,我没接触过URDF或XACRO文件,本篇文章就以这个阿克曼小车的XACRO文件为例,对URDF或XACRO文件的格式和内容进行解读,期望经过解读和学习,找到错误原因及所在,并解决这三个错误    先来放一下上面右图所示的模型的完整的XACRO文件: <?xml version="1.0"?> <!-- racecar.urdf.x

慕羽★的博客 3701

别再只写QML了!手把手教你用C++给QML组件注入灵魂(实战:动态创建与函数互调)

本文深入探讨了如何通过C++为QML组件注入灵魂,实现动态创建与函数互调。通过QQmlComponent的高级用法和对象工厂模式,开发者可以更灵活地控制QML对象的生命周期和参数注入。同时,文章详细介绍了C++与QML的函数互调机制,包括直接方法调用、信号连接和回调函数注册,帮助开发者提升代码可维护性和性能。

weixin_30955617的博客 543

FPGA信号处理系列文章——分数倍插值抽取滤波器(一)

提示:文章写完后,目录可以自动生成,如何生成可参考右边的帮助文档 FPGA信号处理系列文章——分数倍插值抽取滤波器(一)前言信号流matlab模型频谱示意图分析总结 前言 变采样率滤波器不仅仅存在整数倍插值和整数倍抽取的情况,还会存在分数倍插值抽取的情况。那这种情况下要怎么处理呢 信号流 分数倍插值抽取滤波器的信号流是什么?信号先进行插值,再进行FIR滤波,最后进行抽取 matlab模型 %signal 定点化数据输入 coeff_val_fir = importdata('fir.coe'); si

gzy0506的博客 1万+

地图之家总目录

地图之家总目录 cesium示例 leaflet示例

GIS之家家长 1万+

OpenStack文件注入相关分析(1)

openstack在创建实例的时候可以将文件和相关的参数注入到实例的镜像中,来完成密码的设定、密钥的添加等动作,而这些动作的完成都是在实例启动之前。这在有些情况下会非常有用,比如修改root密码,注入ssh密钥,对实例的个性化定制等等。 1.相关源码的源码结构 文件和元数据注入是/nova/virt/disk/下的源码文件实现的,我们先来看一下/nova/virt/disk/的源码

溜溜小哥 1万+

麒麟V10 SP1系统下编译linuxdeployqt并打包Qt 5.15.2程序完整指南

麒麟V10 SP1系统下编译linuxdeployqt并打包Qt 5.15.2程序完整指南

ChenJin_2的博客 276

nova 建虚拟机

要用Nova建虚拟机,首先要用neutron建立网络 1.建立一个外部网络 [code="java"]neutron net-create public --shared --provider:physical_network public --provider:network_type flat[/code] 2.给外部网络建立一个子网 [code="java"]neutron subn...

iteye_920的博客 330

霍尼韦尔SoftMaster使用说明

霍尼韦尔SoftMaster使用说明

最新的sdio 4.0 spec 协议标准 带书签 高清完整PDF版

Part-E1-SDIO-Specification-Ver4.00-Final-120220.pdf:最新的sdio 4.0 spec 协议标准 带书签 高清完整PDF版,包括SDIO 接口的外设,SDIO 接口官方协议等。

openstack 命令行管理十 - 密钥管理 (备忘)

帮助文档 $ nova help | grep key flavor-key Set or unset extra_spec for a flavor. inject-public-key Inject new public key to a server. keypair-add Create a new key pair for...

yongwan5637的博客 1384

深度学习工具包 DeepLearningToolbox

深度学习工具包Deprecation notice.-----This toolbox is outdated and no longer maintained.There are much better tools available for deep learning than this toolbox, e.g. [Theano](http://deeplearning.net/software/theano/), [torch](http://torch.ch/) or [tensorflow](http://www.tensorflow.org/)I would suggest you use one of the tools mentioned above rather than use this toolbox.Best, Rasmus.DeepLearnToolbox================A Matlab toolbox for Deep Learning.Deep Learning is a new subfield of machine learning that focuses on learning deep hierarchical models of data.It is inspired by the human brain's apparent deep (layered, hierarchical) architecture.A good overview of the theory of Deep Learning theory is[Learning Deep Architectures for AI](http://www.iro.umontreal.ca/~bengioy/papers/ftml_book.pdf)For a more informal introduction, see the following videos by Geoffrey Hinton and Andrew Ng.* [The Next Generation of Neural Networks](http://www.youtube.com/watch?v=AyzOUbkUf3M) (Hinton, 2007)* [Recent Developments in Deep Learning](http://www.youtube.com/watch?v=VdIURAu1-aU) (Hinton, 2010)* [Unsupervised Feature Learning and Deep Learning](http://www.youtube.com/watch?v=ZmNOAtZIgIk) (Ng, 2011)If you use this toolbox in your research please cite [Prediction as a candidate for learning deep hierarchical models of data](http://www2.imm.dtu.dk/pubdb/views/publication_details.php?id=6284)```@MASTERSTHESIS\{IMM2012-06284, author = "R. B. Palm", title = "Prediction as a candidate for learning deep hierarchical models of data", year = "2012",}```Contact: rasmusbergpalm at gmail dot comDirectories included in the toolbox-----------------------------------`NN/` - A library for Feedforward Backpropagation Neural Networks`CNN/` - A library for Convolutional Neural Networks`DBN/` - A library for Deep Belief Networks`SAE/` - A library for Stacked Auto-Encoders`CAE/` - A library for Convolutional Auto-Encoders`util/` - Utility functions used by the libraries`data/` - Data used by the examples`tests/` - unit tests to verify toolbox is workingFor references on each library check REFS.mdSetup-----1. Download.2. addpath(genpath('DeepLearnToolbox'));Example: Deep Belief Network---------------------```matlabfunction test_example_DBNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit RBM and visualize its weightsrand('state',0)dbn.sizes = [100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);figure; visualize(dbn.rbm{1}.W'); % Visualize the RBM weights%% ex2 train a 100-100 hidden unit DBN and use its weights to initialize a NNrand('state',0)%train dbndbn.sizes = [100 100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);%unfold dbn to nnnn = dbnunfoldtonn(dbn, 10);nn.activation_function = 'sigm';%train nnopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.10, 'Too big error');```Example: Stacked Auto-Encoders---------------------```matlabfunction test_example_SAEload mnist_uint8;train_x = double(train_x)/255;test_x = double(test_x)/255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit SDAE and use it to initialize a FFNN% Setup and train a stacked denoising autoencoder (SDAE)rand('state',0)sae = saesetup([784 100]);sae.ae{1}.activation_function = 'sigm';sae.ae{1}.learningRate = 1;sae.ae{1}.inputZeroMaskedFraction = 0.5;opts.numepochs = 1;opts.batchsize = 100;sae = saetrain(sae, train_x, opts);visualize(sae.ae{1}.W{1}(:,2:end)')% Use the SDAE to initialize a FFNNnn = nnsetup([784 100 10]);nn.activation_function = 'sigm';nn.learningRate = 1;nn.W{1} = sae.ae{1}.W{1};% Train the FFNNopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.16, 'Too big error');```Example: Convolutional Neural Nets---------------------```matlabfunction test_example_CNNload mnist_uint8;train_x = double(reshape(train_x',28,28,60000))/255;test_x = double(reshape(test_x',28,28,10000))/255;train_y = double(train_y');test_y = double(test_y');%% ex1 Train a 6c-2s-12c-2s Convolutional neural network %will run 1 epoch in about 200 second and get around 11% error. %With 100 epochs you'll get around 1.2% errorrand('state',0)cnn.layers = { struct('type', 'i') %input layer struct('type', 'c', 'outputmaps', 6, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %sub sampling layer struct('type', 'c', 'outputmaps', 12, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %subsampling layer};cnn = cnnsetup(cnn, train_x, train_y);opts.alpha = 1;opts.batchsize = 50;opts.numepochs = 1;cnn = cnntrain(cnn, train_x, train_y, opts);[er, bad] = cnntest(cnn, test_x, test_y);%plot mean squared errorfigure; plot(cnn.rL);assert(er<0.12, 'Too big error');```Example: Neural Networks---------------------```matlabfunction test_example_NNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);% normalize[train_x, mu, sigma] = zscore(train_x);test_x = normalize(test_x, mu, sigma);%% ex1 vanilla neural netrand('state',0)nn = nnsetup([784 100 10]);opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samples[nn, L] = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.08, 'Too big error');%% ex2 neural net with L2 weight decayrand('state',0)nn = nnsetup([784 100 10]);nn.weightPenaltyL2 = 1e-4; % L2 weight decayopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex3 neural net with dropoutrand('state',0)nn = nnsetup([784 100 10]);nn.dropoutFraction = 0.5; % Dropout fraction opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex4 neural net with sigmoid activation functionrand('state',0)nn = nnsetup([784 100 10]);nn.activation_function = 'sigm'; % Sigmoid activation functionnn.learningRate = 1; % Sigm require a lower learning rateopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex5 plotting functionalityrand('state',0)nn = nnsetup([784 20 10]);opts.numepochs = 5; % Number of full sweeps through datann.output = 'softmax'; % use softmax outputopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex6 neural net with sigmoid activation and plotting of validation and training error% split training data into training and validation datavx = train_x(1:10000,:);tx = train_x(10001:end,:);vy = train_y(1:10000,:);ty = train_y(10001:end,:);rand('state',0)nn = nnsetup([784 20 10]); nn.output = 'softmax'; % use softmax outputopts.numepochs = 5; % Number of full sweeps through dataopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, tx, ty, opts, vx, vy); % nntrain takes validation set as last two arguments (optionally)[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');```[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/rasmusbergpalm/deeplearntoolbox/trend.png)](https://bitdeli.com/free "Bitdeli Badge")

nova命令

前面的是工作中经常用到的   1.查看各个节点的服务(查看nova 服务) nova-manage service list   2.查看实例列表(查看虚拟机): nova list   查看某个虚拟机 nova show  instancename nova show  instanceid   3.查看本节点的实例 virsh list  查看所有运行的实例列表

wsl的专栏 3126

老版QQ原生表情gif动态

这是老版的QQ表情,不过全是动态的的,Windows照片查看器是不会动的,可以右击用浏览器打开查看,再说一遍是老版的,只是分享给宁愿用老版也要动态的人。

php newinstnace,asminstnaceASMB

" Comma separated node names-f Force stop-h Print usagerac2-> srvctl stop diskgroup -g data -n rac2rac2->rac2->rac2-> crs_stat -tName Type Target State Host--------------------------------...

weixin_39548193的博客 111

Weex实战分享|企鹅电竞Weex实践和性能优化

本文是根据 WeexConf 2018中议题《企鹅电竞Weex实践和性能优化》的内容文档整理,分享企鹅电竞团队在Weex上的实践经验,从入门到吃鸡,虽然一路踩过很多坑,做...

淘系技术 833

centos 安装 scapy

1.查看python版本 [root@SmartOP-01 tmp]# python -V Python 2.7.2 2.下载scapy [root@SmartOP-01 tmp]# cd /tmp/ [root@SmartOP-01 tmp]# wget scapy.net 3.解压文件 [root@SmartOP-01 tmp]# unzip scapy-latest

Devliyangjunfei的专栏 5180

LVS+keepalived+tomcat负载均衡

LVS+keepalived+tomcat负载均衡 一:环境 System:centos 6.5 x86_64 名称 IP  LVS-Master 192.168.10.98  LVS-BACKUP 192.168.10.99  LVS-VIP

Devliyangjunfei的专栏 3603

KVM virbr0 加载失败

Skip to end of metadataGo to start of metadata 【问题描述】 kvm 安装完成查看自己建的网络virtbr0没了,ifconfig 后果然没了virbr0 ============================================================= 然后尝试 virsh net-

Devliyangjunfei的专栏 3434

Swift+HAporxy+Keepalived对象存储搭建

Skip to end of metadata  hours ago Go to start of metadata   Swift HA结构图 包括组件: Swift:  1.proxy servers (swift-proxy-server)  2.Account servers (swift-account-serv

Devliyangjunfei的专栏 3028

openldap 在centos 6 ldap_bind: Invalid credentials (49)

删除目录中的所有文件/ etc / openldap /拷贝到slapd.d /与命令 [root@loaclhost ~]# rm -rf /etc/openldap/slapd.d/* slaptest运行测试配置文件并创建新的配置在目录/ etc / openldap /拷贝到slapd .d [root@localhost ~]# slaptest -f /etc/openlda

Devliyangjunfei的专栏 2666

centos 6设置mysql主从同步配置

 Centos 6 MySQL 主从配置                                           2014年5月       centos 6设置mysql主从同步过程记录   一.环境介绍

Devliyangjunfei的专栏 1655
上一篇: KVM 虚拟化性能优化可从以下几个方面优化KVM虚拟机,提高虚拟机的性能
Junfei-Yang
博客等级 码龄14年 3粉丝 10原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

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

抵扣说明:

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

余额充值