[SOLVED] real rough howto for proxmox testing on esxi

coolcat1975

Renowned Member
Mar 18, 2013
26
2
68
get sources fence-agents_3.1.5.orig.tar.gz
apt-get install build-essential autoconf pkg-config libnss3-dev python-suds
configure
make
make install
http://www.sysadminslife.com/linux/...r-perl-api-unter-debian-squeeze-installieren/
apt-get install libssl-dev perl-doc libxml-libxml-perl libxml2-dev uuid-dev
cd /usr/src
wget http://search.cpan.org/CPAN/authors/id/J/JN/JNH/UUID-0.04.tar.gz
tar -xzvf UUID-0.04.tar.gz
cd UUID-0.04

perl Makefile.PL
echo ubuntu > /etc/tmp-release
export http_proxy=
export ftp_proxy=
get VMware-vSphere-Perl-SDK-5.1.0-780721.x86_64.tar.gz and install

add below my $ME = $0; to fence_vmware_helper
$ENV{'PERL_LWP_SSL_VERIFY_HOSTNAME'} = 0;

<fencedevices>
<fencedevice agent="fence_vmware" ipaddr="<ESXi Host>" login="<ESXi user>" passwd="<ESXi password>" name="proxmoxnode1"
port="proxmoxnode1"/>
<fencedevice agent="fence_vmware" ipaddr="<ESXi Host>" login="<ESXi user>" passwd="<ESXi password>" name="proxmoxnode2"
port="proxmoxnode2"/>
<fencedevice agent="fence_vmware" ipaddr="<ESXi Host>" login="<ESXi user>" passwd="<ESXi password>" name="proxmoxnode3"
port="proxmoxnode3"/>
</fencedevices>
<fence>
<method name="1">
<device name="proxmoxnode1"/>
</method>
</fence>
<fence>
<method name="1">
<device name="proxmoxnode2"/>
</method>
</fence>
<fence>
<method name="1">
<device name="proxmoxnode3"/>
</method>
</fence>
 
Last edited:
all nodes are up - fencing tested and working but:

when i try to migrate an offline vm i get:

Executing HA migrate for VM 100 to node proxmoxnode2
Trying to migrate pvevm:100 to proxmoxnode2...Temporary failure; try again
TASK ERROR: command 'clusvcadm -M pvevm:100 -m proxmoxnode2' failed: exit code 250

any clues?

regards

cc
 
hi dietmar!

actually for some reason it started to work and everything is functional now.

the only thing left open is the certificate error on the webinterface when i am for example on node1 and the go to node2 and want to take a look at eg the local storage

error500.jpg
 
good morning

i checked all three nodes as the error occurs on all nodes

output is on all nodes the same:

root@proxmoxnode1:~# dpkg -l libwww-perl
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Description
+++-==============-==============-============================================
ii libwww-perl 5.836-1 Perl HTTP/WWW client/server library

best regards

cc
 
I get that behavior if I use verify_hostname = 1 (LWP::UserAgent) - maybe you set that somewhere?
 
hmm no not really

the only thing where i dealed with this was when installing the fence agent for vmware, but there it is set to 0

i found this https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2011-0633
seems to me that default checks are turned on

i tried to set $ENV{'PERL_LWP_SSL_VERIFY_HOSTNAME'} = 0; in index.pl but didnt work out

where do you mean use verify_hostname = 1 (LWP::UserAgent)
 
i guess while installing vmware sdk cpan also installed a new version(6.05) of perl LWP::UserAgent in /usr/local/share.

I simply moved it away

no more errors in gui but fencing stopped working

i going into that now
 
So i think we can mark this one as solved


I had a typo in cluster.conf

i applied your fix and copied the directory back

Everything seems to work now

Thanx a lot
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!