forked from rgl/windows-vagrant
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
82 lines (65 loc) · 3.97 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
help:
@echo type make build-libvirt or make build-virtualbox
build-libvirt: windows-2016-amd64-libvirt.box
build-virtualbox: windows-2016-amd64-virtualbox.box
build-windows-server-core-1709-libvirt: windows-server-core-1709-amd64-libvirt.box
build-windows-server-core-1709-virtualbox: windows-server-core-1709-amd64-virtualbox.box
build-core-insider-libvirt: windows-core-insider-2016-amd64-libvirt.box
build-core-insider-virtualbox: windows-core-insider-2016-amd64-virtualbox.box
build-windows-10-libvirt: windows-10-amd64-libvirt.box
build-windows-10-virtualbox: windows-10-amd64-virtualbox.box
windows-2016-amd64-libvirt.box: windows-2016.json autounattend.xml Vagrantfile.template *.ps1 drivers
rm -f $@
CHECKPOINT_DISABLE=1 packer build -only=windows-2016-amd64-libvirt -on-error=abort windows-2016.json
@echo BOX successfully built!
@echo to add to local vagrant install do:
@echo vagrant box add -f windows-2016-amd64 $@
windows-2016-amd64-virtualbox.box: windows-2016.json autounattend.xml Vagrantfile.template *.ps1
rm -f $@
CHECKPOINT_DISABLE=1 packer build -only=windows-2016-amd64-virtualbox -on-error=abort windows-2016.json
@echo BOX successfully built!
@echo to add to local vagrant install do:
@echo vagrant box add -f windows-2016-amd64 $@
windows-server-core-1709-amd64-libvirt.box: windows-server-core-1709.json windows-server-core-1709/autounattend.xml Vagrantfile.template *.ps1 drivers
rm -f $@
CHECKPOINT_DISABLE=1 packer build -only=windows-server-core-1709-amd64-libvirt -on-error=abort windows-server-core-1709.json
@echo BOX successfully built!
@echo to add to local vagrant install do:
@echo vagrant box add -f windows-server-core-1709-amd64 $@
windows-server-core-1709-amd64-virtualbox.box: windows-server-core-1709.json windows-server-core-1709/autounattend.xml Vagrantfile.template *.ps1
rm -f $@
CHECKPOINT_DISABLE=1 packer build -only=windows-server-core-1709-amd64-virtualbox -on-error=abort windows-server-core-1709.json
@echo BOX successfully built!
@echo to add to local vagrant install do:
@echo vagrant box add -f windows-server-core-1709-amd64 $@
windows-core-insider-2016-amd64-libvirt.box: windows-core-insider-2016.json windows-core-insider-2016/autounattend.xml Vagrantfile.template *.ps1 drivers
rm -f $@
CHECKPOINT_DISABLE=1 packer build -only=windows-core-insider-2016-amd64-libvirt -on-error=abort windows-core-insider-2016.json
@echo BOX successfully built!
@echo to add to local vagrant install do:
@echo vagrant box add -f windows-core-insider-2016-amd64 $@
windows-core-insider-2016-amd64-virtualbox.box: windows-core-insider-2016.json windows-core-insider-2016/autounattend.xml Vagrantfile.template *.ps1
rm -f $@
CHECKPOINT_DISABLE=1 packer build -only=windows-core-insider-2016-amd64-virtualbox -on-error=abort windows-core-insider-2016.json
@echo BOX successfully built!
@echo to add to local vagrant install do:
@echo vagrant box add -f windows-core-insider-2016-amd64 $@
windows-10-amd64-libvirt.box: windows-10.json windows-10/autounattend.xml Vagrantfile.template *.ps1 drivers
rm -f $@
CHECKPOINT_DISABLE=1 packer build -only=windows-10-amd64-libvirt -on-error=abort windows-10.json
@echo BOX successfully built!
@echo to add to local vagrant install do:
@echo vagrant box add -f windows-10-amd64 $@
windows-10-amd64-virtualbox.box: windows-10.json windows-10/autounattend.xml Vagrantfile.template *.ps1
rm -f $@
CHECKPOINT_DISABLE=1 packer build -only=windows-10-amd64-virtualbox -on-error=abort windows-10.json
@echo BOX successfully built!
@echo to add to local vagrant install do:
@echo vagrant box add -f windows-10-amd64 $@
drivers:
rm -rf drivers.tmp
mkdir -p drivers.tmp
@# see https://fedoraproject.org/wiki/Windows_Virtio_Drivers
wget -P drivers.tmp https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/archive-virtio/virtio-win-0.1.149-2/virtio-win-0.1.149.iso
7z x -odrivers.tmp drivers.tmp/virtio-win-*.iso
mv drivers.tmp drivers