Hi,

I'm running packer version 1.0.0 and am getting the following output:

virtualbox-iso output will be in this color.

==> virtualbox-iso: Cannot find "Default Guest Additions ISO" in vboxmanage 
output (or it is empty)
==> virtualbox-iso: Downloading or copying Guest additions checksums
    virtualbox-iso: Downloading or copying: 
http://download.virtualbox.org/virtualbox/5.0.40/SHA256SUMS
==> virtualbox-iso: Downloading or copying Guest additions
    virtualbox-iso: Downloading or copying: 
http://download.virtualbox.org/virtualbox/5.0.40/VBoxGuestAdditions_5.0.40.iso
==> virtualbox-iso: Downloading or copying ISO
    virtualbox-iso: Downloading or copying: 
file:///root/twix/devops_packer/ubuntu-16.04.1-desktop-amd64.iso
==> virtualbox-iso: Starting HTTP server on port 8192
==> virtualbox-iso: Creating virtual machine...
==> virtualbox-iso: Creating hard drive...
==> virtualbox-iso: Creating forwarded port mapping for communicator (SSH, 
WinRM, etc) (host port 4365)
==> virtualbox-iso: Executing custom VBoxManage commands...
    virtualbox-iso: Executing: modifyvm ubuntu-16.04.1-desktop-amd64 
--memory 1024
    virtualbox-iso: Executing: modifyvm ubuntu-16.04.1-desktop-amd64 --cpus 
1
==> virtualbox-iso: Starting the virtual machine...
    virtualbox-iso: The VM will be run headless, without a GUI. If you want 
to
    virtualbox-iso: view the screen of the VM, connect via VRDP without a 
password to
    virtualbox-iso: rdp://127.0.0.1:5911
==> virtualbox-iso: Waiting 15s for boot...
==> virtualbox-iso: Typing the boot command...
==> virtualbox-iso: Waiting for SSH to become available...
==> virtualbox-iso: Timeout waiting for SSH.
==> virtualbox-iso: Unregistering and deleting virtual machine...
==> virtualbox-iso: Deleting output directory...
Build 'virtualbox-iso' errored: Timeout waiting for SSH.

==> Some builds didn't complete successfully and had errors:
--> virtualbox-iso: Timeout waiting for SSH.

==> Builds finished but no artifacts were created.


I'm attaching all concerned files (except for the Ubunutu ISo 
"ubuntu-16.04.1-desktop-amd64.iso"). 

Any help with this would be appreciated.

Thanks,
Ritwik

-- 
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 mailing list.

GitHub Issues: https://github.com/mitchellh/packer/issues
IRC: #packer-tool on Freenode
--- 
You received this message because you are subscribed to the Google Groups 
"Packer" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/packer-tool/9727a97d-ba3f-4483-89ee-d972b8ecedb7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
#!/bin/bash -eux


echo 'Environment is ready.'

Attachment: application-server.json
Description: application/json

#!/bin/bash -eux

dd if=/dev/zero of=/EMPTY bs=1M
rm -f /EMPTY
#!/bin/bash -eux

apt-get update

apt-get -y upgrade

# ensure the correct kernel headers are installed
apt-get -y install linux-headers-$(uname -r)
# fix broken dependencies
apt-get -y -f install
# update package index on boot
cat <<EOF > /etc/init/refresh-apt.conf
description "update package index"
start on networking
task
exec /usr/bin/apt-get update
EOF

# install curl to fix broken wget while retrieving content from secured sites
apt-get -y install curl

# install general purpose packages
# install rsync
apt-get -y install rsync

# install screen
apt-get -y install screen

# install git
echo "Installing git"
apt-get -y install git

# sshd config
echo "UseDNS no" >> /etc/ssh/sshd_config
echo "GSSAPIAuthentication no" >> /etc/ssh/sshd_config

# sudoers config
# Only add the secure path line if it is not already present - Debian 7
# includes it by default.
grep -q 'secure_path' /etc/sudoers || sed -i -e '/Defaults\s\+env_reset/a Defaults\tsecure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"' /etc/sudoers


#!/bin/bash -eux

echo "Installing Virtualbox Guest Utils"
apt-get -y install dkms
VBOX_VERSION=$(cat /home/hscuser/.vbox_version)
mount -o loop ~/VBoxGuestAdditions_$VBOX_VERSION.iso /mnt
sh /mnt/VBoxLinuxAdditions.run
umount /mnt

rm ~/VBoxGuestAdditions_$VBOX_VERSION.iso

Reply via email to