English | Lietuviškai




This forum is dedicated to discussing issues related to the use and development of the Peropesis Linux operating system.

VBox CLI script questions

by sskras, Wednesday, November 23, 2022, 22:54 (3 days ago)

This is continuation from the thread Thoughts about importing a package manager.

Quoting the script:

print - Configuring a Virtual Network Adapter
VBoxManage modifyvm OracleLinux6Test --nic1 bridged --bridgeadapter1 eth0

On my machine this prints following:

- Configuring a Virtual Network Adapter
VBoxManage.exe: error: Could not find a registered machine named 'OracleLinux6Test'
VBoxManage.exe: error: Details: code VBOX_E_OBJECT_NOT_FOUND (0x80bb0001), component VirtualBoxWrap, interface IVirtualBox, callee IUnknown
VBoxManage.exe: error: Context: "FindMachine(Bstr(a->argv[0]).raw(), machine.asOutParam())" at line 547 of file VBoxManageModifyVM.cpp

I think this needs some cleanup.

VBox CLI script questions

by g, Thursday, November 24, 2022, 11:12 (3 days ago) @ sskras

in this line the VirtualBox machine name should be variable '${VM_NAME}', as specified at the beginning of the script 'VM_NAME="SuperMachine"', instead 'OracleLinux6Test'. The machine name 'OracleLinux6Test' came from useful article about Controlling VirtualBox from the Command Line. So this line can stay after edited? I edited it.

VBox CLI script questions

by sskras, Thursday, November 24, 2022, 12:03 (3 days ago) @ g

Sure, please go ahead. This version of the script is driven by you. :)

BTW, I took an inspiration from your changes to generalize my script too. So it can be driven by command arguments, like:

$ vbox.sh SuperMachine Linux_64 https://peropesis.org/peropesis/Peropesis-1.8-live.iso

If I come up with something handy, I'll leave a shout here. Already did some fixes (to coloring/highlighting). Cheers!

Copyright © 2021 - 2022 Peropesis. See license terms.
E-mail: info(at)peropesis.org