Skip to content

Conversation

Simbaclaws
Copy link

I made a mistake where I had used square brackets instead of pipes, potentially breaking the Vagrantfile. I'm sorry....

I made a mistake where I had used square brackets instead of pipes, potentially breaking the Vagrantfile. I'm sorry....
@Simbaclaws
Copy link
Author

Simbaclaws commented May 27, 2023

I did an actual test this time (after making some changes) to see whether it is working. Here are some screenshots of libvirt working:

Changes made in RAM:
Changed the memory

Machine running afterwards:
Running site

@Simbaclaws
Copy link
Author

Simbaclaws commented May 27, 2023

There seems to be a slight ttfb of 1-2 seconds, which I'm trying to fix but not really sure where it is coming from in the VM... I'm thinking it might be some sort of I/O issue? Maybe bindfs?

As you can see it is waiting for 2.3s here on first html ttfb load:

TTFB

In order for a more accelerated virtual machine, KVM needs to be installed and set as the driver, so that the VM will be a lot faster.
@swalkinshaw
Copy link
Member

Thanks for the quick fix (+ @talss89) Also my fault for not noticing that.

The TTFB issue could be a lot of things but I'll merge this for now and if there's any Vagrant setting that improves that a follow-up fix is good.

@swalkinshaw swalkinshaw merged commit f62a57c into roots:master May 27, 2023
@swalkinshaw swalkinshaw changed the title @simbaclaws made a mistake using square brackets instead of pipes in the vagrantfile... Fix libvirt Vagrant provider config May 27, 2023
@Simbaclaws
Copy link
Author

Simbaclaws commented May 27, 2023

I just added the latest commit to change the accelerator for the VM to KVM (Right before you merged the fix), this should make the virtual machine a lot faster, I'm hoping that fixes the TTFB issue. I'm testing that right now. This does mean that whoever uses libvirt needs kvm and qemu both installed on their machine. I'm currently recreating the virtual machine, and it already feels a lot faster.

EDIT: there we go, test results are in:

Screenshot from 2023-05-27 18-14-02

TTFB issue solved 👍
152ms vs 2.31s
This thing is blazing fast...

To be sure I also did a sudo vagrant plugin install vagrant-bindfs on the host, just to make sure that bindfs was working properly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants