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 24 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 Online
      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
      • First post
        Last post