What are the requirements for installing multichain in virtual machines?

+2 votes
I have installed multichain in virtual machine Ubuntu 14.04 LTS (64-bit) with vbox, being Windows-7 the operative system host with architecture i-5. I try to build a chain with multichain-util create chain1 and the response is "cannot execute binary file". Could multichain run in some virtual machines? Requirements?
related to an answer for: cannot execute file
asked Dec 13, 2016 by start virtual-machine requirements

1 Answer

+2 votes
MultiChain should run just fine inside a virtual machine. Is it possible you installed the Windows version of MultiChain inside your Ubuntu installation? You will need the Linux one. Or to run the Windows version directly on Windows without a virtual machine in the middle.
answered Dec 14, 2016 by MultiChain
I installed the correct version of linux in the VM. Moreover I installed the windows version in the host and it worked. I created a chain in windows. But I needed two servers for checking the software. Then I thought that i could use a virtual net I had in vbox with ubuntu machines (64-bit), but both of them (two machines) responsed me the same error.
OK, well it's strange, because we have tons of people running MultiChain on Ubuntu VMs. The VM is definitely emulating a 64-bit Intel processor, and you definitely installed the Linux version on it from http://www.multichain.com/download/multichain-1.0-alpha-26.tar.gz ?
I have just repeated the process after removing the last attempt, updating and upgrading linux with the same results... and installing the version from the link you wrote.
If you have tons of Ubuntu VMs running, it is possible that my VM's configuration had a bug for multichain... but i cannot find it.
Please can you post the output from these commands:

cat /proc/version
cat /proc/cpuinfo
ls -l /usr/local/bin/multichain*
sha1sum /usr/local/bin/multichain*

modelo@modelo-VirtualBox:~$ cat /proc/version
Linux version 3.19.0-25-generic (buildd@lgw01-57) (gcc version 4.8.2 (Ubuntu 4.8.2-19ubuntu1) ) #26~14.04.1-Ubuntu SMP Fri Jul 24 21:18:00 UTC 2015
modelo@modelo-VirtualBox:~$ cat /proc/cpuinfo
processor    : 0
vendor_id    : GenuineIntel
cpu family    : 6
model        : 30
model name    : Intel(R) Core(TM) i5 CPU         750  @ 2.67GHz
stepping    : 5
microcode    : 0x616
cpu MHz        : 2666.764
cache size    : 8192 KB
physical id    : 0
siblings    : 1
core id        : 0
cpu cores    : 1
apicid        : 0
initial apicid    : 0
fdiv_bug    : no
f00f_bug    : no
coma_bug    : no
fpu        : yes
fpu_exception    : yes
cpuid level    : 11
wp        : yes
flags        : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 syscall nx rdtscp lm constant_tsc xtopology nonstop_tsc pni monitor ssse3 sse4_1 sse4_2 hypervisor lahf_lm
bugs        :
bogomips    : 5333.52
clflush size    : 64
cache_alignment    : 64
address sizes    : 36 bits physical, 48 bits virtual
power management:

modelo@modelo-VirtualBox:~$ ls -l /usr/local/bin/multichain*
-rwxr-xr-x 1 modelo modelo 2524952 nov 28 08:55 /usr/local/bin/multichain-cli
-rwxr-xr-x 1 modelo modelo 8908952 nov 28 08:55 /usr/local/bin/multichaind
-rwxr-xr-x 1 modelo modelo 2276664 nov 28 08:55 /usr/local/bin/multichain-util
modelo@modelo-VirtualBox:~$ sha1sum /usr/local/bin/multichain*
0e83f25defb8fb4d4016be83eba02935d8f14e89  /usr/local/bin/multichain-cli
617102e8bc9917ab92ae7f1b5d663d93561de18d  /usr/local/bin/multichaind
f4f937b36c54ffb803906c84f7bed2e2bb40a8ba  /usr/local/bin/multichain-util
Thanks, and one more:

uname -a
Linux modelo-VirtualBox 3.19.0-25-generic #26~14.04.1-Ubuntu SMP Fri Jul 24 21:18:00 UTC 2015 i686 i686 i686 GNU/Linux
OK, so there's the answer. You have installed 32-bit Ubuntu, even if your VM is 64-bit, and MultiChain is compiled as a 64-bit binary which requires a 64-bit Linux version.
Thanks in advance. It seems a logic answer (and presumable). I will check it.