{"id":294,"date":"2010-02-02T15:31:16","date_gmt":"2010-02-02T20:31:16","guid":{"rendered":"http:\/\/jamesdevine.info\/?p=294"},"modified":"2010-02-02T15:31:16","modified_gmt":"2010-02-02T20:31:16","slug":"xen-cannot-run-more-than-4-vms","status":"publish","type":"post","link":"https:\/\/jamesdevine.info\/index.php\/2010\/02\/xen-cannot-run-more-than-4-vms\/","title":{"rendered":"Xen Cannot Run More Than 4 VMs"},"content":{"rendered":"<p>I have been setting up a test Xen 3.3 box running on Ubuntu 8.04. I have been getting the following error: &#8220;Device <em>xxxx <\/em>(vbd) cannot be connected. failed to find an unused loop device&#8221;\u00a0\u00a0where xxxx is some number. It turns out that by default only 8 loopback devices are enabled. The following command shows how many loopback devices are enabled:<\/p>\n<pre>ls -l \/dev\/loop*<\/pre>\n<p>To increase the number of loopback devices the following line needs to be added to the \/etc\/modules file. I used a value of 64 so I can run up to 32 virtual machines.<\/p>\n<pre>add loop max_loop=64<\/pre>\n<pre>Now when you run\u00a0<span style=\"font-family: Consolas, Monaco, 'Courier New', Courier, monospace; line-height: 18px; font-size: 12px; white-space: pre;\">ls -l \/dev\/loop* you will see additional loopback devices.<\/span><\/pre>\n<p><span style=\"font-family: Consolas, Monaco, 'Courier New', Courier, monospace; line-height: 18px; font-size: 12px; white-space: pre;\"> <\/span><\/p>\n<div id=\"_mcePaste\">root@xen-server:~# ls -l \/dev\/loop*<\/div>\n<div id=\"_mcePaste\">brw-rw&#8212;- 1 root disk 7, \u00a00 2009-07-09 03:43 \/dev\/loop0<\/div>\n<div id=\"_mcePaste\">brw-rw&#8212;- 1 root disk 7, \u00a01 2010-02-02 15:22 \/dev\/loop1<\/div>\n<div id=\"_mcePaste\">brw-rw&#8212;- 1 root disk 7, 10 2010-02-02 15:22 \/dev\/loop10<\/div>\n<div id=\"_mcePaste\">brw-rw&#8212;- 1 root disk 7, 11 2010-02-02 15:22 \/dev\/loop11<\/div>\n<div id=\"_mcePaste\">brw-rw&#8212;- 1 root disk 7, 12 2010-02-02 15:22 \/dev\/loop12<\/div>\n<div id=\"_mcePaste\">brw-rw&#8212;- 1 root disk 7, 13 2010-02-02 15:22 \/dev\/loop13<\/div>\n<div id=\"_mcePaste\">brw-rw&#8212;- 1 root disk 7, 14 2010-02-02 15:22 \/dev\/loop14<\/div>\n<div id=\"_mcePaste\">brw-rw&#8212;- 1 root disk 7, 15 2010-02-02 15:22 \/dev\/loop15<\/div>\n<div id=\"_mcePaste\">brw-rw&#8212;- 1 root disk 7, 16 2010-02-02 15:22 \/dev\/loop16<\/div>\n<div id=\"_mcePaste\">brw-rw&#8212;- 1 root disk 7, 17 2010-02-02 15:22 \/dev\/loop17<\/div>\n<div id=\"_mcePaste\">brw-rw&#8212;- 1 root disk 7, 18 2010-02-02 15:22 \/dev\/loop18<\/div>\n<div id=\"_mcePaste\">brw-rw&#8212;- 1 root disk 7, 19 2010-02-02 15:22 \/dev\/loop19<\/div>\n<div id=\"_mcePaste\">brw-rw&#8212;- 1 root disk 7, \u00a02 2010-02-02 15:22 \/dev\/loop2<\/div>\n<div id=\"_mcePaste\">brw-rw&#8212;- 1 root disk 7, 20 2010-02-02 15:22 \/dev\/loop20<\/div>\n<div>&#8230;<\/div>\n","protected":false},"excerpt":{"rendered":"<p>I have been setting up a test Xen 3.3 box running on Ubuntu 8.04. I have been getting the following [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_uf_show_specific_survey":0,"_uf_disable_surveys":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[17,23,26,37],"tags":[],"class_list":["post-294","post","type-post","status-publish","format-standard","hentry","category-linux","category-topics-in-virtualization","category-server","category-xen"],"aioseo_notices":[],"jetpack_featured_media_url":"","jetpack-related-posts":[{"id":300,"url":"https:\/\/jamesdevine.info\/index.php\/2010\/03\/sedf-cpu-scheduler-in-xen\/","url_meta":{"origin":294,"position":0},"title":"sEDF CPU Scheduler in Xen","author":"James Devine","date":"March 2, 2010","format":false,"excerpt":"By default the Xen Hypervisor uses the credit CPU scheduler. The sEDF (simple earliest deadline first) CPU\u00a0scheduler\u00a0can be used by setting the sched boot parameter equal to sedf. The easiest way to do this is by editing the grub boot loader config file, menu.lst. The file is located in \/boot\/grub\/menu.lst.\u2026","rel":"","context":"In &quot;General&quot;","block_context":{"text":"General","link":"https:\/\/jamesdevine.info\/index.php\/category\/general-information\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":377,"url":"https:\/\/jamesdevine.info\/index.php\/2011\/12\/move-netapp-root-volume-vol0-to-a-new-aggrigate\/","url_meta":{"origin":294,"position":1},"title":"Move NetApp Root Volume (vol0) to a New Aggrigate","author":"James Devine","date":"December 2, 2011","format":false,"excerpt":"By default vol0 is the root volume on a NetApp storage device and is stored on aggregate aggr0. After accidentally assigning too many disks to aggr0 I found the need to decrease the size of the aggregate. Unfortunately this is not possible. I had to create a new aggregate to\u2026","rel":"","context":"In &quot;Systems&quot;","block_context":{"text":"Systems","link":"https:\/\/jamesdevine.info\/index.php\/category\/systems\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":462,"url":"https:\/\/jamesdevine.info\/index.php\/2021\/07\/vsphere-7-home-lab-build-saga-complete-overhaul\/","url_meta":{"origin":294,"position":2},"title":"vSphere 7 Home Lab Build Saga &#8211; Complete Overhaul","author":"James Devine","date":"July 1, 2021","format":false,"excerpt":"One of my pandemic projects that may have gotten a bit out of hand was building a vSphere home lab. The initial plan was to simply upgrade a 7-year-old standalone ESXi server, but quickly turned into buying a 1\/4 height rack.","rel":"","context":"In &quot;Virtualization&quot;","block_context":{"text":"Virtualization","link":"https:\/\/jamesdevine.info\/index.php\/category\/topics-in-virtualization\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/jamesdevine.info\/wp-content\/uploads\/2021\/07\/vsphere-illustrate_ccexpress-scaled.jpeg?fit=1200%2C674&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/jamesdevine.info\/wp-content\/uploads\/2021\/07\/vsphere-illustrate_ccexpress-scaled.jpeg?fit=1200%2C674&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/jamesdevine.info\/wp-content\/uploads\/2021\/07\/vsphere-illustrate_ccexpress-scaled.jpeg?fit=1200%2C674&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/jamesdevine.info\/wp-content\/uploads\/2021\/07\/vsphere-illustrate_ccexpress-scaled.jpeg?fit=1200%2C674&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/jamesdevine.info\/wp-content\/uploads\/2021\/07\/vsphere-illustrate_ccexpress-scaled.jpeg?fit=1200%2C674&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":134,"url":"https:\/\/jamesdevine.info\/index.php\/2009\/03\/exchange-2007-and-active-directory\/","url_meta":{"origin":294,"position":3},"title":"Exchange 2007 and Active Directory","author":"James Devine","date":"March 20, 2009","format":false,"excerpt":"As part of a project I am working on for my internship with MITRE I was tasked with building a Domain containing a Server 2003 Domain Controller, exchange 2007 Server, Microsoft Office Sharepoint Services (MOSS) 2007 Server, and SQL Server 2005. Each service was installed in a server 2003 virtual\u2026","rel":"","context":"In &quot;Windows&quot;","block_context":{"text":"Windows","link":"https:\/\/jamesdevine.info\/index.php\/category\/windows\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":330,"url":"https:\/\/jamesdevine.info\/index.php\/2010\/05\/getting-hadoop-mapreduce-0-20-2-running-on-ubuntu\/","url_meta":{"origin":294,"position":4},"title":"Getting Hadoop MapReduce 0.20.2 Running On Ubuntu","author":"James Devine","date":"May 9, 2010","format":false,"excerpt":"I decided to setup a Hadoop cluster and write a MapReduce job \u00a0for my distrbuted systems final project. I had done this before with an earlier release and it was fairly straight forward. It turns out it is still straight forward with Hadoop 0.20.2, but the process is not well\u2026","rel":"","context":"In &quot;General&quot;","block_context":{"text":"General","link":"https:\/\/jamesdevine.info\/index.php\/category\/general-information\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/jamesdevine.info\/wp-content\/uploads\/2010\/05\/network.jpg?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":103396,"url":"https:\/\/jamesdevine.info\/index.php\/2022\/02\/architecting-for-failure-how-to-ensure-application-availability-and-resiliency\/","url_meta":{"origin":294,"position":5},"title":"Architecting for failure: how to ensure application availability and resiliency","author":"James Devine","date":"February 14, 2022","format":false,"excerpt":"Werner Vogels, CTO of Amazon, said it best \"Everything fails, all the time.\" The statement is of course simple and obvious, yet also quite thought provoking. Infrastructure can and does fail for a myriad of reasons, e.g., natural failure rates of hardware, natural disasters, power, network, cooling. This means the\u2026","rel":"","context":"In &quot;General&quot;","block_context":{"text":"General","link":"https:\/\/jamesdevine.info\/index.php\/category\/general-information\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/jamesdevine.info\/wp-content\/uploads\/2022\/02\/failure-scaled.jpeg?fit=1200%2C800&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/jamesdevine.info\/wp-content\/uploads\/2022\/02\/failure-scaled.jpeg?fit=1200%2C800&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/jamesdevine.info\/wp-content\/uploads\/2022\/02\/failure-scaled.jpeg?fit=1200%2C800&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/jamesdevine.info\/wp-content\/uploads\/2022\/02\/failure-scaled.jpeg?fit=1200%2C800&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/jamesdevine.info\/wp-content\/uploads\/2022\/02\/failure-scaled.jpeg?fit=1200%2C800&ssl=1&resize=1050%2C600 3x"},"classes":[]}],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/jamesdevine.info\/index.php\/wp-json\/wp\/v2\/posts\/294","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jamesdevine.info\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jamesdevine.info\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jamesdevine.info\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/jamesdevine.info\/index.php\/wp-json\/wp\/v2\/comments?post=294"}],"version-history":[{"count":3,"href":"https:\/\/jamesdevine.info\/index.php\/wp-json\/wp\/v2\/posts\/294\/revisions"}],"predecessor-version":[{"id":297,"href":"https:\/\/jamesdevine.info\/index.php\/wp-json\/wp\/v2\/posts\/294\/revisions\/297"}],"wp:attachment":[{"href":"https:\/\/jamesdevine.info\/index.php\/wp-json\/wp\/v2\/media?parent=294"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jamesdevine.info\/index.php\/wp-json\/wp\/v2\/categories?post=294"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jamesdevine.info\/index.php\/wp-json\/wp\/v2\/tags?post=294"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}