OpenStack Ironic笔记

FUEL:

ironic node-create -d fuel_ipmitool -i deploy_kernel=$(nova image-list | grep ironic-deploy-linux | awk '{print $2}') -i deploy_ramdisk=$(nova image-list | grep ironic-deploy-initramfs | awk '{print $2}') -i deploy_squashfs=$(nova image-list | grep ironic-deploy-squashfs | awk '{print $2}') -i ipmi_address=192.168.150.121 -i ipmi_password=root123 -i ipmi_username=root -p cpus=6 -p memory_mb=65536 -p local_gb=465 -p cpu_arch=x86_64

ironic node-create -d fuel_ipmitool -i deploy_kernel=$(nova image-list | grep ironic-deploy-linux | awk '{print $2}') -i deploy_ramdisk=$(nova image-list | grep ironic-deploy-initramfs | awk '{print $2}') -i deploy_squashfs=$(nova image-list | grep ironic-deploy-squashfs | awk '{print $2}') -i ipmi_address=192.168.150.168 -i ipmi_port=6230 -i ipmi_password=password -i ipmi_username=admin -p cpus=2 -p memory_mb=6618 -p local_gb=50 -p cpu_arch=x86_64

devstack:

ironic node-create -d agent_ipmitool -i deploy_kernel=$(glance image-list | grep agent_ipmitool.kernel | awk '{print $2}') -i deploy_ramdisk=$(glance image-list | grep agent_ipmitool.initramfs | awk '{print $2}') -i ipmi_address=192.168.150.168 -i ipmi_port=6230 -i ipmi_password=password -i ipmi_username=admin -p cpus=2 -p memory_mb=6618 -p local_gb=50 -p cpu_arch=x86_64

ironic node-create -d agent_ipmitool -i deploy_kernel=$(glance image-list | grep agent_ipmitool.kernel | awk '{print $2}') -i deploy_ramdisk=$(glance image-list | grep agent_ipmitool.initramfs | awk '{print $2}') -i ipmi_address=192.168.150.168 -i ipmi_port=6232 -i ipmi_password=password -i ipmi_username=admin -p cpus=2 -p memory_mb=16384 -p local_gb=500 -p cpu_arch=x86_64

ironic node-set-power-state d1aae538-27cb-4a8a-adb8-8254749569f7 on

ironic port-create -n d1aae538-27cb-4a8a-adb8-8254749569f7 -a 52:54:00:8f:d5:a1

ironic port-list

nova hypervisor-list

glance image-create --name kernel --visibility public --disk-format aki --container-format aki --file webservice.vmlinuz

glance image-create --name ramdisk --visibility public --disk-format aki --container-format aki --file webservice.initrd

glance image-create --name my-image --visibility public --disk-format qcow2 --container-format bare --property kernel_id=63a50f23-1454-46d5-b3fb-89cb847ac64f --property ramdisk_id=28fd494b-74ea-490b-b0f3-4be883522ff5 < webservice-2018.02.26-12.59.09.qcow2

openstack server create --flavor baremetal --nic net-id=$net_id --image $image --key-name default testing

安装virtualbmc,需要依赖python-dev、pkg-config、libvirt-python

14:18:77:52:68:f3 -- R730 NIC4网卡MAC

bmon网络监视工具

29e7eb19-82f1-4fc1-8e35-ead7eed7924b

9ab3392e-de67-4b89-b108-b5f5dad2840d

0
cpu_archx86_64
resources:CUSTOM_BAREMETAL1
resources:DISK_GB0
resources:MEMORY_MB0
resources:VCPU0

你可能感兴趣的:(OpenStack Ironic笔记)