Menu

#178 Cannot boot from a cloned Linux with KVM

open
nobody
None
1
2024-05-31
2024-04-25
No

I was trying to boot the system replacing the system disk with the newly made clone (using Clonezilla ver. 3.1.2-9-amd64) - and it failed miserably taking me into the emergency mode. The system Is Rocky Linux (which serves as a KVM-based virtual host for a secondary OS). I would like to understand what could go wrong and whether I need to do any changes to that clone in order to make it bootable - and how to make those changes.

Related

Support Requests: #178

Discussion

  • Mike Faynberg

    Mike Faynberg - 2024-04-30

    I would also like to add one more symptom (looks strange to me at least). When I insert the clone disk while the system is running - being booted from the source disk - the system does not even see it. Should it be like this?
    Thank you!

     
  • Steven Shiau

    Steven Shiau - 2024-05-05

    Have you tried the latest one, e.g., 3.1.2-22 or 20240408-noble:
    https://clonezilla.org/downloads.php

    BTW, maybe you can try update the initrd using the Rocky Linux rescue disk to do that. Just google "rocky linux rescue disk" and you should find some info.

    Steven

     
    • Mike Faynberg

      Mike Faynberg - 2024-05-11

      Hi Steven,

      Thank you for your assistance, but it still seems like the clone is unusable... I cannot make it bootable - and the problem is I cannot find any information for how to resolve the problem despite that it is certainly the most frequently used procedure.
      I downloaded the latest clonezilla, which created a clone disk seemingly OK, but the symptom persisted. I am attaching the screenshots I made in the rescue mode for the clone and - the similar - for the source system. I cannot find any differences there.
      Could you please help me to find out a reliably working cloning routine so that the clone drive would become functional as soon as this routine gets executed?

      Thank you in advance,

      Mike Faynberg
      Senior Software Engineer

      [cid:image001.jpg@01DAA2E0.D8DC6F30]
      HSQ Tech Inc.
      26227 Research Road
      Hayward CA. 94545
      Phone: 510-259-1334
      Phone: 510-259-3733 (Direct)
      Cell: 408-621-6856
      Email: faynberg@hsq.comfaynberg@hsq.com

      http://www.hsq.comhttp://www.hsq.com/
      http://railworks.com/

      "Privileged/Confidential Information of HSQ Technology may be contained in this message. If you are not the addressee of this message, you may not copy, use, or deliver this message to anyone. In such an event, you should destroy the message and kindly notify the sender by reply e-mail. It is understood that opinions or conclusions that do not relate to the official business of HSQ Technology are neither given nor endorsed by HSQ Technology".

      From: support-requests@clonezilla.p.re.sourceforge.net support-requests@clonezilla.p.re.sourceforge.net On Behalf Of Steven Shiau
      Sent: Saturday, May 4, 2024 11:20 PM
      To: [clonezilla:support-requests] 178@support-requests.clonezilla.p.re.sourceforge.net
      Subject: [clonezilla:support-requests] #178 Cannot boot from a cloned Linux with KVM

      Have you tried the latest one, e.g., 3.1.2-22 or 20240408-noble:
      https://clonezilla.org/downloads.php

      BTW, maybe you can try update the initrd using the Rocky Linux rescue disk to do that. Just google "rocky linux rescue disk" and you should find some info.

      Steven


      [support-requests:#178]https://sourceforge.net/p/clonezilla/support-requests/178/ Cannot boot from a cloned Linux with KVM

      Status: open
      Group: clonezilla live stable
      Created: Thu Apr 25, 2024 07:27 PM UTC by Mike Faynberg
      Last Updated: Tue Apr 30, 2024 05:58 PM UTC
      Owner: nobody

      I was trying to boot the system replacing the system disk with the newly made clone (using Clonezilla ver. 3.1.2-9-amd64) - and it failed miserably taking me into the emergency mode. The system Is Rocky Linux (which serves as a KVM-based virtual host for a secondary OS). I would like to understand what could go wrong and whether I need to do any changes to that clone in order to make it bootable - and how to make those changes.


      Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/clonezilla/support-requests/178/

      To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/

       

      Related

      Support Requests: #178

    • Mike Faynberg

      Mike Faynberg - 2024-05-17

      Hello Steven,

      I am so sorry to bother you - however I am in the state of disaster right now and desperately need your help.

      The thing is that while I was looking for a way to create a bootable / working clone of my Linux system, my7 primary (and only!) hard drive suddenly died on me - being used for just about 8 months (!). Anyway I am left with the clone, which would not boot and I have no idea what can I do about it. What I noticed is that despite the original system contained the following set of disks/partitions:

      [cid:image002.png@01DAA837.806F0CC0]

      When I load into the emergency mode and issue the lsblk command the result is as follows:

      [cid:image003.png@01DAA837.806F0CC0]

      That is there is no home partition... and this is what the journal also reports. However I believe the cloning copied everything.

      I cannot overestimate how grateful I will be if you help me restoring my disk!

      Thank you in advance,

      Mike Faynberg
      Senior Software Engineer

      [cid:image001.jpg@01DAA835.7E094240]
      HSQ Tech Inc.
      26227 Research Road
      Hayward CA. 94545
      Phone: 510-259-1334
      Phone: 510-259-3733 (Direct)
      Cell: 408-621-6856
      Email: faynberg@hsq.comfaynberg@hsq.com

      http://www.hsq.comhttp://www.hsq.com/
      http://railworks.com/

      "Privileged/Confidential Information of HSQ Technology may be contained in this message. If you are not the addressee of this message, you may not copy, use, or deliver this message to anyone. In such an event, you should destroy the message and kindly notify the sender by reply e-mail. It is understood that opinions or conclusions that do not relate to the official business of HSQ Technology are neither given nor endorsed by HSQ Technology".

      From: support-requests@clonezilla.p.re.sourceforge.net support-requests@clonezilla.p.re.sourceforge.net On Behalf Of Steven Shiau
      Sent: Saturday, May 4, 2024 11:20 PM
      To: [clonezilla:support-requests] 178@support-requests.clonezilla.p.re.sourceforge.net
      Subject: [clonezilla:support-requests] #178 Cannot boot from a cloned Linux with KVM

      Have you tried the latest one, e.g., 3.1.2-22 or 20240408-noble:
      https://clonezilla.org/downloads.php

      BTW, maybe you can try update the initrd using the Rocky Linux rescue disk to do that. Just google "rocky linux rescue disk" and you should find some info.

      Steven


      [support-requests:#178]https://sourceforge.net/p/clonezilla/support-requests/178/ Cannot boot from a cloned Linux with KVM

      Status: open
      Group: clonezilla live stable
      Created: Thu Apr 25, 2024 07:27 PM UTC by Mike Faynberg
      Last Updated: Tue Apr 30, 2024 05:58 PM UTC
      Owner: nobody

      I was trying to boot the system replacing the system disk with the newly made clone (using Clonezilla ver. 3.1.2-9-amd64) - and it failed miserably taking me into the emergency mode. The system Is Rocky Linux (which serves as a KVM-based virtual host for a secondary OS). I would like to understand what could go wrong and whether I need to do any changes to that clone in order to make it bootable - and how to make those changes.


      Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/clonezilla/support-requests/178/

      To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/

       

      Related

      Support Requests: #178

  • Steven Shiau

    Steven Shiau - 2024-05-17

    I am currently traveling, so I will be online sometimes.
    Your case looks like is only the booting issue since you mentioned your system entered rescue mode. As I mentioned, have you used Rocky Linux rescue mode to recreate the initrd?
    It should be something like:
    https://www.cjcheema.com/2019/06/17/how-to-recover-or-rebuild-initramfs-in-centos-7-linux/

    Steven

     
    • Mike Faynberg

      Mike Faynberg - 2024-05-18

      Hi Steven,

      Thank you for your response - I am so sorry messing up with your travel. It is just that I left without the system that contained the results of 8-months effort...
      In fact, I have rebuilt initrams - and it did not change anything. The symptoms stay exactly the same.

      Best regards,

      Mike Faynberg
      Senior Software Engineer

      [cid:image001.jpg@01DAA873.0FFCEBB0]
      HSQ Tech Inc.
      26227 Research Road
      Hayward CA. 94545
      Phone: 510-259-1334
      Phone: 510-259-3733 (Direct)
      Cell: 408-621-6856
      Email: faynberg@hsq.comfaynberg@hsq.com

      http://www.hsq.comhttp://www.hsq.com/
      http://railworks.com/

      "Privileged/Confidential Information of HSQ Technology may be contained in this message. If you are not the addressee of this message, you may not copy, use, or deliver this message to anyone. In such an event, you should destroy the message and kindly notify the sender by reply e-mail. It is understood that opinions or conclusions that do not relate to the official business of HSQ Technology are neither given nor endorsed by HSQ Technology".

      From: support-requests@clonezilla.p.re.sourceforge.net support-requests@clonezilla.p.re.sourceforge.net On Behalf Of Steven Shiau
      Sent: Friday, May 17, 2024 2:36 PM
      To: [clonezilla:support-requests] 178@support-requests.clonezilla.p.re.sourceforge.net
      Subject: [clonezilla:support-requests] #178 Cannot boot from a cloned Linux with KVM

      I am currently traveling, so I will be online sometimes.
      Your case looks like is only the booting issue since you mentioned your system entered rescue mode. As I mentioned, have you used Rocky Linux rescue mode to recreate the initrd?
      It should be something like:
      https://www.cjcheema.com/2019/06/17/how-to-recover-or-rebuild-initramfs-in-centos-7-linux/

      Steven


      [support-requests:#178]https://sourceforge.net/p/clonezilla/support-requests/178/ Cannot boot from a cloned Linux with KVM

      Status: open
      Group: clonezilla live stable
      Created: Thu Apr 25, 2024 07:27 PM UTC by Mike Faynberg
      Last Updated: Sun May 05, 2024 06:19 AM UTC
      Owner: nobody

      I was trying to boot the system replacing the system disk with the newly made clone (using Clonezilla ver. 3.1.2-9-amd64) - and it failed miserably taking me into the emergency mode. The system Is Rocky Linux (which serves as a KVM-based virtual host for a secondary OS). I would like to understand what could go wrong and whether I need to do any changes to that clone in order to make it bootable - and how to make those changes.


      Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/clonezilla/support-requests/178/

      To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/

       

      Related

      Support Requests: #178

  • Steven Shiau

    Steven Shiau - 2024-05-18

    Did ou try to mount the device you have? If the cloning finished, and the cloned OS failed to boot, it's only a matter of booting issue. Your data still exist and you should be able to mount and copy them.
    BTW, you have two posts, and I suggest you focus on one of them.

    Steven

     
    • Mike Faynberg

      Mike Faynberg - 2024-05-21

      Hi Steven,

      And thank you once again for your support.

      I really believe that the data is there and can somehow be retrieved. However when I try booting I do not see the partition, which is supposed to be there – and that is the largest partition on the disk (about 940GB out of the total 1TB). Now even it was there, I have no idea how to retrieve the data from the virtual machine storage… I really hope you would be able helping me to make the drive bootable – so that I will have it functional.

      Now regarding your idea restoring it on the other type of software. What would be achieved that way – sorry for my ignorance ☹ As far as I understood you, the whole image will be restored onto another hypervisor thus becoming a VM itself. But so what? I will still need to boot/run the Linux and then my VM on the top… but if Linux does not want booting on the bare metal why would it boot as a VM?

      Best regards,

      Mike Faynberg
      Senior Software Engineer

      [cid:image001.jpg@01DAAAC3.79672B40]
      HSQ Tech Inc.
      26227 Research Road
      Hayward CA. 94545
      Phone: 510-259-1334
      Phone: 510-259-3733 (Direct)
      Cell: 408-621-6856
      Email: faynberg@hsq.comfaynberg@hsq.com

      http://www.hsq.comhttp://www.hsq.com/
      http://railworks.com/

       

      Last edit: Steven Shiau 2024-05-31
  • Steven Shiau

    Steven Shiau - 2024-05-20

    So any progress there?
    It occurred to me that maybe you can try to restore the image to a VM on different type of software, e.g., virtualbox or VMWare workstation.

    Steven

     
  • Steven Shiau

    Steven Shiau - 2024-05-21

    From the photo you posted (https://sourceforge.net/p/clonezilla/support-requests/_discuss/thread/c7f8a3e25d/71fe/9f73/attachment/RescueMode_2024-05-07.PNG), it seems your data are in /dev/sda2 and /dev/mapper/r100-root. Therefore you can mount them and copy files.
    As for restoring the image to another type of VM, well, it might let you boot and enter the system you have restored.

    Steven

     
    • Mike Faynberg

      Mike Faynberg - 2024-05-24

      Hi Steven,
      Thank you for your response. Finally I got my hands on the server. I booted it from the Clonezilla live flash drive, chose the shell option, and then:

      1. Issued the lsblk command, which displayed as follows:

      [cid:image001.png@01DAADE0.22CDE790]

      1. Created a mount point and tried mounting the most important to me sda 3 partition. The result was like:

      [cid:image003.png@01DAADE0.51492A80]

      That is the question: does it all mean the Clonezilla has some problems with LVM? What would you recommend doing with all that now?

      Best regards,

      Mike Faynberg
      Senior Software Engineer

      [cid:image002.jpg@01DAADE0.22CDE790]
      HSQ Tech Inc.
      26227 Research Road
      Hayward CA. 94545
      Phone: 510-259-1334
      Phone: 510-259-3733 (Direct)
      Cell: 408-621-6856
      Email: faynberg@hsq.comfaynberg@hsq.com

      http://www.hsq.comhttp://www.hsq.com/
      http://railworks.com/

       

      Last edit: Steven Shiau 2024-05-31
  • Steven Shiau

    Steven Shiau - 2024-05-31

    No, the way you mount LV is not really correct.
    You can try:
    1. sudo -i
    2. ocs-lvm2-start
    3. lvscan
    With the results, you should be able to find the LV device name, say, it's /dev/r100/root, then you can :
    mount /dev/r100/root /mnt
    Your files should be in /mnt/ now.

    Steven

     

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.