1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
This boots the powerkvm iso, does an install and
then copies the root filesystem off to a second disk
that is simpler (no lvm) and where the prep partition is
the second numbered partition but comes first (so that you
can just mount the first partition).
The powerkvm install allows you to hit 'ctrl-b 2' or
'ctrl-b 3' to move windows.
To create such a disk image:
qemu-img create -f raw sdb.img 80G
qemu-img create -f raw sda.img 10G
= network kickstart file =
python -m SimpleHTTPServer 8888
./boot-iso dl/ibm-powerkvm-2.1.1.0-27.0-ppc64-service-201411171553.iso \
sda.img sdb.img --net-ks=http://$YOUR_IP:8888/auto-simple.ks
= no network =
./boot-iso dl/ibm-powerkvm-2.1.1.0-27.0-ppc64-service-201411171553.iso \
sda.img sdb.img --stuff-ks=auto-simple.ks
Then, sdb will be the original installed target
sda will be the simplified target.
Boot sda with:
qemu-img create -f qcow2 -b sda.img disk.img
qemu-system-ppc64 -enable-kvm -machine pseries,accel=kvm,usb=off \
-cpu host -smp cores=2,threads=1 -m 8G \
-device spapr-vscsi \
-display none -nographic \
-drive file=disk.img
Log in as root:passw0rd
== ubuntu ==
This works for ubuntu big endian, for little endian best to
just use the cloud images.
./ubuntu-boot-iso ubuntu-14.04-server-powerpc.iso sda.img \
--stuff-preseed=ubuntu.preseed
Log in with 'ubuntu:ubuntu' (and sudo from there)
|