Skip to content

Instantly share code, notes, and snippets.

@tuklusan
Created November 10, 2019 01:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tuklusan/02168ed1eb607dc77fe90be9eed1d16d to your computer and use it in GitHub Desktop.
Save tuklusan/02168ed1eb607dc77fe90be9eed1d16d to your computer and use it in GitHub Desktop.
Install HP-UX 11i on QEMU: Installation Phase - QEMU Monitor; see https://supratim-sanyal.blogspot.com/2019/11/hpux-11i-v1-hpux-1111-pa-risc-guest.html
[localuser@dell-poweredge-2950 ~/Qemu-VirtualMachines/hpux]$ # -----------------------------------------------cat r.shvi r.sh./r.sh cat r.sh./qemu-system-hppa -net nic,model=helpversion
QEMU emulator version 4.1.50 (v4.1.0-2221-g36609b4fa3-dirty)
Copyright (c) 2003-2019 Fabrice Bellard and the QEMU Project developers
[localuser@dell-poweredge-2950 ~/Qemu-VirtualMachines/hpux]$
[localuser@dell-poweredge-2950 ~/Qemu-VirtualMachines/hpux]$
[localuser@dell-poweredge-2950 ~/Qemu-VirtualMachines/hpux]$ ./qemu-system-hppa -version# -----------------------------------------------cat r.shvi r.sh./r.sh cat r.sh./qemu-system-hppa -net nic,model=help
Supported NIC models:
e1000
e1000-82544gc
e1000-82545em
i82550
i82551
i82557a
i82557b
i82557c
i82558a
i82558b
i82559a
i82559b
i82559c
i82559er
i82562
i82801
ne2k_pci
pcnet
rtl8139
tulip
virtio-net-pci
virtio-net-pci-non-transitional
virtio-net-pci-transitional
vmxnet3
[localuser@dell-poweredge-2950 ~/Qemu-VirtualMachines/hpux]$
[localuser@dell-poweredge-2950 ~/Qemu-VirtualMachines/hpux]$
[localuser@dell-poweredge-2950 ~/Qemu-VirtualMachines/hpux]$
[localuser@dell-poweredge-2950 ~/Qemu-VirtualMachines/hpux]$ ./qemu-system-hppa -net nic,model=helpversion# -----------------------------------------------cat r.sh
#!/bin/sh
#
# Launches HP PARISC emulator and drops to QEMU monitor prompt
# Telnet to port CONSOLE_TELNET_PORT_NUM to access console
#
# -boot d -> Boot from CD ROM; -boot c -> Boot from Hard Disk
#
CONSOLE_TELNET_PORT_NUM=54321
./qemu-system-hppa \
-boot d \
-m 512 \
-drive if=scsi,bus=0,index=0,file=./hpux-striped-disk-1.8gb.raw.dsk,format=raw \
-drive if=scsi,bus=0,index=1,file=./hpux-striped-disk-2.8gb.raw.dsk,format=raw \
-cdrom ./ISO/hpux11-01.iso \
-net nic,model=tulip \
-net tap,ifname=tap4,script=no \
-serial telnet::${CONSOLE_TELNET_PORT_NUM},server \
-serial mon:stdio \
-nographic \
-d nochain ### -smp cpus=2 ### \ -accel tcg,thread=multi
[localuser@dell-poweredge-2950 ~/Qemu-VirtualMachines/hpux]$
[localuser@dell-poweredge-2950 ~/Qemu-VirtualMachines/hpux]$
[localuser@dell-poweredge-2950 ~/Qemu-VirtualMachines/hpux]$
[localuser@dell-poweredge-2950 ~/Qemu-VirtualMachines/hpux]$ ./r.sh
qemu-system-hppa: -serial telnet::54321,server: info: QEMU waiting for connection on: disconnected:telnet::::54321,server
QEMU 4.1.50 monitor - type 'help' for more information
(qemu)
(qemu) iininfinfoinfo info binfo blinfo bloinfo blocinfo block
scsi0-hd0 (#block123): ./hpux-striped-disk-1.8gb.raw.dsk (raw)
Attached to: /machine/unattached/device[6]/scsi.0/legacy[0]
Cache mode: writeback
scsi0-hd1 (#block352): ./hpux-striped-disk-2.8gb.raw.dsk (raw)
Attached to: /machine/unattached/device[6]/scsi.0/legacy[1]
Cache mode: writeback
scsi0-cd2 (#block564): ./ISO/hpux11-01.iso (raw, read-only)
Attached to: /machine/unattached/device[6]/scsi.0/legacy[2]
Removable device: not locked, tray closed
Cache mode: writeback
floppy0: [not inserted]
Removable device: not locked, tray closed
sd0: [not inserted]
Removable device: not locked, tray closed
(qemu)
(qemu)
(qemu) cchchachanchangchangechange change schange scchange scschange scsichange scsi0change scsi0-change scsi0-cchange scsi0-cdchange scsi0-cd2change scsi0-cd2 change scsi0-cd2 Ichange scsi0-cd2 ISchange scsi0-cd2 ISOchange scsi0-cd2 ISO/change scsi0-cd2 ISO/hchange scsi0-cd2 ISO/hpchange scsi0-cd2 ISO/hpuchange scsi0-cd2 ISO/hpuxchange scsi0-cd2 ISO/hpux1change scsi0-cd2 ISO/hpux11change scsi0-cd2 ISO/hpux11-change scsi0-cd2 ISO/hpux11-0change scsi0-cd2 ISO/hpux11-02change scsi0-cd2 ISO/hpux11-02.change scsi0-cd2 ISO/hpux11-02.ichange scsi0-cd2 ISO/hpux11-02.ischange scsi0-cd2 ISO/hpux11-02.iso
(qemu)
(qemu) change scsi0-cd2 ISO/hpux11-02.isochange scsi0-cd ISO/hpux11-02.isochange scsi0-cd2 ISO/hpux11-02.isochange scsi0-cd2 ISO/hpux11-0.isochange scsi0-cd2 ISO/hpux11-03.iso
(qemu)
(qemu) iininfinfoinfo info binfo blinfo bloinfo blocinfo block
scsi0-hd0 (#block123): ./hpux-striped-disk-1.8gb.raw.dsk (raw)
Attached to: /machine/unattached/device[6]/scsi.0/legacy[0]
Cache mode: writeback
scsi0-hd1 (#block352): ./hpux-striped-disk-2.8gb.raw.dsk (raw)
Attached to: /machine/unattached/device[6]/scsi.0/legacy[1]
Cache mode: writeback
scsi0-cd2 (#block901): ISO/hpux11-03.iso (raw, read-only)
Attached to: /machine/unattached/device[6]/scsi.0/legacy[2]
Removable device: not locked, tray closed
Cache mode: writeback
floppy0: [not inserted]
Removable device: not locked, tray closed
sd0: [not inserted]
Removable device: not locked, tray closed
(qemu)
(qemu)
(qemu) info blockchange scsi0-cd2 ISO/hpux11-03.isochange scsi0-cd2 ISO/hpux11-0.isochange scsi0-cd2 ISO/hpux11-04.iso
(qemu)
(qemu) iininfinfoinfo info binfo blinfo bloinfo blocinfo block
scsi0-hd0 (#block123): ./hpux-striped-disk-1.8gb.raw.dsk (raw)
Attached to: /machine/unattached/device[6]/scsi.0/legacy[0]
Cache mode: writeback
scsi0-hd1 (#block352): ./hpux-striped-disk-2.8gb.raw.dsk (raw)
Attached to: /machine/unattached/device[6]/scsi.0/legacy[1]
Cache mode: writeback
scsi0-cd2 (#block1145): ISO/hpux11-04.iso (raw, read-only)
Attached to: /machine/unattached/device[6]/scsi.0/legacy[2]
Removable device: not locked, tray closed
Cache mode: writeback
floppy0: [not inserted]
Removable device: not locked, tray closed
sd0: [not inserted]
Removable device: not locked, tray closed
(qemu) [localuser@dell-poweredge-2950 ~/Qemu-VirtualMachines/hpux]$
[localuser@dell-poweredge-2950 ~/Qemu-VirtualMachines/hpux]$
[localuser@dell-poweredge-2950 ~/Qemu-VirtualMachines/hpux]$
[localuser@dell-poweredge-2950 ~/Qemu-VirtualMachines/hpux]$
[localuser@dell-poweredge-2950 ~/Qemu-VirtualMachines/hpux]$
[localuser@dell-poweredge-2950 ~/Qemu-VirtualMachines/hpux]$
[localuser@dell-poweredge-2950 ~/Qemu-VirtualMachines/hpux]$ # ---------------- TAKE A BACKUP OF THE INITIAL INSTALL
[localuser@dell-poweredge-2950 ~/Qemu-VirtualMachines/hpux]$
[localuser@dell-poweredge-2950 ~/Qemu-VirtualMachines/hpux]$
[localuser@dell-poweredge-2950 ~/Qemu-VirtualMachines/hpux]$
[localuser@dell-poweredge-2950 ~/Qemu-VirtualMachines/hpux]$ ls at rchive/
hpux-qcow2-disk.dsk
[localuser@dell-poweredge-2950 ~/Qemu-VirtualMachines/hpux]$ rm archive/*
[localuser@dell-poweredge-2950 ~/Qemu-VirtualMachines/hpux]$ tar cvjf archive/first-boot.tar.ba z3 2 
HP-UX networking related tools and commands - nixCraft.pdf
ISO/
Running HP-UX 11.11 on qemu-system-hppa.pdf
archive/
change-cd-rom-qemu.txt
compact-qcow2-disk.sh
hppa-firmware.img
hpux-inst-console.log
hpux-inst-qemu.log
hpux-striped-disk-1.8gb.raw.dsk
hpux-striped-disk-2.8gb.raw.dsk
qemu-supported-network-adapters.txt
qemu-system-hppa
qemu-system-hppa.bak
r.sh
run-hpux-11-11.sh
[localuser@dell-poweredge-2950 ~/Qemu-VirtualMachines/hpux]$ tar cvjf archive/first-boot.tar.bz2 hppa-firmware.img *dsk q
er e mu-system-hppa r.sh
a hppa-firmware.img
a hpux-striped-disk-1.8gb.raw.dsk
a hpux-striped-disk-2.8gb.raw.dsk
a qemu-system-hppa
a r.sh
[localuser@dell-poweredge-2950 ~/Qemu-VirtualMachines/hpux]$
[localuser@dell-poweredge-2950 ~/Qemu-VirtualMachines/hpux]$
[localuser@dell-poweredge-2950 ~/Qemu-VirtualMachines/hpux]$ # ----- CONVERT DISKS TO QCOW2
[localuser@dell-poweredge-2950 ~/Qemu-VirtualMachines/hpux]$
[localuser@dell-poweredge-2950 ~/Qemu-VirtualMachines/hpux]$ # ----- CONVERT DISKS TO QCOW2 tar cvjf archive/first-boot.tar.bz2 hppa-firmware.img *dsk qe
emu-system-hppa r.sh Me-2950 ~/Qemu-VirtualMachines/hpux]$ rm archive/*
M[localuser@dell-poweredge-2950 ~/Qemu-VirtualMachines/hpux]$ rm archive/*            
[localuser@dell-poweredge-2950 ~/Qemu-VirtualMachines/hpux]$
[localuser@dell-poweredge-2950 ~/Qemu-VirtualMachines/hpux]$ qemu-img convert -f raw -O qcow2 hpux-striped-disk-1.8gb.raw.
.dsk hpux-striped-disk-1.8gb.raw.dsk[1@8[1@g[1@n[1@b[1@-disk-1.8gb.raw[1@q[1@c[1@o[1@w[1@2
[localuser@dell-poweredge-2950 ~/Qemu-VirtualMachines/hpux]$ qemu-img convert -f raw -O qcow2 hpux-striped-disk-1.8gb.raw.
.dsk hpux-striped-8gb-disk-1.qcow2.dsk
M[localuser@dell-poweredge-2950 ~/Qemu-VirtualMachines/hpux]$ qemu-img convert -f raw -O qcow2 hpux-striped-disk-1.8gb.ra.8gb.raw.dMlocaluser@dell-poweredge-2950 ~/Qemu-VirtualMachines/hpux]$ qemu-img convert -f raw -O qcow2 hpux-striped-disk-2.8gb.raw.[1@dMumtuk@dell-poweredge-2950 ~/Qemu-VirtualMachines/hpux]$ qemu-img convert -f raw -O qcow2 hpux-striped-disk-2.8gb.ra
.dsk hpux-striped-8gb-disk-1[1@2
[localuser@dell-poweredge-2950 ~/Qemu-VirtualMachines/hpux]$
[localuser@dell-poweredge-2950 ~/Qemu-VirtualMachines/hpux]$
[localuser@dell-poweredge-2950 ~/Qemu-VirtualMachines/hpux]$ ls -lh *dsk
-rw-r--r-- 1 localuser localuser 1.5G Nov 3 14:36 hpux-striped-8gb-disk-1.qcow2.dsk
-rw-r--r-- 1 localuser localuser 1.4G Nov 3 14:37 hpux-striped-8gb-disk-2.qcow2.dsk
-rw-r--r-- 1 localuser localuser 8.0G Nov 3 14:17 hpux-striped-disk-1.8gb.raw.dsk
-rw-r--r-- 1 localuser localuser 8.0G Nov 3 14:17 hpux-striped-disk-2.8gb.raw.dsk
[localuser@dell-poweredge-2950 ~/Qemu-VirtualMachines/hpux]$
[localuser@dell-poweredge-2950 ~/Qemu-VirtualMachines/hpux]$ rm hpux-striped-disk-
hpux-striped-disk-1.8gb.raw.dsk hpux-striped-disk-2.8gb.raw.dsk
[localuser@dell-poweredge-2950 ~/Qemu-VirtualMachines/hpux]$ rm hpux-striped-disk-*dsk
[localuser@dell-poweredge-2950 ~/Qemu-VirtualMachines/hpux]$
[localuser@dell-poweredge-2950 ~/Qemu-VirtualMachines/hpux]$ rm hpux-striped-disk-*dskls -lh *dsk
-rw-r--r-- 1 localuser localuser 1.5G Nov 3 14:36 hpux-striped-8gb-disk-1.qcow2.dsk
-rw-r--r-- 1 localuser localuser 1.4G Nov 3 14:37 hpux-striped-8gb-disk-2.qcow2.dsk
[localuser@dell-poweredge-2950 ~/Qemu-VirtualMachines/hpux]$
[localuser@dell-poweredge-2950 ~/Qemu-VirtualMachines/hpux]$ # ------- ADJUST r.sh for 1cow    qcow2 disk and SMP   2 Processore s +A  Acce
leration
[localuser@dell-poweredge-2950 ~/Qemu-VirtualMachines/hpux]$
[localuser@dell-poweredge-2950 ~/Qemu-VirtualMachines/hpux]$
[localuser@dell-poweredge-2950 ~/Qemu-VirtualMachines/hpux]$ vi r.sh
[?1049h[?1h=#!/bin/sh
## Launches HP PARISC emulator and drops to QEMU monitor prompt
# Telnet to port CONSOLE_TELNET_PORT_NUM to access console
## -boot d -> Boot from CD ROM; -boot c -> Boot from Hard Disk
#CONSOLE_TELNET_PORT_NUM=54321
./qemu-system-hppa \-boot d \-m 512 \-drive if=scsi,bus=0,index=0,file=./hpux-striped-disk-1.8gb.raw.dsk,format=raw \-drive if=scsi,bus=0,index=1,file=./hpux-striped-disk-2.8gb.raw.dsk,format=raw \-cdrom ./ISO/hpux11-01.iso \-net nic,model=tulip \-net tap,ifname=tap4,script=no \-serial telnet::${CONSOLE_TELNET_PORT_NUM},server \-serial mon:stdio \-nographic \-d nochain ### -smp cpus=2 ### \ -accel tcg,thread=multi
~~~~~~r.sh: unmodified: line 1M -drive if=scsi,bus=,index=,file=./
Copying file for recovery...
/hpux-striped-8gb-disk-1.qcow2.dsk, format=qcow2 \,index=,file=./h/hpux-striped-8gb-disk-1.qcow2.dsk2Mk,k,format=qcow2 \
i
 M Msync;sync;sync
 Mexit 0
~MMMMMMMMMMMMMM -boot c
:wq
r.sh: 23 lines, 703 characters
[?1l>
.
[?1049l
[?1l>[localuser@dell-poweredge-2950 ~/Qemu-VirtualMachines/hpux]$
[localuser@dell-poweredge-2950 ~/Qemu-VirtualMachines/hpux]$
[localuser@dell-poweredge-2950 ~/Qemu-VirtualMachines/hpux]$
[localuser@dell-poweredge-2950 ~/Qemu-VirtualMachines/hpux]$
[localuser@dell-poweredge-2950 ~/Qemu-VirtualMachines/hpux]$ cat r.sh
#!/bin/sh
#
# Launches HP PARISC emulator and drops to QEMU monitor prompt
# Telnet to port CONSOLE_TELNET_PORT_NUM to access console
#
# -boot d -> Boot from CD ROM; -boot c -> Boot from Hard Disk
#
CONSOLE_TELNET_PORT_NUM=54321
./qemu-system-hppa \
-boot c \
-m 512 \
-drive if=scsi,bus=0,index=0,file=./hpux-striped-8gb-disk-1.qcow2.dsk,format=qcow2 \
-drive if=scsi,bus=0,index=1,file=./hpux-striped-8gb-disk-2.qcow2.dsk,format=qcow2 \
-cdrom ./ISO/hpux11-01.iso \
-net nic,model=tulip \
-net tap,ifname=tap4,script=no \
-serial telnet::${CONSOLE_TELNET_PORT_NUM},server \
-serial mon:stdio \
-nographic \
-d nochain ### -smp cpus=2 ### \ -accel tcg,thread=multi
sync;sync;sync
exit 0
[localuser@dell-poweredge-2950 ~/Qemu-VirtualMachines/hpux]$
[localuser@dell-poweredge-2950 ~/Qemu-VirtualMachines/hpux]$ # ---- B FIRST BOOT FROM HARD DISK -0 ----------
-rw-r--r-- 0 localuser localuser 783724 Oct 13 12:53 hppa-firmware.img
-rw-r--r-- 0 localuser localuser 8589934592 Nov 3 14:17 hpux-striped-disk-1.8gb.raw.dsk^C
[localuser@dell-poweredge-2950 ~/Qemu-VirtualMachines/hpux/archive]$ cd ..
[localuser@dell-poweredge-2950 ~/Qemu-VirtualMachines/hpux]$ ls ( ( *dsk
hpux-striped-8gb-disk-1.qcow2.dsk hpux-striped-8gb-disk-2.qcow2.dsk
[localuser@dell-poweredge-2950 ~/Qemu-VirtualMachines/hpux]$ rm -o   i ( ( *dsk
remove hpux-striped-8gb-disk-1.qcow2.dsk? y
remove hpux-striped-8gb-disk-2.qcow2.dsk? y
[localuser@dell-poweredge-2950 ~/Qemu-VirtualMachines/hpux]$ cd archive/
[localuser@dell-poweredge-2950 ~/Qemu-VirtualMachines/hpux/archive]$ tar xvjf first-boot.tar.bz2
x hppa-firmware.img
x hpux-striped-disk-1.8gb.raw.dsk
x hpux-striped-disk-2.8gb.raw.dsk
x qemu-system-hppa
x r.sh
[localuser@dell-poweredge-2950 ~/Qemu-VirtualMachines/hpux/archive]$ mv *dsk ..
[localuser@dell-poweredge-2950 ~/Qemu-VirtualMachines/hpux/archive]$
(reverse-i-search)`': c': cd archive/o': # ------- ADJUST r.sh for qcow2 disk and 2 Processors + Acceleration
(reverse-i-search)`con': qemu-img convert -f raw -O qcow2 hpux-striped-disk-2.8gb.raw.dsk hpux-striped-8gb-disk-2.qcow2
2.dskMrse-i-search)`con': qemu-img v': qemu-img convert -f raw -O qcow2 hpux-striped-disk-2.8gb.raw.dsk hpux-striped-8gb-disk-2.qcow[1@2Meverse-i-search)`conv': qemu-img e': qemu-img convert -f raw -O qcow2 hpux-striped-disk-2.8gb.raw.dsk hpux-striped-8gb-disk-2.qco[1@wMeverse-i-search)`conve': qemu-img r': qemu-img convert -f raw -O qcow2 hpux-striped-disk-2.8gb.raw.dsk hpux-striped-8gb-disk-2.qc[1@oMeverse-i-search)`conver': qemu-img
[localuser@dell-poweredge-2950 ~/Qemu-VirtualMachines/hpux/archive]$ qemu-img convert -f raw -O qcow2 hpux-striped-disk-2.[38@8gb.raw.dsk hpux-striped-8gb-disk-2.qcMualMachines/hpux/archive]$ qemu-img convert -f raw -O qcow2 hpux-striped-disk-
.8gb.raw.dsk hpux-striped-8gb-disk-2.qcow2.dsk
M[localuser@dell-poweredge-2950 ~/Qemu-VirtualMachines/hpux/archive]$ qemu-img convert -f raw -O qcow2 hpux-striped-disk- hpux-striped-disk-
M[localuser@dell-poweredge-2950 ~/Qemu-VirtualMachines/hpux/archive]$ qemu-img convert -f raw -O qcow2 hpux-striped-disk-.8Mlocaluser@dell-poweredge-2950 ~/Qemu-VirtualMachines/hpux/archive]$ qemu-img convert -f raw -O qcow2 hpux-striped-disk-1.[1@8
.8gb.raw.dsk hpux-striped-8gb-disk-2[1@1
qemu-img: Could not open 'hpux-striped-disk-1.8gb.raw.dsk': Could not open 'hpux-striped-disk-1.8gb.raw.dsk': No such file or directory
[localuser@dell-poweredge-2950 ~/Qemu-VirtualMachines/hpux/archive]$ ls *dsk
ls: *dsk: No such file or directory
[localuser@dell-poweredge-2950 ~/Qemu-VirtualMachines/hpux/archive]$ cd ..
[localuser@dell-poweredge-2950 ~/Qemu-VirtualMachines/hpux]$ cd ..ls *dskqemu-img convert -f raw -O qcow2 hpux-striped-disk-1.8gb.raw.
.dsk hpux-striped-8gb-disk-1.qcow2.dsk
[localuser@dell-poweredge-2950 ~/Qemu-VirtualMachines/hpux]$ qemu-img convert -f raw -O qcow2 hpux-striped-disk-1.8gb.raw.
.dsk hpux-striped-8gb-disk-1.qcow2.dsk
M[localuser@dell-poweredge-2950 ~/Qemu-VirtualMachines/hpux]$ qemu-img convert -f raw -O qcow2 hpux-striped-disk-1.8gb.ra.8gb.raw.dMlocaluser@dell-poweredge-2950 ~/Qemu-VirtualMachines/hpux]$ qemu-img convert -f raw -O qcow2 hpux-striped-disk-2.8gb.raw.[1@dMumtuk@dell-poweredge-2950 ~/Qemu-VirtualMachines/hpux]$ qemu-img convert -f raw -O qcow2 hpux-striped-disk-2.8gb.ra
.dsk hpux-striped-8gb-disk-1[1@2
[localuser@dell-poweredge-2950 ~/Qemu-VirtualMachines/hpux]$ ls -al
total 6090184
drwxr-xr-x 4 localuser localuser 1024 Nov 6 03:32 .
drwxr-xr-x 7 localuser localuser 512 Nov 2 16:08 ..
-rw------- 1 localuser localuser 98611 Oct 20 04:53 HP-UX networking related tools and commands - nixCraft.pdf
drwxr-xr-x 2 localuser localuser 512 Oct 13 07:25 ISO
-r-------- 1 localuser localuser 12351131 Oct 13 07:11 Running HP-UX 11.11 on qemu-system-hppa.pdf
drwxr-xr-x 2 localuser localuser 512 Nov 6 03:27 archive
-rw-r--r-- 1 localuser localuser 598 Oct 20 04:38 change-cd-rom-qemu.txt
-rwxr-xr-x 1 localuser localuser 426 Oct 24 02:10 compact-qcow2-disk.sh
-rw-r--r-- 1 localuser localuser 783724 Oct 13 12:53 hppa-firmware.img
-rw-r--r-- 1 localuser localuser 244071 Nov 6 03:20 hpux-inst-console.log
-rw-r--r-- 1 localuser localuser 47313 Nov 6 03:33 hpux-inst-qemu.log
-rw-r--r-- 1 localuser localuser 1596784640 Nov 6 03:29 hpux-striped-8gb-disk-1.qcow2.dsk
-rw-r--r-- 1 localuser localuser 1471414272 Nov 6 03:32 hpux-striped-8gb-disk-2.qcow2.dsk
-rw-r--r-- 1 localuser localuser 8589934592 Nov 3 14:17 hpux-striped-disk-1.8gb.raw.dsk
-rw-r--r-- 1 localuser localuser 8589934592 Nov 3 14:17 hpux-striped-disk-2.8gb.raw.dsk
-rw-r--r-- 1 localuser localuser 343 Nov 1 01:51 qemu-supported-network-adapters.txt
-rwxr-xr-x 1 localuser localuser 36997400 Nov 3 02:50 qemu-system-hppa
-rwxr-xr-x 1 localuser localuser 36875104 Oct 13 07:23 qemu-system-hppa.bak
-rwxr-xr-x 1 localuser localuser 696 Nov 6 03:23 r.sh
-rwxr-xr-x 1 localuser localuser 988 Nov 2 01:37 run-hpux-11-11.sh
[localuser@dell-poweredge-2950 ~/Qemu-VirtualMachines/hpux]$ rm -i *raw.dsk
remove hpux-striped-disk-1.8gb.raw.dsk? y
remove hpux-striped-disk-2.8gb.raw.dsk? y
[localuser@dell-poweredge-2950 ~/Qemu-VirtualMachines/hpux]$ cd archive/
[localuser@dell-poweredge-2950 ~/Qemu-VirtualMachines/hpux/archive]$ ls
first-boot.tar.bz2 hppa-firmware.img qemu-system-hppa r.sh
[localuser@dell-poweredge-2950 ~/Qemu-VirtualMachines/hpux/archive]$ rm -i *
remove first-boot.tar.bz2? n
remove hppa-firmware.img? y
remove qemu-system-hppa? y
remove r.sh? y
[localuser@dell-poweredge-2950 ~/Qemu-VirtualMachines/hpux/archive]$
[localuser@dell-poweredge-2950 ~/Qemu-VirtualMachines/hpux/archive]$ sync
[localuser@dell-poweredge-2950 ~/Qemu-VirtualMachines/hpux/archive]$ ls
first-boot.tar.bz2
[localuser@dell-poweredge-2950 ~/Qemu-VirtualMachines/hpux/archive]$ cd ..
[localuser@dell-poweredge-2950 ~/Qemu-VirtualMachines/hpux]$ s ls
HP-UX networking related tools and commands - nixCraft.pdf
ISO
Running HP-UX 11.11 on qemu-system-hppa.pdf
archive
change-cd-rom-qemu.txt
compact-qcow2-disk.sh
hppa-firmware.img
hpux-inst-console.log
hpux-inst-qemu.log
hpux-striped-8gb-disk-1.qcow2.dsk
hpux-striped-8gb-disk-2.qcow2.dsk
qemu-supported-network-adapters.txt
qemu-system-hppa
qemu-system-hppa.bak
r.sh
run-hpux-11-11.sh
[localuser@dell-poweredge-2950 ~/Qemu-VirtualMachines/hpux]$ cat r.sh
#!/bin/sh
#
# Launches HP PARISC emulator and drops to QEMU monitor prompt
# Telnet to port CONSOLE_TELNET_PORT_NUM to access console
#
# -boot d -> Boot from CD ROM; -boot c -> Boot from Hard Disk
#
CONSOLE_TELNET_PORT_NUM=54321
./qemu-system-hppa \
-boot c \
-m 512 \
-drive if=scsi,bus=0,index=0,file=./hpux-striped-8gb-disk-1.qcow2.dsk,format=qcow2 \
-drive if=scsi,bus=0,index=1,file=./hpux-striped-8gb-disk-2.qcow2.dsk,format=qcow2 \
-cdrom ./ISO/hpux11-01.iso \
-net nic,model=tulip \
-net tap,ifname=tap4,script=no \
-serial telnet::${CONSOLE_TELNET_PORT_NUM},server \
-serial mon:stdio \
-nographic \
-d nochain ### -smp cpus=2 -accel tcg,thread=multi
sync;sync;sync
exit 0
[localuser@dell-poweredge-2950 ~/Qemu-VirtualMachines/hpux]$ ls -l hpux-striped-8gb-disk-1.qcow2.dsk
-rw-r--r-- 1 localuser localuser 1596784640 Nov 6 03:29 hpux-striped-8gb-disk-1.qcow2.dsk
[localuser@dell-poweredge-2950 ~/Qemu-VirtualMachines/hpux]$ ls -l hpux-striped-8gb-disk-1.qcow2.dsk[1@2
-rw-r--r-- 1 localuser localuser 1471414272 Nov 6 03:32 hpux-striped-8gb-disk-2.qcow2.dsk
[localuser@dell-poweredge-2950 ~/Qemu-VirtualMachines/hpux]$
[localuser@dell-poweredge-2950 ~/Qemu-VirtualMachines/hpux]$ ###########################################
[localuser@dell-poweredge-2950 ~/Qemu-VirtualMachines/hpux]$ ##########################################
[localuser@dell-poweredge-2950 ~/Qemu-VirtualMachines/hpux]$ ########## STAT RT $$  #########################
[localuser@dell-poweredge-2950 ~/Qemu-VirtualMachines/hpux]$ ##########################################
[localuser@dell-poweredge-2950 ~/Qemu-VirtualMachines/hpux]$ ##########################################
[localuser@dell-poweredge-2950 ~/Qemu-VirtualMachines/hpux]$
[localuser@dell-poweredge-2950 ~/Qemu-VirtualMachines/hpux]$
[localuser@dell-poweredge-2950 ~/Qemu-VirtualMachines/hpux]$
[localuser@dell-poweredge-2950 ~/Qemu-VirtualMachines/hpux]$
[localuser@dell-poweredge-2950 ~/Qemu-VirtualMachines/hpux]$
[localuser@dell-poweredge-2950 ~/Qemu-VirtualMachines/hpux]$
[localuser@dell-poweredge-2950 ~/Qemu-VirtualMachines/hpux]$
[localuser@dell-poweredge-2950 ~/Qemu-VirtualMachines/hpux]$
[localuser@dell-poweredge-2950 ~/Qemu-VirtualMachines/hpux]$
[localuser@dell-poweredge-2950 ~/Qemu-VirtualMachines/hpux]$
[localuser@dell-poweredge-2950 ~/Qemu-VirtualMachines/hpux]$
[localuser@dell-poweredge-2950 ~/Qemu-VirtualMachines/hpux]$
[localuser@dell-poweredge-2950 ~/Qemu-VirtualMachines/hpux]$
[localuser@dell-poweredge-2950 ~/Qemu-VirtualMachines/hpux]$
[localuser@dell-poweredge-2950 ~/Qemu-VirtualMachines/hpux]$
[localuser@dell-poweredge-2950 ~/Qemu-VirtualMachines/hpux]$
[localuser@dell-poweredge-2950 ~/Qemu-VirtualMachines/hpux]$
[localuser@dell-poweredge-2950 ~/Qemu-VirtualMachines/hpux]$
[localuser@dell-poweredge-2950 ~/Qemu-VirtualMachines/hpux]$
[localuser@dell-poweredge-2950 ~/Qemu-VirtualMachines/hpux]$
[localuser@dell-poweredge-2950 ~/Qemu-VirtualMachines/hpux]$
[localuser@dell-poweredge-2950 ~/Qemu-VirtualMachines/hpux]$
[localuser@dell-poweredge-2950 ~/Qemu-VirtualMachines/hpux]$ cat r.sh
#!/bin/sh
#
# Launches HP PARISC emulator and drops to QEMU monitor prompt
# Telnet to port CONSOLE_TELNET_PORT_NUM to access console
#
# -boot d -> Boot from CD ROM; -boot c -> Boot from Hard Disk
#
CONSOLE_TELNET_PORT_NUM=54321
./qemu-system-hppa \
-boot c \
-m 512 \
-drive if=scsi,bus=0,index=0,file=./hpux-striped-8gb-disk-1.qcow2.dsk,format=qcow2 \
-drive if=scsi,bus=0,index=1,file=./hpux-striped-8gb-disk-2.qcow2.dsk,format=qcow2 \
-cdrom ./ISO/hpux11-01.iso \
-net nic,model=tulip \
-net tap,ifname=tap4,script=no \
-serial telnet::${CONSOLE_TELNET_PORT_NUM},server \
-serial mon:stdio \
-nographic \
-d nochain ### -smp cpus=2 -accel tcg,thread=multi
sync;sync;sync
exit 0
[localuser@dell-poweredge-2950 ~/Qemu-VirtualMachines/hpux]$ ./run-hpux-11-11.sh                     
[localuser@dell-poweredge-2950 ~/Qemu-VirtualMachines/hpux]$
[localuser@dell-poweredge-2950 ~/Qemu-VirtualMachines/hpux]$
[localuser@dell-poweredge-2950 ~/Qemu-VirtualMachines/hpux]$
[localuser@dell-poweredge-2950 ~/Qemu-VirtualMachines/hpux]$
[localuser@dell-poweredge-2950 ~/Qemu-VirtualMachines/hpux]$
[localuser@dell-poweredge-2950 ~/Qemu-VirtualMachines/hpux]$ ./r.sh
qemu-system-hppa: -serial telnet::54321,server: info: QEMU waiting for connection on: disconnected:telnet::::54321,server
QEMU 4.1.50 monitor - type 'help' for more information
(qemu)
(qemu) iininfinfoinfo infoinfini[localuser@dell-poweredge-2950 ~/Qemu-VirtualMachines/hpux]$ exit
Script done on Wed Nov 6 08:43:43 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment