Re: [packer] VirtualBox Guest Additions: modprobe vboxsf failed

2018-01-06 Thread Robert Wang
Thanks this is the easy way what I am looking for to by pass the unwanted exit code. -- This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this m

Re: [packer] why packer stop for any error?

2018-01-06 Thread Robert Wang
; the VM and research the state it is in when it fails. > > On 6 January 2018 at 05:34, Robert Wang > wrote: > >> I used packer to build ubuntu 17 box, it stop and destroy vm for any >> error message, >> >> virtualbox-iso: VirtualBox Guest Additions: modpr

[packer] VirtualBox Guest Additions: modprobe vboxsf failed

2018-01-06 Thread Robert Wang
I am trying to build ubuntu dev box using packer, this virtualbox guest installation is one of script: ubuntu-vbguest.sh export DEBIAN_FRONTEND=noninteractive apt-get install -y -q gcc build-essential mount -o loop,ro VBoxGuestAdditions.iso /mnt yes | sudo sh /mnt/VBoxLinuxAdditions.run umoun

[packer] why packer stop for any error?

2018-01-05 Thread Robert Wang
I used packer to build ubuntu 17 box, it stop and destroy vm for any error message, virtualbox-iso: VirtualBox Guest Additions: modprobe vboxsf failed ==> virtualbox-iso: Deregistering and deleting VM... ==> virtualbox-iso: Deleting output directory... Build 'virtualbox-iso' errored: Script e