Ticket #10122 (closed defect: invalid)
ModifyVM --natpf does not work as documented in the manual, GUI works fine though
|Reported by:||wadkar||Owned by:|
|Version:||VirtualBox 4.1.8||Keywords:||VBoxManage, modifyvm, natpf|
I have a simple setup with Ubuntu 11.04 Desktop as host and Ubuntu 11.10 CLI-minmal as guest. There is one eth0 on guest which is configured as NAT forwarded.
If I add port forwarding rules via the GUI, everything seems to be fine and the rules are in place. However, if I try to accomplish the same thing via CLI, I get following error:
$ VBoxManage modifyvm "Clibuntu" --natpf1 "guest7184,tcp,,7184,,7184" VBoxManage: error: The machine 'Clibuntu' is already locked for a session (or being unlocked) VBoxManage: error: Details: code VBOX_E_INVALID_OBJECT_STATE (0x80bb0007), component Machine, interface IMachine, callee nsISupports Context: "LockMachine(a->session, LockType_Write)" at line 367 of file VBoxManageModifyVM.cpp
The NAT engine must be working fine as the GUI works, looks like CLI syntax/params are wrong.