Difference between revisions of "OpenStackPPC64Debian10"

From Power Progress Community Projects Wiki
Jump to navigation Jump to search
Line 1: Line 1:
 
To create the Debian 10 PPC64 Big Endian Image for OpenStack you need to run qemu-system-ppc64 and install debian.
 
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.
 
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:
 
First we load module kvm-pr:
 
 
 
 
  
 
<pre>modprobe kvm-pr</pre>we download [//repo.powerprogress.org/debian/install/current/debian-10.0-ppc64-NETINST-1.iso debian-10.0-ppc64-NETINST-1.iso]
 
<pre>modprobe kvm-pr</pre>we download [//repo.powerprogress.org/debian/install/current/debian-10.0-ppc64-NETINST-1.iso debian-10.0-ppc64-NETINST-1.iso]
 
 
  
 
then we start qemu-system-ppc64 with the vnc sever at port 99
 
then we start qemu-system-ppc64 with the vnc sever at port 99
 
 
 
 
  
 
<pre>export DISTRO_ISO="debian-10.0-ppc64-NETINST-1.iso"<br>export DISTRO='debian-10.0'<br>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:99</pre>in a machine connected to the same network we install a vnc client
 
<pre>export DISTRO_ISO="debian-10.0-ppc64-NETINST-1.iso"<br>export DISTRO='debian-10.0'<br>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:99</pre>in a machine connected to the same network we install a vnc client
 
 
 
 
  
 
<pre>apt install xtightvncviewer</pre>and then start the client that point to the host machine where is running qemu  
 
<pre>apt install xtightvncviewer</pre>and then start the client that point to the host machine where is running qemu  
  
 +
<pre>xtightvncviewer 192.168.1.21:99</pre>
  
 
+
Installation of Debian 10 PPC64 on QCOW2 disk image
 
+
 
 
<pre>xtightvncviewer 192.168.1.21:99</pre>Installazione Debian 10 PPC64 su immagine Disco QCOW2
 
 
* select "<span style="font-weight:600" data-token-index="1" data-reactroot="">default install</span>" to install a PPC64 debian system
 
* select "<span style="font-weight:600" data-token-index="1" data-reactroot="">default install</span>" to install a PPC64 debian system
 
* using the guided partitioning tool and select manual partitioning
 
* using the guided partitioning tool and select manual partitioning

Revision as of 00:19, 7 December 2019

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"<br>export DISTRO='debian-10.0'<br>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:99

in a machine connected to the same network we install a vnc client

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