commit
4dbdc77cdc
|
@ -16,12 +16,12 @@ Requirements:
|
|||
* [Packer](https://www.packer.io/intro/getting-started/install.html)
|
||||
* [Vagrant](https://www.vagrantup.com/docs/installation/)
|
||||
* [Vagrant Reload Plugin](https://github.com/aidanns/vagrant-reload#installation)
|
||||
* [VirtualBox](https://www.virtualbox.org/wiki/Downloads)
|
||||
* [VirtualBox](https://www.virtualbox.org/wiki/Downloads) or libvirt/qemu-kvm
|
||||
* Internet connection
|
||||
|
||||
To build automatically:
|
||||
|
||||
1. On Linux/OSX run `./build.sh windows2008` to build the Windows box or `./build.sh ubuntu1404` to build the Linux box. On Windows, run `build_win2008.ps1` in a powershell terminal to build the Windows box.
|
||||
1. On Linux/OSX run `./build.sh windows2008` to build the Windows box or `./build.sh ubuntu1404` to build the Linux box. If /tmp is small, use `TMPDIR=/var/tmp ./build.sh ...` to store temporary packer disk images under /var/tmp. On Windows, run `build_win2008.ps1` in a powershell terminal to build the Windows box.
|
||||
2. If the command completes successfully, run `vagrant up`.
|
||||
3. When this process completes, you should be able to open the VM within VirtualBox and login. The default credentials are U: `vagrant` and P: `vagrant`.
|
||||
|
||||
|
|
2
build.sh
2
build.sh
|
@ -144,7 +144,7 @@ for provider in virtualbox-iso qemu; do
|
|||
search_string="$os_full"_"$provider"_"$box_version"
|
||||
mkdir -p "$packer_build_path"
|
||||
if ls $packer_build_path | grep -q "$search_string"; then
|
||||
echo "It looks like the $provider vagrant box already exists. Skipping the build."
|
||||
echo "It looks like the $provider vagrant box already exists. Skipping the build."
|
||||
elif [ "$build_qemu" = true ] || [ "$build_virtualbox" = true ]; then
|
||||
echo "Building the Vagrant boxes..."
|
||||
if $packer_bin build packer/templates/$os_full.json; then
|
||||
|
|
|
@ -40,5 +40,5 @@ if [ "$have_tools" = true ]; then
|
|||
else
|
||||
echo "Downloading and extracting virtio stable drivers."
|
||||
wget -c "${virtio_uri}" -O .virtio-stable.vfd && 7z x -oresources/drivers/virtio .virtio-stable.vfd txtsetup.oem disk1 amd64/Win2008
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
|
|
@ -94,12 +94,12 @@
|
|||
"2"
|
||||
]
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "qemu",
|
||||
"iso_url": "{{user `iso_url`}}",
|
||||
"iso_checksum_type": "{{user `iso_checksum_type`}}",
|
||||
"iso_checksum": "{{user `iso_checksum`}}",
|
||||
},
|
||||
{
|
||||
"type": "qemu",
|
||||
"iso_url": "{{user `iso_url`}}",
|
||||
"iso_checksum_type": "{{user `iso_checksum_type`}}",
|
||||
"iso_checksum": "{{user `iso_checksum`}}",
|
||||
"headless": false,
|
||||
"boot_wait": "10m",
|
||||
"communicator": "ssh",
|
||||
|
|
Loading…
Reference in New Issue