Difference between revisions of "OpenStackPPC64Debian10"

From Power Progress Community Projects Wiki
Jump to navigation Jump to search
(Created page with "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 G...")
 
Line 19: Line 19:
  
  
<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
  
  
Line 31: Line 33:
  
  
<pre>xtightvncviewer 192.168.1.21:99</pre>
+
<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
a
+
* using the guided partitioning tool and select manual partitioning
 +
* create <span style="font-weight:600" data-token-index="1" data-reactroot="">PREP partition</span> ( the first in the list) with at least 800MB with <span style="font-weight:600" data-token-index="3" data-reactroot="">boot flag enabled</span>
 +
* 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 )
 +
* <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>

Revision as of 00:18, 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

Installazione Debian 10 PPC64 su immagine Disco QCOW2

  • 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