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