Open apollo-io opened 8 years ago
I've got this running locally now, and will submit when I have it working.
When the Vagrant box fires up it fails to create the /vagrant vboxfs mount. I'm actually seeing this on all solaris vboxes, so may be something specific to my config.
Fixed the boot command for me like this:
"boot_command": [
"27
"<f2><wait><wait><wait>",
"<f2><wait>",
"<f2><wait>",
"<f2><wait>",
"-vagrant<wait><tab>",
"<f2><wait10>",
"<f2><wait10>",
"<tab><tab><tab><tab><tab><tab><tab><wait>",
"<f2><wait>",
"<tab><tab><tab><tab><tab><tab><tab><tab><tab><tab><tab><tab><tab><tab><tab><wait>",
"<f2><wait>",
"<f2><wait>",
"<tab><tab><wait>",
"<f2><wait>",
"<f2><wait>",
"<f2><wait>",
"<f2><wait>",
"vagrant123<tab><wait>",
"vagrant123<tab><wait>",
"{{user `ssh_name`}}<tab><wait>",
"{{user `ssh_name`}}<tab><wait>",
"{{user `ssh_pass`}}<tab><wait>",
"{{user `ssh_pass`}}<tab><wait>",
"<f2><wait>",
"<f2><wait>",
"<f2><wait>",
"<f2><wait>",
"<wait10><wait10><wait10><wait10><wait10><wait10>",
"<wait10><wait10><wait10><wait10><wait10><wait10>",
"<wait10><wait10><wait10><wait10><wait10><wait10>",
"<wait10><wait10><wait10><wait10><wait10><wait10>",
"<wait10><wait10><wait10><wait10><wait10><wait10>",
"<wait10><wait10><wait10><wait10><wait10><wait10>",
"<wait10><wait10><wait10><wait10><wait10><wait10>",
"<f8><wait10><wait10>",
"<enter><wait10>",
"<wait10><wait10><wait10><wait10><wait10><wait10>",
"<wait10><wait10><wait10><wait10><wait10><wait10>",
"<wait10><wait10><wait10><wait10><wait10><wait10>",
"<wait10><wait10><wait10><wait10><wait10><wait10>",
"<wait10><wait10><wait10><wait10><wait10><wait10>",
"<wait10><wait10><wait10><wait10><wait10><wait10>",
"<wait10><wait10><wait10><wait10><wait10><wait10>",
"{{user `ssh_name`}}<enter><wait>",
"{{user `ssh_pass`}}<enter><wait>",
"sudo bash<enter><wait>",
"{{user `ssh_pass`}}<enter><wait>",
"echo '{{user `ssh_name`}} ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers<enter><wait>",
"/usr/gnu/bin/sed -i 's/^.*requiretty/#Defaults requiretty/' /etc/sudoers<enter><wait>",
"exit<enter><wait>"
"exit<enter><wait>"
]
Thanks @dothebart.
I can now build the boxes - my issues mostly were related to timeouts, adding lots of waits fixed most issues.
I think the shared folders issue I now see may be a puppet/beaker issue, because this works for me with CentOs images.
its a pity you can't have comments in these scripts, yaml support for packer would be realy a good thing to have!
I agree - I end up working around it by creating a file with comments as the master, and a script to strip them out and produce the configuration file used.
My main issue with 11.3 was actually the reliability of running the script given the use of 'waits'. For example, failing to install Guest Additions. However, I know have a build I can use
@dothebart - do you run vagrant on windows or linux? My jenkins builds run fine on centos, but the same build fails on windows with a shared folder problem.
Packer was running on Debian jessie; creating a virtualbox vm. Some of the input masks were changed.
Hi
It looks like there's a small variance in the boot commands for Solaris 11.3, it gets most of the way, but doesn't manage to create the ssh connection at the end. I was wondering if anyone has already got this working on 11.3 and could share their modifications?
Thanks,
Mike