openstack中 file/meta/user-data的区别

本文介绍了OpenStack中三种不同的用户数据注入方式:通过文件(file)、元数据(meta)和user-data,详细阐述它们在虚机启动时如何使用和区别。
摘要由CSDN通过智能技术生成

openstack中有多种方式可以将用户数据带入虚机中。


虚机启动时注入文件:

[root@compute1 ~]# nova boot --image 2401a752-fbda-482e-98f6-281656758b7f --file /home/test=./matt.test --flavor=1 test6
[root@compute2 ~]# ssh cirros@100.100.100.10
The authenticity of host '100.100.100.10 (100.100.100.10)' can't be established.
RSA key fingerprint is 25:6b:4a:4d:a9:f5:78:87:4a:81:fe:c5:b2:57:8f:d2.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '100.100.100.10' (RSA) to the list of known hosts.
cirros@100.100.100.10's password: 
$ sudo su -
# cd /home/
# ls
cirros ftp test
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值