Menu

Drbl using Clonezilla Live - Doesnt reboot at the end of a job, just clears the screen and cursor flashes in the upper left

Scott
2023-09-21
2024-10-03
1 2 > >> (Page 1 of 2)
  • Scott

    Scott - 2023-09-21

    I run Clonezilla Live on a DRBL/Linux Ubuntu Machine to do imaging
    currently the problem I am having is that at the end of a job, clonezilla tries to reboot the machine... counts down... clears the screen... doesnt actually reboot...
    I just get a blank screen with the cursor blinking in the upper left
    I have to manually shut down the computer

     

    Last edit: Scott 2023-09-23
  • Steven Shiau

    Steven Shiau - 2023-09-22

    Which version of Clonezilla live did you use in your DRBL server?
    Have you tried testing Clonezilla live >=3.1.1-18 or 20230903-mantic?
    https://clonezilla.org/downloads.php

    Steven

     
  • Scott

    Scott - 2023-09-22

    I'm using the stable ubunutu version the drblpush script pulls down from online

    20230426-lunar-amd64

     
  • Scott

    Scott - 2023-09-23

    same problem with 20230903-mantic
    guess I'll try to figure out how to change it to 3.1.1-18 manually...

     

    Last edit: Scott 2023-09-23
  • Scott

    Scott - 2023-09-23

    same problem with 3.1.1-18

    is there some other workaround of any kind?

     
  • Steven Shiau

    Steven Shiau - 2023-09-23

    Have you tried to boot Clonezilla live 3.1.1-18 or 20230903-mantic directly from USB stick or CD on your client machine?
    Is it able to reboot the machine after restoring?
    If so, maybe you have to tune some of the boot parameters on your PXE config file for your clients. Sometimes for some specific machine this has to be done...

    Steven

     
  • Scott

    Scott - 2023-09-23

    I have 3.1.0.22 on a usb stick that reboots just fine
    but when I try to use the live files from it on the drbl server, it wont load the ethernet
    gets stuck trying to up eth0

     
  • Scott

    Scott - 2023-09-23

    here is the current pxelinux default file settings

    label Universal-nvme
    MENU DEFAULT
    # MENU HIDE
    MENU LABEL Universal NVME

    KERNEL Clonezilla-live-vmlinuz
    APPEND initrd=Clonezilla-live-initrd.img boot=live union=overlay username=user config quiet loglevel=0 noswap edd=on nomodeset enforcing=0 locales=en_US.UTF-8 keyboard-layouts=us ocs_prerun1="sudo mount -t cifs -o user='WindowsUser',password=ABCD1234 //192.168.1.245/windows-images /home/partimag" ocs_live_run="ocs-sr -g auto -e1 auto -batch -e2 -u -r -k1 --clone-hidden-data -p reboot -scr restoredisk Universal-nvme nvme0n1" ocs_live_extra_param="-l en_US.UTF-8" ocs_live_batch=no net.ifnames=0 splash noeject netboot=nfs nfsroot=192.168.0.252:/tftpboot/node_root/clonezilla-live/ ocs_server="192.168.0.252"

     
  • Steven Shiau

    Steven Shiau - 2023-09-23

    That's why I mentioned you might need to compare the boot parameters from the USB stick (/boot/grub/grub.cfg) and your DRBL server ( /tftpboot/nbi_img/grub/grub.cfg). If it's necessary, you have to add some boot parameters in the file /tftpboot/nbi_img/grub/grub.cfg (assuming you use uEFI netboot).

    Steven

     
  • Scott

    Scott - 2023-09-23

    it is not uefi boot

    bios/legacy boot...pxelinux.cfg default
    it is clonezilla SE technically I guess since its on a PXE server?

     

    Last edit: Scott 2023-09-26
  • Scott

    Scott - 2023-09-25

    anybody have an answer for what I need to do to fix this?

    What do I need to add or change
    telling me I probably need to change something without any guidance as to what needs to change is not helpful

     
  • Scott

    Scott - 2023-09-25

    Just FYI...
    a little trial and error testing
    If I let the pxelinux menu boot into ubuntu and try to do a teminal command line "reboot"
    I get the same problem of it going to a blank screen with a blinking cursor

    If I restore an image and select to go to the command prompt after...(-p true) where I can manually type "reboot" - same problem - it goes to the blank screen with a flashing cursor and it never reboots

    if I have a file in my usr/share/drbl/postrun/ocs/ directory named "postrun01.sh"
    if I add ocs_postrun="sudo bash postrun01.sh" to run this script that says

    clear
    echo -e "Post Run \r \r \r Sending Reboot Command"
    reboot

    it doesnt run the file
    (do I have the wrong directory or something?)

    if I simply add ocs_postrun="reboot"
    it goes to a blank screen with a blinking cursor...
    then after a short while I do get a message
    [851.732333] systemd-journald[717] failed to send WATCHDOG=1 notification message : connection refused
    followed by more of the same basic message with another timestamp...but it then says : Transport Endpoint is not connected

    so where is the issue that is keeping this from re-booting??

     
    • Steven Shiau

      Steven Shiau - 2023-09-28

      Here if you really accept to force to reboot your machine without normal procedure, you can try to add:
      ocs_postrun="/usr/sbin/reboot -f"

      Steven

       
  • Scott

    Scott - 2023-09-26

    everything I can find online says that when this is a problem, its kernel related...
    not sure what the solution is... guess I gotta go backwards till I can find a clonezilla kernel that works? or is there another solution?

     
  • Scott

    Scott - 2023-09-26

    more updates....
    last night I tried a few different vmlinuz,/initrd/filesystem.squashfs files
    at some point I confused the program enough that it gave me some error and exited and the machine rebooted....
    so it is physically capable of a reboot from drbl
    it leads me to believe its something to do with the clonezilla live itself

    whats the next step??????
    help.........

     

    Last edit: Scott 2023-09-26
  • Steven Shiau

    Steven Shiau - 2023-09-27

    We uploaded another testing Clonezilla live, i.e., 3.1.1-21 or 20230925-*:
    https://clonezilla.org/downloads.php
    3.1.1-21 and 20230925-mantic come with newer Linux kernel 6.5.
    You can give it a try.

    Steven

     
  • Scott

    Scott - 2023-09-27

    Thanks Steve
    I will try this sometime in the next couple of days

     
  • Scott

    Scott - 2023-09-28

    No such luck with the new version

    If I force close clonezilla as its starting up using ctrl+c
    it gives me a terminal command line
    if I put in "reboot" and hit enter, same problem of blinking cursor
    though I did get a few error messages after a few seconds

    Failed to unmount /run/shutdown/mounts/ea5064389e8d015f: device or resource busy

    systemd-shutdown[1]: Could not detach loopback /dev/loop0: Device or resource busy

     

    Last edit: Scott 2023-09-28
  • Steven Shiau

    Steven Shiau - 2023-09-28

    "Failed to unmount /run/shutdown/mounts/ea5064389e8d015f: device or resource busy
    systemd-shutdown[1]: Could not detach loopback /dev/loop0: Device or resource busy" -> This warning messages can be ignored.
    Just curious, this issue only happens on some specific machines there? Right?
    If so, have you tried to update the BIOS firmware of your client machine?

    Steven

     
  • Scott

    Scott - 2023-09-28

    I've tried every machine we have and it happens on all of them
    we use Lenovo X1, X230 and E570 Machines

    this does not happen in Server edition...
    but I cant figure out how to mount my smb share as my home/partimag/ automatically in server edition and you suggested I do the live version for the smb share

    While I was sitting here, typing... one of the machines that I stopped the clonezilla startup script shortly after it showed me the ocs-sc but before it ran the prerun mount cifs... which gave me the error I mentioned... just rebooted...
    so 2 minute-ish wait if I reboot it early enough?

     

    Last edit: Scott 2023-09-28
  • Steven Shiau

    Steven Shiau - 2023-09-28

    Every machine? Same type? Or different one?

    Samba server can not be mounted on the server as a repository then export to your clients.
    You have to do that in the client directly if your clients want to access your samba repository.
    You can edit your PXE/netboot config file in the server to add the option to mount your samba repository. Use ocs_prerun or ocs_repository:
    https://clonezilla.org/fine-print-live-doc.php?path=./clonezilla-live/doc/99_Misc/00_live-boot-parameters.doc#00_live-boot-parameters.doc

    Steven

     
  • Scott

    Scott - 2023-09-28

    I edited the previous reply but you replied before I hit send..
    yes... every machine we use...
    If I use clonezilla LIVE....
    they all hang when trying to reboot or shutdown

    I'm already mounting the samba in the prerun just fine in the LIVE version which wont reboot

    I was asking if there is a way to tell clonezilla server version to mount samba thru the config file because if I do the server version, it reboots just fine every time on all machines...
    but currently I have to manually mount the smb once clonezilla loads and asks me to choose a location of my images in the Server Edition

     
  • Steven Shiau

    Steven Shiau - 2023-09-28

    "I'm already mounting the samba in the prerun just fine in the LIVE version which wont reboot" ->
    Show me your /proc/cmdline from the client machine. We can try to reproduce this issue here.

    Steven

     
  • Scott

    Scott - 2023-09-28

    label Universal-sda live
    MENU DEFAULT
    # MENU HIDE
    MENU LABEL Universal SDA Live - Rack PC, X1, X230

    KERNEL Clonezilla-live-vmlinuz
    APPEND initrd=Clonezilla-live-initrd.img boot=live union=overlay username=user config quiet loglevel=0 edd=on nomodeset enforcing=0 locales=en_US.UTF-8 keyboard-layouts=us ocs_prerun1="sudo mount -t cifs -o user='windowsuser',password=abcd1234 //192.168.1.245/windows-images /home/partimag" ocs_live_run="ocs-sr -g auto -e1 auto -batch -e2 -u -r -k1 --clone-hidden-data -p true -scr restoredisk Universal-sda sda" ocs_live_extra_param="-l en_US.UTF-8" ocs_live_batch=no net.ifnames=0 nosplash nodmraid noeject netboot=nfs nfsroot=192.168.0.252:/tftpboot/node_root/clonezilla-live/ ocs_server="192.168.0.252" ocs_postrun1="reboot"

    Also, I am currently using 3.1.1-21 as you mentioned earlier

     

    Last edit: Scott 2023-09-28
  • Steven Shiau

    Steven Shiau - 2023-09-28

    OK, I will find some time to test the configuration you shared.
    Before that, have you tried to change
    ocs_postrun1="reboot"
    as
    ocs_postrun1="/usr/sbin/reboot -f"
    ?
    Does it work?

    Steven

     
1 2 > >> (Page 1 of 2)

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.