[Feature Request] URL option in Create VM dialog box

Discussion in 'Proxmox VE: Installation and configuration' started by ShiftCTRL, May 2, 2019.

  1. ShiftCTRL

    ShiftCTRL New Member

    Joined:
    Apr 14, 2018
    Messages:
    6
    Likes Received:
    1
    @proxmox Dev,

    First and foremost to every contributor - Thank You!
    I genuinely believe proxmox has so much potential to evolve into the AWS-of-tomorrow, that I'm sticking with it for all my projects, I digress.

    To the point. I have a relatively simple Feature Request which would allow the user to enter a URL in the Create VM dialog box shown below.

    [​IMG]

    It would basically simply parse the input for URLs and download it in to the proper folder if it's an ISO or any other acceptable file type.

    The current "ISO image" field name may be renamed to reflect the change "ISO image/url" possibly.

    BASH Script:
    Below you'll find a really simple script I wrote to basically do this from the CLI.

    I have this function running in my .zshrc file so I may call it as needed.
    The script tests for if the URL provided is accessible and an .iso file. If so, the file will be downloaded in to the templates iso folder. You can check your local storage and it should show up there.

    Code:
    #!/bin/bash
    
    # Function to fetch an ISO from URL
    function get-iso () {
         if wget --spider -A .iso ${1}; then
             wget -A .iso ${1} -P /var/lib/vz/template/iso/;
         else
             echo "File does not exist";
         fi
    };
    
    # Un-comment the line below if using it as a script file.
    #get-iso "$1";
    
    Example: Calling the function from the CLI to download bionic server
    Code:
    $ get-iso http://releases.ubuntu.com/18.04.2/ubuntu-18.04.2-live-server-amd64.iso
    
     
    #1 ShiftCTRL, May 2, 2019
    Last edited: May 2, 2019
  2. Stoiko Ivanov

    Stoiko Ivanov Proxmox Staff Member
    Staff Member

    Joined:
    May 2, 2018
    Messages:
    1,198
    Likes Received:
    102
    Please open an enhancement request at https://bugzilla.proxmox.com (having the discussion there makes it easier for us to track the requests and thus it's more likely to get implemented)

    Thanks!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. alexskysilk

    alexskysilk Active Member

    Joined:
    Oct 16, 2015
    Messages:
    555
    Likes Received:
    58
    or better yet, just have a remote image option. will file an enhancement request.
     
  4. ShiftCTRL

    ShiftCTRL New Member

    Joined:
    Apr 14, 2018
    Messages:
    6
    Likes Received:
    1

    Thanks for the tip, I'll do that right away.

    I was searching for a Features Request topic though wasn't able to find one, hence why I posted it here.
    Hopefully the script may help someone someday if nothing else.
     
  5. ShiftCTRL

    ShiftCTRL New Member

    Joined:
    Apr 14, 2018
    Messages:
    6
    Likes Received:
    1
    I don't believe your request is mutually exclusive.

    If by "remote image" you mean to say that a file is hosted elsewhere and depending on a stable network connection to create the machine, I'm not sure how that would help anyone. If your objective is to free up space, you can easily add a "delete iso after completion" option. The full image should be on your disk prior to creation.

    Or maybe I'm not understanding your point.
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice