OpenStack image 制作官方文档:https://docs.openstack.org/image-guide/create-images-manually.html
如果通过制作的镜像启动VM,无console log,执行以下步骤:
1、安装libguestfs-tools
2、guestmount -a rancheros-openstack.img -m /dev/sda1 /mnt/
3、编辑/etc/default/grub,配置GRUB_CMDLINE_LINUX,替换rhgb quiet为console=tty0 console=ttyS0,115200n8
GRUB_CMDLINE_LINUX="crashkernel=auto rd.lvm.lv=cl/root rd.lvm.lv=cl/swap console=tty0 console=ttyS0,115200n8"
4、保存配置
grub2-mkconfig -o /boot/grub2/grub.cfg
参考: https://github.com/rancher/os/issues/1094