Difference between revisions of "OpenStackPPC64Debian10"

From Power Progress Community Projects Wiki
Jump to navigation Jump to search
 
(2 intermediate revisions by the same user not shown)
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.
+
=== Debian 10 PPC64 Big Endian Image creation for OpenStack with qemu-system-ppc64 ===
  
 
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.
Line 15: Line 15:
 
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
  
<code>
+
<pre>
 
export DISTRO_ISO="debian-10.0-ppc64-NETINST-1.iso"
 
export DISTRO_ISO="debian-10.0-ppc64-NETINST-1.iso"
 
export DISTRO='debian-10.0'
 
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</code>
+
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</pre>
  
 
<code>apt install xtightvncviewer</code>
 
<code>apt install xtightvncviewer</code>
Line 24: Line 24:
 
<code>xtightvncviewer 192.168.1.21:99</code>
 
<code>xtightvncviewer 192.168.1.21:99</code>
  
Installation of Debian 10 PPC64 on QCOW2 disk image
+
=== Installation of Debian 10 PPC64 on QCOW2 disk image ===
 
   
 
   
 
* 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
Line 35: Line 35:
 
* <code>cloud-init,cloud-utils,<code><span class="nb">sudo</span>,adduser,lsb-release,busybox-static,console-setup,locales,<code>grub2-common</code>,openssh-server,file,kbd</code></code>
 
* <code>cloud-init,cloud-utils,<code><span class="nb">sudo</span>,adduser,lsb-release,busybox-static,console-setup,locales,<code>grub2-common</code>,openssh-server,file,kbd</code></code>
  
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.
+
We have 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:
 
If you prefer you can compressed id:
  

Latest revision as of 00:36, 7 December 2019

Debian 10 PPC64 Big Endian Image creation for OpenStack with qemu-system-ppc64

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.

The start guideline we have taken from OSL Wiki

First we load module kvm-pr:

modprobe kvm-pr we have downloaded debian-10.0-ppc64-NETINST-1.iso

We have created a 3GB QCOM image disk qemu-img create -f qcow2 $DISTRO.qcow2 3G

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 have 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