How to use prlctl to connect an existing .hdd file?

Discussion in 'Installation and Configuration' started by BradC4, Mar 27, 2018.

Tags:
  1. BradC4

    BradC4 Bit Poster

    Messages:
    4
    I have an existing .hdd file from a previous .pvm that I want to connect to a newly generated .pvm using prlctl
    I have one directory: oldharddrive.hdd

    This is what I've done so far:
    $ prlctl create newvm --ostype macos --no-hdd
    This works great.
    Now what I want is to connect oldharddrive.hdd to newvm.pvm

    I know I can do this using the GUI but I want to use prlctl.
    I have a feeling that the command is something like the below:
    $ prlctl set --device-add hdd
    But there doesn't seem to be a mode that adds an existing .hdd file

    Thanks for a great product!
     
  2. mmika

    mmika Kilo Poster

    Messages:
    358
    This line should work.
    prlctl set $VM_ID --device-add hdd --image $PATH_TO_.hdd_DIR
    Please try on existed empty image first. Looks like this won't recreate hdd image at $PATH_TO_.hdd_DIR:)
     
  3. BradC4

    BradC4 Bit Poster

    Messages:
    4
    Works like a charm mmika!

    Thanks for the quick response!
     

Share This Page