Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: Compatibility with CentOS 7 & 8 #39

Open
pedrofurtado opened this issue Apr 25, 2020 · 2 comments
Open

Feature: Compatibility with CentOS 7 & 8 #39

pedrofurtado opened this issue Apr 25, 2020 · 2 comments

Comments

@pedrofurtado
Copy link

No description provided.

@pedrofurtado
Copy link
Author

pedrofurtado commented Apr 27, 2020

A workaround is to write something like that:

Vagrant.configure('2') do |config|
  config.vagrant.plugins = ['vagrant-disksize']
  config.disksize.size = '50GB'
  config.vm.box = 'centos/7'

  config.vm.provision 'shell', privileged: true, inline: <<-SHELL
    yum install -y cloud-utils-growpart
    sudo growpart /dev/sda 1
    sudo xfs_growfs /
  SHELL
end

@jwstric2
Copy link

@pedrofurtado great writeup, this would probaly be a good fit on the README.md as this solution works for most all distros (minus the package manager is different)...

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

No branches or pull requests

2 participants