Virtual Machine - Vagrant & Virtualbox test steps

vagrant
virtualbox
virtualmachine
Tags: #<Tag:0x00007f23c6156440> #<Tag:0x00007f23c6156198> #<Tag:0x00007f23c6155f90>

#1

According to @Freso and @rob in https://blog.musicbrainz.org/2016/08/02/server-update-2016-08-01/ I have completed the test installation twice - both worked so far.

Steps for everyone else to test (even those running windows with a virtualization software like VMWare):

  1. Create a new virtual machine, use an ISO-Image “ubuntu-16.04.1-desktop-amd64.iso”
  2. Choose “Install OS later”, if you want to localize your virtual machine (GUI, keyboard, timezone)
  3. Create a single 100GB file and a VM with 8GB RAM, 4 Prozessor (or whatever you can offer)
  4. IMPORTANT option for Processor: ACTIVATE “Virtualize Intel VT-x/EPT or AMD-V/RVI”
  5. Install and update Ubuntu (“Software Updater”) with your language, keyboard and Timezone
  6. Username: vm, Passwort: musicbrainz (or whatever you like)
  7. In Ubuntu open a new Terminal window and execute the following commands:
    sudo apt install git
    git clone https://github.com/metabrainz/musicbrainz-vm
    sudo apt install virtualbox
    to check the available Vagrant version (should be > v1.8)
    apt-cache policy vagrant
    sudo apt install vagrant
  8. Change to musicbrainz-vm directory with
    cd musicbrainz-vm
  9. Start installing musicbrainz
    sudo ./install.sh
    Sit back and watch and wait and wait and wait and wait for about 2 hours (on a fast PC, running this VM on a SSD)
    You will see many thousand lines of console output in green, red and other colors…
    Everything works fully automated, even the download of the Datadumps and the import into the database

Two hours later you will see a final "InitDb.pl succeeded”.

The questions are now:
a) How do we start the usual Musicbrainz-Server-GUI (IP? Port?) to search for artists, releases and all other informations?
b) How do we start the replication?
c) What about the search server?


Setup musicbrainz-server-2015-08-06.ova on Debian GNU/Linux 8.5?
#2

Answer for a) from the Vagrant homepage:
“Once you or someone else creates a single Vagrantfile, you just need to vagrant up and everything is installed and configured for you to work”.
For us:
Open a new terminal window and enter
cd musicbrainz-vm
sudo vagrant up
Wait, until the line
–> default: flag to force provisioning…will still run.
appears.

Then you can open FireFox inside your Ubuntu and use the following local IP:
http://127.0.0.1:5000
or you can use the given IP-Address to your VM Ethernet adapter as you can find it with the command
ifconfig
In my case, it is
http://192.168.1.136:5000
which should be available from every PC in your LAN, not only inside the VM.

To stop your local MusicBrainz-Server enter:
sudo vagrant halt

We still have to wait for a working local search server and local (re)index scripts.


#3

The newest available VM seems not to work anymore.
The ports 5000 and 8080 listen on 0.0.0.0. not on 127.0.0.1 anymore.

Would be nice to see https://chatlogs.metabrainz.org/brainzbot/metabrainz/msg/3666369/


#4

Available from where?


#5

As I wrote above in step 7[quote=“InvisibleMan78, post:1, topic:106334”]
git clone https://github.com/metabrainz/musicbrainz-vm
[/quote]and step 9


#6

Loads up :5000 just fine for me. (I set it up yesterday.)


#7

Strange thing. My last setup started last night and ended this morning with listening ports on 0.0.0.0. for 5000 and 8080 instead of 127.0.0.1 after starting it with “sudo vagrant up”.
What is your environment? Do you use Bridge or NAT networking?


#8

Note that “listening on 0.0.0.0” means “listening on all interfaces”.


#9

@chirlu You are (technically) right. But neither 127.0.0.1:5000 nor localhost:5000 (with or without http://) returns a result or the expected MB-GUI.
What should I do?
(The steps for the installation are so easy, you can’t do that much wrong :wink:)


#10

If someone is interested to get a running Docker / Vagrant version of VM in VMWare Workstation (inlcuding working Search Server and MB-GUI completely offline!)
I have added the necessary steps in http://tickets.musicbrainz.org/browse/MBVM-19