Friday, September 22, 2017

Fedora 26 + Virtualbox 5.1 + kenel 4.12

Error: After Upgrading the VMs will not starting

/tmp/vbox.0/r0drv/linux/memuserkernel-r0drv-linux.o: warning: objtool: .fixup: unexpected end of section
  if [ "-pg" = "-pg" ]; then if [ /tmp/vbox.0/r0drv/linux/memuserkernel-r0drv-linux.o != "scripts/mod/empty.o" ]; then ./scripts/recordmcount  "/tmp/vbox.0/r0drv/linux/memuserkernel-r0drv-linux.o"; fi; fi;
make[1]: *** [Makefile:1519: _module_/tmp/vbox.0] Error 2
make: *** [Makefile:304: vboxdrv] Error 2

Change to the Virtualbox source directory
cd /usr/share/virtualbox/src

get this patch and place it in /usr/share/virtualbox/src
sudo wget

apply patch
sudo patch -Np0 < 20170629003423

run vboxconfig by executing

have fun!

Friday, September 8, 2017

Minio Running as Service

In this case we  are just running minio server as a service in a docker swarm so that the services are up. For this we need a shared Storage so that when the service is running in different hosts the data’s are synced.

echo "AKIAIOSFODNN7EXAMPLE" | docker secret create access_key -
echo "wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY" | docker secret create secret_key -

docker service create --name="minio-service" --publish 9000:9000   --constraint 'node.role == manager' --mount type=bind,src=/mnt/minio/,dst=/data --secret="access_key" --secret="secret_key" minio/minio server /data

Wednesday, September 6, 2017

Minio: S3 Compatible Stoage in Docker

Minio is a distributed object storage server built for cloud applications and devops.

**We need to have the docker env up and running.

docker pull minio/minio
docker run -p 9000:9000 minio/minio server /data