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

    XCP-NG VHD boot

    Scheduled Pinned Locked Moved Backup
    10 Posts 2 Posters 599 Views 2 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.
    • S Offline
      Synoptic
      last edited by

      Re: Three questions from new user

      Hi!
      Now I'm trying to boot XCP-NG with Ventoy from fixed size VHD image on NTFS partition. I installed XCP-NG host on Virtualbox, next I run vtoyboot.sh script provided by Ventoy in XCP-NG console and it finishes successfully fig.1 . Then I shut down the Virtualbox VM, copy VHD containing XCP-NG installation to NTFS Ventoy USB drive, boot from it, choose in Ventoy menu XCP-NG.vhd.vtoy entry - it starts the boot process but it drops me to dracut fig.2.
      Also I've managed to boot a Debian installation from VHD file without Ventoy using hooks and scripts from this guide (in Russian)
      But XCP-NG doesn't catch "update-initramfs -c -k all" and its filesystem does not contain such folders\files which supposed to be uisng this guide.
      Could someone help?

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

        Hi,

        Can you be more specific on what do you want to achieve? 🤔 (functionally speaking)

        S 1 Reply Last reply Reply Quote 0
        • S Offline
          Synoptic @olivierlambert
          last edited by

          @olivierlambert I'm trying to boot XCP-NG from an IMAGE file. It is not mandatory to be VHD or any other specific format. I'm gonna keep all my data on separate physical storage, but the whole system (including partitioning and formatting) should able to boot from a single file.

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

            But, why? What's the purpose? It's hard to assist without understand what do you want to achieve in the end 🙂

            S 1 Reply Last reply Reply Quote 0
            • S Offline
              Synoptic @olivierlambert
              last edited by

              @olivierlambert the purpose is to have the opportunity to boot from a single file. That's enough.

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

                Without the why (global context), I would advise to use the network boot solution (even with an answer file) for an automated install. But maybe it's not what you want, since you don't want to tell the reason, I'm still having hard time to put you on the right track.

                S 1 Reply Last reply Reply Quote 0
                • S Offline
                  Synoptic @olivierlambert
                  last edited by

                  @olivierlambert What would you do if the drive which contains XCP-NG setup fails? You have to reinstall the whole system because your XCP-NG installation refuses to boot if you just plug the drive containing it to another PC just for making backup. As a new user I'd like to have FRESH_SETUP.vhd and several CLONES.vhd of it for experiments. If it fails I just rename the BACKUP.vhd and boot into the fresh system. I don't wanna make useless snapshots losing time to taking them and applying. I want to backup the whole system with CTRL+C and CTRL-V as I do for Windows and Linux installations.
                  Now I'm trying to install this git into my XCP-NG https://github.com/NyaMisty/dracut-vdfuseloop to make it possible to mount and boot VHDs. There is the list of requirements.
                  I successfully installed so far:
                  yum install fuse
                  yum --enablerepo=epel install ntfs-3g
                  yum install git
                  git clone https://github.com/Thorsten-Sick/vdfuse.git
                  git clone https://github.com/NyaMisty/dracut-vdfuse-loop.git
                  Assuming losetup module is present how could I install fuse and loop kernel modules?

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

                    But... why not making metadata backup of the host and then re-import the metadata if your XCP-ng system disk dies? 🤔

                    S 1 Reply Last reply Reply Quote 0
                    • S Offline
                      Synoptic @olivierlambert
                      last edited by

                      @olivierlambert I didn't google what metadata backup is, but if re-import of it requires just plug a brand new drive and copy&paste it into - it meets my requirements. But I feel it's not that simple.

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

                        It is very simple. Whatever happens to your system, you can re-import your previous metadata on a fresh system and everything will be back on track as it were before the issue.

                        1 Reply Last reply Reply Quote 0
                        • olivierlambertO olivierlambert moved this topic from Something else on
                        • First post
                          Last post