Laravel Homestead is an official, pre-packaged Vagrant box that provides you a wonderful development environment without requiring you to install PHP, a web server, and any other server software on your local machine. ![]() If you destroy and up your box now, you will have a new box with 8GB of swap memory added and 100GB of additional disk space.Laravel strives to make the entire PHP development experience delightful, including your local development environment. Adding swapfile.'Įcho '/swapfile none swap defaults 0 0' > /etc/fstab To resolve this, add this script called "increase_swap.sh" on your working directory: #!/bin/shĮcho 'swapfile not found. This problem is solved when you create cloud Vagrant boxes, like AWS EC2 instances with Vagrant :DĪs I install Oracle Fusion Middleware products, they require some amount of swap memory, but base box comes with a small amount of swap. This creates a VDI disk file with 100GB of capacity. If ARGV = "up" & ! File.exist?("./disk1.vdi")Ĭonfig.vm.provision "bash", path: "bootstrap.sh"Ĭonfig.vm.provision "bash", path: "increase_swap.sh" But itĪnd then add this code to your Vagrantfile. VolGroup and lv_root can change on different distributions. ![]() If making this manually is hard, can you imaging doing this from Vagrant? Well, now that I solved is not that difficult:Ĭreate an script called "bootstrap.sh" on your working directory, and add these lines: pvcreate /dev/sdb But, VMDK can't be expanded, so you need to add another disk to your VM. If you are lucky and your disk format is VDI, you can solve this directly like this. Normally (sadly), cloud base box comes with VMDK disks formats. ![]() I think Resolving some common issues of this may help you.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |