![]() 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. |