“ubuntu教程”给ubuntu/centos/fedora cloud image设置ro

来源: 电脑维修教程 阅读:     发表时间:

http://hj192837.blog.51cto.com/655995/1427750 1. aptitude -y install libguestfs-tools 2. guestfish --rw -a ubuntu-14.04-server-cloudimg-amd64-disk1.img >fs> run >fs> list-filesystems /dev/sda1: ext4 >

http://hj192837.blog.51cto.com/655995/1427750

1. aptitude -y install libguestfs-tools

2. guestfish --rw -a ubuntu-14.04-server-cloudimg-amd64-disk1.img

><fs> run

><fs> list-filesystems

/dev/sda1: ext4

><fs> mount /dev/sda1 /

><fs> edit /etc/ssh/sshd_config

permitrootlogin yes

passwordauthentication yes

><fs> exit

3. on horizon node (normally controller node)

vi /etc/openstack-dashboard/local_settings.py

openstack_hypervisor_feature = {

...

'can_set_password': true,

}

service apache2 restart; service memcached restart

4. on compute nodes:

vi /etc/nova/nova.conf

[libvirt]

inject_password=true

service nova-compute restart

5. now when you launch instance, you can set root password within dashboard

6. then you can login with publickey or root

以上是:解决“ubuntu教程”给ubuntu/centos/fedora cloud image设置ro问题的详细资料教程