clone not getting ip from vbox dhcp [SOLVED]
Posted: 5. Jun 2013, 18:12
here is the situation:
I am using an Ubuntu 12.04 host and guest vm headless set up. there is no DHCP on my router so the host is a static ip. I have vbox 4.2.12 and extensions installed as well as one vm called student working. I cloned this vm and named the new one student1 using "VBoxManage clonevm student --name student2 --register". when I start the clone student1 I can use it via vrdp but there is no network access. I ran ifconfig and there is no ip assigned. I looked at /etc/network/interfaces and eth0 is set to use DHCP and looks the same as the original I cloned it from. could someone please tell me when i clone a vm with this setup i'm using what needs to be changed on the clone for it to get an ip from vbox's DHCP and allow me to set unique forwarding rules for it.
more details:
i started the clone without the original running in case there was a conflict with ip being assigned but i get the same results. i have ssh forwarding rule set up for this clone using "VBoxManage modifyvm "student1" --natpf1 "guestssh,tcp,,60001,,22"" and the port is open on my router to forward this request to host. the host has student1 started and vrde is listening on custom port 40001. i can connect via rdp fine but the ssh forwarding rule is not connecting. i assume because vbox DHCP has not assigned an ip as previously stated so it can't forward the ssh request. i need NAT and DHCP on the vm's nic so i can set forwarding rules and get unique ip's for each clone i make. where am i going wrong?
xtra question:
does the clonevm command i gave above create it's own copy of the originals .vdi or does it just use the same .vdi because i need each machine to use it's own hard drive?
I am using an Ubuntu 12.04 host and guest vm headless set up. there is no DHCP on my router so the host is a static ip. I have vbox 4.2.12 and extensions installed as well as one vm called student working. I cloned this vm and named the new one student1 using "VBoxManage clonevm student --name student2 --register". when I start the clone student1 I can use it via vrdp but there is no network access. I ran ifconfig and there is no ip assigned. I looked at /etc/network/interfaces and eth0 is set to use DHCP and looks the same as the original I cloned it from. could someone please tell me when i clone a vm with this setup i'm using what needs to be changed on the clone for it to get an ip from vbox's DHCP and allow me to set unique forwarding rules for it.
more details:
i started the clone without the original running in case there was a conflict with ip being assigned but i get the same results. i have ssh forwarding rule set up for this clone using "VBoxManage modifyvm "student1" --natpf1 "guestssh,tcp,,60001,,22"" and the port is open on my router to forward this request to host. the host has student1 started and vrde is listening on custom port 40001. i can connect via rdp fine but the ssh forwarding rule is not connecting. i assume because vbox DHCP has not assigned an ip as previously stated so it can't forward the ssh request. i need NAT and DHCP on the vm's nic so i can set forwarding rules and get unique ip's for each clone i make. where am i going wrong?
xtra question:
does the clonevm command i gave above create it's own copy of the originals .vdi or does it just use the same .vdi because i need each machine to use it's own hard drive?