The SSH credentials will be whatever you set in your preseed file. Without looking at your template I don't know what the sticking point is, but here's a basic guide on what your preseed file needs to contain for Packer to connect.
https://www.packer.io/guides/automatic-operating-system-installs/preseed_ubuntu On Thu, Feb 25, 2021 at 8:55 PM shruthi kv <[email protected]> wrote: > Hi Team, > > i am trying to conversion to ova file using packer virtual box. but this s > not happening it is stuck in ssh connection. Any idea what needs to be > done. What should be the authentication method for ssh > ==> virtualbox-iso: Retrieving Guest additions checksums > ==> virtualbox-iso: Trying > https://download.virtualbox.org/virtualbox/5.2.42/SHA256SUMS > ==> virtualbox-iso: Trying > https://download.virtualbox.org/virtualbox/5.2.42/SHA256SUMS > ==> virtualbox-iso: > https://download.virtualbox.org/virtualbox/5.2.42/SHA256SUMS => > /home/ubuntu/####/ac7a9 > ==> virtualbox-iso: Retrieving Guest additions > ==> virtualbox-iso: Trying > https://download.virtualbox.org/virtualbox/5.2.42/VBoxGuestAdditions_5.2.42.iso > ==> virtualbox-iso: Trying > https://download.virtualbox.org/virtualbox/5.2.42/VBoxGuestAdditions_5.2.42.iso?checksum=ff784417295e48e3cee80a596faf05e3b0976e1b94d3b88427939912b0c1fc45 > ==> virtualbox-iso: > https://download.virtualbox.org/virtualbox/5.2.42/VBoxGuestAdditions_5.2.42.iso?checksum=ff784417295e48e3cee80a596faf05e3b0976e1b94d3b88427939912b0c1fc45 > => /home/ubuntu/0886d03e673ac125c.iso > ==> virtualbox-iso: Retrieving ISO > ==> virtualbox-iso: Trying > https://vault.centos.org/7.5.1804/isos/x86_64/CentOS-7-x86_64-NetInstall-1804.iso > ==> virtualbox-iso: Trying > https://vault.centos.org/7.5.1804/isos/x86_64/CentOS-7-x86_64-NetInstall-1804.iso?checksum=sha256%3A937bf0a7b0932817f84f7230f15ed88911bbbd85c0c958680792b7f8d8f9c1a9 > ==> virtualbox-iso: > https://vault.centos.org/7.5.1804/isos/x86_64/CentOS-7-x86_64-NetInstall-1804.iso?checksum=sha256%3A937bf0a7b0932817f84f7230f15ed88911bbbd85c0c958680792b7f8d8f9c1a9 > => > ==> virtualbox-iso: Starting HTTP server on port 8952 > ==> virtualbox-iso: Creating virtual machine... > ==> virtualbox-iso: Creating hard drive... > ==> virtualbox-iso: Mounting ISOs... > virtualbox-iso: Mounting boot ISO... > ==> virtualbox-iso: Creating forwarded port mapping for communicator (SSH, > WinRM, etc) (host port 4412) > ==> virtualbox-iso: Executing custom VBoxManage commands... > virtualbox-iso: Executing: modifyvm CentOS-7.5-netinstall-new --memory > 512 > virtualbox-iso: Executing: modifyvm CentOS-7.5-netinstall-new --cpus 1 > virtualbox-iso: Executing: modifyvm CentOS-7.5-netinstall-new --nic1 > hostonly > virtualbox-iso: Executing: modifyvm CentOS-7.5-netinstall-new > --hostonlyadapter1 vboxnet0 > ==> 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:5955 > ==> virtualbox-iso: Waiting 5s for boot... > ==> virtualbox-iso: Typing the boot command... > ==> virtualbox-iso: Using ssh communicator to connect: 127.0.0.1 > ==> virtualbox-iso: Waiting for SSH to become available... > > -- > 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/hashicorp/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/a809a30e-8565-4b27-8f28-088d9975b657n%40googlegroups.com > <https://groups.google.com/d/msgid/packer-tool/a809a30e-8565-4b27-8f28-088d9975b657n%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- 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/hashicorp/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/CAGPV1uphB%2B6z4vNYh9NsB_nXNBkEU9fjDoMrvbffLeE40X7v8A%40mail.gmail.com.
