[SOLVED] configure nat with port forwarding
Posted: 27. Apr 2014, 02:54
Hi,
I'm trying to setup a virtualbox on my linux Debian 7 host with also Debian 7 as guest. So far I've been able to install guest os but I'm having difficulties understanding and configuring NAT network between host and guest.
First of all my host does not show any "virtual networking device" like the one on my Win7 PC host and it confuses me a bit. When i type ifconfig -a it only shows eth0 and loopback devices no vboxnet0.
When I login on my guest I can see it has 10.0.2.15 but I can't ping it from host.
I have used fallowing commands to setup my guest:
Please give me at least some hint 
I'm trying to setup a virtualbox on my linux Debian 7 host with also Debian 7 as guest. So far I've been able to install guest os but I'm having difficulties understanding and configuring NAT network between host and guest.
First of all my host does not show any "virtual networking device" like the one on my Win7 PC host and it confuses me a bit. When i type ifconfig -a it only shows eth0 and loopback devices no vboxnet0.
When I login on my guest I can see it has 10.0.2.15 but I can't ping it from host.
I have used fallowing commands to setup my guest:
Code: Select all
VBoxManage createvm --name "guest" --register
VBoxManage modifyvm "guest" --memory
VBoxManage modifyvm "guest" --memory 6144 --acpi on --boot1 dvd
VBoxManage modifyvm "guest" --nic1 nat
VBoxManage modifyvm "guest" --ostype Debian
VBoxManage createhd --filename /home/guest/guest.vdi --size 150000
VBoxManage storagectl "guest" --name "IDE Controller" --add ide
VBoxManage storageattach "guest" --storagectl "IDE Controller" --port 0 --device 0 --type hdd --medium /home/guest/guest.vdi
VBoxManage storageattach "guest" --storagectl "IDE Controller" --port 1 --device 0 --type dvddrive --medium debian-7.4.0-amd64-netinst.iso
VBoxHeadless --startvm "guest" &