solaris-packer icon indicating copy to clipboard operation
solaris-packer copied to clipboard

Solaris 11.3 - support

Open apollo-io opened this issue 9 years ago • 6 comments

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

apollo-io avatar Feb 07 '16 12:02 apollo-io

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.

apollo-io avatar Feb 16 '16 09:02 apollo-io

Fixed the boot command for me like this: "boot_command": [ "27", "3", "buildslave", "", "1",

    "<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>"
  ]

dothebart avatar Mar 04 '16 13:03 dothebart

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.

apollo-io avatar Apr 13 '16 14:04 apollo-io

its a pity you can't have comments in these scripts, yaml support for packer would be realy a good thing to have!

dothebart avatar Apr 13 '16 14:04 dothebart

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.

apollo-io avatar Apr 22 '16 14:04 apollo-io

Packer was running on Debian jessie; creating a virtualbox vm. Some of the input masks were changed.

dothebart avatar Apr 25 '16 09:04 dothebart