OpenStackPPC64Debian10

From Power Progress Community Projects Wiki
Revision as of 00:23, 7 December 2019 by Backstrikes (talk | contribs)
Jump to navigation Jump to search

To create the Debian 10 PPC64 Big Endian Image for OpenStack you need to run qemu-system-ppc64 and install debian.

We run it qemu in a PPC64 Machine or a PowerMac or Image G5 or our NXP Devkit based on our PowerPC Notebook processor T2080 in a Installed Debian 10 PPC64 Big Endian.

First we load module kvm-pr:

modprobe kvm-pr

we download debian-10.0-ppc64-NETINST-1.iso

then we start qemu-system-ppc64 with the vnc sever at port 99

export DISTRO_ISO="debian-10.0-ppc64-NETINST-1.iso"
export DISTRO='debian-10.0'
qemu-system-ppc64 --enable-kvm -m 2048M -boot strict=on -name $DISTRO -machine type=pseries,accel=kvm,kvm_type=2   -cdrom $DISTRO_ISO -netdev user,id=user.0,hostfwd=tcp::2222-:22   -device virtio-net,netdev=user.0   -drive file=$DISTRO.qcow2,if=virtio,cache=writeback,discard=ignore,format=qcow2   -vnc 0.0.0.0:99t
apt install xtightvncviewer

and then start the client that point to the host machine where is running qemu

xtightvncviewer 192.168.1.21:99

Installation of Debian 10 PPC64 on QCOW2 disk image

  • select "default install" to install a PPC64 debian system
  • using the guided partitioning tool and select manual partitioning
  • create PREP partition ( the first in the list) with at least 800MB with boot flag enabled
  • create at least ext4 partition mounted at / ( if you prefer you can create even /boot and /home partitions as you are used to do)
  • create a SWAP partition ( suggested)
  • when asked to select a repository "Configure the package manager" use this parameters: "<a href="http://deb.debian.org/" style="text-decoration:underline;color:inherit;cursor:pointer;word-wrap:break-word" target="_blank" rel="noopener noreferrer" data-token-index="1" data-reactroot="">deb.debian.org</a>" in the first requester, at the second dialog "debian archive mirror directory" then insert "/debian-ports/"
  • select packages to install ( below the list of the needed package for OpenStack )
  • cloud-init,cloud-utils,sudo,adduser,lsb-release,busybox-static,console-setup,locales,grub2-common,openssh-server,file,kbd

We installed all the packages list above at reboot of the debian installed under qemu, after they are installed your image is ready to be imported in OpenStack. If you prefer you can compressed id:

qemu-img convert -O qcow2 -c debian-10.0.qcow2 debian-10.0-v2-compressed.qcow2