D

dor

Member

Last active last year

  1. last year
    Sun Mar 26 07:59:14 2017
    D dor posted in Run Post Script on ubuntu.

    Here is my post script after some changes:

    #!/bin/bash
    serverip='###########'
    servernetmask='###########'
    servergateway='###########'
    serverdnsone='###########'
    serverdnssec='###########'
    serverdnssuffix='###########'
    
    mkdir /mnt/fs 
    mount /dev/sda2 /mnt/fs
    rm -f /mnt/fs/etc/udev/rules.d/70-persistent-net.rules
    
    
    cat << EOF >/mnt/fs/etc/network/interfaces
    auto lo
    iface lo inet loopback
    
    auto eth0
    iface eth0 inet static
            address ${serverip}
            netmask ${servernetmask}
            gateway ${servergateway}
            dns-nameservers ${serverdnsone} ${serverdnssec}
            dns-search ${serverdnssuffix}
    
    EOF
    

    tested on ubuntu 12

  2. Thu Mar 23 13:32:25 2017
    D dor posted in Run Post Script on ubuntu.

    After deploy the image the network device name changed. For example from eth0 to eth2 (probably because the uuid of the nic is different from the image). So i'm trying to replace the device name of the network conf to the right device name. And change the ip

  3. Thu Mar 23 13:10:51 2017
    D dor started the conversation Run Post Script on ubuntu.

    Hi,

    I have tried to push on Demand Image.

    The Image was deploy as expected but the post script wasn't worked.

    Server OS in the image: Ubuntu 12.04.5 LTS

    Part of the log that related to the script:
    image_name=hpdl380g8 profile_id=5 server_ip=10.100.110.94 multicast=false pre_scripts="" post_scripts="1 " file_copy=False sysprep_tags="" task_completed_action="Reboot" dp_id=1 image_direction=push osx_target_volume="" munki_repo_url="" change_computer_name=true fix_bootloader=true partition_method=dynamic custom_deploy_schema=true custom_hard_drives="/dev/sda " task=push computer_name=test
    .....
    ** Running Custom Script With Id 1 **
    ....

    The script:

    #!/bin/bash
    serverip=########
    dev1=$(ip -o link show | awk '{print $2}' | tr -d ":" | grep eth | sort | head -n1)
    
    
    cat << EOF >/etc/network/interfaces
    auto lo
    iface lo inet loopback
    
    auto ${dev1}
    iface ${dev1} inet static
            address ${serverip}
            netmask ########
            gateway ########
            dns-nameservers ######## ########
            dns-search ########
    
    EOF

    The post script is not working. Am I doing something wrong? syntax?

  4. Mon Mar 13 15:09:59 2017

    yes it has 12 disks and also memory card. it detected all the disks
    The os is installed on the /dev/sda first phyisical disk
    attached the upload log

  5. Mon Mar 13 14:09:42 2017

    attached

  6. Mon Mar 13 13:50:25 2017
    D dor started the conversation deploy linux image on the wrong partition.

    I have image of Linux physical server (Ubuntu) that was taken with the bootable iso CD using the upload on demand.
    I attached the schema

    From some reason When I'm trying to deploy the image to another physical server with the same hardware and with the same number of disks it's deploying the os partition into /dev/sdf and not in /dev/sda (attached)

    this is the reason the server can't start on the new physical server.

    Am I doing something wrong?

  7. Thu Mar 2 10:22:26 2017

    In all of my servers the system is working perfect! except 1 model...

    I have tried to update the system into the new patch: http://clonedeploy.org/v1-2-0-patches/
    I downloaded new iso image and I generated new image using the new kernel 4.9.8x64
    and I get the same error :/
    there is any option to understand what is missing in the SIOCSIFFLAGS ?

    Thanks a lot!

  8. Mon Feb 20 09:14:54 2017

    same issue :/

    There is an option to add the relevant flags somehow to the iso?

    or maybe i'm doing something wrong?

  9. Tue Feb 7 20:27:20 2017

    Thank you for your response. I will wait for your update

  10. Tue Feb 7 12:05:42 2017

    How can I open the CloneDeploy client console?
    from the Bootable CD iso I can click on "disaplay aviliable NICs"
    and i get the output attached
    output of the lspci -nn from booting the system up will be ok?

View more