English | Lietuviškai

Info


Communication


PEROPESIS FORUM

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 ⌂, Lithuania, Wednesday, November 23, 2022, 22:54 (752 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 (751 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 ⌂, Lithuania, Thursday, November 24, 2022, 12:03 (751 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!

VBox CLI script questions

by g, Wednesday, December 07, 2022, 12:07 (738 days ago) @ sskras
edited by g, Wednesday, December 07, 2022, 12:54

Location of the shell script on the web server: https://peropesis.org/peropesis/boot-peropesis.sh
and location of this script in the user manual: Peropesis live booting by using virtual machine, VirtualBox (CLI) (at the very end of the chapter).


In the last version of the scenario, I deleted the option 'bridged networking option', because it requires specifying the exact name of the network interface used on the real computer. The interface name may vary from system to system. As a result, the user would receive an error message after downloading the script and trying to run it - then user should check the interface name and edit the script. I thought it would be simpler to leave the virtual network adapter configured on the machine by default.

VBox CLI script questions

by sskras ⌂, Lithuania, Friday, April 28, 2023, 09:46 (596 days ago) @ g

Thanks. My life road was quite bumpy for the last few months, so I haven't tested this yet. Looking forward to check it.


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