Hi The capture process failed when trying to work with /etc/init/ssh.conf file, Ubuntu¹s conf file to start sshd service.
|26276|36664:5240|image| ---- WARNING ---- |26276|36664:5240|image| 2014-02-17 10:52:29|26276|36664:5240|image|utils.pm:run_scp_command(5217)|failed to copy via SCP: 'cmpnew:/etc/init/ssh.conf' --> '/tmp/36664.ext_ssh.conf' |26276|36664:5240|image| command: /usr/bin/scp -B -i /etc/vcl/vcl.key -P 22 -p -r cmpnew:/etc/init/ssh.conf /tmp/36664.ext_ssh.conf 2>&1 |26276|36664:5240|image| output: |26276|36664:5240|image| scp: /etc/init/ssh.conf: No such file or Directory If Kali is too much different from ubuntu/rhel you may have better luck creating a kali.pm module to work with Kali linuxŠ -- Thank you, Dmitri Chebotarov VCL Sys Eng, Engineering & Architectural Support, TSD - Ent Servers & Messaging 223 Aquia Building, Ffx, MSN: 1B5 Phone: (703) 993-6175 | Fax: (703) 993-3404 On 2/17/14, 12:29 , "Evelio Quiros" <[email protected]> wrote: >Hello VCL Group, > >Has anyone been able to capture a Kali Linux image in VCL ? >I have tried capturing it as an Ubuntu image in setup, but it always >fails. >Thanks ! > >Here is my log: > > >> >>vmwareubuntu-KaliLinux82-v0 image creation failed >>------------------------------------------------------------------------ >>time: 2014-02-17 10:52:29 >>caller: image.pm:reservation_failed(387) >>( 0) image.pm, reservation_failed (line: 387) >>(-1) image.pm, process (line: 167) >>(-2) vcld, make_new_child (line: 571) >>(-3) vcld, main (line: 350) >>------------------------------------------------------------------------ >>management node: vclmgt02.fiu.edu >>reservation PID: 26276 >>parent vcld PID: 19132 >> >>request ID: 36664 >>reservation ID: 5240 >>request state/laststate: image/image >>request start time: 2014-02-17 10:52:08 >>request end time: 2014-02-17 11:52:08 >>for imaging: no >>log ID: none >> >>computer: cmpnew >>computer id: 213 >>computer type: virtualmachine >>computer eth0 MAC address: 00:50:56:00:00:01 >>computer eth1 MAC address: 00:50:56:00:00:02 >>computer private IP address: 10.0.0.50 >>computer public IP address: 10.106.128.59 >>computer in block allocation: no >>provisioning module: VCL::Module::Provisioning::VMware::VMware >> >>vm host: vhost12 >>vm host ID: 12 >>vm host computer ID: 12 >>vm profile: VMware ESXi - network storage >>vm profile VM path: /vmfs/volumes/ddn-nfs >>vm profile repository path: /install >>vm profile datastore path: /vmfs/volumes/ddn-nfs >>vm profile disk type: shared >> >>image: vmwareubuntu-KaliLinux82-v0 >>image display name: KaliLinux >>image ID: 82 >>image revision ID: 124 >>image size: 1450 MB >>use Sysprep: no >>root access: yes >>image owner ID: 1 >>image owner affiliation: Local >>image revision date created: 2014-02-17 10:52:18 >>image revision production: yes >>OS module: VCL::Module::OS::Linux::Ubuntu >> >>user: admin >>user name: vcl admin >>user ID: 1 >>user affiliation: Local >>------------------------------------------------------------------------ >>RECENT LOG ENTRIES FOR THIS PROCESS: >>|26276|36664:5240|image| returning (1, "stat: cannot stat >>`/root/.vclc...") >>2014-02-17 >>10:52:28|26276|36664:5240|image|utils.pm:run_ssh_command(4935)|executing >>SSH command on cmpnew: >>|26276|36664:5240|image| /usr/bin/ssh -i /etc/vcl/vcl.key -o >>StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o >>ConnectionAttempts=1 -o ConnectTimeout=3 -l root -p 22 -x cmpnew 'rm -rfv >>/etc/udev/rules\.d/70\-persistent\-net\.rules' 2>&1 >>2014-02-17 >>10:52:28|26276|36664:5240|image|utils.pm:run_ssh_command(5053)|run_ssh_co >>m >>mand output: >>|26276|36664:5240|image| removed directory: >>`/etc/udev/rules.d/70-persistent-net.rules' >>2014-02-17 >>10:52:28|26276|36664:5240|image|utils.pm:run_ssh_command(5067)|SSH >>command executed on cmpnew, returning (0, "removed directory: >>`/etc/udev/...") >>2014-02-17 >>10:52:28|26276|36664:5240|image|Linux.pm:delete_file(1411)|deleted >>'/etc/udev/rules.d/70-persistent-net.rules' on cmpnew >>2014-02-17 >>10:52:28|26276|36664:5240|image|utils.pm:run_ssh_command(4935)|executing >>SSH command on cmpnew: >>|26276|36664:5240|image| /usr/bin/ssh -i /etc/vcl/vcl.key -o >>StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o >>ConnectionAttempts=1 -o ConnectTimeout=3 -l root -p 22 -x cmpnew 'stat >>/etc/udev/rules\.d/70\-persistent\-net\.rules' 2>&1 >>2014-02-17 >>10:52:28|26276|36664:5240|image|utils.pm:run_ssh_command(5053)|run_ssh_co >>m >>mand output: >>|26276|36664:5240|image| stat: cannot stat >>`/etc/udev/rules.d/70-persistent-net.rules': No such file or directory >>2014-02-17 >>10:52:28|26276|36664:5240|image|utils.pm:run_ssh_command(5063)|SSH >>command executed on cmpnew, command: >>|26276|36664:5240|image| /usr/bin/ssh -i /etc/vcl/vcl.key -o >>StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o >>ConnectionAttempts=1 -o ConnectTimeout=3 -l root -p 22 -x cmpnew 'stat >>/etc/udev/rules\.d/70\-persistent\-net\.rules' 2>&1 >>|26276|36664:5240|image| returning (1, "stat: cannot stat >>`/etc/udev/r...") >>2014-02-17 >>10:52:28|26276|36664:5240|image|utils.pm:run_ssh_command(4935)|executing >>SSH command on cmpnew: >>|26276|36664:5240|image| /usr/bin/ssh -i /etc/vcl/vcl.key -o >>StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o >>ConnectionAttempts=1 -o ConnectTimeout=3 -l root -p 22 -x cmpnew 'cp >>/dev/null /var/log/auth.log' 2>&1 >>2014-02-17 >>10:52:28|26276|36664:5240|image|utils.pm:run_ssh_command(5053)|run_ssh_co >>m >>mand output: >>2014-02-17 >>10:52:28|26276|36664:5240|image|utils.pm:run_ssh_command(5067)|SSH >>command executed on cmpnew, returning (0, "") >>2014-02-17 >>10:52:28|26276|36664:5240|image|utils.pm:run_ssh_command(4935)|executing >>SSH command on cmpnew: >>|26276|36664:5240|image| /usr/bin/ssh -i /etc/vcl/vcl.key -o >>StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o >>ConnectionAttempts=1 -o ConnectTimeout=3 -l root -p 22 -x cmpnew 'cp >>/dev/null /var/log/lastlog' 2>&1 >>2014-02-17 >>10:52:28|26276|36664:5240|image|utils.pm:run_ssh_command(5053)|run_ssh_co >>m >>mand output: >>2014-02-17 >>10:52:28|26276|36664:5240|image|utils.pm:run_ssh_command(5067)|SSH >>command executed on cmpnew, returning (0, "") >>2014-02-17 >>10:52:28|26276|36664:5240|image|utils.pm:run_ssh_command(4935)|executing >>SSH command on cmpnew: >>|26276|36664:5240|image| /usr/bin/ssh -i /etc/vcl/vcl.key -o >>StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o >>ConnectionAttempts=1 -o ConnectTimeout=3 -l root -p 22 -x cmpnew 'stat >>/root/\.vclcontrol/vcl_exclude_list' 2>&1 >>2014-02-17 >>10:52:28|26276|36664:5240|image|utils.pm:run_ssh_command(5053)|run_ssh_co >>m >>mand output: >>|26276|36664:5240|image| stat: cannot stat >>`/root/.vclcontrol/vcl_exclude_list': No such file or directory >>2014-02-17 >>10:52:28|26276|36664:5240|image|utils.pm:run_ssh_command(5063)|SSH >>command executed on cmpnew, command: >>|26276|36664:5240|image| /usr/bin/ssh -i /etc/vcl/vcl.key -o >>StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o >>ConnectionAttempts=1 -o ConnectTimeout=3 -l root -p 22 -x cmpnew 'stat >>/root/\.vclcontrol/vcl_exclude_list' 2>&1 >>|26276|36664:5240|image| returning (1, "stat: cannot stat >>`/root/.vclc...") >>2014-02-17 >>10:52:28|26276|36664:5240|image|utils.pm:run_scp_command(5189)|attempting >>to copy file via SCP: 'cmpnew:/etc/ssh/sshd_config' --> >>'/tmp/36664.external_sshd_config' >>2014-02-17 >>10:52:28|26276|36664:5240|image|utils.pm:run_scp_command(5225)|copied >>file via SCP: 'cmpnew:/etc/ssh/sshd_config' --> >>'/tmp/36664.external_sshd_config' >>2014-02-17 >>10:52:28|26276|36664:5240|image|Linux.pm:generate_ext_sshd_config(2097)|c >>o >>pied sshd_config from cmpnew for local processing >>2014-02-17 >>10:52:28|26276|36664:5240|image|utils.pm:run_scp_command(5189)|attempting >>to copy file via SCP: '/tmp/36664.external_sshd_config' --> >>'cmpnew:/etc/ssh/external_sshd_config' >>2014-02-17 >>10:52:29|26276|36664:5240|image|utils.pm:run_scp_command(5225)|copied >>file via SCP: '/tmp/36664.external_sshd_config' --> >>'cmpnew:/etc/ssh/external_sshd_config' >>2014-02-17 >>10:52:29|26276|36664:5240|image|Linux.pm:generate_ext_sshd_config(2145)|c >>o >>pied /tmp/36664.external_sshd_config to >>cmpnew:/etc/ssh/external_sshd_config >>2014-02-17 >>10:52:29|26276|36664:5240|image|utils.pm:run_ssh_command(4935)|executing >>SSH command on cmpnew: >>|26276|36664:5240|image| /usr/bin/ssh -i /etc/vcl/vcl.key -o >>StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o >>ConnectionAttempts=1 -o ConnectTimeout=3 -l root -p 22 -x cmpnew 'stat >>/bin/systemctl' 2>&1 >>2014-02-17 >>10:52:29|26276|36664:5240|image|utils.pm:run_ssh_command(5053)|run_ssh_co >>m >>mand output: >>|26276|36664:5240|image| stat: cannot stat `/bin/systemctl': No such file >>or directory >>2014-02-17 >>10:52:29|26276|36664:5240|image|utils.pm:run_ssh_command(5063)|SSH >>command executed on cmpnew, command: >>|26276|36664:5240|image| /usr/bin/ssh -i /etc/vcl/vcl.key -o >>StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o >>ConnectionAttempts=1 -o ConnectTimeout=3 -l root -p 22 -x cmpnew 'stat >>/bin/systemctl' 2>&1 >>|26276|36664:5240|image| returning (1, "stat: cannot stat >>`/bin/system...") >>2014-02-17 >>10:52:29|26276|36664:5240|image|utils.pm:run_scp_command(5189)|attempting >>to copy file via SCP: 'cmpnew:/etc/init.d/ssh' --> '/tmp/36664.ext_sshd' >>2014-02-17 >>10:52:29|26276|36664:5240|image|utils.pm:run_scp_command(5225)|copied >>file via SCP: 'cmpnew:/etc/init.d/ssh' --> '/tmp/36664.ext_sshd' >>2014-02-17 >>10:52:29|26276|36664:5240|image|Ubuntu.pm:generate_ext_sshd_sysVinit(631) >>| >>copied sshd init script from cmpnew for local processing >>2014-02-17 >>10:52:29|26276|36664:5240|image|Ubuntu.pm:generate_ext_sshd_sysVinit(641) >>| >>read file /tmp/36664.ext_sshd into array >>2014-02-17 >>10:52:29|26276|36664:5240|image|utils.pm:run_scp_command(5189)|attempting >>to copy file via SCP: '/tmp/36664.ext_sshd' --> >>'cmpnew:/etc/init.d/ext_sshd' >>2014-02-17 >>10:52:29|26276|36664:5240|image|utils.pm:run_scp_command(5225)|copied >>file via SCP: '/tmp/36664.ext_sshd' --> 'cmpnew:/etc/init.d/ext_sshd' >>2014-02-17 >>10:52:29|26276|36664:5240|image|Ubuntu.pm:generate_ext_sshd_sysVinit(663) >>| >>copied /tmp/36664.ext_sshd to cmpnew:/etc/init.d/ext_sshd >>2014-02-17 >>10:52:29|26276|36664:5240|image|utils.pm:run_ssh_command(4935)|executing >>SSH command on cmpnew: >>|26276|36664:5240|image| /usr/bin/ssh -i /etc/vcl/vcl.key -o >>StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o >>ConnectionAttempts=1 -o ConnectTimeout=3 -l root -p 22 -x cmpnew 'chmod >>+rx /etc/init.d/ext_sshd' 2>&1 >>2014-02-17 >>10:52:29|26276|36664:5240|image|Ubuntu.pm:generate_ext_sshd_sysVinit(664) >>| >>setting cmpnew:/etc/init.d/ext_sshd executable >>2014-02-17 >>10:52:29|26276|36664:5240|image|utils.pm:run_scp_command(5189)|attempting >>to copy file via SCP: '/tmp/36664.ext_sshd' --> >>'cmpnew:/etc/default/ext_sshd' >>2014-02-17 >>10:52:29|26276|36664:5240|image|utils.pm:run_scp_command(5225)|copied >>file via SCP: '/tmp/36664.ext_sshd' --> 'cmpnew:/etc/default/ext_sshd' >>2014-02-17 >>10:52:29|26276|36664:5240|image|Ubuntu.pm:generate_ext_sshd_sysVinit(697) >>| >>copied /tmp/36664.ext_sshd to cmpnew:/etc/default/ext_sshd >>2014-02-17 >>10:52:29|26276|36664:5240|image|utils.pm:run_ssh_command(4935)|executing >>SSH command on cmpnew: >>|26276|36664:5240|image| /usr/bin/ssh -i /etc/vcl/vcl.key -o >>StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o >>ConnectionAttempts=1 -o ConnectTimeout=3 -l root -p 22 -x cmpnew 'chmod >>+rw /etc/default/ext_sshd' 2>&1 >>2014-02-17 >>10:52:29|26276|36664:5240|image|utils.pm:run_scp_command(5189)|attempting >>to copy file via SCP: 'cmpnew:/etc/init/ssh.conf' --> >>'/tmp/36664.ext_ssh.conf' >>|26276|36664:5240|image| ---- WARNING ---- >>|26276|36664:5240|image| 2014-02-17 >>10:52:29|26276|36664:5240|image|utils.pm:run_scp_command(5217)|failed to >>copy via SCP: 'cmpnew:/etc/init/ssh.conf' --> '/tmp/36664.ext_ssh.conf' >>|26276|36664:5240|image| command: /usr/bin/scp -B -i /etc/vcl/vcl.key -P >>22 -p -r cmpnew:/etc/init/ssh.conf /tmp/36664.ext_ssh.conf 2>&1 >>|26276|36664:5240|image| output: >>|26276|36664:5240|image| scp: /etc/init/ssh.conf: No such file or >>directory >>|26276|36664:5240|image| ( 0) utils.pm, run_scp_command (line: 5217) >>|26276|36664:5240|image| (-1) Ubuntu.pm, generate_ext_sshd_sysVinit >>(line: 714) >>|26276|36664:5240|image| (-2) Linux.pm, generate_ext_sshd_start (line: >>2181) >>|26276|36664:5240|image| (-3) Linux.pm, pre_capture (line: 176) >>|26276|36664:5240|image| (-4) VMware.pm, capture (line: 712) >>|26276|36664:5240|image| (-5) image.pm, process (line: 162) >>|26276|36664:5240|image| ---- WARNING ---- >>|26276|36664:5240|image| 2014-02-17 >>10:52:29|26276|36664:5240|image|Ubuntu.pm:generate_ext_sshd_sysVinit(718) >>| >>failed to copied ssh.conf init file from cmpnew for local processing >>|26276|36664:5240|image| ( 0) Ubuntu.pm, generate_ext_sshd_sysVinit >>(line: 718) >>|26276|36664:5240|image| (-1) Linux.pm, generate_ext_sshd_start (line: >>2181) >>|26276|36664:5240|image| (-2) Linux.pm, pre_capture (line: 176) >>|26276|36664:5240|image| (-3) VMware.pm, capture (line: 712) >>|26276|36664:5240|image| (-4) image.pm, process (line: 162) >>|26276|36664:5240|image| (-5) vcld, make_new_child (line: 571) >>|26276|36664:5240|image| ---- WARNING ---- >>|26276|36664:5240|image| 2014-02-17 >>10:52:29|26276|36664:5240|image|Linux.pm:pre_capture(177)|unable to >>generate /etc/init.d/ext_sshd on cmpnew >>|26276|36664:5240|image| ( 0) Linux.pm, pre_capture (line: 177) >>|26276|36664:5240|image| (-1) VMware.pm, capture (line: 712) >>|26276|36664:5240|image| (-2) image.pm, process (line: 162) >>|26276|36664:5240|image| (-3) vcld, make_new_child (line: 571) >>|26276|36664:5240|image| (-4) vcld, main (line: 350) >>|26276|36664:5240|image| ---- WARNING ---- >>|26276|36664:5240|image| 2014-02-17 >>10:52:29|26276|36664:5240|image|VMware.pm:capture(713)|failed to complete >>OS module's pre_capture tasks >>|26276|36664:5240|image| ( 0) VMware.pm, capture (line: 713) >>|26276|36664:5240|image| (-1) image.pm, process (line: 162) >>|26276|36664:5240|image| (-2) vcld, make_new_child (line: 571) >>|26276|36664:5240|image| (-3) vcld, main (line: 350) >>|26276|36664:5240|image| ---- WARNING ---- >>|26276|36664:5240|image| 2014-02-17 >>10:52:29|26276|36664:5240|image|image.pm:process(166)|vmwareubuntu-KaliLi >>n >>ux82-v0 image failed to be captured by provisioning module >>|26276|36664:5240|image| ( 0) image.pm, process (line: 166) >>|26276|36664:5240|image| (-1) vcld, make_new_child (line: 571) >>|26276|36664:5240|image| (-2) vcld, main (line: 350) >>2014-02-17 >>10:52:29|26276|36664:5240|image|DataStructure.pm:get_computer_private_ip_ >>a >>ddress(1606)|returning private IP address previously retrieved: 10.0.0.50 >>2014-02-17 >>10:52:29|26276|36664:5240|image|utils.pm:is_inblockrequest(5793)|zero >>rows were returned from database select >>2014-02-17 >>10:52:29|26276|36664:5240|image|DataStructure.pm:get_image_affiliation_na >>m >>e(2118)|image owner id: 1 >>2014-02-17 >>10:52:29|26276|36664:5240|image|DataStructure.pm:retrieve_user_data(1401) >>| >>attempting to retrieve and store data for user: user.id = '1' >>2014-02-17 >>10:52:29|26276|36664:5240|image|DataStructure.pm:retrieve_user_data(1464) >>| >>data has been retrieved for user: admin (id: 1) > > > > > >On 2/7/14 9:11 AM, "Aaron Peeler" <[email protected]> wrote: > >>No, that feature's not there. ImageAdmin applies to both. >> >>Aaron >> >>On Thu, Feb 6, 2014 at 3:32 PM, Dmitri Chebotarov <[email protected]> >>wrote: >>> Hi >>> >>> Is it possible to restrict a user to only 'Update' image and not to >>>'Create' >>> a new image? >>> I tried two options - setting a user as image owner and building >>>Permission >>> tree giving user imageAdmin role. >>> It looks like imageAdmin role in privilege tree applies to both Create >>>and >>> Update options equally... >>> >>> -- >>> Thank you, >>> >>> Dmitri Chebotarov >>> VCL Sys Eng, Engineering & Architectural Support, TSD - Ent Servers & >>> Messaging >>> 223 Aquia Building, Ffx, MSN: 1B5 >>> Phone: (703) 993-6175 | Fax: (703) 993-3404 >>> >> >> >> >>-- >>Aaron Peeler >>Program Manager >>Virtual Computing Lab >>NC State University >> >>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. >
