virtualbox (version 5.2) vm not booting and showing arp timeout
-
@sebastian-roth
i could not follow your instruction as command given by you “tcpdump -w /tmp/boot_issue.pcap arp” doesnt contain any x.x.x.x so i could not substitute it anywhere in command.i have captured packet with wireshark on vboxnet0 (ip - 192.168.1.2) which is as follows:
My fog server ip is 192.168.1.6 and from the image it is clear that my machine didnt send ARP request to for server but it sent ARP request to ip address of vboxnet0 interface.
my interfaces are as follows:
student@student-PC:~$ ifconfig
eno1 Link encap:Ethernet HWaddr a0:8c:fd:c0:4c:08
inet addr:192.168.1.6 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::a28c:fdff:fec0:4c08/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:163820 errors:0 dropped:0 overruns:0 frame:0
TX packets:178255 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:127818705 (127.8 MB) TX bytes:90926652 (90.9 MB)
Interrupt:16 Memory:d3100000-d3120000lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:187367 errors:0 dropped:0 overruns:0 frame:0
TX packets:187367 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:69347669 (69.3 MB) TX bytes:69347669 (69.3 MB)vboxnet0 Link encap:Ethernet HWaddr 0a:00:27:00:00:00
inet addr:192.168.1.2 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::800:27ff:fe00:0/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:232 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:30355 (30.3 KB) -
@vivek said in virtualbox (version 5.2) vm not booting and showing arp timeout:
i have installed dnsmasq (version 2.76)on the host ubuntu machine.
I must have overlooked this! Why do you use dnsmasq at all when you could do it all with isc-dhcp-server?
-
@sebastian-roth
Earlier i was getting the following error:Then i searched on net and i got suggestion that dnsmasq would solve the issue so i installed dnsmasq.
After your prompt i again stopped the dnsmasq then i again got the same screen mentioned above.
-
@vivek Ahh, now I see. Should have asked earlier. I thought there was a good reason to use dnsmasq. For you to understand: To PXE boot a client you need to add two things to the DHCP information offered to a client. That is, DHCP option 66 - next server and DHCP option 67 filename. A normal DHCP server like you have with config file
/etc/dhcp/dhcpd.conf
is able to provide both those options (and many more) to the client. But there are other DHCP servers or situations where you can’t add those options. They just hand out IPs to clients but no PXE information. In such a case you can add dnsmasq to your network which can act as a so called proxy DHCP, as well answering clients’ DHCP requests but only providing PXE information (not IP address information). Clients are usually able to combine the two DHCP answers and do PXE boot. But it can be a little tricky.So as it doesn’t seem you need dnsmasq, we better try to get your dhcp conf right to set you up. Seems like you were just missing the filename option. So please add back the
next-server 192.168.1.6;
line which I asked you to remove and just below that add another linefilename "undionly.kpxe";
. Save config, restart service and you should be booting to the FOG PXE menu. -
@sebastian-roth
Thank you very much for giving time to my problem.I have stopped dnsmasq then made the changes of next-server and filename in the dhcp conf file then restarted dhcp service.
then i go the following error:
file:///home/student/VirtualBox_fog_client_11_12_2017_09_14_26.pngI inspected the wireshark on vboxnet0 host only adapter interface of virutalbox:
It is clear that i m still getting dhcp offer from two ip address 192.168.16 (fog server) and 192.168.1.2 ( vboxnet0 interface ip address).
I am not getting why 192.168.1.2 is working as DHCP server.
Please suggest the problem.
-
@vivek Check this out: https://www.thomas-krenn.com/en/wiki/Network_Configuration_in_VirtualBox#Host-only_Networking
I haven’t used Host-Only much and therefore didn’t know that it does DHCP on it’s own. Not sure if it is possible to switch that off?!? If you can’t then I’d suggest switching off the normal isc-dhcp on your FOG server and installing dnsmasq there to be able to inject PXE information into the Host-Only DHCP information. That’s just an idea, haven’t tried this.
Or you could just use a bridged network interface. I do that on my machine. For that I manually create a virtual tap interface (
tunctl
command) and use that as bridge device. It’s very similar to host only but I am in charge of IP address and weather it’s DHCP or static IPs. -
@vivek Just looked at your pictures again. I kind of looks as if it properly points to 192.168.1.6 and also sends undionly.kpxe as filename. Maybe your TFTP server is down? Run
netstat -antup | grep ":69"
as root on your 192.168.1.6 machine and see what you get. -
Thanks a lot for ur suggestion.
I could get the virtualbox vm network booted when i changed the network from "host only adapter " to “bridged”.
-
@vivek said in virtualbox (version 5.2) vm not booting and showing arp timeout:
After booting from network I tried to deploy an windows image already created with FOG but it is showing following error:
What do you mean by “already created”? Did you upload an image before deploying? Just creating it in the web UI is not enough.
-
"already created " means that with the help of fog server installed on the same ubuntu machine (on which I want to network boot virtualbox VM) I had captured Image of a physical machine (windows7 ) and now I want to deploy Windows7 image captured from the physical machine to the Virtualbox VM.
When i deploy the image on network booted VM , i get the follwoing error:
file:///home/student/Pictures/VirtualBox_fog_client_12_12_2017_15_12_37.png
-
@vivek Is this image set to resizable or non-resizable? Was this setting changed between capture and restore?
What disk size has your physical machine and what size has you VM disk?
I’ll mark this solved as the initial question is being answered. Please open a new thread on further issues in the imaging process. It’s better to not mix up many questions in one thread!
-
thank you . I will open a new thread and You can mark it as closed.