Comments (2)
thats right. This was also mentioned in #11. The main reason for doing this is there was that I was running into issues where things would intermittently break when uploading the guest additions. I did not really need them for my purposes at the time but it would be good to include them.
from packer-templates.
https://github.com/dotless-de/vagrant-vbguest may be a soltuion but seems broken with Windows currently.
Can use the following in config.vm.provision "shell"
:
if (-not(Test-Path -Path 'C:\Program Files\Oracle\VirtualBox Guest Additions'))
{
$url = 'http://download.virtualbox.org/virtualbox/5.0.4/VBoxGuestAdditions_5.0.4.iso'
$downloadLocation = "$($env:TEMP)\VBoxGuestAdditions.iso"
(New-Object System.Net.WebClient).DownloadFile($url, $downloadLocation)
$iso = Mount-DiskImage -ImagePath $downloadLocation -PassThru
$mountLocation = "$((Get-Volume -DiskImage $iso).DriveLetter):\"
Start-Process -FilePath "$($mountLocation)\cert\VBoxCertUtil.exe" -ArgumentList "add-trusted-publisher $($mountLocation)\cert\oracle-vbox.cer" -Wait -NoNewWindow
Start-Process -FilePath "$($mountLocation)\VBoxWindowsAdditions.exe" -ArgumentList "/S" -Wait -NoNewWindow
Dismount-DiskImage -ImagePath $downloadLocation
}
Problem is you need to reboot the box for it to pick up the tools.. :(
from packer-templates.
Related Issues (20)
- error when installing vbox-2016.json HOT 1
- endless "Waiting for WinRM to become available" HOT 13
- mwrock/Windows2012R2 box: "The source files could not be downloaded." HOT 1
- SSL Errors on Corporate Network (Proposed Solution) HOT 1
- can't login as administrator in Windows2012R2 HOT 1
- Reupload box mwrock/Windows2012R2Full' (v0.1.0) so URL isn't broken
- Nano Build 2.0Gb... any ideas as to why and how to make smaller
- Remove Berksfile.lock from repo
- Chef client not removed
- Failure in creation of Windows 2016 images HOT 5
- ChefDK14 w/ chef-solo run fails due to Mixin HOT 6
- Server 2012 R2 Download ISO Path Broken
- nano server output
- Server 2016 broken link HOT 3
- can't login as administrator in Windows2012R2 HOT 1
- windows cookbook dependency in packer-templates cookbook incompatible with latest chef-client versions
- Win2016 HyperV - No Search Match For NuGet HOT 4
- Issues installing Chef
- Create templates for Win2008 R2 HOT 1
- Creating HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from packer-templates.