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
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
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??
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
"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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
"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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
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
I'm using the stable ubunutu version the drblpush script pulls down from online
20230426-lunar-amd64
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
same problem with 3.1.1-18
is there some other workaround of any kind?
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
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
here is the current pxelinux default file settings
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
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
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
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
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??
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
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?
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
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
Thanks Steve
I will try this sometime in the next couple of days
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
"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
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
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
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
"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
Also, I am currently using 3.1.1-21 as you mentioned earlier
Last edit: Scott 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