ls /usr/share/ironic-python-agent-builder/dib export ELEMENTS_PATH=/usr/share/ironic-python-agent-builder/dib export DIB_DEV_USER_USERNAME=centos export DIB_DEV_USER_PASSWORD= cloud_123. export DIB_DEV_USER_PWDLESS_SUDO=YES export DIB_CLOUD_INIT_DATASOURCES="ConfigDrive, OpenStack" disk-image-create vm centos7 baremetal dhcp-all-interfaces devuser -o centos7 cloud-init-datasources -a x86_64
没有disable-selinux
disk-image-create vm centos7 baremetal dhcp-all-interfaces devuser -o centos7 cloud-init-datasources -a x86_64 disable-selinux
[root@localhost ~]# yum whatprovides /usr/sbin/semanage Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: mirror.bit.edu.cn * extras: mirrors.ustc.edu.cn * updates: mirror.bit.edu.cn policycoreutils-python-2.5-34.el7.x86_64 : SELinux policy core python utilities Repo : base Matched from: Filename : /usr/sbin/semanage policycoreutils-python-2.5-34.el7.x86_64 : SELinux policy core python utilities Repo : @base Matched from: Filename : /usr/sbin/semanage [root@localhost ~]# yum whatprovides /usr/sbin/semanage
2020-06-30 12:37:41,029 - util.py[DEBUG]: Cloud-init v. 18.5 running 'init-local' at Tue, 30 Jun 2020 12:37:41 +0000. Up 9048.62 seconds. 2020-06-30 12:37:41,029 - main.py[DEBUG]: No kernel command line url found. 2020-06-30 12:37:41,029 - main.py[DEBUG]: Closing stdin. 2020-06-30 12:37:41,029 - util.py[DEBUG]: Restoring selinux mode for /var/lib/cloud (recursive=False) 2020-06-30 12:37:41,030 - util.py[DEBUG]: Restoring selinux mode for /var/lib/cloud (recursive=True) 2020-06-30 12:37:41,030 - util.py[DEBUG]: Restoring selinux mode for /var/lib/cloud/scripts (recursive=False) 2020-06-30 12:37:41,031 - util.py[DEBUG]: Restoring selinux mode for /var/lib/cloud/scripts (recursive=True) 2020-06-30 12:37:41,031 - util.py[DEBUG]: Restoring selinux mode for /var/lib/cloud/scripts/per-instance (recursive=False) 2020-06-30 12:37:41,031 - util.py[DEBUG]: Restoring selinux mode for /var/lib/cloud/scripts (recursive=True) 2020-06-30 12:37:41,032 - util.py[DEBUG]: Restoring selinux mode for /var/lib/cloud/scripts/per-once (recursive=False) 2020-06-30 12:37:41,032 - util.py[DEBUG]: Restoring selinux mode for /var/lib/cloud/scripts (recursive=True) 2020-06-30 12:37:41,033 - util.py[DEBUG]: Restoring selinux mode for /var/lib/cloud/scripts/per-boot (recursive=False) 2020-06-30 12:37:41,033 - util.py[DEBUG]: Restoring selinux mode for /var/lib/cloud/scripts (recursive=True) 2020-06-30 12:37:41,034 - util.py[DEBUG]: Restoring selinux mode for /var/lib/cloud/scripts/vendor (recursive=False) 2020-06-30 12:37:41,034 - util.py[DEBUG]: Restoring selinux mode for /var/lib/cloud (recursive=True) 2020-06-30 12:37:41,036 - util.py[DEBUG]: Restoring selinux mode for /var/lib/cloud/seed (recursive=False) 2020-06-30 12:37:41,036 - util.py[DEBUG]: Restoring selinux mode for /var/lib/cloud (recursive=True) 2020-06-30 12:37:41,037 - util.py[DEBUG]: Restoring selinux mode for /var/lib/cloud/instances (recursive=False) 2020-06-30 12:37:41,038 - util.py[DEBUG]: Restoring selinux mode for /var/lib/cloud (recursive=True) 2020-06-30 12:37:41,039 - util.py[DEBUG]: Restoring selinux mode for /var/lib/cloud/handlers (recursive=False) 2020-06-30 12:37:41,039 - util.py[DEBUG]: Restoring selinux mode for /var/lib/cloud (recursive=True) 2020-06-30 12:37:41,041 - util.py[DEBUG]: Restoring selinux mode for /var/lib/cloud/sem (recursive=False) 2020-06-30 12:37:41,041 - util.py[DEBUG]: Restoring selinux mode for /var/lib/cloud/data (recursive=False) 2020-06-30 12:37:41,042 - util.py[DEBUG]: Writing to /var/log/cloud-init.log - ab: [600] 0 bytes 2020-06-30 12:37:41,042 - util.py[DEBUG]: Restoring selinux mode for /var/log/cloud-init.log (recursive=False) 2020-06-30 12:37:41,042 - util.py[DEBUG]: Restoring selinux mode for /var/log/cloud-init.log (recursive=False) "cloud-init.log" 890L, 108669C 2020-06-30 12:37:49,495 - util.py[DEBUG]: Writing to /var/lib/cloud/instance/boot-finished - wb: [644] 52 bytes 2020-06-30 12:37:49,496 - util.py[DEBUG]: Restoring selinux mode for /var/lib/cloud/instances/iid-datasource-none/boot-finished (recursive=False) 2020-06-30 12:37:49,496 - util.py[DEBUG]: Restoring selinux mode for /var/lib/cloud/instances/iid-datasource-none/boot-finished (recursive=False) 2020-06-30 12:37:49,496 - cc_final_message.py[WARNING]: Used fallback datasource 2020-06-30 12:37:49,496 - handlers.py[DEBUG]: finish: modules-final/config-final-message: SUCCESS: config-final-message ran successfully 2020-06-30 12:37:49,496 - stages.py[DEBUG]: Running module power-state-change (<module 'cloudinit.config.cc_power_state_change' from '/usr/lib/python2.7/site-packages/cloudinit/config/cc_power_state_change.pyc'>) with frequency once-per-instance 2020-06-30 12:37:49,497 - handlers.py[DEBUG]: start: modules-final/config-power-state-change: running config-power-state-change with frequency once-per-instance 2020-06-30 12:37:49,497 - util.py[DEBUG]: Writing to /var/lib/cloud/instances/iid-datasource-none/sem/config_power_state_change - wb: [644] 20 bytes 2020-06-30 12:37:49,497 - util.py[DEBUG]: Restoring selinux mode for /var/lib/cloud/instances/iid-datasource-none/sem/config_power_state_change (recursive=False) 2020-06-30 12:37:49,497 - util.py[DEBUG]: Restoring selinux mode for /var/lib/cloud/instances/iid-datasource-none/sem/config_power_state_change (recursive=False) 2020-06-30 12:37:49,498 - helpers.py[DEBUG]: Running config-power-state-change using lock (<FileLock using file '/var/lib/cloud/instances/iid-datasource-none/sem/config_power_state_change'>) 2020-06-30 12:37:49,498 - cc_power_state_change.py[DEBUG]: no power_state provided. doing nothing 2020-06-30 12:37:49,498 - handlers.py[DEBUG]: finish: modules-final/config-power-state-change: SUCCESS: config-power-state-change ran successfully 2020-06-30 12:37:49,498 - main.py[DEBUG]: Ran 10 modules with 0 failures 2020-06-30 12:37:49,498 - util.py[DEBUG]: Creating symbolic link from '/run/cloud-init/result.json' => '../../var/lib/cloud/data/result.json' 2020-06-30 12:37:49,499 - util.py[DEBUG]: Reading from /proc/uptime (quiet=False) 2020-06-30 12:37:49,499 - util.py[DEBUG]: Read 18 bytes from /proc/uptime 2020-06-30 12:37:49,499 - util.py[DEBUG]: cloud-init mode 'modules' took 7.173 seconds (7.17) 2020-06-30 12:37:49,499 - handlers.py[DEBUG]: finish: modules-final: SUCCESS: running modules for final
export ELEMENTS_PATH=/usr/share/ironic-python-agent-builder/dib export DIB_DEV_USER_USERNAME=devuser export DIB_DEV_USER_PASSWORD=cloud_123. export DIB_DEV_USER_PWDLESS_SUDO=YES export DIB_CLOUD_INIT_DATASOURCES="ConfigDrive, OpenStack,Ec2" disk-image-create vm centos7 baremetal dhcp-all-interfaces devuser -o centos7 cloud-init-datasources cloud-init disable-selinux -a x86_64
DIB_RELEASE=trusty disk-image-create vm ubuntu baremetal dhcp-all-interfaces devuser -o ubuntu cloud-init-datasources cloud-init disable-selinux -a x86_64
arm64 加上block-device-efi