musicbrainz vm adapted to libvirt/kvm
$ wget ftp://vm.musicbrainz.org/pub/musicbrainz-vm/musicbrainz-server-2017-09-07.ova
$ tar xvf musicbrainz-server-2017-09-07.ova
$ qemu-img convert -O qcow2 ./musicbrainz-server-2017-09-07-disk1.vmdk ./musicbrainz-server-2017-09-07-disk1.qcow2
$ qemu-img convert -O qcow2 ./musicbrainz-server-2017-09-07-disk2.vmdk ./musicbrainz-server-2017-09-07-disk2.qcow2
$ cat > mb.xml << __EOF__
musicbrainz
e83888d0-fa61-4129-a982-15f929b00431
2097152
2097152
8
/machine
hvm
destroy
restart
destroy
/usr/bin/kvm
+110:+119
$ virsh define mb.xml
$ virsh start mb.xml
vnc to 127.0.0.1:5900, wait for cloud-init to timeout
log in as vagrant:vagrant
set up networking in /etc/network/interfaces
set up resolvers in /etc/resolv.conf
blkid /dev/vdb1 and use that UUID in /etc/fstab for /mnt/docker-volumes
apt remove cloud-init cloud-guest-utils
apply the following patch on musicbrainz/musicbrainz-docker:
diff --git a/docker-compose.yml b/docker-compose.yml
index cf965b4..2026f81 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -18,6 +18,8 @@ services:
- pgdata:/var/lib/postgresql/data
expose:
- "5432"
+ ports:
+ - "5432:5432"
musicbrainz:
build: musicbrainz-dockerfile
@@ -44,6 +46,8 @@ services:
search:
build: search-dockerfile
+ ports:
+ - "8080:8080"
restart: unless-stopped
expose:
- "8080"
reboot
check docker ps output
check curl http://vm-ip:5000
check curl http://vm-ip:8080
add replication:
bin/set-token
build search indexes:
bin/reindex