{"id":78,"date":"2014-09-01T21:33:53","date_gmt":"2014-09-01T21:33:53","guid":{"rendered":"https:\/\/carminebufano.com\/?p=78"},"modified":"2014-09-01T21:33:53","modified_gmt":"2014-09-01T21:33:53","slug":"how-to-install-xenserver-tools-xs-tools-iso-on-clearos-virtual-router","status":"publish","type":"post","link":"https:\/\/carminebufano.com\/index.php\/2014\/09\/01\/how-to-install-xenserver-tools-xs-tools-iso-on-clearos-virtual-router\/","title":{"rendered":"How to install Xenserver tools (xs-tools.iso) on ClearOS virtual router."},"content":{"rendered":"<p>\t\t\t\tCitrix made its Distributed virtual switch controller (DVSC) publicly available about a year or so ago,\u00a0 at the same time they announced it was being deprecated. \u00a0 This was bitter sweet.\u00a0\u00a0 Home labs now had access to this technology previously only available to corporations with deep pockets.\u00a0 However,\u00a0 it came with a promise that pretty soon DVSC will be irrelevant.\u00a0 Fast forward a year, with the release of the new Citrix Xenserver tech preview named Creedence,\u00a0 Citrix is rescinding their deprecation on the Distributed virtual switch controller!<\/p>\n<p>So how does this all fit in with this post?<\/p>\n<p>Well Xenserver has some pretty amazing virtual networking when you add the DVSC in the mix.\u00a0 I wont get into all those details however a good starting point on what the DVSC brings to the table is <a title=\"Citrix DVSC 6.2 User Guide\" href=\"http:\/\/support.citrix.com\/servlet\/KbServlet\/download\/34974-102-704224\/dvs_controller.pdf\" target=\"_blank\" rel=\"noopener noreferrer\">here.<\/a>\u00a0 The feature I find most useful is the Cross Server private Networking.\u00a0\u00a0 In short, when you create a CSPN, Xenserver creates a <a title=\"Wiki Generic Routing Encapsulation\" href=\"http:\/\/en.wikipedia.org\/wiki\/Generic_Routing_Encapsulation\" target=\"_blank\" rel=\"noopener noreferrer\">gre tunnel\u00a0<\/a>between all the hosts in your Xenserver pool,\u00a0 providing you with a fully isolated layer 2 network. There is no need to create a vlan on any of your switches,\u00a0 you do not need a vlan switch, managed switch or special hardware at all, it just works! To these isolated layer 2 networks you can connect your own virtual router, dhcp server, whatever you like. Which is what brings us to this post.<\/p>\n<p>I have mentioned before how undervalued I believe Citrix Xenserver is, I base my opinion,\u00a0 partially on the availability of virtual appliances specific to Citrix Xenserver. They just aren&#8217;t out there.. anywhere.\u00a0 The argument that Xenserver is compatible with the .ova format which allows it to use virtual appliances made for other platforms just doesn&#8217;t hold water.\u00a0 If everyone was using Citrix Xenserver there would be appliances for &#8220;Citrix Xenserver&#8221;.<\/p>\n<p>So, we have to make our own.\u00a0 This is not as trivial as you may think.\u00a0 Xenserver vm&#8217;s if created with the &#8220;Other&#8221; template, (which is what you want when making an appliance because it is what gives full hardware virtualization and not paravirtualization) by default perform under par, mainly the network interfaces run at 100mbs.\u00a0 For me this is a major drawback.\u00a0 I have searched high and low for a good virtual router to use that I can add Xenserver tools to, to get the better performance.\u00a0 I have found two excellent solutions. \u00a0 I will share the first here and the second in a upcoming post (next few days, I promise).<\/p>\n<p>&nbsp;<\/p>\n<p>Lets get dirty!<\/p>\n<p>As the title says, we will use ClearOS, it provides (for free) a community edition that performs excellent. Let&#8217;s download the iso from <a title=\"Get Clearos .iso\" href=\"http:\/\/www.clearfoundation.com\/Software\/downloads.html\" target=\"_blank\" rel=\"noopener noreferrer\">here.<\/a><\/p>\n<p>Make sure you download the .iso the pre-built appliances are for testing only and actually do not even install.<\/p>\n<p>Next, create a virtual machine in Citrix Xenserver and use the &#8220;Other&#8221; template. This will give you a hardware virtualized machine.<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/carminebufano.com\/wp-content\/uploads\/2014\/09\/Other-Template-CXS.jpg\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-82 size-medium\" src=\"https:\/\/i0.wp.com\/carminebufano.com\/wp-content\/uploads\/2014\/09\/Other-Template-CXS-300x187.jpg?resize=300%2C187\" alt=\"Other-Template-CXS\" width=\"300\" height=\"187\" \/><\/a><\/p>\n<p>Choose at least two network interfaces for your virtual machine. I usually add the first vnic to my external network (has a dhcp server running on it) and use it as the wan side. I then add the second vnic on a fresh new Cross Server Private Network, it can also be a vlan network or a host only network.<\/p>\n<p>The vm does not need much in resources, 6gb hard disk, 1 vcpu and 512mb ram work well for a small lab.<\/p>\n<p>There is a little trick to get the vm to work, we will use it here.<\/p>\n<p>First lets find the uuid of the newly created vm.<\/p>\n<p>On the pool master, either ssh to it, or from the console in Xenserver type:<\/p>\n<pre class=\"\">xe vm-list<\/pre>\n<p>Look for the name of your ClearOS vm and copy its <span style=\"color: #ff9900;\">uuid<\/span> to use in the next step.<\/p>\n<p>&nbsp;<\/p>\n<p>Next lets turn off viridian for the ClearOS virtual machine which is on by default for all HVM vm&#8217;s and sometimes confuses Linux operating systems (Viridian is used for Windows, which is not applicable here)<\/p>\n<pre class=\"\"><span class=\"st\"><em>xe<\/em> vm-param-set uuid=<span style=\"color: #ff9900;\"><em>the-uuid-from-previous-step<\/em><\/span> platform:<em>viridian<\/em>=<em>false<\/em><\/span><\/pre>\n<p>&nbsp;<\/p>\n<p>Now boot the vm and follow the onscreen instructions to install the operating system. This is pretty straight forward.<\/p>\n<p>When installation is finished, Click Ok, to reboot. You may have to eject the cd when the reboot is done if ClearOS does not eject the disk for you.<\/p>\n<p>Voila! You should boot into the ClearOS welcome screen and it should tell you the ip address to go to from your web browser to configure it.<\/p>\n<p>The ip is usually https:\/\/server-ip:81<\/p>\n<p>Now, we need to install xenserver tools to get gigabit speed.<\/p>\n<p>Right-Click the vm and select &#8220;Install Xenserver Tools&#8221; or just select the xs-tools.iso from the virtual cdrom.<\/p>\n<p>Use your favorite ssh client (like Putty) and ssh to the ip address on the welcome screen. Log in as root and use the password you set during the installation. (ssh is allowed on the wan interface by default)<\/p>\n<pre class=\"\">mount \/dev\/cdrom \/tmp<\/pre>\n<p>Next move into the directory we just mounted<\/p>\n<pre class=\"\">cd \/tmp\/Linux<\/pre>\n<p>Normally at this point you would run the auto install script, however it wont work here,\u00a0 Xenserver will fail to recognize the version of linux.<\/p>\n<p>No fear, we will do it manually.<\/p>\n<p>First,<\/p>\n<pre class=\"\">\n<p>rpm -i xe-guest-utilities-xenstore-6.4.93-1269.x86_64.rpm<\/p>\n<p>rpm -i xe-guest-utilities-6.4.93-1269.x86_64.rpm<\/p>\n<\/pre>\n<p>Make sure you install them in this order! Your version of tools may be diferent. Just install the xe-guest-utilities-xenstore-x.x.xx-xxxx.x86_x.rpm<\/p>\n<p>first, then the xe-guest-utilities-x.x.xx-xxxx.x86_xx.rpm<\/p>\n<p>Next shutdown the vm with:<\/p>\n<pre class=\"\">shutdown -h now<\/pre>\n<p>Eject the cd.<\/p>\n<p>Start your vm up again. You can now see the ip address assigned to the Wan interface from Xencenter&#8217;s networking tab (lan interface is not configured yet but will also be visible once you set it). Nic speed is now gigabit, your vm can be live migrated, storage migration and all those other goodies.<\/p>\n<p>-Carmine Bufano<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;\t\t<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Citrix made its Distributed virtual switch controller (DVSC) publicly available about a year or so ago,\u00a0 at the same time they announced it was being deprecated. \u00a0 This was bitter sweet.\u00a0\u00a0 Home labs now had access to this technology previously only available to corporations with deep pockets.\u00a0 However,\u00a0 it came with a promise that pretty&hellip; <a class=\"read-more\" href=\"https:\/\/carminebufano.com\/index.php\/2014\/09\/01\/how-to-install-xenserver-tools-xs-tools-iso-on-clearos-virtual-router\/\">Read More<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"advanced_seo_description":"","jetpack_seo_html_title":"","jetpack_seo_noindex":false,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[5,15],"tags":[],"class_list":["post-78","post","type-post","status-publish","format-standard","hentry","category-citrix-xenserver","category-walkthroughs"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack-related-posts":[{"id":94,"url":"https:\/\/carminebufano.com\/index.php\/2014\/09\/04\/make-mikrotik-routeros-and-much-much-work-on-citrix-xenserver\/","url_meta":{"origin":78,"position":0},"title":"Make Mikrotik RouterOS and much, much more work on Citrix Xenserver","author":"Carmine Bufano","date":"September 4, 2014","format":false,"excerpt":"","rel":"","context":"In &quot;Citrix Xenserver&quot;","block_context":{"text":"Citrix Xenserver","link":"https:\/\/carminebufano.com\/index.php\/category\/citrix-xenserver\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":55,"url":"https:\/\/carminebufano.com\/index.php\/2014\/08\/26\/how-to-install-xenserver-tools-on-ubuntu-14-04\/","url_meta":{"origin":78,"position":1},"title":"How to install xenserver tools on Ubuntu 14.04","author":"Carmine Bufano","date":"August 26, 2014","format":false,"excerpt":"","rel":"","context":"In &quot;Citrix Xenserver&quot;","block_context":{"text":"Citrix Xenserver","link":"https:\/\/carminebufano.com\/index.php\/category\/citrix-xenserver\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":283,"url":"https:\/\/carminebufano.com\/index.php\/2017\/12\/26\/digital-ocean-how-to-download-a-copy-or-snapshot-of-your-droplet-or-vm-locally-and-run-it-on-your-own-server\/","url_meta":{"origin":78,"position":2},"title":"Digital Ocean How to download a copy or snapshot of your droplet or vm locally and run it on your own server","author":"Carmine Bufano","date":"December 26, 2017","format":false,"excerpt":"","rel":"","context":"In &quot;Announcements&quot;","block_context":{"text":"Announcements","link":"https:\/\/carminebufano.com\/index.php\/category\/announcements\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":857,"url":"https:\/\/carminebufano.com\/index.php\/2026\/04\/20\/ovn-integration-coexistence-on-xenserver-and-xcp-ng\/","url_meta":{"origin":78,"position":3},"title":"OVN Integration &amp; Coexistence on Xenserver and XCP-ng","author":"Carmine Bufano","date":"April 20, 2026","format":false,"excerpt":"Research on multi hypervisor network virtualization using Open Virtual Network Summary The cleanest technical path is not to bolt a foreign br-int onto a host that already has its networking lifecycle owned by XAPI. The safer pattern is to let XAPI create and own a dedicated internal network bridge, then\u2026","rel":"","context":"In &quot;CentOS&quot;","block_context":{"text":"CentOS","link":"https:\/\/carminebufano.com\/index.php\/category\/centos\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":251,"url":"https:\/\/carminebufano.com\/index.php\/2014\/08\/25\/how-to-configure-many-web-servers-behind-one-public-ip\/","url_meta":{"origin":78,"position":4},"title":"How to self host many web servers with different domains &#038; URLs with one public IP","author":"Carmine Bufano","date":"August 25, 2014","format":false,"excerpt":"","rel":"","context":"In &quot;Ubuntu&quot;","block_context":{"text":"Ubuntu","link":"https:\/\/carminebufano.com\/index.php\/category\/ubuntu\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/carminebufano.com\/wp-content\/uploads\/2014\/08\/Pound-Proxy.vsdx_.jpg?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/carminebufano.com\/wp-content\/uploads\/2014\/08\/Pound-Proxy.vsdx_.jpg?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/carminebufano.com\/wp-content\/uploads\/2014\/08\/Pound-Proxy.vsdx_.jpg?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/carminebufano.com\/wp-content\/uploads\/2014\/08\/Pound-Proxy.vsdx_.jpg?resize=700%2C400&ssl=1 2x"},"classes":[]},{"id":698,"url":"https:\/\/carminebufano.com\/index.php\/2024\/09\/20\/quality-free-resources-to-learn-programming\/","url_meta":{"origin":78,"position":5},"title":"Top 3 Online Resources to Learn Coding","author":"Carmine Bufano","date":"September 20, 2024","format":false,"excerpt":"Learn to write your own applications for fun and profit. Here are quality free resources online that I can personally vouch for. I get nothing for suggesting these websites.","rel":"","context":"In &quot;Announcements&quot;","block_context":{"text":"Announcements","link":"https:\/\/carminebufano.com\/index.php\/category\/announcements\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/carminebufano.com\/wp-content\/uploads\/2024\/09\/usefull-sites-learn-to-code.jpeg?fit=1200%2C686&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/carminebufano.com\/wp-content\/uploads\/2024\/09\/usefull-sites-learn-to-code.jpeg?fit=1200%2C686&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/carminebufano.com\/wp-content\/uploads\/2024\/09\/usefull-sites-learn-to-code.jpeg?fit=1200%2C686&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/carminebufano.com\/wp-content\/uploads\/2024\/09\/usefull-sites-learn-to-code.jpeg?fit=1200%2C686&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/carminebufano.com\/wp-content\/uploads\/2024\/09\/usefull-sites-learn-to-code.jpeg?fit=1200%2C686&ssl=1&resize=1050%2C600 3x"},"classes":[]}],"jetpack_shortlink":"https:\/\/wp.me\/p70MUT-1g","jetpack_sharing_enabled":true,"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/carminebufano.com\/index.php\/wp-json\/wp\/v2\/posts\/78","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/carminebufano.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/carminebufano.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/carminebufano.com\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/carminebufano.com\/index.php\/wp-json\/wp\/v2\/comments?post=78"}],"version-history":[{"count":0,"href":"https:\/\/carminebufano.com\/index.php\/wp-json\/wp\/v2\/posts\/78\/revisions"}],"wp:attachment":[{"href":"https:\/\/carminebufano.com\/index.php\/wp-json\/wp\/v2\/media?parent=78"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/carminebufano.com\/index.php\/wp-json\/wp\/v2\/categories?post=78"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/carminebufano.com\/index.php\/wp-json\/wp\/v2\/tags?post=78"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}