Clonezilla not booting with static IP address.

  • Hello all,


    Happy New Year!


    I am using the omv-extras plugin: Clonezilla, to perform headless backups of my system disks. I have used it with no problems in the past (OMV4), when I have chosen single boot to Clonezilla kernel from the web GUI and then rebooted, it always kept the Ip address that I had asked my router to assign to it. I then remotely ssh'd into the server, logged in and used Clonezilla. When done, I logged out and rebooted, the web GUI was then available again.


    I have two fairly fresh installs of OMV5 on Dell PowerEdge R210 II servers and when I choose the Clonezilla kernel from the web GUI and reboot, it loads up fine, but I cannot access it remotely via ssh - it looks like it has lost the IP address.


    Its really cold in my garage (where the servers are), in the winter so I'd like to be able to do the headless backup again via ssh! Any help would be greatly appreciated.


    Thanks,

    Nick. :thumbup:

    I ride bikes a long way.
    longbikejourney.com


    omv 7.7.17-1 (Sandworm) | Linux 6.12.43+deb12-amd64 | Intel(R) Xeon(R) CPU E3-1220 V2 @ 3.10GHz | Dell PowerEdge R210 16GB RAM

    • Official Post

    I am using the omv-extras plugin: Clonezilla, to perform headless backups of my system disks. I have used it with no problems in the past (OMV4), when I have chosen single boot to Clonezilla kernel from the web GUI and then rebooted, it always kept the Ip address that I had asked my router to assign to it. I then remotely ssh'd into the server, logged in and used Clonezilla. When done, I logged out and rebooted, the web GUI was then available again.


    I have two fairly fresh installs of OMV5 on Dell PowerEdge R210 II servers and when I choose the Clonezilla kernel from the web GUI and reboot, it loads up fine, but I cannot access it remotely via ssh - it looks like it has lost the IP address.


    Its really cold in my garage (where the servers are), in the winter so I'd like to be able to do the headless backup again via ssh! Any help would be greatly appreciated.

    Clonezilla always uses dhcp and the version of clonezilla is the exact same as used with omv-extras 4.x and 5.x. All I can think is your router is giving it a different address. Do you have static dhcp setup for the system?

    omv 8.0.10-1 synchrony | 6.17 proxmox kernel

    plugins :: omvextrasorg 8.0.2 | kvm 8.0.4 | compose 8.1.2 | cterm 8.0 | borgbackup 8.1 | cputemp 8.0 | mergerfs 8.0 | scripts 8.0.1 | writecache 8.1


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • Hi,


    Thank you, yes, that's what I thought; that the router is handing it out a random address. The thing is that the router will always assign the correct IP address when rebooting normally. Its only when I ask it to boot from the Clonezilla kernel that this seems to happen.


    Here's a pic of my DHCP reservations:



    Top one is my printer, then:

    OMV4

    OMV4

    OMV5

    OMV5

    OMV5


    I have tested all of the OMV5 installs (3 of them now) on 2 X Dell PowerEdge 210 II servers and 1 X Dell PowerEdge 310 server) and they all suffer from the same issue. Its weird (and I'm cold).


    The two OMV 4 installs are on a pair of old desktop computers and they reboot fine.


    I'm lost!


    Thanks,

    Nick.


    EDIT: One extra thing that I have just thought of: In the web GUI - System/Network/Interfaces, I have just left the settings as IPV4: Method:DHCP - there is no need for me to set a static IP here, is there?

    I ride bikes a long way.
    longbikejourney.com


    omv 7.7.17-1 (Sandworm) | Linux 6.12.43+deb12-amd64 | Intel(R) Xeon(R) CPU E3-1220 V2 @ 3.10GHz | Dell PowerEdge R210 16GB RAM

    Edited 2 times, last by Nick0 ().

    • Official Post

    In the web GUI - System/Network/Interfaces, I have just left the settings as IPV4: Method:DHCP - there is no need for me to set a static IP here, is there?

    Nope.


    OMV 4 and Clonezilla configure their networking with /etc/network/interfaces (ifupdown). OMV 5.x uses netplan. For some reason, some routers will assign different IP addresses for each style of networking. You should be able to look up the new address in the router's leases list.

    omv 8.0.10-1 synchrony | 6.17 proxmox kernel

    plugins :: omvextrasorg 8.0.2 | kvm 8.0.4 | compose 8.1.2 | cterm 8.0 | borgbackup 8.1 | cputemp 8.0 | mergerfs 8.0 | scripts 8.0.1 | writecache 8.1


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • OK, so will it assign that same IP every time?


    Thank you for your help,

    Nick.


    EDIT: Oh, hang on - I guess I look up the IP and then add that to the DHCP reservations in the router?

    I ride bikes a long way.
    longbikejourney.com


    omv 7.7.17-1 (Sandworm) | Linux 6.12.43+deb12-amd64 | Intel(R) Xeon(R) CPU E3-1220 V2 @ 3.10GHz | Dell PowerEdge R210 16GB RAM

    Edited once, last by Nick0 ().

    • Official Post

    OK, so will it assign that same IP every time?

    Not having a router that does this , I would guess it might assign the same IP for omv 5.x/netplan every time and the same IP for clonezilla/ifupdown every time if the address was not assigned to another device. If you can't look on your router for the new IP address, nmap scanning for port 22 should find it.

    omv 8.0.10-1 synchrony | 6.17 proxmox kernel

    plugins :: omvextrasorg 8.0.2 | kvm 8.0.4 | compose 8.1.2 | cterm 8.0 | borgbackup 8.1 | cputemp 8.0 | mergerfs 8.0 | scripts 8.0.1 | writecache 8.1


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • OK, thank you for this.


    The router doesn't seem to be listing the new IP address.


    I used to have a nice Linksys router that I flashed with ddwrt and ran Mullvad VPN on but that was when I had a very slow 4G connection and we now have two routers with our new fibre ISP - Linksys Velops. Great routers and they give us great coverage throughout the home but they came with the 192.168.1.1 IP address that I had assigned to the ddwrt router and I just didn't have the energy to learn how to set everything up again, so I just plugged it and and stuck a VPN app on the computer.


    Maybe I should look into setting that up again, but I have downloaded Nmap first. Thing is, how do you use it?


    I looked at this guide and it says to scan and list a local range of network IPs, assuming your LAN has an IP range of 192.168.0.1 to 192.168.0.25, (change those numbers as appropriate), you'd enter


    nmap -sP 192.168.0.1-25


    So here is my network info from the router:



    So I entered:


    nmap -sP 192.168.1.1-245


    ... and then tried to ssh into any IPs that I didn't recognise, but no dice there.


    Am I anywhere near doing what I am supposed to do here?


    Thanks,

    Nick.


    EDIT: Okay, looking at this again, I think it should be nmap -sP 192.168.1.10-245 but that's not giving me anything either.

    I ride bikes a long way.
    longbikejourney.com


    omv 7.7.17-1 (Sandworm) | Linux 6.12.43+deb12-amd64 | Intel(R) Xeon(R) CPU E3-1220 V2 @ 3.10GHz | Dell PowerEdge R210 16GB RAM

    Edited once, last by Nick0 ().

    • Official Post

    nmap -p 22 192.168.1.* will scan port 22 on all of the 192.168.1 subnet. if you dhcp scope is smaller then use that

    omv 8.0.10-1 synchrony | 6.17 proxmox kernel

    plugins :: omvextrasorg 8.0.2 | kvm 8.0.4 | compose 8.1.2 | cterm 8.0 | borgbackup 8.1 | cputemp 8.0 | mergerfs 8.0 | scripts 8.0.1 | writecache 8.1


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • Thanks, I ran that and I could see the IP addresses of the printer and servers that are currently running normally, and they were all reporting:


    PORT STATE SERVICE

    22/tcp open ssh


    There were a few other entries that I didn't recognise, example below:


    Nmap scan report for 192.168.1.31

    Host is up (0.039s latency).


    [tt]PORT STATE SERVICE

    22/tcp closed ssh


    Obviously, I'm not going to be able to ssh into these if port 22 is closed, I'm not sure what to do next in finding the IP?

    I ride bikes a long way.
    longbikejourney.com


    omv 7.7.17-1 (Sandworm) | Linux 6.12.43+deb12-amd64 | Intel(R) Xeon(R) CPU E3-1220 V2 @ 3.10GHz | Dell PowerEdge R210 16GB RAM

    • Official Post

    I'm not sure what to do next in finding the IP?

    Other than plugin a screen, not much else you can do. It is possible it doesn't have an address. I just tested on my test VM and it gets the same IP. I am using pihole (dnsmasq) for dhcp but no static dhcp entry for this system.

    omv 8.0.10-1 synchrony | 6.17 proxmox kernel

    plugins :: omvextrasorg 8.0.2 | kvm 8.0.4 | compose 8.1.2 | cterm 8.0 | borgbackup 8.1 | cputemp 8.0 | mergerfs 8.0 | scripts 8.0.1 | writecache 8.1


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • OK, many thanks or this - at least I know where I am now.


    I had no idea that it might not even have an address.


    Maybe I'll try to figure out. way to get the ddwrt router back on the network but it make my mind boggle a bit - I'm still new to all this!


    All the best,

    Nick.

    I ride bikes a long way.
    longbikejourney.com


    omv 7.7.17-1 (Sandworm) | Linux 6.12.43+deb12-amd64 | Intel(R) Xeon(R) CPU E3-1220 V2 @ 3.10GHz | Dell PowerEdge R210 16GB RAM

    • Official Post

    I had no idea that it might not even have an address.

    Some dhcp servers are a pain. At least ddwrt uses dnsmasq for dhcp (if I remember my dd-wrt days) and shouldn't have this problem.

    omv 8.0.10-1 synchrony | 6.17 proxmox kernel

    plugins :: omvextrasorg 8.0.2 | kvm 8.0.4 | compose 8.1.2 | cterm 8.0 | borgbackup 8.1 | cputemp 8.0 | mergerfs 8.0 | scripts 8.0.1 | writecache 8.1


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • OK, thank you for that and I will dig it out of the garage and see what I can do. I'd much rather the VPN was back at the router, in any case.


    Thanks again for all your help, and also your excellent guide on backing up headless servers using Clonezilla - its a weight off my mind to be able to clone the system drives, even if its in the cold garage for some of them!


    Cheers,

    Nick.

    I ride bikes a long way.
    longbikejourney.com


    omv 7.7.17-1 (Sandworm) | Linux 6.12.43+deb12-amd64 | Intel(R) Xeon(R) CPU E3-1220 V2 @ 3.10GHz | Dell PowerEdge R210 16GB RAM

  • Hi,

    i have same exact problem after installing latest OMV 5 release, not able to backup headless with Clonezilla as previously done with OMV 3. i can only backup it with local console. I dont think it is is an issue with router. i also restored old OMV 3 backup and it took correctly ip address when booting with clonezilla.

    OMV 5.5.20-1(Usul); OMVExtrasorg 5.4.2;

    Debian GNU/Linux 10 (buster):kernel Linux 5.9.0-0.bpo.2-amd64 x64 on a ASUS M4A88T-M-USB3 installed on a 128G 2,5" SSD disk, 8 GB RAM,CPU AMD Phenom II X6 1055T; Clonezilla as backup method.

    RAID mirror with two WDC WD20EARS 1TB for personal data.

    • Official Post

    Yesterday I was able to boot into clonezilla. It had the same IP as the server usually has.

    Unfortunately after the backup it did not boot into OMV, but into clonezilla again. So I had to attache a display and a keyboard ....


    I have this iso: clonezilla-live-2.6.0-37-i686-pae.iso

  • Hi,

    i solved few mins ago; checking on the router i noted that after rebooting with clonezilla it takes same static ip address of OMV but with hostname "debian"; by starting an ssh session with hostname connection worked fine.

    OMV 5.5.20-1(Usul); OMVExtrasorg 5.4.2;

    Debian GNU/Linux 10 (buster):kernel Linux 5.9.0-0.bpo.2-amd64 x64 on a ASUS M4A88T-M-USB3 installed on a 128G 2,5" SSD disk, 8 GB RAM,CPU AMD Phenom II X6 1055T; Clonezilla as backup method.

    RAID mirror with two WDC WD20EARS 1TB for personal data.

  • Hi,

    i solved few mins ago; checking on the router i noted that after rebooting with clonezilla it takes same static ip address of OMV but with hostname "debian"; by starting an ssh session with hostname connection worked fine.

    OK, so for this would you just enter:


    ssh user@omvhostname and password: live?


    Thanks,

    Nick.

    I ride bikes a long way.
    longbikejourney.com


    omv 7.7.17-1 (Sandworm) | Linux 6.12.43+deb12-amd64 | Intel(R) Xeon(R) CPU E3-1220 V2 @ 3.10GHz | Dell PowerEdge R210 16GB RAM

  • Yes Nick. It works in this way.;)

    OMV 5.5.20-1(Usul); OMVExtrasorg 5.4.2;

    Debian GNU/Linux 10 (buster):kernel Linux 5.9.0-0.bpo.2-amd64 x64 on a ASUS M4A88T-M-USB3 installed on a 128G 2,5" SSD disk, 8 GB RAM,CPU AMD Phenom II X6 1055T; Clonezilla as backup method.

    RAID mirror with two WDC WD20EARS 1TB for personal data.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!