Reputation: 808
When starting a virtual machine from the command line on a remote computer via
VBoxManage startvm "vm_name" --type headless
, is there a way to collect the output of the guest operating system on start up? The ultimate goal is to handle and manipulate the vm from a bash shell or python script, but some information that is printed out during start up is needed for that.
Upvotes: 0
Views: 1340
Reputation: 365
On the virtual machine, edit your boot options and add console=ttyS0 console=tty0 ignore_loglevel
From there, you should be able to tail the file you specified in the Serial Port section.
Source: http://techvolve.blogspot.com/2013/11/how-to-redirect-linux-guest-output-of.html
Upvotes: 1