Darragh Bailey
c12b0de254
Add doc on ssh key replacement if repackaging ( #1169 )
...
If planning to repackage a machine that is brought up with vagrant and
modified, it is necessary to avoid the default ssh replacement that
normally takes place to ensure the subsequent box that is halted and
packaged can be accessed by vagrant using the default ssh key
subsequently.
Add some small documentation notes to help users be aware to this so
that they know to set `config.ssh.insert_key = false` when using vagrant
to build a box.
Fixes : #1116
2020-11-17 19:31:19 +00:00
Vratislav Podzimek
2f41402c9a
Use parallel gzip in box creation if available
...
This can speed up box creation significantly on modern machines.
2019-05-09 13:27:04 +02:00
Daniel T Chen
41e5b2f362
Updated Libvirt-based Vagrant box search reference and edited names for consistency
2019-02-11 20:18:02 -05:00
Darragh Bailey
1633ec25f1
Use json format when calling qemu-img
...
Switch from using the default human readable format to request the json
format from qemu-img as this will provide disk sizes in bytes.
This avoids assuming that the returned size is in GigaBytes.
Fixes #743
2017-03-20 13:27:02 +00:00
Waldirio M Pinheiro
80313a2225
Adding the flag -S in tar command
2017-03-20 04:26:52 -03:00
Evgeni Golov
c1d103348d
add a way to inject data into the Vagrantfile
...
for example, I have to set a few settings for my box:
% cat Vagrantfile.add
config.vm.provider :libvirt do |libvirt|
libvirt.nic_model_type = "e1000"
libvirt.disk_bus = "sata"
end
config.vm.guest = :tinycore
% create_box.sh my.qcow2 my.box Vagrantfile.add
2016-12-01 14:09:39 +01:00
Evgeni Golov
7bc4cdcba0
catch -h/--help passed to create_box.sh and output usage
...
instead of passing it to readlink, confisung the user with strange
output
2016-12-01 12:42:55 +01:00
Stephen Finucane
b2d1cfa38b
trivial: Remove tabs
...
Don't mix tabs and spaces. Remove tabs across the board to prevent
confusion.
2016-09-07 13:04:53 +01:00
Gerben Meijer
86a2ba5250
Change github reference to the new organization
2016-04-27 14:08:25 +02:00
Josh Smith
b9a61d8e26
Add 1GB to the size of virtual disk as defined in metadata.json. Since teh awk int function truncates (not rounds) soemtimes the virtual disk was defined a bit too small causing sporadic boot failusres.
2015-10-09 15:55:03 -04:00
Josh Smith
163896aceb
Added comment to describe cahanges as requested
2015-10-05 13:43:38 -04:00
Josh Smith
b59c007f85
No need to use both grep and awk here - just grep will do.
2015-10-05 12:41:49 -04:00
Josh Smith
0aea938dea
If the disk size is specified as a decimil number the generated metadat.json file is invalid resulting in a broken vagrant box. Wraped this in the awk int() function to only print the integer part of the disk size.
2015-10-05 12:31:37 -04:00
Dustin Morgan
5b1c34ecf5
prepare and halt, no gems
2015-09-23 18:27:28 -06:00
dima
fa004ab251
require only read for create image
2015-05-18 09:30:29 +02:00
Jakob Aarøe Dam
7782113fae
Backout on box creation if image is in use.
2015-04-17 16:13:21 +02:00
Jakob Aarøe Dam
e7c7d70c3a
Check for write permission to image before boxing.
2015-03-17 10:27:04 +01:00
Jakob Aarøe Dam
88991f0c1c
Support spaces in paths, by quoting all variables.
2015-02-26 09:46:04 +01:00
Jakob Aarøe Dam
d84efc301a
Print proper paths to user when using a absolute BOX path.
2015-02-19 10:24:42 +01:00
Jakob Aarøe Dam
a1c3ffafb8
Script to create a box out of a qcow2 file.
2015-02-18 11:22:43 +01:00
dima
5a75cbc2fc
selinux should working
2013-10-22 19:23:46 +02:00
pradels
d05196692c
v0.0.6
...
* Routed networks support.
* SSH configurable params in Vagrantfile.
* Updated README file.
2013-07-24 15:44:30 +02:00
pradels
0df992d3c1
Switch off iptables and SELinux to permissive mode.
2013-04-10 14:11:27 +02:00
pradels
f82018cf7b
Fix for requiretty disabling in sudoers file.
...
Don't use DNS in /etc/ssh/sshd_config file setup.
2013-04-10 13:15:20 +02:00
pradels
9f67b6b1b8
Tool for RedHat image preparation.
2013-04-09 15:31:56 +02:00