For those of you who don't know virtualbox, it is a free(libre) virtualization software which can run virtual machines on windows, linux, Mac OS/X, ... you can learn about it or even download it on its home page. I typically use it when I'm forced to run Windows and I usually do it locally but today I had to explore its remote side, accessing to it via remote desktop, this are simply a couple of notes I took.
Start, headless, poweroff or save the virtual machine:
vboxheadless -s vMachineName
vboxmanage controlvm vMachineName acpipowerbutton
vboxmanage controlvm vMachineName savestate
Control the rdp server (activate/deactivate/bind to localhost):
vboxmanage controlvm vMachineName vrde off
vboxmanage modifyvm vMachineName --vrdeaddress 127.0.0.1
Connect usb devices (list/connect):
vboxmanage controlvm vMachineName usbattach e13dc60f-4f3d-4e82-8a80-c05fca2e8
Connect through ssh to the server exporting the rdp port and then connect to the remote desktop:
rdesktop -k es localhost
I have stopped using the extension packs as we now have all I need on the standard free Debian setup, great :-)
I'm using vnc instead of rdp whenever I need to access remotely to the virtual machine.
For this I followed http://www.virtualbox.org/manual/ch09.html#otherextpacks
VBoxManage setproperty vrdeextpack VNC
VBoxManage modifyvm "VM name" --vrdeproperty VNCPassword=secret
It is working well for me.
Oh, BTW, the VNC server is launched on the 3389 port like if it was RDP.
Also there seem to be some problems with the young VNC plugin like crashes or that port seems to be listening after issuing a vboxmanage controlvm MachineName vrde off, ...
To avoid all this all I do is enable the vrde when the machine is not yet running (in saved state it works ok), then run the virtual machine and then save/powerOff and disable the vrde.
Publicar un comentario