XCP-ng
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Clonezilla not recognising network adaptor

    Scheduled Pinned Locked Moved Compute
    14 Posts 7 Posters 4.5k Views 6 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A Offline
      Andrew Top contributor @fred974
      last edited by

      @fred974 said in Clonezilla not recognising network adaptor:

      clonezilla-live-3.0.0-15-amd64.iso

      What network adaptor do you have set? Try using the Intel e1000.

      It works for me.... I booted the same ISO and it sees the network adaptor and is able to get an IP address.

      F 1 Reply Last reply Reply Quote 0
      • F Offline
        fred974 @Andrew
        last edited by

        @Andrew We have a Dell PowerEdge C6320 and I believe they are Onboard Intel X520 10Gbps Dual Port Network Card so I cannot change them. I have no issue with the NIC card on any of my VM (windows, redhad,debian). My guess is that clonezilla doesn't have the correct driver built in. Is that possible? I cannot figure out how to move my physical server to xcp-ng. I am now looking at saving the clonezilla image to external HDD but that's really not what I wanted. I have another 3 desktop to do.

        F 1 Reply Last reply Reply Quote 0
        • F Offline
          fred974 @fred974
          last edited by

          I was using the debian version of clonezilla. I just tried with the ubuntu version and I get this:

          a4c7406c-c447-4fe4-a3b2-7d9f5c18df46-image.png
          2409a054-2917-4afc-8807-357ea6420bfa-image.png

          Same problem with both version 😞

          F 1 Reply Last reply Reply Quote 0
          • F Offline
            fred974 @fred974
            last edited by

            Could anyone else please offer any more advice?

            Thank yiu

            A 1 Reply Last reply Reply Quote 0
            • A Offline
              abufrejoval Top contributor @fred974
              last edited by

              @fred974

              On the virtual machine advanced attributes tab you can chose between a RealTek RTL8139 and an Intel e1000 (both virtual devices) NIC. It defaults to RealTek and the suggestion is to change it to the Intel one and retry booting the VM.

              The NIC on the host (X520) does not matter at all for this operation.

              It's been awhile, but I can confirm that moving images between (in my case) oVirt and Xcp-ng VMs via Clonezilla works just fine.

              Also did it between VMware and Xcp-ng btw.

              F 1 Reply Last reply Reply Quote 1
              • F Offline
                fred974 @abufrejoval
                last edited by

                @abufrejoval said in Clonezilla not recognising network adaptor:

                @fred974

                On the virtual machine advanced attributes tab you can chose between a RealTek RTL8139 and an Intel e1000 (both virtual devices) NIC. It defaults to RealTek and the suggestion is to change it to the Intel one and retry booting the VM.

                The NIC on the host (X520) does not matter at all for this operation.

                It's been awhile, but I can confirm that moving images between (in my case) oVirt and Xcp-ng VMs via Clonezilla works just fine.

                Also did it between VMware and Xcp-ng btw.

                I tried it and couldn't get it to work. I created a new vm with windows 10 template and it worked then. 🙂

                A fohdeeshaF 2 Replies Last reply Reply Quote 0
                • A Offline
                  abufrejoval Top contributor @fred974
                  last edited by

                  @fred974
                  Nice to hear!

                  Yes, not having a template or using a wrong one seems to be an issue for Xcp-ng, when really it should be nothing but an easier way to set presets.

                  I guess one of these days I'll simply have to investigate what's in them and how difficult it would be to create your own.

                  Clonezilla has failed me on machines with the more complicated LVM and thin-allocation setups e.g. when trying to virtualize physical machines. But when it comes to cloning VMs between hypervisors it pays off that I tend to keep these simply and have the hypervisor deal with sparsity and overcommit.

                  Clonzilla certainly has helped me out a lot of times and I'm really glad they maintain it.

                  1 Reply Last reply Reply Quote 0
                  • olivierlambertO Offline
                    olivierlambert Vates 🪐 Co-Founder CEO
                    last edited by

                    I remember a discussion about this in the past, but I don't remember where 🤔 It was due to a specific parameter in W10 template that you do not have in other Linux templates.

                    1 Reply Last reply Reply Quote 1
                    • fohdeeshaF Offline
                      fohdeesha Vates 🪐 Pro Support Team @fred974
                      last edited by fohdeesha

                      @fred974 I think you definitely have your templates or something else mixed up, Clonezilla works great out of the box running as a VM under XCP-ng, using any Ubuntu or Debian VM template. In fact, you should be able to use any linux template when creating a VM. To double check, I just downloaded both clonezilla stable live ISO (debian based) and clonezilla live stable alternative (the ubuntu build), and both boot fine and have working network adapters out of the box, using either debian VM templates or ubuntu VM templates (doesn't matter).

                      In fact, the issue Olivier is remembering is that clonezilla does not work out of the box when booted under a Windows 10 template, because windows 10 templates present platform:device_id=0002 to the guest OS, and QEMU combined with some linux OS's get confused by this (understandably, the ID is for windows), and it breaks the display. So a customer that was trying to boot clonezilla under windows 10 templated VMs had garbled display output until he used xe to change platform:device_id=0002 to platform:device_id=0001 which is what linux templates use.

                      The fact that you're reporting your clonezilla actually works fine under windows templates, but not linux templates, tells me some wires are crossed somewhere - it could be the ISO you're using, the templates you're using or choosing from, or your XCP-ng install. Is your XCP-ng fully up to date? if so, have you rebooted it since applying updates? We also had some strange issues with customers applying updates recently but then not rebooting as advised, this left QEMU in a weird state until it was finally rebooted that I suppose could cause this issue. For reference, here is how I'm creating clonezilla templates that work right out of the box (note the template, ISO name, and boot mode: bios):

                      6f08a57d-94d2-44da-a6fa-cc52de17064f-clonezilla.png

                      fohdeeshaF 1 Reply Last reply Reply Quote 0
                      • fohdeeshaF Offline
                        fohdeesha Vates 🪐 Pro Support Team @fohdeesha
                        last edited by fohdeesha

                        I also just noticed you were using the v3 testing version of clonezilla, not stable. I just tested that as well just in case and as expected it works out of the box - Clonezilla at its core is just trimmed down ubuntu or debian, and the xen PV device drivers are built directly into the kernel for both of these, so it's incredibly unlikely they would ever not be present. Screenshot from clonezilla live testing (same ISO you stated in your original post):

                        4a651d8f-514b-416b-872c-b7d5a1fe5914-image.png

                        1 Reply Last reply Reply Quote 0
                        • M Offline
                          MarkusRS
                          last edited by MarkusRS

                          Re: Clonezilla not recognising network adaptor

                          Windows/GUI user here, so please forgive me if I am not an linux expert.

                          I just encountered this problem was well when trying to clone a Windows VM because multiple ESXi migration attempts within XOA was not working for Windows VMs for me (No bootable device Ticket#7718434) ... On a side note migrating Linux VMs from ESXi to XCP-NG worked, but only if you didn't have a snapshot on VMware, otherwised it failed for me too.

                          Back to the original problem: I tried with clonezilla-live-3.1.0-22-amd64.iso (debian based) which did not even boot.
                          Then I tried with the alternate stable clonezilla-live-20230426-lunar-amd64.iso one (ubuntu based). There I was able to boot, but never had a network device, like in the screenshot of the original poster. Changing to e1000 in advanced settings didn't help either.

                          It might seem unlogical but the solution was that you have to create a Linux based templated (in my case I used Ubuntu 22 template) within XOA to create a new VM and then you will have a network adapter in clonezilla and you can then migrate the Windows VM.

                          Note that - in my case when I tried - cloning only worked one disk at a time, choosing the same disk on the source and on the destination, otherwise it will not work (clonezilla will not start the cloning). After the cloning you can restart the cloning process (without rebooting) and choose the second disk. Also important: the destination disk needs to be at least the same size or bigger than the source disk (even if it is not filled up on the OS level)

                          I also uninstalled vmware tools on the old windows VM and installed the citrix tools on the old VM before the migration, but I don't know if this was necessary.

                          After some trial and error I even figured out how to use the xe command. If you already made a Windows template, you could SSH into the XCP-NG host and use this exact command to change it to linux:

                          xe vm-param-set uuid=<copy-UUID-from_XOA> platform:device_id=0001

                          and then the network device will appear in clonezilla even after using a Windows based template!!! I however didn't keep on going with this aproach, since my Ubuntu based template windows machine was working fine. Now I am booting Windows with the Ubuntu template, don't ask my why this works, I'm just happy that after about 8 migration attempts this one finally worked 🙂

                          However if you used the command I guess you should probably change it back to
                          xe vm-param-set uuid=<copy-UUID-from_XOA> platform:device_id=0002
                          after the cloning has finished.

                          I hope this is useful to others and will save them some time 🙂

                          1 Reply Last reply Reply Quote 0
                          • olivierlambertO Offline
                            olivierlambert Vates 🪐 Co-Founder CEO
                            last edited by

                            Hi,

                            It's a bug in Clonezilla sadly 😞

                            1 Reply Last reply Reply Quote 1
                            • GheppyG Offline
                              Gheppy
                              last edited by Gheppy

                              Just create a VM with a linux template (any linux, I use Rocky Linux 9) and mount (attach) the VHD in it, the VHD from the VM you want to backup.
                              Clonzilla will go very well.
                              Don't forget to choose KVM, otherwise you won't have video.
                              The problem is with windows templates, it doesn't matter which version.
                              After the backup finish, disconnect the VHD from the VM with linux template and start the VM with windows template

                              1 Reply Last reply Reply Quote 1
                              • First post
                                Last post