PNDA on VMWare VSphere

28 views
Skip to first unread message

Mohamed Abbas

unread,
Feb 4, 2019, 4:51:40 AM2/4/19
to PNDA Users
pnda_template_base output will be in this color.
==> pnda_template_base: Downloading or copying ISO
    pnda_template_base: Found already downloaded, initial checksum matched, no download needed: http://mirror.ipserv.nl/centos/7/isos/x86_64/CentOS-7-x86_64-Minimal-1810.iso
==> pnda_template_base: Creating floppy disk...
    pnda_template_base: Copying files flatly from floppy_files
    pnda_template_base: Copying file: http/ks.cfg
    pnda_template_base: Done copying files from floppy_files
    pnda_template_base: Collecting paths from floppy_dirs
    pnda_template_base: Resulting paths from floppy_dirs : []
    pnda_template_base: Done copying paths from floppy_dirs
==> pnda_template_base: Uploading Floppy to remote machine...
==> pnda_template_base: Uploading ISO to remote machine...
==> pnda_template_base: Creating virtual machine disk
==> pnda_template_base: Creating additional hard drives...
==> pnda_template_base: Building and writing VMX file
==> pnda_template_base: Starting HTTP server on port 8871
==> pnda_template_base: Registering remote VM...
==> pnda_template_base: Starting virtual machine...
==> pnda_template_base: Waiting 7s for boot...
==> pnda_template_base: Connecting to VM via VNC (sc-rdops-vm09-dhcp-31-37:5902)
==> pnda_template_base: Typing the boot command over VNC...
==> pnda_template_base: Waiting for SSH to become available...
Screenshot (9).png

Donald Hunter

unread,
Feb 4, 2019, 6:56:58 AM2/4/19
to PNDA Users
Hi Mohamed,

I'm guessing that you have posted because there is a problem, but you haven't stated the problem and you haven't asked any question.

Did the packer job hang indefintely? Did the job fail for you?

What you have captured in the screenshots is normal packer behaviour. It takes a few minutes for the new CentOS VM to boot from ISO and install the OS into the VM. The packer log (the window on the right in your screengrab) displays failure to connect by ssh for several minutes before managing to connect.

 

 

 

2019/02/04 11:36:33 packer: 2019/02/04 11:36:33 [INFO] Waiting for SSH, up to timeout: 2h46m40s

2019/02/04 11:36:33 ui: ESC[1;32m==> pnda_template_base: Waiting for SSH to become available...ESC[0m

2019/02/04 11:36:33 packer: 2019/02/04 11:36:33 [DEBUG] Opening new ssh session

2019/02/04 11:36:33 packer: 2019/02/04 11:36:33 [DEBUG] starting remote command: esxcli --formatter csv network vm list

2019/02/04 11:36:34 packer: 2019/02/04 11:36:34 [DEBUG] Opening new ssh session

2019/02/04 11:36:34 packer: 2019/02/04 11:36:34 [DEBUG] starting remote command: esxcli --formatter csv network vm port list -w 143117

2019/02/04 11:36:34 packer: 2019/02/04 11:36:34 [DEBUG] Error getting SSH address: No interface on the VM has an IP address ready

...

...

...

2019/02/04 11:39:54 packer: 2019/02/04 11:39:54 [DEBUG] Opening new ssh session

2019/02/04 11:39:54 packer: 2019/02/04 11:39:54 [DEBUG] starting remote command: esxcli --formatter csv network vm port list -w 143117

2019/02/04 11:39:54 packer: 2019/02/04 11:39:54 [DEBUG] Error getting SSH address: No interface on the VM has an IP address ready

2019/02/04 11:39:59 packer: 2019/02/04 11:39:59 [DEBUG] Opening new ssh session

2019/02/04 11:39:59 packer: 2019/02/04 11:39:59 [DEBUG] starting remote command: esxcli --formatter csv network vm list

2019/02/04 11:40:00 packer: 2019/02/04 11:40:00 [DEBUG] Opening new ssh session

2019/02/04 11:40:00 packer: 2019/02/04 11:40:00 [DEBUG] starting remote command: esxcli --formatter csv network vm port list -w 143117

2019/02/04 11:40:00 packer: 2019/02/04 11:40:00 [INFO] Attempting SSH connection...

2019/02/04 11:40:00 packer: 2019/02/04 11:40:00 [DEBUG] reconnecting to TCP connection for SSH

2019/02/04 11:40:00 packer: 2019/02/04 11:40:00 [DEBUG] handshaking with SSH

2019/02/04 11:40:00 packer: 2019/02/04 11:40:00 [DEBUG] handshake complete!

2019/02/04 11:40:00 packer: 2019/02/04 11:40:00 [INFO] no local agent socket, will not connect agent

2019/02/04 11:40:00 ui: ESC[1;32m==> pnda_template_base: Connected to SSH!ESC[0m


If you want to see what is happening with the installing VM then you need to attach to the VM console – you can do this from vCenter using the vSphere client, or from VMware Fusion on a Mac, connecting directly to the ESXi host. I'm guessing it's also possible from Windows but I don't have experience of VMware on Windows.

Cheers,
Donald.

ABBAS.FERRARI

unread,
Feb 4, 2019, 7:05:33 AM2/4/19
to Donald Hunter, PNDA Users
Hello Donald,

    Sorry for not completing the query....
    Actually the SSH connection is not established for more than an hour and hence i posted.
    Till which time we can wait for the ssh to get the connection establishment?

Thanks,
Mohamed Abbas M

--
You received this message because you are subscribed to the Google Groups "PNDA Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pnda-users+...@googlegroups.com.
To post to this group, send email to pnda-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pnda-users/9f45bb5d-36f6-42d8-97f3-e16f7069e12b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--
Thanks,
Mohamed Abbas M

Donald Hunter (donaldh)

unread,
Feb 4, 2019, 7:19:37 AM2/4/19
to ABBAS.FERRARI, Donald Hunter, PNDA Users
You will need to try connecting to the VM console while it is booting to see what is failing. It should be accessible via the ESXi host, but you’ll need to look at the VMware website for instructions, depending on what OS/software you have.

Cheers,
Donald.

Message has been deleted

Mohamed Abbas

unread,
Feb 5, 2019, 6:46:30 AM2/5/19
to PNDA Users
Hello Donald,
                    ovftools and vmware tools are installed but still i'm facing the error for this command 
./packer build -var-file=myenv_conf.json vmware/<build_mode>/centos_mirror.json - Currently using the esix mode but i can't find the file of centos_mirror.json in the folder path packer->vmware->esxi, only the centos_base.json is available so should i need to substitute the string local ? or should i leave the command aside and proceed with the next step.



centos_mirror.PNG




VMWARE TOOBOX IS INSTALLED BUT STILL GETTING THE SAME ERROR.....

vmwaretools.PNG

Donald.

To unsubscribe from this group and stop receiving emails from it, send an email to pnda-users...@googlegroups.com.
To post to this group, send email to pnda...@googlegroups.com.


--
Thanks,
Mohamed Abbas M


--
You received this message because you are subscribed to the Google Groups "PNDA Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pnda-users+...@googlegroups.com.
To post to this group, send email to pnda...@googlegroups.com.

Donald Hunter (donaldh)

unread,
Feb 5, 2019, 10:24:46 AM2/5/19
to Mohamed Abbas, PNDA Users
For ESXi mode there is currently only the centos_base script. You need to use the ESXi script ESXi build. 

I have only tried local build with VMware fusion on a Mac but had problems at the image upload stage. I am now trying the ESXi packer script but don’t seem to get a working image. I think it will take a bit of debugging to identify where it is failing. 

Cheers
Donald. 

For more options, visit https://groups.google.com/d/optout.
<centos_mirror.PNG>
<vmwaretools.PNG>

Mohamed Abbas

unread,
Feb 5, 2019, 11:16:20 AM2/5/19
to Donald Hunter (donaldh), PNDA Users
Ohh then is it fine to skip to the next step with just the completion of the centos_base script ?

Thanks,
Mohamed Abbas M

Donald Hunter (donaldh)

unread,
Feb 5, 2019, 11:29:15 AM2/5/19
to Mohamed Abbas, PNDA Users
I think so, based on the information on the PNDA Packer page: https://github.com/pndaproject/pnda/tree/develop/packer

At the moment, we do only support one PNDA base image, but this could be enhance later in order to support multiple base images depending on the roles, such a specific one for datanode etc..

Though, as I said, I don’t seem to get a working image from vmware/esxi/centos_base.json

Cheers,
Donald.

Mohamed Abbas

unread,
Feb 7, 2019, 5:07:04 AM2/7/19
to PNDA Users

Hey all, 

        I'm working on VMware for creating the PNDA cluster. 

        I have just started the pnda image creation using vSphere. Now i have got the pnda_template_base VM with the centOS running on my ESXi server.

pndatempcentos.PNG


        Now coming to the next step of creating the pnda where should i start with? Is it the pnda_template_base VM machine or the vSphere itself ?
     
        I'm confused because the vSphere is running with Photon Linux verison OS but here in the introduction of creation of PNDA ( pnda-cli link ) it has been mentioned that we need to proceed with the centOS for further process.
      
        Am i'm on the right path. Please correct me if i'm wrong. 

Thanks,
Mohamed Abbas M
Reply all
Reply to author
Forward
0 new messages