﻿{"id":902,"date":"2012-06-28T14:12:32","date_gmt":"2012-06-28T06:12:32","guid":{"rendered":"http:\/\/nick.workao.org\/?p=902"},"modified":"2012-06-28T14:12:32","modified_gmt":"2012-06-28T06:12:32","slug":"ubuntu-12-04-on-citrix-xenserver-5-6","status":"publish","type":"post","link":"https:\/\/nick.txtcc.com\/index.php\/linux\/902","title":{"rendered":"ubuntu 12.04 on citrix xenserver 5.6"},"content":{"rendered":"<p>After upgrading my virtualized Ubuntu 11.10 installation to Ubuntu 12.04 Precise Pangolin, I&#8217;ve had strange problems on booting up the virtual machine: Sometimes it booted up smoothly, sometimes it hung, sometimes it reported a read-only filesystem due to errors (which actually could not be found using fsck). After some investigation, I decided to re-install the system.<\/p>\n<p>I wanted to install Ubuntu 12.04 LTS para-virtualized (PV), but this is not supported out of the box by Citrix XenServer 5.6 SP2. However, I&#8217;ve found some really useful instructions in the\u00a0<a href=\"http:\/\/forums.citrix.com\/thread.jspa?threadID=286471&#038;tstart=0\" target=\"_blank\">Citrix Forums<\/a>\u00a0written for for Ubuntu 11.04, also working for Ubuntu 12.04:<\/p>\n<ol>\n    <li>Enter the XenServer Console and get the UUID of the Ubuntu 10.10 template:\n<div>\n<div>\n<pre>xe template-list name-label=\"Ubuntu Lucid Lynx 10.04 (64-bit) (experimental)\" --minimal<\/pre>\n<\/div>\n<\/div><\/li>\n    <li>Clone the Ubuntu 10.10 template:\n<div>\n<div>\n<pre>xe vm-clone uuid=[UUID from step 1 here] new-name-label=\"Ubuntu Precise Pangolin 12.04 (64-bit)\"<\/pre>\n<\/div>\n<\/div><\/li>\n    <li>Configute the new Ubuntu 12.04 template:\n<div>\n<div>\n<pre>xe template-param-set other-config:default_template=true other-config:debian-release=precise uuid=[UUID from step 2 here]<\/pre>\n<\/div>\n<\/div><\/li>\n    <li>Create a new VM and choose your newly created Ubuntu 12.04 template.<\/li>\n    <li>Enter the following url under &#8220;Install from URL:&#8221;\n<div>\n<div>\n<pre>http:\/\/archive.ubuntu.net\/ubuntu\/<\/pre>\n<\/div>\n<\/div><\/li>\n    <li>Create a separate \/boot partition at the beginning of the virtual disk (I chose 256 MB).<\/li>\n    <li>After the installation is completed, log into your new VM and become root.\n<div>\n<div>\n<pre>sudo -s<\/pre>\n<\/div>\n<\/div><\/li>\n    <li>Install the virtual kernel image:\n<div>\n<div>\n<pre>apt-get install linux-virtual linux-image-virtual linux-headers-virtual<\/pre>\n<\/div>\n<\/div><\/li>\n    <li>Remove the generic kernel image:\n<div>\n<div>\n<pre>apt-get remove linux-generic linux-headers-generic linux-image-generic<\/pre>\n<\/div>\n<\/div><\/li>\n    <li>Update the grub boot loader:\n<div>\n<div>\n<pre>update-grub<\/pre>\n<\/div>\n<\/div><\/li>\n    <li>Insert the XenServer Tools xs-tools.iso and mount it:\n<div>\n<div>\n<pre>mount \/dev\/xvdd \/mnt<\/pre>\n<\/div>\n<\/div><\/li>\n    <li>Install the XenServer Tools:\n<div>\n<div>\n<pre>cd \/mnt\/Linux\ndpkg -i *amd64.deb<\/pre>\n<\/div>\n<\/div><\/li>\n    <li>Unmount the ISO and reboot:\n<div>\n<div>\n<pre>cd\numount \/mnt\nreboot<\/pre>\n<\/div>\n<\/div><\/li>\n    <li>That&#8217;s it!\n<a href=\"http:\/\/nick.txtcc.com\/index.php\/other\/264\/attachment\/6\" rel=\"attachment wp-att-271\"><img loading=\"lazy\" decoding=\"async\" title=\"ubuntu-12.04-pv\" src=\"http:\/\/www.virtualzone.de\/wp-content\/uploads\/2012\/05\/ubuntu-12.04-pv.png\" alt=\"\" width=\"457\" height=\"280\"><\/a><\/li>\n<\/ol>\n<p>I haven&#8217;t tried, but this might work for Citrix XenServer 6, too.<\/p>","protected":false},"excerpt":{"rendered":"<p>After upgrading my virtualized Ubuntu 11.10 installation to Ubuntu 12.04 Precise Pangolin, I&#8217;v&#46;&#46;&#46;<\/p>","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-902","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/posts\/902","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/comments?post=902"}],"version-history":[{"count":2,"href":"https:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/posts\/902\/revisions"}],"predecessor-version":[{"id":904,"href":"https:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/posts\/902\/revisions\/904"}],"wp:attachment":[{"href":"https:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/media?parent=902"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/categories?post=902"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/tags?post=902"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}