Comment 5 for bug 1524366

Revision history for this message
Scott Moser (smoser) wrote :

Because I had access to a ppc64el system (wily) that I could fairly
easily test this on, I went ahead and verified ppc64el with the following.

## get qemu/kvm setup
$ sudo apt-get update
$ sudo apt-get install qemu-system-ppc64
$ sudo chmod 666 /dev/kvm # i know, but rather than dealing with log out or sg
$ sudo ppc64_cpu --smt=off
$ sudo modprobe kvm_hv

$ burl="http://ports.ubuntu.com/dists/trusty-proposed/main/installer-ppc64el/current/images/wily-netboot/ubuntu-installer/"

$ wget "$burl/ppc64el/vmlinux" -O kernel
$ wget "$burl/ppc64el/initrd.gz" -O initrd

$ md5sum kernel initrd
685aafad26b086740a752de521d6e08a kernel
de554fab88e5422223212d3c2434f939 initrd

$ ls -l kernel initrd
-rw-rw-r-- 1 ubuntu ubuntu 21925967 Dec 9 20:50 initrd
-rw-rw-r-- 1 ubuntu ubuntu 22323480 Dec 9 20:50 kernel

$ qemu-img create -f qcow2 disk.img 4G

$ PRESEED_URL=http://some.url
$ qemu-system-ppc64 -echr 0x05 -enable-kvm -m 1024 -nographic \
   -device virtio-net-pci,netdev=net00 -netdev type=user,id=net00 \
   -drive if=virtio,file=disk.img,cache=unsafe \
   -no-reboot -kernel kernel -initrd initrd \
   -append "apt-setup/proposed=true nomodeset fb=false priority=critical console=hvc0 locale=en_US url=$PRESEED_URL"

## now boot system
$ mv disk.img disk.img.pristine
$ chmod ugo-w disk.img.pristine
$ qemu-img create -f qcow2 -b disk.img.pristine disk.img
$ qemu-system-ppc64 -echr 0x05 -enable-kvm -m 1024 -nographic \
   -device virtio-net-pci,netdev=net00 -netdev type=user,id=net00 \
   -drive if=virtio,file=disk.img,cache=unsafe

## Then boot the system, removing the '-kernel and -initrd'
## verify that I'm running the right kernel

ubuntu@ubuntu:~$ uname -r
4.2.0-23-generic
ubuntu@ubuntu:~$ lsb_release -sc
trusty
ubuntu@ubuntu:~$ dpkg -S /boot/vmlinu?-$(uname -r)
linux-image-4.2.0-23-generic: /boot/vmlinux-4.2.0-23-generic