Would I then run the command again & type something like this?"C:\Program Files\Oracle\VirtualBox\VBoxHeadless.exe" --startvm Ubuntu
Or would I somehow concatenate it into one line?VBoxManage modifyvm "Ubuntu" --natpf1 "guestssh,tcp,,2222,,22"
Would I then run the command again & type something like this?"C:\Program Files\Oracle\VirtualBox\VBoxHeadless.exe" --startvm Ubuntu
Or would I somehow concatenate it into one line?VBoxManage modifyvm "Ubuntu" --natpf1 "guestssh,tcp,,2222,,22"
Is a command to modify the guest and saves the information to the guest.xml or guest.vbox depending on your version and only needs to be run once (per guest).VBoxManage modifyvm "Ubuntu" --natpf1 "guestssh,tcp,,2222,,22"
Code: Select all
"C:\Program Files\Oracle\VirtualBox\VBoxManage.exe" --modifyvm "Ubuntu" --natpf1 "GuestFTP,tcp,,2121,,21"
"C:\Program Files\Oracle\VirtualBox\VBoxManage.exe" --modifyvm "Ubuntu" --natpf1 "GuestSSH,tcp,,2222,,22"
"C:\Program Files\Oracle\VirtualBox\VBoxManage.exe" --modifyvm "Ubuntu" --natpf1 "GuestTelnet,tcp,,22323,,23"
"C:\Program Files\Oracle\VirtualBox\VBoxManage.exe" --modifyvm "Ubuntu" --natpf1 "GuestSMTP,tcp,,2525,,25"Hmm, so I tried a few things. I did rename them to 1,2,3,4,etc. I also realized that the "--" before modifyvm was incorrect. However even when the command prompt was accepting the command, it still didn't work. Finally, I realized that the version of Virtualbox I have does have a GUI for this! So it was easy enough then & now it works. I do still wonder why it didn't work with the command line though. Thanks for the help!Perryg wrote:Did you try giving the forwards their own number?
natpf1,natpf2,natpf3,natpf4 instead of all of them trying to use the same name?