Skip to content

Commit

Permalink
README update - build section added
Browse files Browse the repository at this point in the history
  • Loading branch information
ruzickap committed Mar 5, 2018
1 parent ba95931 commit a38597e
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ Drivers / Devices added for the VMs for specific providers.
* New Network Window turned off
* Administrator account enabled
* EnableLUA
* Windows image was finalized using \`sysprep\`: [unattended.xml](https://github.com/ruzickap/packer-templates/blob/master/scripts/win-common/unattend.xml)
* Windows image was finalized using `sysprep`: [unattended.xml](https://github.com/ruzickap/packer-templates/blob/master/scripts/win-common/unattend.xml)


#### Additional Drivers installed for libvirt boxes - [VirtIO](https://fedoraproject.org/wiki/Windows_Virtio_Drivers)
Expand All @@ -104,6 +104,17 @@ Installed components via Ansible playbook [win.yml](https://github.com/ruzickap/
* VirtualBox Guest Additions


## How to build images
If you want to build the images yourself you will need passwordless ssh access to the latest Fedora server and locally installed Ansible. The server should not have IPs from this range `192.168.121.0/24` - this is used by Vagrant + libvirt by default.

Then you just need to modify the `REMOTE_IP` and `REMOTE_USER` in `build_remote_ssh.sh` file.

The `build_remote_ssh.sh` script will connect to your Fedora server, downloads necessary packages (initiate reboot if necessary for kernel update) and start building the images using Packer.
It will also test the newly created images by Vagrant.
The whole procedure will take several hours.
You can check the progress by sshing to the server and checking the log files in `/tmp/` or `/var/tmp/packer` directories.


## Helper scripts
* `build.sh` - build single image specified on command line
* `build_all.sh` - builds all images
Expand Down

0 comments on commit a38597e

Please sign in to comment.