Thomas,

I haven't tried it, but you may have success with tools from libguestfs.org 
for modifying the vmdk files offline.

Josh

On Thursday, April 14, 2016 7:45:30 AM Thomas Beeston wrote:
> Hi Josh
> 
> When capturing, it would always fail when selecting Ubuntu, but selecting
> generic Linux the capture process would work fine so is another one of the
> things I changed. Probably part of the problem, I'll try a Ubuntu VM while
> selecting Ubuntu during capture process for comparison.
> 
> If I remember rightly it retrieves lines from the
> /lib/systemd/system/sshd.service file 1st, then goes on to create the  text
> file /lib/systemd/system/ext_sshd.service itself.
> 
>  It also creates /etc/ssh/external_sshd_config.
> 
> While the VM is left running I'll poke around these files to see what they
> look like, hopefully shed some light. Also is there anyway to set the
> captured image to be write able  incase I need to make changes?
> 
> Thanks
> 
> Tom
> 
> > On 13 Apr 2016, at 23:11, Josh Thompson <[email protected]> wrote:
> > 
> > -----BEGIN PGP SIGNED MESSAGE-----
> > Hash: SHA1
> > 
> > Thomas,
> > 
> > For Linux distros, VCL really only supports CentOS, Red Hat, and Ubuntu. 
> > You may have problems with Kali.
> > 
> > The sshd.service file is for controlling the sshd service.  It looks like
> > you selected that the OS is Ubuntu (VMware) based on the name of the
> > image it is trying to deploy.  I would think since Kali is Debian based,
> > Ubuntu would be the closest options.  So, good choice there.
> > 
> > The actual failure comes from telling systemd to enable ext_sshd, and the
> > error is about too many symbolic links.  Do you have
> > /lib/systemd/system/ext_sshd.service?  If so, is it a real file or a
> > symbolic to something?
> > 
> > Josh
> > 
> >> On Wednesday, April 13, 2016 10:29:36 PM Thomas B wrote:
> >> Missed out the user list.  Any help would be really appreciated
> >> 
> >> From: Thomas B
> >> Sent: 13 April 2016 22:26
> >> To: Josh Thompson
> >> Subject: RE: Capturing Linux Image
> >> 
> >> Hi Josh,
> >> 
> >> Did some more testing and I’m not quite there yet, but almost so any help
> >> would be really appreciated. When making a reservation I can see the VM
> >> get
> >> assigned and boot up on the esxi Host which is great.
> >> 
> >> Looking at the logs, connecting via SSH works fine also (not using the
> >> vsphere sdk at the mo). The problem lies in configuring the external ssh
> >> service and is why the provisioning eventually fails.
> >> 
> >> VCL looks for /lib/systemd/system/sshd.service, which I don’t have, I saw
> >> ssh.service and so made a copy of that and named it sshd.service, didn’t
> >> think it would work but it was worth a shot.
> >> 
> >> Not sure what this config file is for, as when configuring ssh in kali
> >> I’ve
> >> never used this file before, any ideas? Some relevant log details below.
> >> 
> >> 2016-04-11 01:49:57|15915|2|2|new|OS.pm:create_text_file|2217|created
> >> text
> >> file on Kali-Linux: /etc/ssh/external_sshd_config 2016-04-11
> >> 01:49:57|15915|2|2|new|Linux.pm:set_file_permissions|2173|set permissions
> >> of '/etc/ssh/external_sshd_config' to '600' on Kali-Linux 2016-04-11
> >> 01:49:57|15915|2|2|new|OS.pm:get_file_contents|2341|retrieved 15 lines
> >> from
> >> file on Kali-Linux: '/lib/systemd/system/sshd.service'
> >> ystemd.pm:enable_service|302|failed to enable 'ext_sshd' service on Kali-
> > 
> > Linux, exit status: 1, output:
> >> |15915|2|2|new|systemd.pm:enable_service|302| Failed to execute
> >> |operation:
> >> |Too many levels of symbolic links
> >> 
> >> Tom
> >> 
> >> Sent from Mail for Windows 10
> >> 
> >> From: Josh Thompson
> >> Sent: 11 April 2016 17:14
> >> To: [email protected]
> >> Subject: Re: Capturing Linux Image
> >> 
> >> - gpg control packet
> >> Thomas,
> >> 
> >> Thanks for the update.  Sometimes, we're not so responsive on the
> >> weekends.
> >> I'm glad you got it working.
> >> 
> >> Josh
> >> 
> >>> On Sunday, April 10, 2016 8:10:31 PM Thomas B wrote:
> >>> Hi again,
> >>> 
> >>> Just to update, got the capture process working.
> >>> 
> >>> Followed the configuration examples more closely in the VMware config
> >>> 
> >>> section on the website using an exported NFS store on the management
> >>> node
> >>> (getting NFS working wasn’t fun!) and mounting that on the VM Host as a
> >>> repository.
> >>> 
> >>> Going to try more image captures with additional VM’s with extra NIC’s
> >>> in,
> >>> see how it goes.
> >>> 
> >>> tom
> >>> 
> >>> 
> >>> Sent from Mail for Windows 10
> >>> 
> >>> Sent: 08 April 2016 13:42
> >>> To: [email protected]
> >>> Subject: Capturing Linux Image
> >>> 
> >>> Hi all
> >>> 
> >>> Wondering if if anyone can provide assistance again. I’m having some
> >>> problems capturing a Linux image and I’m thinking its how my vm host
> >>> profile is setup (Vmware esxi-local).
> >>> 
> >>> Now its probably due to my lack of understanding on how the capture
> >>> process
> >>> works and how vcl essentially provisions VM’s. Is there anything  on the
> >>> website that details the capture process? I cant seem to find anything.
> >>> 
> >>> The errors Im getting are below. My setup is VM’s running on one esxi
> >>> box
> >>> (compute node ive called it) and centos running on a separate physical
> >>> box
> >>> (vcl-mgmt) which runs the web portal/database ect.
> >>> 
> >>> What happens to the vms on the compute node once the capture process
> >>> starts? Initially I have everything on local storage. Trying to get this
> >>> work before I try shared storage.
> >>> 
> >>> 2016-04-08 02:19:58|14932|1|1|image|VMware.pm:is_vm_dedicated|4025|VM
> >>> disk
> >>> mode does not need to be dedicated 2016-04-08
> >>> 02:19:58|14932|1|1|image|VMware.pm:initialize|363|not checking if vmdk
> >>> base
> >>> directory exists because it is the same as the vmx base directory:
> >>> address:
> >>> 3a5bb20
> >>> 2016-04-08 02:19:58|14932|1|1|image|vcld:make_new_child|584|VCL::image
> >>> object created and initialized 2016-04-08
> >>> 02:19:58|14932|1|1|image|VMware.pm:does_image_exist|4368|image does NOT
> >>> exist in datastore on VM host ESXI-COMPUTE:
> >>> /vmfs/volumes/datastore1/vmwareubuntu-Kaliv22-v0/vmwareubuntu-Kaliv22-v0
> >>> .v
> >>> m
> >>> dk 2016-04-08
> >>> 02:19:58|14932|1|1|image|VMware.pm:get_repository_vmdk_base_directory_pa
> >>> th
> >>> 
> >>> 3908|repository path is not configured in the VM profile 2016-04-08
> >>> 02:19:58|14932|1|1|image|VMware.pm:get_repository_vmdk_directory_path|39
> >>> 49
> >>> 
> >>> image repository vmdk directory path cannot be determined because
> >>> repository path is not configured in the VM profile
> >>> 2016-04-08
> >>> 02:19:58|14932|1|1|image|VMware.pm:does_image_exist|4385|image
> >>> does not exist on the VM host and image repository path is not
> >>> configured
> >>> in the
> >>> 
> >>> Thanks for any info
> >> 
> >> --
> >> -------------------------------
> >> Josh Thompson
> >> VCL Developer
> >> North Carolina State University
> >> 
> >> my GPG/PGP key can be found at pgp.mit.edu
> >> 
> >> All electronic mail messages in connection with State business which
> >> are sent to or received by this account are subject to the NC Public
> >> Records Law and may be disclosed to third parties.
> > 
> > - --
> > - -------------------------------
> > Josh Thompson
> > VCL Developer
> > North Carolina State University
> > 
> > my GPG/PGP key can be found at pgp.mit.edu
> > 
> > All electronic mail messages in connection with State business which
> > are sent to or received by this account are subject to the NC Public
> > Records Law and may be disclosed to third parties.
> > -----BEGIN PGP SIGNATURE-----
> > Version: GnuPG v2
> > 
> > iEYEARECAAYFAlcOxCAACgkQV/LQcNdtPQNpWwCfSmvSGjipugcYPj96lsJWoGtI
> > OpEAn3ajVaLXh2ffHBQ9vgZSla9zRLCn
> > =Ipp3
> > -----END PGP SIGNATURE-----
-- 
-------------------------------
Josh Thompson
Systems Programmer
Advanced Computing | VCL Developer
North Carolina State University

[email protected]
919-515-5323

my GPG/PGP key can be found at pgp.mit.edu

All electronic mail messages in connection with State business which
are sent to or received by this account are subject to the NC Public
Records Law and may be disclosed to third parties.

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to