{"id":96,"date":"2008-04-19T00:00:00","date_gmt":"2008-04-19T00:00:00","guid":{"rendered":"http:\/\/netexpertise\/en\/?p=96"},"modified":"2021-10-13T21:52:16","modified_gmt":"2021-10-13T19:52:16","slug":"xen-tips","status":"publish","type":"post","link":"http:\/\/www.netexpertise.eu\/en\/systems\/linux\/xen-tips.html","title":{"rendered":"Xen Tips"},"content":{"rendered":"<h3>Disabling Image Files<\/h3>\n<div style=\"float:left; margin-right:15px; margin-top:0px;\">\n<script async=\"\" src=\"\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js\"><\/script><br \/>\n<!-- 200x200, Netexpertise --><br \/>\n<ins class=\"adsbygoogle\" style=\"display:inline-block;width:200px;height:200px\" data-ad-client=\"ca-pub-6495750100906580\" data-ad-slot=\"1946825373\"><\/ins><br \/>\n<script><br \/>\n(adsbygoogle = window.adsbygoogle || []).push({});<br \/>\n<\/script><\/div>\n<p>Xen usually stores running domains in \/var\/lib\/xen\/save, causing a \/var full on many systems when dom0 is shut down. Edit \/etc\/sysconfig\/xendomains or \/etc\/default\/xendomains and replace<\/p>\n<pre>\"XENDOMAINS_SAVE=\/var\/lib\/xen\/save\"<\/pre>\n<p>with<\/p>\n<pre>\"XENDOMAINS_SAVE=\"<\/pre>\n<p>This sends a shutdown signal to all virtual machines before dom0 reboots. A 300 second timeout is defined before killing an OS that hangs on shutdown.<\/p>\n<h3>Static Routes<\/h3>\n<p>The file \/etc\/sysconfig\/static-routes is still supported but routes are removed after the Xen daemon is launched. Since Redhat Enterprise Linux 3, it is advised to use \/etc\/sysconfig\/network-scripts\/route-ethX. It should include similar information to this for instance:<\/p>\n<pre>GATEWAY0=10.25.207.163\nNETMASK0=255.255.252.0\nADDRESS0=10.22.40.0\n\nGATEWAY1=10.25.207.163\nNETMASK1=255.255.252.0\nADDRESS1=10.22.208.0\n<\/pre>\n<h3>Virtual Console Access<\/h3>\n<p>2 methods can be used to access a domU console:<\/p>\n<ul>\n<li>\n&#8220;xm console xenhost&#8221; If the virtual host is shut down, &#8220;xm create -c xenhost&#8221; boots it and launches the console. However, user space messages are not displayed &#8211; like services startup.<\/li>\n<li>\nThe 2nd option is to launch vncviewer that emulates a colored console.<br \/>\nEvery single Xen host has its own VNC port on the physical machine. They are usually on the 590X format. You can find the ports with netstat.<br \/>\nOpen a X11 manager on your local system and run on dom0:<\/p>\n<pre>export DISPLAY=10.22.41.229:0.0\nvncviewer localhost:590X\n<\/pre>\n<\/li>\n<\/ul>\n<h3>Keyboard in console<\/h3>\n<p>Before Redhat Enterprise 5.1, the keyboard always uses the qwerty layout in its minimal definition. Upgrade to RHEL5.1 to access all characters and specify a custom layout.<br \/>\nAdd keyword &#8220;keymap&#8221; to the Xen configuration file. Example:<\/p>\n<pre>vfb = [ \"type=vnc,keymap=fr\" ]\n<\/pre>\n<h3>Serial Console<\/h3>\n<p>To get the serial console to work with a Xen kernel, Grub had to be configured this way:<\/p>\n<pre>title Systeme principal\n       root (hd0,0)\n       kernel \/xen.gz-2.6.18-53.el5 com2=115200,8n1 pnpacpi=off console=com2L\n       module \/vmlinuz-2.6.18-53.el5xen ro root=\/dev\/sys1liege\/rootfs console=xvc xencons=xvc\n       module \/initrd-2.6.18-53.el5xen.img\n<\/pre>\n<p>The following line is also needed in \/etc\/inittab<\/p>\n<pre>7:2345:respawn:\/sbin\/agetty -L 115200 ttyS1 vt102 or\nco:2345:respawn:\/sbin\/agetty xvc0 115200 vt100-nav<\/pre>\n<p>Adding &#8220;xvc0&#8221; to \/etc\/securetty may be needed.<\/p>\n<h3>NTP<\/h3>\n<p>NTP doesn&#8217;t need to be set up on virtual machines. Time is synchronized with the hosting machine.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Disabling Image Files Xen usually stores running domains in \/var\/lib\/xen\/save, causing a \/var full on many systems when dom0 is shut down. Edit \/etc\/sysconfig\/xendomains or \/etc\/default\/xendomains and replace &#8220;XENDOMAINS_SAVE=\/var\/lib\/xen\/save&#8221; with &#8220;XENDOMAINS_SAVE=&#8221; This sends a shutdown signal to all virtual machines before dom0 reboots. A 300 second timeout is defined before killing an OS that hangs [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0},"categories":[11,346],"tags":[77,386,82,76,290],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v21.8.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Netexpertise - Xen Tips<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"http:\/\/www.netexpertise.eu\/en\/systems\/linux\/xen-tips.html\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Netexpertise - Xen Tips\" \/>\n<meta property=\"og:description\" content=\"Disabling Image Files Xen usually stores running domains in \/var\/lib\/xen\/save, causing a \/var full on many systems when dom0 is shut down. Edit \/etc\/sysconfig\/xendomains or \/etc\/default\/xendomains and replace &quot;XENDOMAINS_SAVE=\/var\/lib\/xen\/save&quot; with &quot;XENDOMAINS_SAVE=&quot; This sends a shutdown signal to all virtual machines before dom0 reboots. A 300 second timeout is defined before killing an OS that hangs [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"http:\/\/www.netexpertise.eu\/en\/systems\/linux\/xen-tips.html\" \/>\n<meta property=\"og:site_name\" content=\"Netexpertise\" \/>\n<meta property=\"article:published_time\" content=\"2008-04-19T00:00:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-10-13T19:52:16+00:00\" \/>\n<meta name=\"author\" content=\"dave\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@netexpertise\" \/>\n<meta name=\"twitter:site\" content=\"@netexpertise\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"http:\/\/www.netexpertise.eu\/en\/systems\/linux\/xen-tips.html\",\"url\":\"http:\/\/www.netexpertise.eu\/en\/systems\/linux\/xen-tips.html\",\"name\":\"Netexpertise - Xen Tips\",\"isPartOf\":{\"@id\":\"http:\/\/www.netexpertise.eu\/en\/#website\"},\"datePublished\":\"2008-04-19T00:00:00+00:00\",\"dateModified\":\"2021-10-13T19:52:16+00:00\",\"author\":{\"@id\":\"http:\/\/www.netexpertise.eu\/en\/#\/schema\/person\/cb4cd666549d22e9070ec1cfc1a496fa\"},\"breadcrumb\":{\"@id\":\"http:\/\/www.netexpertise.eu\/en\/systems\/linux\/xen-tips.html#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"http:\/\/www.netexpertise.eu\/en\/systems\/linux\/xen-tips.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"http:\/\/www.netexpertise.eu\/en\/systems\/linux\/xen-tips.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"http:\/\/www.netexpertise.eu\/en\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Xen Tips\"}]},{\"@type\":\"WebSite\",\"@id\":\"http:\/\/www.netexpertise.eu\/en\/#website\",\"url\":\"http:\/\/www.netexpertise.eu\/en\/\",\"name\":\"Netexpertise\",\"description\":\"Systems \/ Networks \/ DevOps\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"http:\/\/www.netexpertise.eu\/en\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"http:\/\/www.netexpertise.eu\/en\/#\/schema\/person\/cb4cd666549d22e9070ec1cfc1a496fa\",\"name\":\"dave\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"http:\/\/www.netexpertise.eu\/en\/#\/schema\/person\/image\/\",\"url\":\"http:\/\/1.gravatar.com\/avatar\/1129916e1f4955bd632f27f836f64e55?s=96&d=mm&r=g\",\"contentUrl\":\"http:\/\/1.gravatar.com\/avatar\/1129916e1f4955bd632f27f836f64e55?s=96&d=mm&r=g\",\"caption\":\"dave\"},\"sameAs\":[\"http:\/\/www.netexpertise.eu\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Netexpertise - Xen Tips","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"http:\/\/www.netexpertise.eu\/en\/systems\/linux\/xen-tips.html","og_locale":"en_US","og_type":"article","og_title":"Netexpertise - Xen Tips","og_description":"Disabling Image Files Xen usually stores running domains in \/var\/lib\/xen\/save, causing a \/var full on many systems when dom0 is shut down. Edit \/etc\/sysconfig\/xendomains or \/etc\/default\/xendomains and replace \"XENDOMAINS_SAVE=\/var\/lib\/xen\/save\" with \"XENDOMAINS_SAVE=\" This sends a shutdown signal to all virtual machines before dom0 reboots. A 300 second timeout is defined before killing an OS that hangs [&hellip;]","og_url":"http:\/\/www.netexpertise.eu\/en\/systems\/linux\/xen-tips.html","og_site_name":"Netexpertise","article_published_time":"2008-04-19T00:00:00+00:00","article_modified_time":"2021-10-13T19:52:16+00:00","author":"dave","twitter_card":"summary_large_image","twitter_creator":"@netexpertise","twitter_site":"@netexpertise","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"http:\/\/www.netexpertise.eu\/en\/systems\/linux\/xen-tips.html","url":"http:\/\/www.netexpertise.eu\/en\/systems\/linux\/xen-tips.html","name":"Netexpertise - Xen Tips","isPartOf":{"@id":"http:\/\/www.netexpertise.eu\/en\/#website"},"datePublished":"2008-04-19T00:00:00+00:00","dateModified":"2021-10-13T19:52:16+00:00","author":{"@id":"http:\/\/www.netexpertise.eu\/en\/#\/schema\/person\/cb4cd666549d22e9070ec1cfc1a496fa"},"breadcrumb":{"@id":"http:\/\/www.netexpertise.eu\/en\/systems\/linux\/xen-tips.html#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["http:\/\/www.netexpertise.eu\/en\/systems\/linux\/xen-tips.html"]}]},{"@type":"BreadcrumbList","@id":"http:\/\/www.netexpertise.eu\/en\/systems\/linux\/xen-tips.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"http:\/\/www.netexpertise.eu\/en"},{"@type":"ListItem","position":2,"name":"Xen Tips"}]},{"@type":"WebSite","@id":"http:\/\/www.netexpertise.eu\/en\/#website","url":"http:\/\/www.netexpertise.eu\/en\/","name":"Netexpertise","description":"Systems \/ Networks \/ DevOps","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"http:\/\/www.netexpertise.eu\/en\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"http:\/\/www.netexpertise.eu\/en\/#\/schema\/person\/cb4cd666549d22e9070ec1cfc1a496fa","name":"dave","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"http:\/\/www.netexpertise.eu\/en\/#\/schema\/person\/image\/","url":"http:\/\/1.gravatar.com\/avatar\/1129916e1f4955bd632f27f836f64e55?s=96&d=mm&r=g","contentUrl":"http:\/\/1.gravatar.com\/avatar\/1129916e1f4955bd632f27f836f64e55?s=96&d=mm&r=g","caption":"dave"},"sameAs":["http:\/\/www.netexpertise.eu"]}]}},"_links":{"self":[{"href":"http:\/\/www.netexpertise.eu\/en\/wp-json\/wp\/v2\/posts\/96"}],"collection":[{"href":"http:\/\/www.netexpertise.eu\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.netexpertise.eu\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.netexpertise.eu\/en\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/www.netexpertise.eu\/en\/wp-json\/wp\/v2\/comments?post=96"}],"version-history":[{"count":0,"href":"http:\/\/www.netexpertise.eu\/en\/wp-json\/wp\/v2\/posts\/96\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.netexpertise.eu\/en\/wp-json\/wp\/v2\/media?parent=96"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.netexpertise.eu\/en\/wp-json\/wp\/v2\/categories?post=96"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.netexpertise.eu\/en\/wp-json\/wp\/v2\/tags?post=96"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}