{"id":680,"date":"2016-12-14T15:42:20","date_gmt":"2016-12-14T14:42:20","guid":{"rendered":""},"modified":"2019-02-22T14:31:22","modified_gmt":"2019-02-22T13:31:22","slug":"running-junos-vsrx-151-virtualbox","status":"publish","type":"post","link":"https:\/\/nil.uniza.sk\/en\/running-junos-vsrx-151-virtualbox\/","title":{"rendered":"Running JunOS vSRX 15.1 in Virtualbox"},"content":{"rendered":"<p>The article describes how to run Junos .ova image of the vSRX box within of a virtualbox.<\/p>\n<h2>Initial state, prerequisities and requirements<\/h2>\n<p>My working environment includes:<\/p>\n<ul>\n<li>Linux Mint 18.0 64bit<\/li>\n<li>Virtualbox 5.1.10<\/li>\n<li>Then we need a junos ova image (60days testing image donwloadable from junox web page|\n<ul>\n<li style=\"list-style-type: none;\">\n<ul>\n<li><a style=\"color: #008dcf; outline: none; font-family: Arial, Tahoma, Verdana;\" href=\"http:\/\/www.juniper.net\/support\/downloads\/?p=firefly#sw\" rel=\"nofollow\">http:\/\/www.juniper.net\/support\/downloads\/?p=firefly#sw<\/a><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h2>Steps<\/h2>\n<p>Be able to run Junos vSRX within Virtualbox (and probably then in GNS3) I had to do following steps.<\/p>\n<p>1. Direct import of the ova image into VBox does not work, so we need to extract partial parts from the ova file. So go where is your ova image file and then unarchive<\/p>\n<pre>tax xvf NAME.ova<\/pre>\n<p>in my case<\/p>\n<pre>tar xvf media-srx-ffp-vsrx-vmdisk-15.1X49-D15.4.ide.ova<\/pre>\n<p>within the folder several new files appears including .pem, .cert, . vmdk, .mv, .ovf<\/p>\n<pre>ls -al\n\ntotal 6872984\ndrwxr-xr-x 2 palo palo       4096 Dec 14 14:56 .\ndrwxr-xr-x 3 palo palo       4096 Dec 14 15:14 ..\n-rw-r--r-- 1 palo palo       3684 Jul 31  2015 certchain.pem\n-rw-r--r-- 1 palo palo       2474 Jul 31  2015 media-srx-ffp-vsrx-vmdisk-15.1X49-D15.4.cert\n-rw-r--r-- 1 palo palo 2156756992 Jul 31  2015 media-srx-ffp-vsrx-vmdisk-15.1X49-D15.4-disk1.vmdk\n-rw-r--r-- 1 palo palo        253 Jul 31  2015 media-srx-ffp-vsrx-vmdisk-15.1X49-D15.4.mf\n-rw-r--r-- 1 palo palo      50948 Jul 31  2015 media-srx-ffp-vsrx-vmdisk-15.1X49-D15.4.ovf\n-rw-r--r-- 1 palo palo 2156820480 Nov  5  2015 media-srx-ffp-vsrx-vmdisk-15.1X49-D15.4.ide.ova<\/pre>\n<p>2. Direct import or either attachment of vmdk disk file does not work. So it have to be converted to vdi. So we will convert .vmdk to vdi. To do that type (just a note: my target file has different name):<\/p>\n<pre>vboxmanage clonehd -format VDI media-srx-ffp-vsrx-vmdisk-15.1X49-D15.4-disk1.vmdk junos-vsrx-15.1X49.vdi<\/pre>\n<p>3. Now start the VBox and create a new virtual machine. My working settings are:<\/p>\n<address><strong>General:<\/strong><br \/>\nName: JunOS-v-srx-15.1<br \/>\nType: BSD (Linux work too)<br \/>\nVersion: FreeBSD64 (Other Linux works too)<br \/>\n<strong>System:<\/strong><br \/>\n<strong>\u00a0 Motherboard<\/strong><\/address>\n<address>\u00a0 \u00a0 Memory: a<span style=\"color: #ff0000;\">t least 3GB, 4GB is recomended<\/span> (I had 2048 MB and it did not work) (Note: (<a href=\"http:\/\/www.juniper.net\/techpubs\/en_US\/vsrx15.1x49\/topics\/reference\/general\/security-vsrx-vmware-system-requirement.html\">http:\/\/www.juniper.net\/techpubs\/en_US\/vsrx15.1&#215;49\/topics\/reference\/general\/security-vsrx-vmware-system-requirement.html <\/a>))<\/address>\n<address>\u00a0 \u00a0 Enable I\/O APIC<\/address>\n<address>\u00a0 \u00a0 Change Chipset from PIX3 to ICH9<\/address>\n<address><strong>\u00a0 Processor<\/strong><\/address>\n<address>\u00a0 \u00a0 CPU: 2\u00a0 (must be, otherwise does not work)<br \/>\nEnable PAE\/NX<\/address>\n<address><strong>\u00a0 Acceleration<\/strong><br \/>\nEnable VT-x\/AMD-V<\/address>\n<address>\u00a0 \u00a0 Enable Nested Paging<\/address>\n<address><strong>Storage<\/strong><\/address>\n<address>\u00a0 Hard Drive: IDE Primary master<br \/>\nUse already created file vdi file, in my case\u00a0<span style=\"background-color: #eeeeee; font-size: 12px;\">junos-vsrx-15.1X49.vdi<\/span><\/address>\n<address><strong>Audio:<\/strong><br \/>\nOff<br \/>\n<strong>Network<\/strong><\/address>\n<address>\u00a0I had set up: Attached to: <strong>Not attached<\/strong>, then go to Avanced and as the adapter type you must select\u00a0<strong>Paravirtualized Network (virtio-net)<\/strong><\/p>\n<p><strong>Serial Ports<\/strong><br \/>\nEnable Serial Port 1<br \/>\nPort Number: COM1<br \/>\nPort Mode: Disconnected<\/p>\n<\/address>\n<p>That is all! Now we may boot the machine and start to played with.<\/p>\n<p>Just a note, if we wish tu use it within GNS3, this is just one system and we need to make clones be able to create topologies with more as one router.<\/p>","protected":false},"excerpt":{"rendered":"<p>\n\tThe article describes how to run Junos .ova image of the vSRX box within virtualbox.&nbsp;<\/p>\n<h2>\n\tInitial state, prerequisities and requirements<\/h2>\n<p>\n\tMy working environment includes:<\/p>","protected":false},"author":7,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_seopress_robots_primary_cat":"","_seopress_titles_title":"","_seopress_titles_desc":"","_seopress_robots_index":"","_kad_blocks_custom_css":"","_kad_blocks_head_custom_js":"","_kad_blocks_body_custom_js":"","_kad_blocks_footer_custom_js":"","_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"footnotes":""},"categories":[825],"tags":[],"class_list":["post-680","post","type-post","status-publish","format-standard","hentry","category-virtualization-virtualbox-en"],"taxonomy_info":{"category":[{"value":825,"label":"VirtualBox"}]},"featured_image_src_large":false,"author_info":{"display_name":"admin","author_link":"https:\/\/nil.uniza.sk\/en\/author\/admin\/"},"comment_info":11,"category_info":[{"term_id":825,"name":"VirtualBox","slug":"virtualization-virtualbox-en","term_group":0,"term_taxonomy_id":823,"taxonomy":"category","description":"","parent":819,"count":12,"filter":"raw","cat_ID":825,"category_count":12,"category_description":"","cat_name":"VirtualBox","category_nicename":"virtualization-virtualbox-en","category_parent":819}],"tag_info":false,"_links":{"self":[{"href":"https:\/\/nil.uniza.sk\/en\/wp-json\/wp\/v2\/posts\/680","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/nil.uniza.sk\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/nil.uniza.sk\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/nil.uniza.sk\/en\/wp-json\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/nil.uniza.sk\/en\/wp-json\/wp\/v2\/comments?post=680"}],"version-history":[{"count":0,"href":"https:\/\/nil.uniza.sk\/en\/wp-json\/wp\/v2\/posts\/680\/revisions"}],"wp:attachment":[{"href":"https:\/\/nil.uniza.sk\/en\/wp-json\/wp\/v2\/media?parent=680"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/nil.uniza.sk\/en\/wp-json\/wp\/v2\/categories?post=680"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/nil.uniza.sk\/en\/wp-json\/wp\/v2\/tags?post=680"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}