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

    fun fact ? create a VDI in an ISO SR is possible

    Scheduled Pinned Locked Moved Infrastructure as Code
    1 Posts 1 Posters 113 Views 1 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.
    • P Offline
      Pilow
      last edited by Pilow

      Hi,

      We stumbled upon what I would call a lack of check.. or a bug ?

      You can create a VDI of a VM in an ISO shared SR...
      We did it unexpectedly.

      .rpc("disk.create", {
                  name,
                  size,
                  sr,
                  vm: vm.id,
                  bootable: false,
                  mode: "RW",
              })
      
      disk.create name=<string> size=<integer|string> sr=<string> [vm=<string>] [bootable=<boolean>] [mode=<string>] [position=<string>]
        create a new disk on a SR
      

      this is permitted, it should not ?

      it was a 50Gb CIFS ISO SR, and we could create a 100GB VDI, appearing as a 100GB .img file in the SR 😛
      69b097b3-9c28-4b97-982a-34443a199bf1-image.png
      58d0ca02-d1be-4d49-a4bd-c90f3f4fe463-image.png

      totally broken UI
      7ff52851-90b6-4845-90cd-f5190feabcbc-image.png

      in DISK tab of the VM :
      62f582ab-afa7-4c29-bbd6-e83b1a73fab5-image.png

      and it is really an ISO SR !
      66fb75a7-f783-4809-ace9-e83e20722ebd-image.png

      should this not be prevented ?

      1 Reply Last reply Reply Quote 0

      Hello! It looks like you're interested in this conversation, but you don't have an account yet.

      Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

      With your input, this post could be even better 💗

      Register Login
      • First post
        Last post