<div dir="ltr"><div>Dear OpenNebula Community,<br><br>I have been using virt-manager <i>(KVM, QEMU and Libvirtd-0.9.8 installed for managing VMs)</i> to manage VMs in the physical server installed OpenNebula platform. But to experiment "OpenNebula 3.8.1 and VMware ESXI 5.0.0 using shared VMware and SSH transfer drivers", I configured this OpenNebula front end server to support VMware ESXI 5.0.0 as below:<br>



        
        
        
        <style type="text/css">P { margin-bottom: 0.21cm; }A:link {  }</style><br><b>Configure Virsh with ESX</b><br><p style="margin-bottom:0cm">1) root@apt-get install libgnutls-dev libdevmapper-dev libcurl4-gnutls-dev python-dev libnl-dev libapparmor-dev libxml2<br>
<br>2) Download Libvirt-0.9.10 so that we configure it for ESX support. Untar it post download and change folder to tarred one.<br>root@wget <a href="http://libvirt.org/sources/libvirt-0.9.10.tar.gz">http://libvirt.org/sources/libvirt-0.9.10.tar.gz</a><br>
root@tar xvzf libvirt-0.9.10.tar.gz<br>root@cd libvirt-0.9.10<br><br>3) Configure Libvirt for ESX support with the following commands:<br>root@ ./configure --with-esx --with-apparmor --sysconfdir=/etc --libdir=/usr/lib --sbindir=/usr/sbin --datarootdir=/usr/share --localstatedir=/var --libexecdir=/usr/lib/libvirt<br>
root@ make<br>root@ make install<br>root@cp -a examples/apparmor/usr.* /etc/apparmor.d/<br>root@cp -a examples/apparmor/TEMPLATE /etc/apparmor.d/libvirt/<br>root@cp -a examples/apparmor/libvirt-qemu /etc/apparmor.d/abstractions/<br>
root@ cat /etc/apparmor.d/usr.sbin.libvirtd<br>root@cat /etc/apparmor.d/usr.sbin.libvirtd | grep owner<br>root@/etc/init.d/apparmor restart<br></p><font face="Arial narrow, sans-serif"><font size="3"><br>After
configure Libvirt (libvirtd-0.9.10) for ESX support , can't use
virt-manager anymore (no /var/run/libvirt/libvirt-sock file exists). If
want to use virt-manager again, it seems need to uninstall/clean
libvirtd-0.9.10 and reinstall libvritd-0.9.8 (the one used before
install libvirtd-0.9.10).</font></font><p style="margin-bottom:0cm">
</p>
<p style="margin-bottom:0cm"><font face="Arial narrow, sans-serif"><font size="3">But
under /libvirtd-0.9.10 directory, run “make clean/uninstall” and
then run “sudo apt-get install –reinstall qemu-kvm libvirt-bin
ubuntu-vm-builder bridge-utils ruby”, can't get libvirtd-0.9.8
back, can't see /var/run/libvirt/libvirt-sock file either, even worse, can't find libvirtd.conf and qemu.conf under
/etc/libvirt/ as well. I didn't update the ~/etc/oned.conf file (after updated it for supporting VMware</font></font><font face="Arial narrow, sans-serif"><font size="3"> esxi), </font></font><font face="Arial narrow, sans-serif"><font size="3">is it necessary to update it?<br>
</font></font></p><p style="margin-bottom:0cm"><font face="Arial narrow, sans-serif"><font size="3"></font></font></p><p style="margin-bottom:0cm"><font face="Arial narrow, sans-serif"><font size="3">In this circumstance, how to make the virt-manager available to be used again as before in this OpenNebula front end server? It will be good to configure the front end server in a way that support both KVM and VMware hypervisors at the same time, is this possible?</font></font></p>
<font face="Arial narrow, sans-serif"><font size="3"><br>Thank you very much for your help and Have a great weekend !<br><br>Kind regards,<br></font></font></div><font face="Arial narrow, sans-serif"><font size="3">Q.D.S</font></font></div>