Menu

Using interactive Clonezilla over SSH?

2018-09-19
2018-10-21
  • Michal Zatloukal

    Hi.
    I followed the instructions on enabling the SSH server and can successfully log in, but attempting to run ocs-live-general produces error:

    /usr/sbin/ocs-live-general only works in environment variable 'CURRENT_TTY' = '/dev/tty1'

    This seems quite deliberate - is the interactive mode only supported on local terminal? Or do I need to run one of the other executables?
    When I run the command after setting the variable manually, the process (restore image to disk) fails with a segfault in partclone.chkimg.

    /usr/sbin/ocs-chkimg: line 43: 4925 Exit 141 ( for img in $target_d/$img_file_prefix; do cat $img; done ) 4926 Broken pipe | $unzip_stdin_cmd 4927 Segmentation fault | LC_ALL=C partclone.chkimg $PARTCLONE_CHKIMG_OPT -s -

    This makes no sense to me, as even if there was an issue with running the TUI frontend via SSH, the partclone tools should only be concerned with files and blockdevices, no? And yet, the same clonezilla medium (actually booted off PXE) works fine when either controlling from local terminal or executing unattended.

    This is version 20180905-cosmic

     

    Last edit: Michal Zatloukal 2018-09-19
  • Laurent B

    Laurent B - 2018-09-21

    Hi, i used clonezilla with ssh without problem until this time, but since a recent update partclone crash with segfault. I've found a workaround. set the TERM variable to "linux" in place from "xterm-256color"
    echo $TERM
    TERM=linux
    For me after partclone doesn't crash anymore.
    Next week, i'll try to report this "bug".
    I hope, it's works for you

     
    • Michal Zatloukal

      Thanks for posting this, setting TERM to linux seems to solve the issue. If you reported the partclone bug, post the link here, as I would like to track it.

      EDIT: Actually, after restoring the image, the selected action (poweroff/reboot/rerun) doesn't work. I'd like to hear from Steven if running over ssh is supported/supposed to work or not - the check for "CURRENT_TTY" suggest that it isn't.

       

      Last edit: Michal Zatloukal 2018-09-24
  • Steven Shiau

    Steven Shiau - 2018-09-30

    " if running over ssh is supported/supposed to work or not" -> ocs-live-general is used for console 1. If you want to run Clonezilla job over ssh, just run :
    sudo clonezilla

    Steven

     
  • Laurent B

    Laurent B - 2018-10-16
     
  • Laurent B

    Laurent B - 2018-10-16

    But maybe i should report in the partclone project
    https://sourceforge.net/projects/partclone/

     
  • Steven Shiau

    Steven Shiau - 2018-10-21

    OK, thanks.
    We actually force to set TERM as linux in the script, so never have such issue. When Thomas has time, he definitely will fix this issue.
    For the moment, please do set the TERM. Or try to run Partclone via command "clonezilla", "ocs-sr", or "ocs-onthefly".

    Steven

     

Log in to post a comment.

MongoDB Logo MongoDB