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

    XO to manage KVM?

    Scheduled Pinned Locked Moved Xen Orchestra
    27 Posts 7 Posters 10.5k 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.
    • B Offline
      Biggen @olivierlambert
      last edited by Biggen

      @olivierlambert Its still one machine the way I proposed it.

      One *nix machine running a SMB/NFS share as a file server. Same machine also runs a KVM instance for VMs. Its the way I've done virtualization forever until I started messing with xcp-ng.

      Actually, its still the way I'd do a massive file server. I don't think a 20TB file server needs virtualization. But that's my opinion.

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

        @Biggen I know, and you can do the same with XCP-ng if you like (installing NFS in the dom0).

        beagleB 1 Reply Last reply Reply Quote 0
        • beagleB Offline
          beagle @olivierlambert
          last edited by

          @olivierlambert said in XO to manage KVM?:

          Again, I don't see any problem to use disk controller passthrough for your filer, you won't lose any perfs and you'll have a good isolation.
          The rest of the available disks will be used as local storage for the other VMs.

          Could you please confirm whether is it the controller or the disks that need to be passthrough? If it's the controller it means you need 2 controllers in the server.

          @olivierlambert said in XO to manage KVM?:

          (installing NFS in the dom0).

          Apologies for my ignorance, because I never tried. Doesn't it create problems to update XCP-ng?

          @Biggen said in XO to manage KVM?:

          Actually, its still the way I'd do a massive file server. I don't think a 20TB file server needs virtualization. But that's my opinion.

          It depends on the use case. Sometimes it's easier to manage the applications isolated in VMs. Even the file level backup software can run in a VM and access the files via NFS share.

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

            1. Yes, if you do a PCI passthrough, you are passing the whole controller. Which shouldn't be a problem if you have a dedicated controller for your SAS disks (eg a LSI card) and the rest for local VM storage (eg your SATA disks, or NVMe drives). Alternatively, you could passthrough just the disks, but if you are thinking about a 20TiB filer, having a controller on a PCI card might have more sense.
            2. It's not creating problems per se, it won't be saved if you do an ISO upgrade, that's all.
            3. In your specific use case of "one machine to fits all", I would buy a LSI PCIe card and connect all disks on it, passthrough to the filer VM, problem solved.
            1 Reply Last reply Reply Quote 1
            • jtbw911J Offline
              jtbw911 @beagle
              last edited by jtbw911

              @beagle The simple answer here, which has been implied by others, is...

              You DO NOT, EVER, install other "services" on your hypervisor in a production environment - no matter what your cost, convenience, etc. "desires" are.

              That's just not how this is all supposed to work; and, any technical guy worth his job position will know right away to not only recommend against setting it up like that, but, will adamantly decline being "forced" to do so - consequences be damned.

              What is even worse, is you mentioned a 20 TB requirement for file server storage. There is literally only one solution for this...

              A DEDICATED file server - whether that be a VM with enough attached storage (VDIs using workarounds, iSCSI\NFS\SMB direct attached), or you build a back-end NAS system that either passes off the data directly, or utilizes a front-end file server "proxy".

              You also claim a need for high-performance - this automatically dismisses any "cheap" solution that aligns with some of your concepts above. Do it right...the first time.

              There is a huge difference between "finding a creative solution" and "ignorantly (intentionally or not) pursuing an unrealistic and ill-advised idea".

              1 Reply Last reply Reply Quote 1
              • J Offline
                jmccoy555
                last edited by

                https://www.ebay.co.uk/ulk/itm/132562388180

                Flash it into IT mode and problem solved in 30mins for £20 and you get the best of both worlds; XCP-ng and FreeNAS 😀

                Is SMAPIv3 needed for reliable individual disk passthrough? I always thought that this ended in desaster?? Waiting patiently so I can play with Ceph......

                1 Reply Last reply Reply Quote 0
                • G Offline
                  GreenUkr
                  last edited by

                  I think, solution you are looking for is direct disk access. It's possible. I use it for my file server VM (FreeNAS) with five 4TB wd red drives (zfs). Passthrough entire PCI storage card is better, but even cheap server motherboards have 6 sata channels (one for dom0 ssd, and five for file server storage). 😉
                  This is my example (and my UUIDs)


                  mkdir /srv/direct-sata_sr
                  xe sr-create name-label=”Direct SATA SR” name-description=”SATA links to passthrough direct to VMs” type=udev content-type=disk device-config:location=/srv/direct-sata_sr

                  New UUID generated on sr creation
                  ba9b124c-c5ac-2c0b-7b1f-014d9cezzzzz

                  ln -s /dev/disk/by-id/<disk id> /srv/direct-sata_sr/<disk id>

                  ln -s /dev/disk/by-id/ata-WDC_WD5000BEVT-26A0RT0_WD-WXE1A10V7603 /srv/direct-sata_sr/ata-WDC_WD5000BEVT-26A0RT0_WD-WXE1A10V7603

                  xe sr-scan uuid=ba9b124c-c5ac-2c0b-7b1f-014d9cezzzzz
                  xe vdi-list sr-uuid=ba9b124c-c5ac-2c0b-7b1f-014d9cezzzzz


                  Good luck.

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