OpenStackPPC64Debian10: Difference between revisions

From Power Progress Community Projects Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(8 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.


The start guideline we have taken from  [https://wiki.osuosl.org/openpower/guests.html OSL Wiki]


First we load module kvm-pr:
First we load module kvm-pr:


<code>modprobe kvm-pr</code>
we have downloaded [//repo.powerprogress.org/debian/install/current/debian-10.0-ppc64-NETINST-1.iso debian-10.0-ppc64-NETINST-1.iso]


 
We have created a 3GB QCOM image disk
 
<code>qemu-img create -f qcow2 $DISTRO.qcow2 3G</code>
 
<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"
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</pre>


<code>apt install xtightvncviewer</code>
and then start the client that point to the host machine where is running qemu
<code>xtightvncviewer 192.168.1.21:99</code>


 
=== Installation of Debian 10 PPC64 on QCOW2 disk image ===
 
<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>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
Line 42: Line 34:
* select packages to install ( below the list of the needed package for OpenStack )
* select packages to install ( below the list of the needed package for OpenStack )
* <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 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:
<code>
qemu-img convert -O qcow2 -c debian-10.0.qcow2 debian-10.0-v2-compressed.qcow2
</code>

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