Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@keitwb
Copy link

@keitwb keitwb commented Feb 6, 2014

It was rounding down before which was causing the VM to blow up when you try
and launch it with vagrant-libvirt due to the filesystem extending beyond the
end of the disk (assuming your root filesystem spans the whole disk). This happens any time you specify a disk_size that doesn't fall on a gigabyte boundary.

Alternatively, you could imitate vagrant-libvirt's metadata and only allow disk_size to be specified in GBs. I assumed you had a good reason for choosing MB instead but let me know what you think. That would eliminiate vagrant from having to make disk images that are slightly bigger than necessary, though in general I have never experienced problems with that.

I am very new to Go, so if there is a more concise way to do this please let me know.

- It was rounding down before which was causing the VM to blow up when you try
  and launch it with vagrant-libvirt due to the filesystem extending beyond the
  end of the disk (assuming your root filesystem spans the whole disk).
qur pushed a commit that referenced this pull request May 10, 2014
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.

1 participant