Showing posts with label vagrant. Show all posts
Showing posts with label vagrant. Show all posts

Monday, April 13, 2020

There was an error when attempting to rsync a synced folder.







VBoxManage.exe: error: Call to WHvSetupPartition failed: ERROR_SUCCESS























Another possible solution:
It's possible 13/04/2020 :)

bcdedit /set hypervisorlaunchtype off
and make sure Hyper-V and Windows Sandbox are disabled in Windows Features (which you can get to by entering OptionalFeatures.exe at a command prompt, or via the Control Panel).
Also, Virtualisation options should be enabled in the BIOS, and I think (I don't have time to test right now) that "Virtual Machine Platform" and "Windows Hypervisor Platform" should be enabled.
VirtualBox 6.0.14, Windows Version 10.0.18362.356.
https://stackoverflow.com/questions/58031941/how-to-get-oracle-vm-virtualbox-6-0-and-wsl-working-at-the-same-time

Sunday, February 17, 2019

Error starting userland proxy: listen tcp 0.0.0.0:5432: bind: address already in use

This issue happens when I installed Postgres in my vagrant (vm) and then I after a while I removed it. But the service is still running in the system causing the default 5432 port is not available to be used.





first I run this command

sudo apt-get --purge remove postgresql


but still, it didn't totally remove. so I have to run this command to list all running postgres

dpkg -l | grep postgres



then, I run again this command

sudo apt-get --purge remove postgresql postgresql-doc postgresql-common






Eureka!

Thanks for this reference
https://askubuntu.com/questions/32730/how-to-remove-postgres-from-my-installation

Sunday, August 5, 2018

Thursday, August 2, 2018

Vagrant error


I had encountered similar error below


and I think when I installed vagrant plugin called vagrant-dns

It happens that I need to reinstall vagrant which took a lot of time but still the error persists.


After digging into the internet for a solution, I finally found it. Damn it!

$ vagrant plugin uninstall vagrant-dns


Well, at least I know now.

Adios!






Monday, June 18, 2018

VBoxGuestAdditions in vagrant centos



1. sudo yum update && sudo yum -y install kernel-headers kernel-devel

2. manually by downloading the iso file inside VM (e.g. wget) and installing it, e.g.

wget http://download.virtualbox.org/virtualbox/5.0.16/VBoxGuestAdditions_5.0.16.iso -P /tmp

(read only to write permission)
sudo chmod 777 /tmp/VBoxGuestAdditions_5.0.16.iso

sudo mount -o loop /tmp/VBoxGuestAdditions_5.0.16.iso /mnt

(install libraries)
sudo yum -y install gcc
sudo yum install freeglut-devel
sudo yum install mesa*

sudo sh -x /mnt/VBoxLinuxAdditions.run # --keep


forget all the commands above , just download the geerlingguy/centos7

that's it!!! voila

vagrant provisioning thing...

last time I got this error installing docker and docker-compose during the vagrant up.

Ta dang!

config.vm.provision :docker
config.vm.provision :docker_compose


Reference:
https://github.com/leighmcculloch/vagrant-docker-compose

Thursday, May 10, 2018

Vagrant centos version

I spent almost 3 hours figuring out this issue I have just encountered.

In my personal laptop, I plan to install centos/7 box but I got some weird issue. Something like permission thing, after an hour of fixing still I can't solve my problem.

So, I switch to bento/centos-6-7 and it works. It downloads the box and installed it. However when I try to clone the git repo. I got another issue. something in the git.

so, I downloaded again another box but this time, it is bento/centos7-2. hopefully, it will work now.

Wednesday, March 14, 2018

Setup a vagrant with gui

I have experimented to launch a vagrant using existing VMbox like ubuntu but I was failed to do it. I found this tutorial below.

https://relativkreativ.at/articles/how-to-build-a-vagrant-base-box-from-a-virtualbox-vm

Although, this example is based on centos I'm hoping to manage it in Ubuntu. I got an error in its really frustrating.

So I stop and goes right away to vagrant cloud to find any existing predefined vagrant box.
this one looks promising and will give it a try.

https://app.vagrantup.com/igorbrites/boxes/ubuntu-trusty64-gui
vagrant init igorbrites/ubuntu-trusty64-gui --box-version 0

Sunday, February 25, 2018

Setup vagrant but cannot ping other network ip address “Destination Host Unreachable”

I spend many days to figure it out my problem in Vagrant. After I posted my question in stackoverflow, nobody is helping me instead they downvoted my post.

https://stackoverflow.com/questions/48899409/setup-vagrant-but-cannot-ping-other-network-ip-address-destination-host-unreach

Sad! really sad. :( curse you!!!


But anyway, I solved it in my own way. I found this article below
https://github.com/moby/moby/issues/27818

It's simply my docker IP address clashed with my company IP address because when you create the container by default it will create 172.18.xx.xx IP address. Boom! Destination unreachable.... blah blah.

So, I just create a custom docker network and when I checked it created IP address that start 172.19.xx.xx

$ docker network create --driver=bridge --subnet=172.20.0.0/16 --gateway=172.20.0.0 vbroker-network-v1

updated 2018-0720:
docker network create --driver=bridge --subnet=172.28.0.0/16 --gateway=172.28.5.254 vbroker-network

then in the docker-compose.yml, just added
networks:
  default:
    external:
      name: vbroker-network



Eureka!



Thursday, February 8, 2018

New to vagrant and its really cool

I always heard this name before and I thought its another technology and not relevant. So I didn't bother to learn.

But now, when I read the documentation its all about development thing, like the docker for containerization and vagrant for virtual machine.... COOL!

So, I hopped in youtube find a nice and easy to learn how to install vagrant. I found this link below.
https://www.youtube.com/watch?v=PmOMc4zfCSw&t=178s


Everything went well until I type the command. vagrant ssh, boom! permission denied. It took me at least 5 hours including lunch time break :)

Finally, I got it working. fix some permission on authentickey and enabling some settings, and blah blah blah..
https://groups.google.com/forum/#!topic/vagrant-up/mUNB182dY24

Eureka!

Finally, I can ssh without opening a real virtual machine. soooooo coooolllll!!!!

free online comma separating tool

https://delim.co/#