Taking a Vagrant image to OpenStack

40 views
Skip to first unread message

g.ro...@prometheuscomputing.com

unread,
Feb 2, 2017, 10:20:20 AM2/2/17
to Vagrant

I am using Vagrant to create a VBox image that I need to import into OpenStack.  I can import the *.vdmi well enough, but it takes too much space in OpenStack--40GB.  That's too much. I need to get the OpenStack image resized to 5GB.

I tried setting
vb.customize ['modifyvm', , '--resize', '5']
in my vagrant file.  But is got an error that says:
VBoxManage: error: Resize hard disk operation for this format is not implemented yet!



How can I get a 5GB image? I'm not talking actual file size but the dynamic file size.

Thanks

Alvaro Miranda Aguilera

unread,
Feb 2, 2017, 2:26:35 PM2/2/17
to vagra...@googlegroups.com
hello

as for your question, Vagrant is just running VBoxManage under the hood in that case.

not sure if will be able to shrink the disk, bad things can happen if you shrink the disk without adjusting filesystem/partition


have you looked into packer? that tool allow you create VM.

I think the way to work there is create a VM and use cloud init and let that to work in a Openstack way.

one of the task you would be able to do is when you resize the disk on deploy, cloudinit should be able to take care of disk/filesystem resize.

packer does have an openstack provider, but is more to take an existing VM and create a new one.

Seems you are after packer + virtualbox, create a VM, and then use the disk.vdi/vmdk in OpenStack.

alvaro

--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
---
You received this message because you are subscribed to the Google Groups "Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vagrant-up+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/300d09aa-e17f-491e-a838-76e0d5cc6701%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Alvaro

Reply all
Reply to author
Forward
0 new messages