<div dir="ltr">hi,<div><br></div><div>i cleared all the stuffs(everything) related to xen and libvirt.</div><div><br></div><div>i installed freshly xen-4.2.1 from the source.</div><div><br></div><div>
        
        
        


<p class="" style="margin-bottom:0in"><b>Installation steps are as follows:</b></p><p class="" style="margin-bottom:0in">apt-get build-dep xen<br></p>
<p class="" style="margin-bottom:0in">apt-get install
libc6-dev libglib2.0-dev libyajl-dev yajl-tools libbz2-dev bison flex
zlib1g-dev git-core texinfo debhelper debconf-utils debootstrap
fakeroot 
</p>
<p class="" style="margin-bottom:0in"><b>OR</b><br></p>
<p class="" style="margin-bottom:0in">apt-get install bcc
bin86 gawk bridge-utils iproute libcurl3 libcurl4-openssl-dev bzip2
module-init-tools transfig tgif tgif texinfo texlive-latex-base
gcc-multilib texlive-fonts-extra texlive-fonts-recommended
pciutils-dev mercurial libncurses5-dev patch libvncserver-dev
libsdl-dev libjpeg62-dev iasl libbz2-dev git-core uuid-dev python
python-dev python-twisted build-essential make gcc libc6-dev
zlib1g-dev texlive-latex-recommended e2fslibs-dev 
</p>
<p class="" style="margin-bottom:0in"><b>Download and build
the source</b><br></p>
<p class="" style="margin-bottom:0in">wget
<a href="http://bits.xensource.com/oss-xen/release/4.2.1/xen-4.2.1.tar.gz">http://bits.xensource.com/oss-xen/release/4.2.1/xen-4.2.1.tar.gz</a><br></p>
<p class="" style="margin-bottom:0in">tar zxvf
xen-4.2.1.tar.gz 
</p>
<p class="" style="margin-bottom:0in">cd xen-4.2.1</p>
<ul><li><p class="" style="margin-bottom:0in">vi  Config.mk  
        </p>
</li></ul>
<p class="" style="margin-bottom:0in">         
</p>
<p class="" style="margin-bottom:0in">           edit the  
XSM_ENABLE = n  -------->   XSM_ENABLE= y</p>
<ul><li><p class="" style="margin-bottom:0in">./configure
        –enable-githttp  --libdir=/usr/lib64 ( if it is  64 bit machine )</p>
</li></ul>
<ul><li><p class="" style="margin-bottom:0in">vi ./.config 
        </p>
</li></ul>
<p class="" style="margin-left:0.49in;margin-bottom:0in"># 
</p>
<p class="" style="margin-left:0.49in;margin-bottom:0in">write
this line -------- > PYTHON_PREFIX_ARG=--install-layout=deb 
</p>
<p class="" style="margin-left:0.49in;margin-bottom:0in"># 
</p>
<ul>
        <li><p class="" style="margin-bottom:0in">make world 
        </p>
        </li><li><p class="" style="margin-bottom:0in">make deb 
        </p>
</li></ul>
<ul><li><p class="" style="margin-bottom:0in">cd ./dist 
        </p>
        </li><li><p class="" style="margin-bottom:0in">./install.sh 
        </p>
</li></ul>
<ul><li><p class="" style="margin-bottom:0in"># Important 
        </p>
        </li><li><p class="" style="margin-bottom:0in">update-grub 
        </p>
</li></ul>
<ul><li><p class="" style="margin-bottom:0in">ls -al /boot/xen* 
        </p>
</li></ul>
<ul><li><p class="" style="margin-bottom:0in">update-rc.d
        xencommons defaults 19 18 
        </p>
        </li><li><p class="" style="margin-bottom:0in">update-rc.d
        xendomains defaults 21 20 
        </p>
        </li><li><p class="" style="margin-bottom:0in">update-rc.d
        xen-watchdog defaults 22 23</p>
</li></ul>
<ul><li><p class="" style="margin-bottom:0in">update-grub 
        </p>
</li></ul>
<p class="" style="margin-bottom:0in"><b>Configuration</b><br></p>
<p class="" style="margin-bottom:0in"><em>ln -s /etc/init.d/xendomains
/etc/rc0.d/S10xendomains</em><br></p>
<p class=""><em>ln -s /etc/init.d/xendomains
/etc/rc6.d/S10xendomains</em></p>
<p class=""><em>ln -s /etc/init.d/xencommons
/etc/rc3.d/S98xencommons</em></p>
<p class=""><em>ln -s /etc/init.d/xendomains
/etc/rc3.d/S98xendomains</em></p>
<p class=""><em>ln -s /root/xendom0caps
/etc/rc3.d/S98xendom0caps</em></p>
<p class=""><em>ln -s /root/iptables-enable
/etc/rc3.d/S99iptables-enable (not required)</em></p>
<p class=""><em>vi /root/xendom0caps (add xl sched-credit -d
Domain-0 -w 512)</em></p>
<p class=""><em>chmod +x /root/xendom0caps</em></p>
<p class=""><em>vi /etc/rc.local (add /usr/bin/setterm
-powersave off -blank 0</em></p>
<p class=""><em>vi /etc/xen/xend-config.sxp</em></p>
<p class=""><strong><i><span style="font-weight:normal">comment
it --- >  #network-script network-bridge</span></i></strong></p>
<p class=""><em>vi /etc/network/interfaces</em><br></p>
<p class=""><em>auto xenbr0 </em><br><em>iface xenbr0 inet
dhcp</em><br><em>bridge_ports eth0 </em></p><p class="">reboot</p><p class="">* then i enter into the xen.</p><p class=""><b>root@boss[/]#xl list</b></p><p class="">Name                                        ID   Mem VCPUs<span class="" style="white-space:pre">    </span>State<span class="" style="white-space:pre">     </span>Time(s)</p>
<p class="">Domain-0                                     0  3476     8     r-----     614.7</p><p class="">_______________________</p><p class="">then i installed libvirt form the source and the installtion steps are as follows:</p>
<p class="">* ./autogen.sh --system --with-xen=yes --with-libxl=yes<br></p><p class="">* make</p><p class="">* make install</p><p class="">and then i runned daemon/libvirtd -d</p><p class="">then i runned</p><p class=""><b>tools/virsh </b></p>
<p class=""><b>virsh # version</b></p><p class="">Compiled against library: libvirt 1.1.3</p><p class="">Using library: libvirt 1.1.3</p><p class="">Using API: QEMU 1.1.3</p><p class="">error: failed to get the hypervisor version</p>
<p class="">error: internal error: Cannot find suitable emulator for x86_64</p><p class="">- - - - - - - - - - - -</p><p class="">then i started the xend by following command: </p><p class="">/etc/init.d/xend start</p><p class="">
then i checked libvirt(virsh)</p><p class="">virsh # version</p><p class="">Compiled against library: libvirt 1.1.3</p><p class="">Using library: libvirt 1.1.3</p><p class="">Using API: Xen 1.1.3</p><p class="">Running hypervisor: Xen 4.2.0</p>
<div>*******</div><div><br></div><div>i dont know how to enable the xl with libvirt.</div><div>Anyone guide me..</div><div><br></div><div><br></div><div>regards,</div><div>cooldharma06.</div><p class=""><br></p></div><div>
<br></div></div>