<?xml version="1.0" encoding="UTF-8"?> <rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:wfw="http://wellformedweb.org/CommentAPI/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
><channel><title>MDLog:/sysadmin &#187; Virtualization</title> <atom:link href="http://www.ducea.com/category/virtualization/feed/" rel="self" type="application/rss+xml" /><link>http://www.ducea.com</link> <description>The Journal Of A Linux Sysadmin</description> <lastBuildDate>Tue, 07 Feb 2012 19:40:06 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3</generator> <item><title>HowTo Improve IO Performance for KVM Guests</title><link>http://www.ducea.com/2011/07/06/howto-improve-io-performance-for-kvm-guests/</link> <comments>http://www.ducea.com/2011/07/06/howto-improve-io-performance-for-kvm-guests/#comments</comments> <pubDate>Wed, 06 Jul 2011 17:58:18 +0000</pubDate> <dc:creator>- Marius -</dc:creator> <category><![CDATA[Linux]]></category> <category><![CDATA[Tips & Tricks]]></category> <category><![CDATA[Ubuntu]]></category> <category><![CDATA[Virtualization]]></category> <category><![CDATA[kvm]]></category> <category><![CDATA[performance]]></category> <category><![CDATA[xen]]></category><guid
isPermaLink="false">http://www.ducea.com/?p=1313</guid> <description><![CDATA[Recently I&#8217;ve worked on a project where we deployed a bunch KVM instances. Immediately we noticed horrible IO performance on all the guests instances. In this particular case the hosts and the guests were all Ubuntu 10.04 Lucid and were created with vmbuilder without any special settings using the ubuntu defaults. Here is a sample [...]<p><a
href="http://www.thycotic.com/zSS_Ducea.html?utm_source=ducea&utm_medium=banner&utm_content=iquit&utm_campaign=SSDucea"><img
src="http://www.ducea.com/images/SS468by60.jpg"></a></p> ]]></description> <content:encoded><![CDATA[<p>Recently I&#8217;ve worked on a project where we deployed a bunch <strong>KVM</strong> instances. Immediately we noticed <em>horrible IO performance</em> on all the guests instances. In this particular case the hosts and the guests were all <em>Ubuntu 10.04 Lucid</em> and were created with <strong>vmbuilder</strong> without any special settings using the ubuntu defaults. Here is a sample command similar to what we used to build the kvm images:</p><p><code>vmbuilder kvm ubuntu --suite=lucid --flavour=virtual --arch=amd64 --mirror=http://en.archive.ubuntu.com/ubuntu -o --libvirt=qemu:///system --ip=10.0.0.11 --gw=10.0.0.1 --part=vmbuilder.partition --templates=mytemplates --user=username --pass=password --firstboot=/var/vms/vm1/boot.sh --mem=1024 --hostname=myhost --bridge=br0</code></p><p>Now even if we haven&#8217;t tuned anything I would have expected it to perform at least the same level or even better compared with a <strong>Xen</strong> instance. Still, this was not the case, and the performance was really horrible and any kind of IO bound tasks would effectively lock the instance. Looking into this and trying to understand what was the problem I was able to isolate this issue happening only on instances that had <strong>ext4</strong> as the filesystem (the default for lucid), but strangely enough this didn&#8217;t happen for an older instance that was build with <strong>ext3</strong> (actually a <em>debian lenny</em> instance). All the images build with the above command will use <strong>qcow2</strong> sparse format as the default format for the disk.</p><p><span
id="more-1313"></span>In order to achieve good IO performance we had to use <strong>cache=&#8217;writeback&#8217;</strong> for the instances and this will significantly increase the IO performance and bring it almost to host level performance, but in anycase much better compared with the old xen instances we had. Here is how you can enable writeback for an instance: stop the vm; edit the guestdomain and add cache=writeback in the driver section, save and start back the vm:<br
/> <code>virsh --connect qemu:///system<br
/> stop guestdomain<br
/> edit guestdomain   &lt;-- add cache='writeback' in the driver section<br
/> start guestdomain</code></p><p>Here is the how the disk part of my guest domain looks like after adding the cache writeback:<br
/> <code>&lt;disk type='file' device='disk'&gt;<br
/> &lt;driver name='qemu' type='qcow2' <strong>cache='writeback'</strong>/&gt;<br
/> &lt;source file='/var/vms/vm2/ubuntu-kvm/tmphAUcOB.qcow2'/&gt;<br
/> &lt;target dev='hda' bus='ide'/&gt;<br
/> &lt;/disk&gt;</code></p><p>In the process of debugging and searching for a fix for this issue, I&#8217;ve found out that it can also be useful to use <strong>elevator=noop</strong> as the <em>default kernel io scheduler</em>; this definitely helps, but not to the same extend as the cache writeback setting on the virtio disk. You can add elevator=noop to your kernel command line in your grub config, and I have this by default on all the instances.</p><p>Hopefully this will help you greatly improve IO performance for your KVM guests and will save you the time I&#8217;ve lost while trying to find a solution to this problem. Please feel free to share your experiences using the comment form bellow; also I&#8217;m curious if you have any other tips on how to improve this even more.</p><p><a
href="http://www.thycotic.com/zSS_Ducea.html?utm_source=ducea&utm_medium=banner&utm_content=iquit&utm_campaign=SSDucea"><img
src="http://www.ducea.com/images/SS468by60.jpg"></a></p>]]></content:encoded> <wfw:commentRss>http://www.ducea.com/2011/07/06/howto-improve-io-performance-for-kvm-guests/feed/</wfw:commentRss> <slash:comments>13</slash:comments> </item> <item><title>Xen error: stdin: is not a tty</title><link>http://www.ducea.com/2011/03/01/xen-error-stdin-is-not-a-tty/</link> <comments>http://www.ducea.com/2011/03/01/xen-error-stdin-is-not-a-tty/#comments</comments> <pubDate>Wed, 02 Mar 2011 06:47:01 +0000</pubDate> <dc:creator>- Marius -</dc:creator> <category><![CDATA[Debian]]></category> <category><![CDATA[Linux]]></category> <category><![CDATA[Tips & Tricks]]></category> <category><![CDATA[Virtualization]]></category> <category><![CDATA[debian-lenny]]></category> <category><![CDATA[lenny]]></category> <category><![CDATA[xen]]></category><guid
isPermaLink="false">http://www.ducea.com/?p=1231</guid> <description><![CDATA[After installing a clean Debian Lenny Xen system using xen-tools, I received this strange error when trying to connect using ssh to the machine: PTY allocation request failed on channel 0 stdin: is not a tty It looks like for some reason, xen-tools didn&#8217;t install the udev package. So in order to fix this issue, I [...]<p><a
href="http://www.thycotic.com/zSS_Ducea.html?utm_source=ducea&utm_medium=banner&utm_content=iquit&utm_campaign=SSDucea"><img
src="http://www.ducea.com/images/SS468by60.jpg"></a></p> ]]></description> <content:encoded><![CDATA[<p>After installing a clean Debian Lenny Xen system using <strong>xen-tools</strong>, I received this strange error when trying to connect using <strong>ssh</strong> to the machine:<br
/> <code>PTY allocation request failed on channel 0<br
/> stdin: is not a tty</code></p><p>It looks like for some reason, xen-tools didn&#8217;t install the <strong>udev</strong> package. So in order to fix this issue, I had to connect (using the virtual console) to the xen machine:<br
/> <code>xen console 1</code><br
/> and install udev:<br
/> <code>apt-get install udev</code><br
/> strange enough the <strong>/dev/pts</strong> mount entry was present in <strong>/etc/fstab</strong> so all I had to do was to remount it with:<br
/> <code>mount -a</code><br
/> (<em>if you don&#8217;t have this entry</em> make sure to add it in /etc/fstab:<br
/> <code>devpts          /dev/pts        devpts  rw,noexec,nosuid,gid=5,mode=620 0  0</code><br
/> and if the folder /dev/pts doesn&#8217;t exist create it first and after that mount -a).</p><p>This should fix the ssh problem and you should now be able to ssh into the xen machine. Next to see if this is fixed in xen-tools in Squeeze, and if not to file a bug for it.</p><p><a
href="http://www.thycotic.com/zSS_Ducea.html?utm_source=ducea&utm_medium=banner&utm_content=iquit&utm_campaign=SSDucea"><img
src="http://www.ducea.com/images/SS468by60.jpg"></a></p>]]></content:encoded> <wfw:commentRss>http://www.ducea.com/2011/03/01/xen-error-stdin-is-not-a-tty/feed/</wfw:commentRss> <slash:comments>1</slash:comments> </item> <item><title>Cloud Slam 09 &#8211; the 1st Virtual Conference on Cloud Computing</title><link>http://www.ducea.com/2009/05/13/cloud-slam-09-the-1st-virtual-conference-on-cloud-computing/</link> <comments>http://www.ducea.com/2009/05/13/cloud-slam-09-the-1st-virtual-conference-on-cloud-computing/#comments</comments> <pubDate>Wed, 13 May 2009 18:56:16 +0000</pubDate> <dc:creator>- Marius -</dc:creator> <category><![CDATA[Cloud Computing]]></category> <category><![CDATA[Virtualization]]></category> <category><![CDATA[amazon]]></category> <category><![CDATA[aws]]></category> <category><![CDATA[cloudslam]]></category> <category><![CDATA[ec2]]></category><guid
isPermaLink="false">http://www.ducea.com/?p=862</guid> <description><![CDATA[Between 20-24 April 2009 I attended to CloudSlam09, the 1st annual virtual conference on cloud computing. This was a global event, using the webex technology, covering latest trends and innovations in the world of cloud computing. Being a virtual event it allowed me to easily attend and listen to several keynotes and talks from the [...]<p><a
href="http://www.thycotic.com/zSS_Ducea.html?utm_source=ducea&utm_medium=banner&utm_content=iquit&utm_campaign=SSDucea"><img
src="http://www.ducea.com/images/SS468by60.jpg"></a></p> ]]></description> <content:encoded><![CDATA[<p>Between 20-24 April 2009 I attended to <a
href="http://cloudslam09.com/" target="_blank"><strong>CloudSlam09</strong></a>, the <em>1st annual virtual conference on cloud computing</em>. This was a <strong>global event</strong>, using the <a
href="http://www.webex.com" target="_blank">webex technology</a>, covering<strong> latest trends and innovations in the world of cloud computing</strong>. Being a virtual event it allowed me to easily attend and listen to several keynotes and talks from the comfort of my home/work office. Obviously this is a huge advantage as not so many people can leave their jobs for 1 week to go at such events. This was a great idea for such an event and a perfect match for the topic.</p><p>Besides the obvious advantages of a virtual event, I would like to outline also some disadvantages: besides a rather poor sound quality for some speakers, the biggest minus for me was the inability to focus on a single talk uninterrupted. This because, being actually at work I had to deal with all the usual stuff that I have to do normally (the ones called emergencies). Being on a real event would imply other type of &#8216;noise&#8217; but anyway <img
src='http://www.ducea.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> .</p><p><span
id="more-862"></span>One full week, with talks everyday for at least 8 hours is a big event. Being a virtual event it allowed everyone to choose what talks to attend. I can&#8217;t say there was anything spectacular that was announced, but more like everyone presenting their own existing products and views on the market.</p><p>I was a little disappointed by the keynote talk by <em><strong>Werner Vogels</strong>, CTO at Amazon.com</em> called: <a
href="http://cloudslam09.com/content/werner-vogels-ahead-cloud-power-infrastructure-service-209.html" target="_blank"><em>&#8220;Ahead in the Cloud &#8211; The Power of Infrastructure as a Service&#8221;</em></a> where he just presented the same old story that everyone I am sure heard so far about how amazon started building aws and how they ended up here, etc. Nothing about future plans, and he didn&#8217;t even take any questions. Contrary, his colleague from Amazon Web Services <em><strong>Jinesh Varia</strong> &#8211; Technology Evangelist</em> (i love how this sounds) had a very interesting talk: <a
href="http://cloudslam09.com/content/jinesh-varia-high-performance-compute-cloud-240.html" target="_blank"><em>&#8220;High Performance Compute Cloud&#8221;</em></a> where he talked about the experiences in developing AWS so far and also on some of the cool upcoming developments they are working on (like <span
style="text-decoration: underline;">monitoring</span>, <span
style="text-decoration: underline;">load balancing</span> and <span
style="text-decoration: underline;">auto-scaling</span>). In case you missed this you can check it out online: <a
href="http://cloudslam09.com/content/jinesh-varia-high-performance-compute-cloud-240.html" target="_blank">http://cloudslam09.com/content/jinesh-varia-high-performance-compute-cloud-240.html</a></p><p>There were several good talk on <strong>private clouds</strong> and their implications, and also on <strong>cloud-hosted desktops</strong> (that has not really taken off yet and many are fighting on this segment to get an early advantage), like for ex:<br
/> <a
href="http://cloudslam09.com/content/stephen-herrod-private-cloud-enterprise-ready-and-premise-213.html" target="_blank">Stephen Herrod: The Private Cloud: Enterprise-ready on and off premise.</a><br
/> <a
href="http://cloudslam09.com/content/jeanne-morain-universal-clients-enabling-cloud-computing-desktop-virtual-evolution-251.html" target="_blank">Jeanne Morain: Universal Clients &#8211; enabling cloud computing for the Desktop &#8211; virtual evolution</a></p><p>In case you are interested in any of the talks they are all available online on the <a
href="http://cloudslam09.com/content/schedule-cloud-slam-09-conference-156.html" target="_blank">cloudslam site</a>. (they are just adding them right now. If you see one missing, just check it out in a while and it should be there).</p><p><em>In conclusion this was a <strong>great event</strong>, definitely interesting and informative to attend. In case you missed it, you can now listen to any of the presentations as they become available <a
href="http://cloudslam09.com/content/schedule-cloud-slam-09-conference-156.html" target="_blank">online</a>.</em></p><p><a
href="http://www.thycotic.com/zSS_Ducea.html?utm_source=ducea&utm_medium=banner&utm_content=iquit&utm_campaign=SSDucea"><img
src="http://www.ducea.com/images/SS468by60.jpg"></a></p>]]></content:encoded> <wfw:commentRss>http://www.ducea.com/2009/05/13/cloud-slam-09-the-1st-virtual-conference-on-cloud-computing/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Lenny domU Xencons</title><link>http://www.ducea.com/2009/03/18/lenny-domu-xencons/</link> <comments>http://www.ducea.com/2009/03/18/lenny-domu-xencons/#comments</comments> <pubDate>Wed, 18 Mar 2009 11:09:39 +0000</pubDate> <dc:creator>- Marius -</dc:creator> <category><![CDATA[Debian]]></category> <category><![CDATA[Linux]]></category> <category><![CDATA[Tips & Tricks]]></category> <category><![CDATA[Virtualization]]></category> <category><![CDATA[debian-lenny]]></category> <category><![CDATA[lenny]]></category> <category><![CDATA[xen]]></category><guid
isPermaLink="false">http://www.ducea.com/?p=812</guid> <description><![CDATA[Even though at some point it looked like debian lenny will not have full xen support (for the 2.6.26 amd64 kernel) in the end this was fixed and lenny supports fully Xen ever on amd64. Upgrading from 2.6.18 to 2.6.26 is very straightforward (though we were using xen-hypervisor 3.2-1 already) and the only problem noticed [...]<p><a
href="http://www.thycotic.com/zSS_Ducea.html?utm_source=ducea&utm_medium=banner&utm_content=iquit&utm_campaign=SSDucea"><img
src="http://www.ducea.com/images/SS468by60.jpg"></a></p> ]]></description> <content:encoded><![CDATA[<p>Even though at some point it looked like <strong>debian lenny</strong> will not have full xen support (for the 2.6.26 amd64 kernel) in the end this was fixed and lenny supports fully <strong>Xen </strong>ever on amd64. Upgrading from 2.6.18 to 2.6.26 is very straightforward (though we were using xen-hypervisor <strong>3.2-1</strong> already) and the only problem noticed was that the <strong>console on the domU machines was no longer working</strong>: it was showing the output correctly, but you could not enter anything on the console.</p><p>This is caused by the &#8216;new Xen console&#8217; (<em>xen now uses hvc0 for its console</em>) and to fix it you have to add to your virtual machine xen configuration file one line: <strong>extra = &#8220;console=hvc0 xencons=tty&#8221;</strong>, restart the vm and it should be fine.  In /etc/xen/&lt;myvm&gt;.cfg add this line:<br
/> <code>extra = "console=hvc0 xencons=tty"</code></p><p><span
id="more-812"></span>If you are using <strong>pygrub </strong>then in grub.conf on the domU add: <strong>console=hvc0 xencons=tty</strong> to the kernel line, like:<br
/> <code>kernel /boot/vmlinuz-2.6.26-1-xen-amd64 ro root=/dev/sda1 console=hvc0 xencons=tty</code></p><p>Here are the xen packages lenny uses:</p><pre><code>ii  libxenstore3.0                          3.2.1-2                    Xenstore communications library for Xen
ii  linux-image-2.6.26-1-xen-amd64          2.6.26-13                  Linux 2.6.26 image on AMD64, oldstyle Xen su
ii  linux-modules-2.6.26-1-xen-amd64        2.6.26-13                  Linux 2.6.26 modules on AMD64
ii  xen-hypervisor-3.2-1-amd64              3.2.1-2                    The Xen Hypervisor on AMD64
ii  xen-tools                               3.9-4                      Tools to manage Debian XEN virtual servers
ii  xen-utils-3.2-1                         3.2.1-2                    XEN administrative tools
ii  xen-utils-common                        3.2.0-2                    XEN administrative tools - common files
ii  xenstore-utils                          3.2.1-2                    Xenstore utilities for Xen
</code></pre><p><a
href="http://www.thycotic.com/zSS_Ducea.html?utm_source=ducea&utm_medium=banner&utm_content=iquit&utm_campaign=SSDucea"><img
src="http://www.ducea.com/images/SS468by60.jpg"></a></p>]]></content:encoded> <wfw:commentRss>http://www.ducea.com/2009/03/18/lenny-domu-xencons/feed/</wfw:commentRss> <slash:comments>5</slash:comments> </item> <item><title>Citrix is offering XenServer for free</title><link>http://www.ducea.com/2009/02/23/citrix-is-offering-xenserver-for-free/</link> <comments>http://www.ducea.com/2009/02/23/citrix-is-offering-xenserver-for-free/#comments</comments> <pubDate>Mon, 23 Feb 2009 13:11:13 +0000</pubDate> <dc:creator>- Marius -</dc:creator> <category><![CDATA[News from Outside]]></category> <category><![CDATA[Virtualization]]></category> <category><![CDATA[citrix]]></category> <category><![CDATA[xen]]></category> <category><![CDATA[xenserver]]></category><guid
isPermaLink="false">http://www.ducea.com/?p=595</guid> <description><![CDATA[Citrix announced today that they will offer free licenses for their full XenServer virtualization solution. While Xen, the hypervisor itself was always open source, XenServer will not be released as open source, as it contains proprietary code, but will be free for anyone to download and use. I am sure that current XenServer5 clients that [...]<p><a
href="http://www.thycotic.com/zSS_Ducea.html?utm_source=ducea&utm_medium=banner&utm_content=iquit&utm_campaign=SSDucea"><img
src="http://www.ducea.com/images/SS468by60.jpg"></a></p> ]]></description> <content:encoded><![CDATA[<p><strong><a
href="http://www.citrix.com" target="_blank">Citrix</a> </strong>announced today that they will offer <strong>free </strong>licenses for their full <strong>XenServer </strong>virtualization solution. While Xen, the hypervisor itself was always open source, XenServer will not be released as open source, as it contains proprietary code, but will be free for anyone to download and use. I am sure that current XenServer5 clients that have paid more than $900 per server will be very &#8216;happy&#8217; to hear this news <img
src='http://www.ducea.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> . They will probably receive some special deals for Citrix Essentials, but still&#8230;</p><p>For full details: <a
href="http://www.citrix.com/English/NE/news/news.asp?newsID=1687130" target="_blank">http://www.citrix.com/English/NE/news/news.asp?newsID=1687130</a></p><p><a
href="http://www.thycotic.com/zSS_Ducea.html?utm_source=ducea&utm_medium=banner&utm_content=iquit&utm_campaign=SSDucea"><img
src="http://www.ducea.com/images/SS468by60.jpg"></a></p>]]></content:encoded> <wfw:commentRss>http://www.ducea.com/2009/02/23/citrix-is-offering-xenserver-for-free/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Linux Tips: bash completion: /dev/fd/62: No such file or directory</title><link>http://www.ducea.com/2009/02/18/linux-tips-bash-completion-devfd62-no-such-file-or-directory/</link> <comments>http://www.ducea.com/2009/02/18/linux-tips-bash-completion-devfd62-no-such-file-or-directory/#comments</comments> <pubDate>Wed, 18 Feb 2009 09:57:30 +0000</pubDate> <dc:creator>- Marius -</dc:creator> <category><![CDATA[Debian]]></category> <category><![CDATA[Linux]]></category> <category><![CDATA[Tips & Tricks]]></category> <category><![CDATA[Virtualization]]></category> <category><![CDATA[bash]]></category> <category><![CDATA[debian-lenny]]></category> <category><![CDATA[tips]]></category> <category><![CDATA[xen]]></category> <category><![CDATA[xen-tools]]></category><guid
isPermaLink="false">http://www.ducea.com/?p=587</guid> <description><![CDATA[This post will show how to deal with the issue I had on a newly installed debian lenny xen virtual machine. I used xen-tools to create the vm using the deboostrap method, and all was fine. I installed the bash-completion package, as probably most of you, I can&#8217;t live without bash completion, but quickly found [...]<p><a
href="http://www.thycotic.com/zSS_Ducea.html?utm_source=ducea&utm_medium=banner&utm_content=iquit&utm_campaign=SSDucea"><img
src="http://www.ducea.com/images/SS468by60.jpg"></a></p> ]]></description> <content:encoded><![CDATA[<p>This post will show how to deal with the issue I had on a newly installed <strong>debian lenny xen virtual machine</strong>. I used <strong>xen-tools</strong> to create the vm using the <strong>deboostrap </strong>method, and all was fine. I installed the <strong>bash-completion</strong> package, as probably most of you, I can&#8217;t live without bash completion, but quickly found out that it was <strong>broken</strong>. Any attempt to perform a filelist completion was failing with this error:<br
/> <code>vm11:~# tail -f /va&lt;TAB&gt;-bash: /dev/fd/62: No such file or directory<br
/> -bash: /dev/fd/60: No such file or directory</code><br
/> and this basically makes the bash completion useless. On a quick look I could easily see that the <strong>/dev/fd</strong> link was not there and that was the main cause of the problem. Still on one older lenny vm I had for a couple of months this was not happening (from what I can tell because it had an older version of the /etc/bash_completion file). There are several ways to fix this starting with the obvious one to downgrade /etc/bash_completion but I didn&#8217;t like that, so I looked for some other ways.<span
id="more-587"></span></p><h3>Manually create the /dev/fd link</h3><p>This is a quick fix: we create the <strong>/dev/fd</strong> link manually:<br
/> <code>ln -s /proc/self/fd /dev/fd</code><br
/> and bash completion will start working immediately.</p><p>Still, after the vm is restarted this link will be lost as /dev is not a persistent storage. We could of course add the link creation command to <strong>rc.local</strong>, but at this point I asked myself why <strong>udev </strong>was not creating that file automatically as it was present under /dev/.static/dev/fd?</p><h3>Udev was missing</h3><p>Then I realized that <em>udev package was not installed</em>, and this was the reason for the static devices not being created. I manually installed <strong>udev </strong>using:<br
/> <code>aptitude install udev</code><br
/> and this was the solution for my problem. Hopefully you will find this post useful if you have the same problem, and it will save you the trouble to go into looking yourself for a solution for this.</p><p><a
href="http://www.thycotic.com/zSS_Ducea.html?utm_source=ducea&utm_medium=banner&utm_content=iquit&utm_campaign=SSDucea"><img
src="http://www.ducea.com/images/SS468by60.jpg"></a></p>]]></content:encoded> <wfw:commentRss>http://www.ducea.com/2009/02/18/linux-tips-bash-completion-devfd62-no-such-file-or-directory/feed/</wfw:commentRss> <slash:comments>13</slash:comments> </item> <item><title>Remove debian udev persistent-net-rules</title><link>http://www.ducea.com/2008/09/01/remove-debian-udev-persistent-net-rules/</link> <comments>http://www.ducea.com/2008/09/01/remove-debian-udev-persistent-net-rules/#comments</comments> <pubDate>Mon, 01 Sep 2008 15:10:57 +0000</pubDate> <dc:creator>- Marius -</dc:creator> <category><![CDATA[Debian]]></category> <category><![CDATA[Linux]]></category> <category><![CDATA[Tips & Tricks]]></category> <category><![CDATA[Ubuntu]]></category> <category><![CDATA[Virtualization]]></category> <category><![CDATA[networking]]></category> <category><![CDATA[udev]]></category><guid
isPermaLink="false">http://www.ducea.com/?p=342</guid> <description><![CDATA[Debian has a customization to udev that will keep network interface names persistent after hardware changes and reboots. Normally this is what you want and you will not care about this, but there are cases where this can be very annoying and we just have to disable it. I am speaking about situations when you [...]<p><a
href="http://www.thycotic.com/zSS_Ducea.html?utm_source=ducea&utm_medium=banner&utm_content=iquit&utm_campaign=SSDucea"><img
src="http://www.ducea.com/images/SS468by60.jpg"></a></p> ]]></description> <content:encoded><![CDATA[<p><strong>Debian </strong>has a customization to <strong>udev </strong>that will keep <em>network interface names persistent after hardware changes</em> and reboots. Normally this is what you want and you will not care about this, but there are cases where this can be very annoying and we just have to <strong>disable </strong>it. I am speaking about situations when you will copy the files from a system and use them to recreate a new system, or when using some virtualization tools and cloning your vm; these situations will always result in network problems caused by the udev persistent rules.</p><p><span
id="more-342"></span>If this is an isolated issue you can obviously just <em>edit the udev rule generated</em> and fix it (normally we want to have eth0 the existing interface and not something crazy like eth8, for ex.); this is found inside <strong>/etc/udev/rules.d/z25_persistent-net.rules</strong></p><p>To completely disable this feature and no longer try to keep a static name for each device (in this case a static name for each mac address) we just have to remove <em>the existing rules files</em> (z25_persistent-net.rules) and also the <em>generator</em> rules that updates the rules file (z45_persistent-net-generator.rules):<br
/> <code>rm -f /etc/udev/rules.d/z25_persistent-net.rules<br
/> rm -f /etc/udev/rules.d/z45_persistent-net-generator.rules</code></p><p><em>Note</em>: since <strong>z45_persistent-net-generator.rules</strong> is just a link to the real file <em>/etc/udev/persistent-net-generator.rules</em> if you ever want to enable this back, you just have to recreate this link back and on the first boot the rules will be regenerated.</p><p><a
href="http://www.thycotic.com/zSS_Ducea.html?utm_source=ducea&utm_medium=banner&utm_content=iquit&utm_campaign=SSDucea"><img
src="http://www.ducea.com/images/SS468by60.jpg"></a></p>]]></content:encoded> <wfw:commentRss>http://www.ducea.com/2008/09/01/remove-debian-udev-persistent-net-rules/feed/</wfw:commentRss> <slash:comments>6</slash:comments> </item> </channel> </rss>
<!-- Served from: www.ducea.com @ 2012-02-08 14:08:12 by W3 Total Cache -->
