MacBook-Pro:Junos jotho$ sudo ./junos-auto-fix-checkpic.sh jinstall-9.0S2-domestic-signed.tar
Looks like your tried to used a tar file which is already uncompressed. You have to use a file ending with tgz: jinstall-9.0S2-domestic-signed.tgz
I tested the script and it worked well using a tgz file.
OSX$ sudo junos-auto-fix-checkpic.sh jinstall-9.0R1.10-domestic-signed.tgz
=== Remove JunOS Checkpic Protection For Olive Platforms v1.1 ===
[Info]
Using file: jinstall-9.0R1.10-domestic-signed.tgz
This will go 4 times deep in archive structures
And will have 23 steps to complete.
[pwd = /Users/grossmj/Downloads/level1]
1) - Unpacking '../jinstall-9.0R1.10-domestic-signed.tgz' ... [Done]
2) - Check if file 'pkgtools.tgz' exist for replace... [Not found]
[pwd = /Users/grossmj/Downloads/level1/level2]
3) - Unpacking '../jinstall-9.0R1.10-domestic.tgz' ... [Done]
4) - Check if file 'pkgtools.tgz' exist for replace... f72e5eec1ef6442e46d5529b93e5b018 /tmp/JunOS_Pkgtools/pkgtools.tgz
[Replaced]
[pwd = /Users/grossmj/Downloads/level1/level2/level3]
5) - Unpacking '../jbundle-9.0R1.10-domestic.tgz' ... [Done]
6) - Check if file 'pkgtools.tgz' exist for replace... [Replaced]
[pwd = /Users/grossmj/Downloads/level1/level2/level3/level4]
7) - Unpacking '../jpfe-9.0R1.10.tgz' ... [Done]
8) - Check if file 'pkgtools.tgz' exist for replace... [Replaced]
9) - Repacking '../jpfe-9.0R1.10.tgz' ... [Done]
[pwd = /Users/grossmj/Downloads/level1/level2/level3]
10) - Erasing 'level4' ... [Done]
11) - Check if file 'jpfe-9.0R1.10.tgz.sha1' exist for replace ... [Recalculate]
12) - Repacking '../jbundle-9.0R1.10-domestic.tgz' ... [Done]
[pwd = /Users/grossmj/Downloads/level1/level2]
13) - Erasing 'level3' ... [Done]
14) - Check if file 'jbundle-9.0R1.10-domestic.tgz.sha1' exist for replace ... [Not found, Skip]
15) - Repacking '../jinstall-9.0R1.10-domestic.tgz' ... [Done]
[pwd = /Users/grossmj/Downloads/level1]
16) - Erasing 'level2' ... [Done]
17) - Check if file 'jinstall-9.0R1.10-domestic.tgz.sha1' exist for replace ... [Recalculate]
18) - Repacking '../jinstall-9.0R1.10-domestic-olive.tgz' ... [Done]
[pwd = /Users/grossmj/Downloads]
19) - Erasing 'level1' ... [Done]
20) - Check if file 'jinstall-9.0R1.10-domestic-olive.tgz.sha1' exist for replace ... [Not found, Skip]
21) - Clear temp '/tmp/JunOS_Pkgtools' ... [Done]
22) - Unprotected file: 'jinstall-9.0R1.10-domestic-olive.tgz'
Creating hybrid image...
...............................................................................................................................................
23) - Finished: Produced iso file: 'jinstall-9.0R1.10-domestic-olive.iso'
================ Start Time: 20:15:10 - End Time: 20:16:23 ================
This iso file can now be used to update your qemu freebsd-4.11.img image. (Available
from
http://www.gns3.net/appliances. Assuming your image is called freebsd-4.11.img
issue the following command to boot your image:
qemu -m 1G -hda freebsd-4.11.img -cdrom jinstall-9.0R1.10-domestic-olive.iso
1. When the image boots, login with the username of root -password root
2. Install the JunOS software using the following commands:
mount /cdrom
#Note: press <Enter> one more time once the mount is done
pkg_add -f /cdrom/jinstall-9.0R1.10-domestic-olive.tgz
Now walk away from your computer for 30 minutes. If your Qemu is displaying a message
A REBOOT IS REQUIRED TO LOAD THIS SOFTWARE CORRECTLY
Then
1. Issue the halt command at the (qemu) prompt
...Wait for the sytem to shutdown
2. Press <Ctrl>+<Alt>+2
3. Issue the quit command at the (qemu) prompt
Next time you boot the image, the software install will complete (very slowly)
Would this hdiutil: makehybrid failed - Operation not permitted error prevent Part 2, Step 3 error below from working?
This is a consequence of using the wrong file.
/Applications/GNS3.app/Contents/Resources/Qemu-0.11.0/bin/qemu –m 1G -hda olive-9.0S2.img -cdrom jinstall-9.0S2-domestic-olive.tar.iso
I get the error:
qemu: could not open disk image –m
Would this be because I have no cdrom on this macbook pro?
Nothing wrong with the cdrom option. -m is to specify the amount of memory. For some reason, Qemu doesn't like this parameter to be first. Try the following:
/Applications/GNS3.app/Contents/Resources/Qemu-0.11.0/bin/qemu -hda olive-9.0S2.img -m 1G -cdrom jinstall-9.0S2-domestic-olive.tar.iso
Hope this helps.