The path /Users/runner/work/fedora-coreos-vm/fedora-coreos-vm/next_just_a_test is a DVD ISO file. I would like to use it to boot up two VMs with VirtualBox.
How can I do it in an efficient way? (Preferably minimizing RAM memory and disk usage). I get an error message:
/usr/bin/sudo vboxmanage storagectl firstguest --name IDE Controller --add ide
/usr/bin/sudo vboxmanage storagectl secondguest --name IDE Controller --add ide
/usr/bin/sudo vboxmanage storageattach firstguest --storagectl IDE Controller --port 0 --device 0 --type dvddrive --mtype readonly --medium next_just_a_test
/usr/bin/sudo vboxmanage storageattach secondguest --storagectl IDE Controller --port 0 --device 0 --type dvddrive --mtype readonly --medium next_just_a_test
VBoxManage: error: Cannot register the DVD image '/Users/runner/work/fedora-coreos-vm/fedora-coreos-vm/next_just_a_test' {c93832a7-5b60-4ae5-99f3-ab799194d1ee} because a CD/DVD image '/Users/runner/work/fedora-coreos-vm/fedora-coreos-vm/next_just_a_test' with UUID {dd91eb2b-b2ea-4729-99ad-11204a39c6da} already exists
VBoxManage: error: Details: code NS_ERROR_INVALID_ARG (0x80070057), component VirtualBoxWrap, interface IVirtualBox, callee nsISupports
VBoxManage: error: Context: "OpenMedium(Bstr(pszFilenameOrUuid).raw(), enmDevType, enmAccessMode, fForceNewUuidOnOpen, pMedium.asOutParam())" at line 191 of file VBoxManageDisk.cpp
VBoxManage: error: Invalid UUID or filename "next_just_a_test"
Additional information: The host computer is running macOS 10.15.
vboxmanage
commands might be in different orders in my case. Thevboxmanage
commands are in order for the same VM though. I'm a bit confused as what is happening. Anyway, I tried a new approach where only the first/usr/bin/sudo vboxmanage storageattach ...
use the filepath. The second time I use the uuid that can be parsed out from the command/usr/bin/sudo vboxmanage list dvds
. It never failed after that. (I've only tried 3 times so far so it might be luck)sudo vboxmanage list dvds
) is the way to go.