<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-1575065385787258846</id><updated>2012-02-17T04:04:38.090Z</updated><title type='text'>Sleepy Kitten</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://sleepyrich.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1575065385787258846/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://sleepyrich.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>SleepyKitten</name><uri>http://www.blogger.com/profile/06265840104860042691</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>7</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-1575065385787258846.post-1526383678296068596</id><published>2011-03-29T12:09:00.002+01:00</published><updated>2011-03-29T13:17:09.307+01:00</updated><title type='text'>JunOS "monitor traffic" to PCAP</title><content type='html'>I knocked up the following script to convert a JunOS "monitor traffic interface ..." output into a pcap file. You can generate a pcap directly from the shell on the Juniper but this was a quick and easy method our support and implementation guys could use.&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Couple of caveats, if the L2 headers get stripped out the script will attempt to compensate and generate a temporary L2 header for the packet based on the type of traffic. If this happens then the script supports IPv4, IPv6 and MPLS.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;a href="http://www.sleepykitten.org/tools/pcapgen.php"&gt;http://www.sleepykitten.org/tools/pcapgen.php&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1575065385787258846-1526383678296068596?l=sleepyrich.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sleepyrich.blogspot.com/feeds/1526383678296068596/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1575065385787258846&amp;postID=1526383678296068596' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1575065385787258846/posts/default/1526383678296068596'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1575065385787258846/posts/default/1526383678296068596'/><link rel='alternate' type='text/html' href='http://sleepyrich.blogspot.com/2011/03/junos-monitor-traffic-to-pcap.html' title='JunOS &quot;monitor traffic&quot; to PCAP'/><author><name>SleepyKitten</name><uri>http://www.blogger.com/profile/06265840104860042691</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1575065385787258846.post-7970920449218031428</id><published>2010-12-21T09:56:00.001Z</published><updated>2010-12-21T09:56:34.433Z</updated><title type='text'>BT Mobile Broadband and Windows 7 64bit</title><content type='html'>&lt;p&gt;Getting BT’s Type 2 mobile broadband dongle to work can be a bit of a pain. While BT support Windows 7 in the latest version of the connection manager the 64bit support still seems to be broken.&lt;/p&gt;  &lt;p&gt;There isn’t a great deal of info about fixing this but I ran through a few things and thought I’d drop out a note explaining how I managed to get the infernal device working.&lt;/p&gt;  &lt;p&gt;For reference this refers to the Type 2 dongle ZTE MF636 that looks like this:&lt;/p&gt;  &lt;p&gt;&lt;img alt="Image" src="http://btbusiness.custhelp.com/euf/assets/images/ZTE-MF636.jpg" /&gt;&lt;/p&gt;  &lt;p&gt;First get the latest version of the software from here:&lt;/p&gt;  &lt;p&gt;&lt;a href="http://bt.custhelp.com/app/answers/detail/a_id/12873/related/1"&gt;http://bt.custhelp.com/app/answers/detail/a_id/12873/related/1&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Plug in your dongle and install it, once it’s installed if everything just works and you can connect then you probably never even got to see this page. If you get a window that looks a bit like this…&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh5.ggpht.com/_MTGtqi-MFGM/TRB5z34xQzI/AAAAAAAAAbc/inM28wWo8uY/s1600-h/untitled%20%282%29%5B1%5D.png"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; margin: ; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="untitled (2)" border="0" alt="untitled (2)" src="http://lh4.ggpht.com/_MTGtqi-MFGM/TRB50Y0e_gI/AAAAAAAAAbg/1B60GIs9XYg/untitled%20%282%29_thumb%5B1%5D.png?imgmax=800" width="412" height="266" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;…despite having a nice green/blue LED on your dongle then press on.&lt;/p&gt;  &lt;p&gt;Close the connection manager and download the Windows 7 Driver Tool (&lt;a href="http://www.zte.com.au/downloads/software/Win7_DriverTool.zip"&gt;Win7_DriverTool.zip&lt;/a&gt;) from this page:&lt;/p&gt;  &lt;p&gt;&lt;a href="http://www.zte.com.au/telstra/Product_Downloads/MF636_downloads.htm"&gt;&lt;font color="#0066cc"&gt;http://www.zte.com.au/telstra/Product_Downloads/MF636_downloads.htm&lt;/font&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Unzip it and run the installer, click next and it will tell you that it’s finished the install. During and/or after the install your device manager should go a little crazy and drivers will start to be installed, once it’s settled down and “your device is ready for use” then fire up the connection manager. After a minute or so it should detect your dongle and give you the option to connect.&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1575065385787258846-7970920449218031428?l=sleepyrich.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sleepyrich.blogspot.com/feeds/7970920449218031428/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1575065385787258846&amp;postID=7970920449218031428' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1575065385787258846/posts/default/7970920449218031428'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1575065385787258846/posts/default/7970920449218031428'/><link rel='alternate' type='text/html' href='http://sleepyrich.blogspot.com/2010/12/bt-mobile-broadband-and-windows-7-64bit.html' title='BT Mobile Broadband and Windows 7 64bit'/><author><name>SleepyKitten</name><uri>http://www.blogger.com/profile/06265840104860042691</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh4.ggpht.com/_MTGtqi-MFGM/TRB50Y0e_gI/AAAAAAAAAbg/1B60GIs9XYg/s72-c/untitled%20%282%29_thumb%5B1%5D.png?imgmax=800' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1575065385787258846.post-7994852869777197482</id><published>2010-09-08T09:43:00.006+01:00</published><updated>2010-09-08T09:57:20.679+01:00</updated><title type='text'>FreeBSD 6.4 Time Running Slow in VirtualBox</title><content type='html'>I run Juniper Olives in a Virtual Box envoronment, sometimes I have to install them on a rather old server and more frequently than not the guest has an issue with it's clock. So much so that OSPF fails due to keepalives not being sent often enough.&lt;br /&gt;&lt;br /&gt;If you suspect this is happening to you look for lots of the following messages in the VirtualBox VM Log:&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;18:18:05.277 TM: Giving up catch-up attempt at a 60 009 852 153 ns lag; new total: 53 766 119 265 038 ns &lt;/span&gt;&lt;/span&gt;&lt;p  style="margin: 0px; text-indent: 0px;font-family:courier new;"&gt;&lt;span style="font-size:85%;"&gt;18:19:10.901 TM: Giving up catch-up attempt at a 60 004 297 268 ns lag; new total: 53 826 123 562 306 ns&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;To fix this all you need to do is log into your Olive as root (log into the shell not the CLI) and edit (vi) the /boot/loader.conf file (You will need to force it to save using the :w! vi command).&lt;br /&gt;&lt;br /&gt;Add "kern.hz=100" to the file at the end. Your loader.conf should look like this:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family:courier new;"&gt;root@olive% more /boot/loader.conf &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;kernel="/kernel"&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;autoboot_delay="2"&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;console="comconsole"&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;platform_load="YES"&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;early_boot_load="YES"&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;kern.hz=100&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Reload the olive and it should clear it up.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1575065385787258846-7994852869777197482?l=sleepyrich.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sleepyrich.blogspot.com/feeds/7994852869777197482/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1575065385787258846&amp;postID=7994852869777197482' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1575065385787258846/posts/default/7994852869777197482'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1575065385787258846/posts/default/7994852869777197482'/><link rel='alternate' type='text/html' href='http://sleepyrich.blogspot.com/2010/09/freebsd-64-time-running-slow-in.html' title='FreeBSD 6.4 Time Running Slow in VirtualBox'/><author><name>SleepyKitten</name><uri>http://www.blogger.com/profile/06265840104860042691</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1575065385787258846.post-6039244452032182445</id><published>2010-03-21T13:51:00.002Z</published><updated>2010-03-21T13:57:04.989Z</updated><title type='text'>Ventris' Thidranki Battledruid</title><content type='html'>Ha! I came across my old Dark Age of Camelot Thidranki Battledruid guide and the video of my shenanigans. It's quite appropriate for the Uthgard Freeshard now, although they badly need a level 24 BG!&lt;br /&gt;&lt;br /&gt;If you're bored and you even know what DAoC is then feel free to &lt;a href="http://www.sleepykitten.org/daoc/druid/guide.html"&gt;take a look&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1575065385787258846-6039244452032182445?l=sleepyrich.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sleepyrich.blogspot.com/feeds/6039244452032182445/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1575065385787258846&amp;postID=6039244452032182445' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1575065385787258846/posts/default/6039244452032182445'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1575065385787258846/posts/default/6039244452032182445'/><link rel='alternate' type='text/html' href='http://sleepyrich.blogspot.com/2010/03/ventris-thidranki-battledruid.html' title='Ventris&apos; Thidranki Battledruid'/><author><name>SleepyKitten</name><uri>http://www.blogger.com/profile/06265840104860042691</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1575065385787258846.post-9146794010514113862</id><published>2010-03-18T20:30:00.001Z</published><updated>2010-03-18T20:31:15.174Z</updated><title type='text'>Olive to Olive Communication</title><content type='html'>&lt;p&gt;Getting Juniper Olives to chat to each other is quite easy, if you’re building your virtual Olive network as a lab for seeing protocols in action then you can set up your virtual interfaces with no protocols exposed to Windows and you’ll have a clean connection.&lt;/p&gt;  &lt;p&gt;Using Wireshark you can capture on the virtual interface and see the protocols sloshing about in their native form.&lt;/p&gt;  &lt;p&gt;I’m assuming you have built yourself a couple (or more) of Olives as discussed &lt;a href="http://sleepyrich.blogspot.com/2010/03/preparing-virtualbox-and-freebsd-for.html"&gt;here&lt;/a&gt; and &lt;a href="http://sleepyrich.blogspot.com/2010/03/juniper-olive-on-sun-virtualbox.html"&gt;here&lt;/a&gt;. A quick way of creating more than one olive is to duplicate the hard drive images, there’s a good tutorial &lt;a href="http://www.derekhildreth.com/blog/how-to-properly-backup-a-virtualbox-machine-vdi"&gt;here&lt;/a&gt; for that but basically:&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;Shutdown your Olive and power off the VM.&lt;/li&gt;    &lt;li&gt;Clone your existing .vdi following the tutorial above.&lt;/li&gt;    &lt;li&gt;Build a new VM and use the cloned .vdi as your HDD.&lt;/li&gt;    &lt;li&gt;Boot and be so happy you nip down the pub for half hour.&lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;Once done return to VirtualBox and select File-&amp;gt;Properties then open the network item on the left.&lt;/p&gt;  &lt;p&gt;You may already have a VirtualBox Host-Only Ethernet Adapter listed in which case you can skip this step. If you don’t or you want to connect more than one Olive together over different virtual LANs then use the icon on the right to add a new adaptor.&lt;/p&gt;  &lt;p&gt;Now open Windows Control Panel and view your network adaptors, open the one you just created (or the one that was created for you) and de-select everything. Here’s what mine looks like:&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh6.ggpht.com/_MTGtqi-MFGM/S6KNaVb2DjI/AAAAAAAAAao/_7lGBOpyQMI/s1600-h/image%5B10%5D.png"&gt;&lt;img style="border-bottom: 0px; border-left: 0px; display: block; float: none; margin-left: auto; border-top: 0px; margin-right: auto; border-right: 0px" title="image" border="0" alt="image" src="http://lh4.ggpht.com/_MTGtqi-MFGM/S6KNbb6sJ9I/AAAAAAAAAas/m6cMx41CXPM/image_thumb%5B6%5D.png?imgmax=800" width="357" height="442" /&gt;&lt;/a&gt;Return to VirtualBox and edit the properties of the first Olive you want to connect then select network and enable a new adaptor (if you used Adaptor 1 for installation and general IP connectivity to the host then it’ll be Adaptor 2) and configure as follows:&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;Attached To: Host-only Adapter.&lt;/li&gt;    &lt;li&gt;Name: Select your newly created adaptor.&lt;/li&gt;    &lt;li&gt;Advanced: Default (Should be Intel PRO/1000MT).&lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;OK that and then select the second Olive you want to connect to the first and select the same Host-only Adaptor settings as the first. The only exception is the Mac Address which should be different.&lt;/p&gt;  &lt;p&gt;Once done bring up both olives and you should have a second “em” interface to play with, configure an IP DMZ on both sides and retire to the pub for a second time safe in the knowledge of a job well done.&lt;/p&gt;  &lt;p&gt;Because you cleared out all the Windows services attached to the network adaptor your packet captures should be totally free from extraneous fluff as follows:&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh4.ggpht.com/_MTGtqi-MFGM/S6KNdf-81dI/AAAAAAAAAaw/Oz95qmJ-bEk/s1600-h/image%5B14%5D.png"&gt;&lt;img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://lh5.ggpht.com/_MTGtqi-MFGM/S6KNejIIQ0I/AAAAAAAAAa0/txK2oF_7SFM/image_thumb%5B8%5D.png?imgmax=800" width="443" height="284" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1575065385787258846-9146794010514113862?l=sleepyrich.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sleepyrich.blogspot.com/feeds/9146794010514113862/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1575065385787258846&amp;postID=9146794010514113862' title='5 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1575065385787258846/posts/default/9146794010514113862'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1575065385787258846/posts/default/9146794010514113862'/><link rel='alternate' type='text/html' href='http://sleepyrich.blogspot.com/2010/03/olive-to-olive-communication.html' title='Olive to Olive Communication'/><author><name>SleepyKitten</name><uri>http://www.blogger.com/profile/06265840104860042691</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh4.ggpht.com/_MTGtqi-MFGM/S6KNbb6sJ9I/AAAAAAAAAas/m6cMx41CXPM/s72-c/image_thumb%5B6%5D.png?imgmax=800' height='72' width='72'/><thr:total>5</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1575065385787258846.post-540462615149187266</id><published>2010-03-13T17:04:00.001Z</published><updated>2010-03-13T17:36:51.163Z</updated><title type='text'>Juniper Olive on Sun VirtualBox</title><content type='html'>&lt;p&gt;In my &lt;a href="http://sleepyrich.blogspot.com/2010/03/preparing-virtualbox-and-freebsd-for.html"&gt;previous post&lt;/a&gt; I told you how to prepare VirtualBox and FreeBSD to accept a Juniper Olive. Now we need to upload the JunOS software and install it.&lt;/p&gt;  &lt;p&gt;In the good old days (JunOS 7.4) this was quite an easy task but since 8.4 things have got a bit more complicated, Juniper upgraded the version of FreeBSD and added a utility that verified the PICs meaning that the install would fail even if you tried to force it.&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Disclaimers&lt;/strong&gt;:&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;This isn’t supported, Juniper will die a little inside if you ring the JTAC up and demand to know why your Olive doesn’t work. Enough of this and they will stop olives working altogether so play nice. &lt;/li&gt;    &lt;li&gt;I can’t supply JunOS to you, nor can I recommend anyone who can. If you don’t have access to it then you shouldn’t and you should go out for a nice pint or two instead. &lt;/li&gt;    &lt;li&gt;I’m a network engineer and have a very basic knowledge of BSD, feel free to mock my tar/gzip/shell skills or better yet tell me an easier way. &lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;&lt;strong&gt;Step-By-Step&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;I’m assuming that you’ve followed the previous post and are sitting at the root prompt of your FreeBSD VM.&lt;/p&gt;  &lt;p&gt;First thing you need to do is get the jinstall tarball onto your VM, I have a FTP server running on my PC for this purpose but you may have one on the internet or a home server etc. If you don’t and you need a good FTP server I can recommend &lt;a href="http://filezilla-project.org/download.php?type=server"&gt;FileZilla&lt;/a&gt; just make sure that if you’re running Windows 7 or Vista you &lt;a href="http://www.jppinto.com/2009/03/configuring-windows-firewall-for-filezilla-server-in-windows-server-2008/"&gt;enable the server exe in your firewall&lt;/a&gt;.&lt;/p&gt;  &lt;p&gt;&lt;em&gt;Creating the Olive Installer&lt;/em&gt;&lt;/p&gt;  &lt;p align="left"&gt;Use the FTP CLI within FreeBSD to get the jinstall into your home directory. I’ve used the following filename as an example; make sure you substitute it for your version:&lt;/p&gt;  &lt;p&gt;jinstall-9.4R4.5-domestic-signed.tgz&lt;/p&gt;  &lt;p&gt;Do the following:&lt;/p&gt;  &lt;p&gt;&amp;gt;mkdir tmp    &lt;br /&gt;&amp;gt;mv jinstall-9.4R4.5-domestic-signed.tgz tmp     &lt;br /&gt;&amp;gt;cd tmp     &lt;br /&gt;&amp;gt;tar –xzf jinstall-9.4R4.5-domestic-signed.tgz     &lt;br /&gt;&amp;gt;mv jinstall-9.4R4.5-domestic.tgz ..     &lt;br /&gt;&amp;gt;rm –r *&lt;/p&gt;  &lt;p&gt;Because this is a signed version of JunOS you need to extract the non-signed version out of the tarball, once done we move the non-signed version (jinstall-9.4R4.5-domestic.tgz) into our home directory and delete all the rest of the files.&lt;/p&gt;  &lt;p&gt;Now we need to move the file back into the tmp directory and extract it:&lt;/p&gt;  &lt;p&gt;&amp;gt;mv ../jinstall-9.4R4.5-domestic.tgz .    &lt;br /&gt;&amp;gt;tar –xzf jinstall-9.4R4.5-domestic.tgz     &lt;br /&gt;&amp;gt;rm jinstall-9.4R4.5-domestic.tgz&lt;/p&gt;  &lt;p&gt;In this directory you will now see all the detail of the package, the file we are immediately interested in is the pkgtools.tgz file. Create a new tmp folder and extract this file into it.&lt;/p&gt;  &lt;p&gt;&amp;gt;mkdir tmp    &lt;br /&gt;&amp;gt;cd tmp     &lt;br /&gt;&amp;gt;tar –xzf ../pkgtools.tgz     &lt;br /&gt;&amp;gt;rm ../pkgtools.tgz     &lt;br /&gt;&lt;/p&gt;  &lt;p&gt;Now we need to replace the checkpic binary with something that will give a more positive response when called:&lt;/p&gt;  &lt;p&gt;&amp;gt;cp /usr/bin/true bin/checkpic&lt;/p&gt;  &lt;p&gt;This means that every time the installer runs this to check the validity of the PICs it will be told that everything is a-ok. Now we need to package this back up, remove our temporary files then repackage the whole thing up into our modified jinstaller.&lt;/p&gt;  &lt;p&gt;&amp;gt;tar –czf ../pkgtools.tgz *    &lt;br /&gt;&amp;gt;cd ..     &lt;br /&gt;&amp;gt;rm –r tmp     &lt;br /&gt;&amp;gt;tar –czf ../jinstall-olive.tgz *     &lt;br /&gt;&amp;gt;cd ..     &lt;br /&gt;&amp;gt;rm –r tmp&lt;/p&gt;  &lt;p&gt;This can be a bit hard to follow but basically at the start you were in the /root/tmp/tmp directory where the pkgtools were stored and have tar and zipped all the files up. I’m sure this whole page can be done in a single line of shell but I don’t have the slightest clue how.&lt;/p&gt;  &lt;p&gt;If everything has gone to plan you should be left in the root home directory with a file called “jinstall-olive.tgz”. If you want you can copy this over to your ftp server so if you want to use it again you don’t have to follow the above process a second time.&lt;/p&gt;  &lt;p&gt;Installing the software from here is quite easy:&lt;/p&gt;  &lt;p&gt;&amp;gt;pkg_add –f jinstall-olive.tgz&lt;/p&gt;  &lt;p&gt;It will throw up a load of warnings (too late you used the –f force switch) and tell you that you need to reload. Issue the “shutdown –r now” command and hope for the best.&lt;/p&gt;  &lt;p&gt;If all goes will the VM will reboot, get to the boot loader then then appear to stop. This just means that output is redirected to COM1 port, new versions of JunOS (not 8.4) now enable login on the console screen so you don’t need to play about with the COM1 port (if you remember we enabled it but ignored it in the last post).&lt;/p&gt;  &lt;p&gt;After about 5 minutes it will reboot again and then after a further few minutes you should end up with a login prompt. Login is root with no password and you should be dumped to the new Olive shell. Enter “cli” and you are now running your own Juniper Olive.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh4.ggpht.com/_MTGtqi-MFGM/S5vNL2l1X5I/AAAAAAAAAag/cOB54xlu65o/s1600-h/image%5B9%5D.png"&gt;&lt;img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://lh4.ggpht.com/_MTGtqi-MFGM/S5vNMSLLZkI/AAAAAAAAAak/YRgzgkVPvzU/image_thumb%5B3%5D.png?imgmax=800" width="444" height="299" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;Have fun!&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1575065385787258846-540462615149187266?l=sleepyrich.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sleepyrich.blogspot.com/feeds/540462615149187266/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1575065385787258846&amp;postID=540462615149187266' title='14 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1575065385787258846/posts/default/540462615149187266'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1575065385787258846/posts/default/540462615149187266'/><link rel='alternate' type='text/html' href='http://sleepyrich.blogspot.com/2010/03/juniper-olive-on-sun-virtualbox.html' title='Juniper Olive on Sun VirtualBox'/><author><name>SleepyKitten</name><uri>http://www.blogger.com/profile/06265840104860042691</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh4.ggpht.com/_MTGtqi-MFGM/S5vNMSLLZkI/AAAAAAAAAak/YRgzgkVPvzU/s72-c/image_thumb%5B3%5D.png?imgmax=800' height='72' width='72'/><thr:total>14</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1575065385787258846.post-8830158097866114768</id><published>2010-03-13T16:27:00.005Z</published><updated>2011-04-04T10:40:00.563+01:00</updated><title type='text'>Preparing VirtualBox and FreeBSD for Juniper Olive</title><content type='html'>&lt;p&gt;I’ve had the following lingering about in my documents folder for some time now and I figured it would do better where other people could see it and have a go themselves.&lt;/p&gt;  &lt;p&gt;You can run JunOS software on a FreeBSD box with no major problems it’s called a Juniper Olive and it’s a great way of studying for your JNCIx exams, this post aims to improve on a the basic installation method you see elsewhere on the NET.&lt;/p&gt;  &lt;p&gt;Basic disclaimer I stole from &lt;a href="http://www.sidsmokes.com/"&gt;Sid Smokes&lt;/a&gt; site:&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;&lt;em&gt;A note about the JUNOS software: I will not send anyone Juniper software. Don't ask. If you don't know how to get it, then you're probably not supposed to have it anyway. You can download it from the Juniper site if you have an account&lt;/em&gt;&lt;em&gt;. Don't bug Juniper JTAC about olives either. They are not supported.”&lt;/em&gt;&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;The improvements here are two fold, firstly this is a fresh install of JunOS 9.4 without having to install 7.x and upgrade from there. Secondly I like the idea of having a lab running on a single box so I prefer my Juniper Olives to be virtualised – I know it can be done with VMWare but the way it handles serial ports, HDD (SCSI instead of IDE) and so on means that VirtualBox is my VM platform of choice for a hassle free installation.&lt;br /&gt;&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Requirements&lt;/strong&gt; (Software versions I’ve used are in brackets).&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;Windows (Windows 7). &lt;/li&gt;    &lt;li&gt;Sun &lt;a href="http://www.virtualbox.org/"&gt;VirtualBox&lt;/a&gt; (3.1.4). &lt;/li&gt;    &lt;li&gt;&lt;a href="http://www.freebsd.org/"&gt;FreeBSD&lt;/a&gt; CD ISO (6.4 – Use this version for JunOS 9.4). &lt;/li&gt;    &lt;li&gt;JunOS jinstall TGZ (9.4– Don’t ask for it!). &lt;/li&gt;    &lt;ul&gt;     &lt;li&gt;Procedure tested on 8.4, 8.5, 9.4 and 10.0.&lt;/li&gt;   &lt;/ul&gt;    &lt;li&gt;Optional: &lt;a href="http://www.l4ka.org/tools/vmwaregateway.php"&gt;vmwaregateway.exe&lt;/a&gt; (Not required for 9.4). &lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;&lt;strong&gt;VirtualBox Step-By-Step&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;First thing you want to do is install Sun VirtualBox – the default install options will be just fine. Once done create a new VM as follows:&lt;/p&gt;  &lt;p&gt;&lt;em&gt;Create VM&lt;/em&gt;&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;Select New VM      &lt;ul&gt;       &lt;li&gt;Name: “Juniper Olive 1” (Original yes?) &lt;/li&gt;        &lt;li&gt;O/S: BSD &lt;/li&gt;        &lt;li&gt;Version: FreeBSD (Not 64bit!) &lt;/li&gt;     &lt;/ul&gt;   &lt;/li&gt;    &lt;li&gt;Memory: 512Mb &lt;/li&gt;    &lt;li&gt;Hard Disk - You’ll need to create a new hard disk using the wizard in this window. Create a dynamically expanding disk of about 10Gb called “Juniper Olive 1.vdi”. &lt;/li&gt;    &lt;li&gt;Finish &lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;You now need to edit the settings of the newly created VM, right click on the VM and select “settings”. Yes I know I’m teaching you to suck eggs.&lt;/p&gt;  &lt;p&gt;Verify your settings are as follows:&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;System      &lt;ul&gt;       &lt;li&gt;Motherboard          &lt;ul&gt;           &lt;li&gt;Disable Floppy from Boot Order &lt;/li&gt;            &lt;li&gt;Extended Features: IO APIC &amp;amp; EFI both disabled. &lt;/li&gt;         &lt;/ul&gt;       &lt;/li&gt;        &lt;li&gt;Processor          &lt;ul&gt;           &lt;li&gt;One CPU &lt;/li&gt;            &lt;li&gt;Extended Features: PAE/NX enabled. &lt;/li&gt;         &lt;/ul&gt;       &lt;/li&gt;        &lt;li&gt;Acceleration          &lt;ul&gt;           &lt;li&gt;&lt;strong&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;VT-x/AMD-V: Enabled&lt;/span&gt;&lt;/strong&gt; - If you do not have the option then &lt;strong&gt;stop here&lt;/strong&gt;, you will not be able to run JunOS in VirtualBox. The only workaround is to install JunOS on another computer with virtualisation technology and move the VM over to this computer – I may tutorial this later but it’s a terrible pain in the arse. &lt;/li&gt;            &lt;li&gt;Nested Paging: Enabled. &lt;/li&gt;         &lt;/ul&gt;       &lt;/li&gt;        &lt;li&gt;Display: Defaults &lt;/li&gt;        &lt;li&gt;Storage          &lt;ul&gt;           &lt;li&gt;IDE Primary: Juniper Olive 1.vdi &lt;/li&gt;            &lt;li&gt;IDE Secondary: FreeBSD CD ISO &lt;/li&gt;            &lt;li&gt;Floppy: Empty. &lt;/li&gt;         &lt;/ul&gt;       &lt;/li&gt;        &lt;li&gt;Audio: Disabled. &lt;/li&gt;        &lt;li&gt;Network:          &lt;ul&gt;           &lt;li&gt;Adaptor 1 – Enabled. &lt;/li&gt;            &lt;li&gt;Attached to: Bridged Adaptor (You can also use NAT, this adaptor will enable you to share your internet connection so you can access your FTP server. If your PC is connected to a router for your DSL/Cable then select bridged. If your computer connects directly to the internet with a USB dongle or DSL/Cable card then select NAT). &lt;/li&gt;            &lt;li&gt;Name: Whatever your current local network card is called. &lt;/li&gt;         &lt;/ul&gt;       &lt;/li&gt;        &lt;li&gt;Serial Ports          &lt;ul&gt;           &lt;li&gt;Port 1 Enabled &lt;/li&gt;            &lt;li&gt;Port Number: COM1 &lt;/li&gt;            &lt;li&gt;Port Mode: Disconnected &lt;/li&gt;         &lt;/ul&gt;       &lt;/li&gt;        &lt;li&gt;USB: Disabled &lt;/li&gt;        &lt;li&gt;Shared Folders: None. &lt;/li&gt;     &lt;/ul&gt;   &lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;That’s a bit of a long list of stuff and we’re not done yet but basically once you’re done your settings should look a little bit like this:&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh5.ggpht.com/_MTGtqi-MFGM/S5u83f6oDzI/AAAAAAAAAaU/ks3QavmzXZQ/s1600-h/image%5B9%5D.png"&gt;&lt;img style="border-width: 0px; display: inline;" title="image" alt="image" src="http://lh4.ggpht.com/_MTGtqi-MFGM/S5u84WVLwtI/AAAAAAAAAac/32zi657Rwj0/image_thumb%5B10%5D.png?imgmax=800" border="0" height="544" width="449" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;FreeBSD Install&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;Go ahead and fire up your VM, it should boot up and load the FreeBSD installer. Once you have chosen your language and keymap you will get to the main menu, you should select “Express - Quick installation (for experts)”, when FDISK starts select “Use entire disk” (A key) then make the disk bootable (S Key) then exit out (Q Key).&lt;/p&gt;&lt;p&gt;Let FreeBSD install the BootManager unless you have a pressing need to do otherwise.&lt;br /&gt;&lt;/p&gt;  &lt;p&gt;You will now have to slice the disk as follows:&lt;/p&gt;  &lt;p&gt;    ad0s1a 1000M /&lt;br /&gt; ad0s1b 500M swap &lt;br /&gt;&lt;em&gt;    ad0s1d 10M /spacer  &lt;br /&gt;&lt;/em&gt;    ad0s1e 500M /config &lt;br /&gt; ad0a1f &amp;lt;Remaining&amp;gt; /var&lt;/p&gt;  &lt;p&gt;The spacer partition ensures that /config and /var have the correct designation (ad0s1e and ad0s1f respectively) – if your designations look a bit different that’s not a big problem. If anyone knows how to specify the slice so there’s no need to have the spacer mount then let me know.&lt;/p&gt;  &lt;p&gt;Save those slices off and you’ll be taken back to the menu. Select the Minimal Distribution then select your install media. If you have the full FreeBSD install on CD then you should use that – if you booted from a Net install CD then you need to specify an FTP site.&lt;/p&gt;  &lt;p&gt;The URL for the site is as follows:&lt;/p&gt;  &lt;p&gt;&lt;a href="ftp://ftp-archive.freebsd.org/pub/FreeBSD-Archive/old-releases/i386/"&gt;ftp://ftp-archive.freebsd.org/pub/FreeBSD-Archive/old-releases/i386/&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;That may change, you may need to hunt about for the correct location.&lt;/p&gt;  &lt;p&gt;During the FTP install you will be asked if you want to set up your network, do so and enter your network IP/Mask and gateway as requested. For a CD install you may not get asked so select it from the menu so your network is up and running when FreeBSD starts.&lt;/p&gt;  &lt;p&gt;Install FreeBSD – Once it’s complete, un-mount your CD and reboot into FreeBSD. Login as root with no password and you are good to go to the next stage documented &lt;a href="http://sleepyrich.blogspot.com/2010/03/juniper-olive-on-sun-virtualbox.html"&gt;here&lt;/a&gt;.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1575065385787258846-8830158097866114768?l=sleepyrich.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sleepyrich.blogspot.com/feeds/8830158097866114768/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1575065385787258846&amp;postID=8830158097866114768' title='9 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1575065385787258846/posts/default/8830158097866114768'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1575065385787258846/posts/default/8830158097866114768'/><link rel='alternate' type='text/html' href='http://sleepyrich.blogspot.com/2010/03/preparing-virtualbox-and-freebsd-for.html' title='Preparing VirtualBox and FreeBSD for Juniper Olive'/><author><name>SleepyKitten</name><uri>http://www.blogger.com/profile/06265840104860042691</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh4.ggpht.com/_MTGtqi-MFGM/S5u84WVLwtI/AAAAAAAAAac/32zi657Rwj0/s72-c/image_thumb%5B10%5D.png?imgmax=800' height='72' width='72'/><thr:total>9</thr:total></entry></feed>
