{"id":591,"date":"2013-11-22T08:23:17","date_gmt":"2013-11-22T07:23:17","guid":{"rendered":""},"modified":"2018-11-01T00:06:55","modified_gmt":"2018-10-31T23:06:55","slug":"installing-freebsd-junos-olive-using-qemu-under-win-7-64bit","status":"publish","type":"post","link":"https:\/\/nil.uniza.sk\/en\/installing-freebsd-junos-olive-using-qemu-under-win-7-64bit\/","title":{"rendered":"Installing FreeBSD for JunOS Olive using Qemu under Win 7 64bit"},"content":{"rendered":"<p>\n\tThis article explain how to install a Qemu based FreeBSD virtual machine under Win 7 64bit OS. The reason for making this tutorial is the usability of Qemu FreeBSD machine inside of the GNS3 network simulator, where the FreeBSD is used as the framework for running JunOS Olive routers.<\/p>\n<p>\n\t&nbsp;<\/p>\n<p>\n\t<strong>Environment<\/strong> <strong>and Prerequisities<\/strong><\/p>\n<p>\n\tMy environment:<\/p>\n<ul>\n<li>\n\t\tWin 7 64 bit operating system.<\/li>\n<\/ul>\n<p>\n\tPrerequisities:<\/p>\n<ul>\n<li>\n\t\tIn the time of writing I have used Qemu 0.11, version for Win 32 bit, downloaded from <a href=\"http:\/\/sourceforge.net\/projects\/gns-3\/files\/Qemu\/Windows\/\">here<\/a>. However even works for a qemu installed together with GNS3 of 1.2.3 version.<\/li>\n<li>\n\t\tDownloaded a mini install ISO image of the FreeBSD OS. In my case I&#39;m using 4.11 downloaded from <a href=\"http:\/\/ftp-archive.freebsd.org\/mirror\/FreeBSD-Archive\/old-releases\/i386\/ISO-IMAGES\/4.11\/\">here<\/a> (as the framework for future Junos Install).<\/li>\n<\/ul>\n<p>\n\t<strong>Installing the FreeBSD<\/strong> <strong>OS<\/strong><\/p>\n<p>\n\tAs the first step we have to create a virtual image where we will install FreeBSD. So run from the qemu install folder:<\/p>\n<pre>\r\nqemu-img create -f qcow2 olive-base.img 4G<\/pre>\n<p>\n\twhere the command create a Qemu image disk, here named olive-base.img of the 4GB size.<\/p>\n<p>\n\tNext we will install FreeBSD inside of created image. To do that copy downloaded FreeBSD ISO image into the directory, where the qemu is installed, in my case<\/p>\n<pre>\r\nc:\\Program Files (x86)\\Qemu&gt;<\/pre>\n<p>\n\tand run<\/p>\n<pre>\r\nqemu -m 256 -hda olive-base.img -cdrom 4.11-RELEASE-i386-miniinst.iso \\\r\n-boot d -localtime<\/pre>\n<p>\n\tThe command starts the qemu virtual machine (VM) with previously created disk olive-base.img. The VM have 256MB of RAM and attached CDROM with inserted the FreeBSD install ISO image, 4.11 mini install ISO in my case.<\/p>\n<p>\n\t&nbsp;<\/p>\n<p>\n\tQemu VM should start immediately within of a new window (note: Ctrl + Alt willl release the coursor)<\/p>\n<p>\n\t<img decoding=\"async\" alt=\"\" src=\"\/wp-content\/uploads\/files\/image\/Virtualization\/Gns3-junos\/Screenshot_1.png\" style=\"width: 550px; height: 333px;\" \/><\/p>\n<p>\n\t&nbsp;<\/p>\n<p>\n\tSkip kernel config:<\/p>\n<p>\n\t<img decoding=\"async\" alt=\"\" src=\"\/wp-content\/uploads\/files\/image\/Virtualization\/Gns3-junos\/Screenshot_2.png\" style=\"width: 550px; height: 333px;\" \/><\/p>\n<p>\n\t&nbsp;<\/p>\n<p>\n\tSelect Standard system installation:<\/p>\n<p>\n\t<img decoding=\"async\" alt=\"\" src=\"\/wp-content\/uploads\/files\/image\/Virtualization\/Gns3-junos\/Screenshot_3.png\" style=\"width: 550px; height: 330px;\" \/><\/p>\n<p>\n\t&nbsp;<\/p>\n<p>\n\tMake a disk partition pressing &quot;A&quot;, where we wil use all the disk space, and press &quot;Q&quot; to finish the partitioning:<\/p>\n<p>\n\t<img decoding=\"async\" alt=\"\" src=\"\/wp-content\/uploads\/files\/image\/Virtualization\/Gns3-junos\/Screenshot_4.png\" style=\"width: 550px; height: 326px;\" \/><\/p>\n<p>\n\t&nbsp;<\/p>\n<p>\n\tSelect &ldquo;Standard &#8211; install a standard MBR (no boot manager)&rdquo;:<\/p>\n<p>\n\t<img decoding=\"async\" alt=\"\" src=\"\/wp-content\/uploads\/files\/image\/Virtualization\/Gns3-junos\/Screenshot_5.png\" style=\"width: 550px; height: 328px;\" \/><\/p>\n<p>\n\t&nbsp;<\/p>\n<p>\n\tNext we will create four logical partitions of correct types and mounting points.<\/p>\n<p>\n\tTo create a partition press C, then we have to setup the size (for example 1024M), choosing a type of partition (File system or swap ) and for the File system we have to select the mounting point:<\/p>\n<pre>\r\n<strong>Partit. Mount. Point    Size<\/strong> (type)\r\nad0s1a  \/               1024M (File System)\r\nad0s1b  swap            1024M (Swap)\r\nad0s1e  \/config         12M (File System)\r\nad0s1f  \/var            rest (File System)<\/pre>\n<p>\n\tit should look like:<\/p>\n<p>\n\t<img decoding=\"async\" alt=\"\" src=\"\/wp-content\/uploads\/files\/image\/Virtualization\/Gns3-junos\/Screenshot_6.png\" style=\"width: 550px; height: 331px;\" \/><\/p>\n<p>\n\t&nbsp;<\/p>\n<p>\n\tPress &quot;<strong>q<\/strong>&quot; to finish partitioning.<\/p>\n<p>\n\t(<em>Note: Some tutorials point out, that if they tried installing higher version of FreeBSD, they must have exact partitioning. I&#39;ve tried 5 release of&nbsp; FreeBSD, installation hang out on some point, on 8 and 9 version of FreeBSD installation failed on bad disk parameter, disk not found<\/em>).<\/p>\n<p>\n\t&nbsp;<\/p>\n<p>\n\tThen choose minimal distribution installation:<\/p>\n<p>\n\t<img decoding=\"async\" alt=\"\" src=\"\/wp-content\/uploads\/files\/image\/Virtualization\/Gns3-junos\/Screenshot_7.png\" style=\"width: 550px; height: 331px;\" \/><\/p>\n<p>\n\t&nbsp;<\/p>\n<p>\n\tand as the install media choose CD\/DVD:<\/p>\n<p>\n\t<img decoding=\"async\" alt=\"\" src=\"\/wp-content\/uploads\/files\/image\/Virtualization\/Gns3-junos\/Screenshot_8.png\" style=\"width: 550px; height: 328px;\" \/><\/p>\n<p>\n\t&nbsp;<\/p>\n<p>\n\tFile copy process will start:<\/p>\n<p>\n\t<img decoding=\"async\" alt=\"\" src=\"\/wp-content\/uploads\/files\/image\/Virtualization\/Gns3-junos\/Screenshot_9.png\" style=\"width: 550px; height: 332px;\" \/><\/p>\n<p>\n\t&nbsp;<\/p>\n<p>\n\tThe installer program will ask you for many of user confirmation questions (Ethernet\/SLIP config, gateway, inetd, FTP, NFS, security, console, linux compatibility, set time, etc), answer <strong>no <\/strong>for each of them.<\/p>\n<p>\n\tDo not forget to enter a root password, just do and remember it!<\/p>\n<p>\n\tFinally exit the the FreeBSD installer by choosing <strong>X <\/strong>Exit Install. While FreeBSD CD is rebooting, quit Qemu (closing the window or by by pressing Ctrl-Alt-2, and then typing: &quot;quit&quot;).<\/p>","protected":false},"excerpt":{"rendered":"<p>\n\tThis article explain how to install a Qemu based FreeBSD virtual machine under Win 7 64bit OS. The reason for making this tutorial is the usability of Qemu FreeBSD machine inside of the GNS3 network simulator, where the FreeBSD is used as the framework for running JunOS Olive routers.<\/p>\n<p>\n\t&nbsp;<\/p>\n<p>\n\t<strong>Environment<\/strong> <strong>and Prerequisities<\/strong><\/p>\n<p>\n\tMy environment:<\/p>\n<ul>\n<li>\n\t\tWin 7 64 bit operating system.<\/li>\n<\/ul>\n<p>\n\tPrerequisities:<\/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":[685],"tags":[],"class_list":["post-591","post","type-post","status-publish","format-standard","hentry","category-linux_-_howto-en"],"taxonomy_info":{"category":[{"value":685,"label":"Linux - HOWTO"}]},"featured_image_src_large":false,"author_info":{"display_name":"admin","author_link":"https:\/\/nil.uniza.sk\/en\/author\/admin\/"},"comment_info":8,"category_info":[{"term_id":685,"name":"Linux - HOWTO","slug":"linux_-_howto-en","term_group":0,"term_taxonomy_id":683,"taxonomy":"category","description":"","parent":0,"count":71,"filter":"raw","cat_ID":685,"category_count":71,"category_description":"","cat_name":"Linux - HOWTO","category_nicename":"linux_-_howto-en","category_parent":0}],"tag_info":false,"_links":{"self":[{"href":"https:\/\/nil.uniza.sk\/en\/wp-json\/wp\/v2\/posts\/591","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=591"}],"version-history":[{"count":0,"href":"https:\/\/nil.uniza.sk\/en\/wp-json\/wp\/v2\/posts\/591\/revisions"}],"wp:attachment":[{"href":"https:\/\/nil.uniza.sk\/en\/wp-json\/wp\/v2\/media?parent=591"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/nil.uniza.sk\/en\/wp-json\/wp\/v2\/categories?post=591"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/nil.uniza.sk\/en\/wp-json\/wp\/v2\/tags?post=591"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}