LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices


Reply
  Search this Thread
Old 08-06-2018, 01:34 PM   #1
stah0121
LQ Newbie
 
Registered: Aug 2018
Location: Minnesota, USA
Distribution: Debian, Ubuntu
Posts: 2

Rep: Reputation: Disabled
Question DHCP replies not received by QEMU Deb9 guest during graphical install


Hey guys/gals,
I am brand new to this forum, and am still new to asking for help on forum platforms such as this. So any and all advice is appreciated.

The core problem I'm facing is that DHCP reply messages are not being received by the graphical installer that is setting up a Debian 9.5 QEMU guest VM over a bridge interface.
Here are some of the high level details....

Topology
Each node is connected with 1Gbps ethernet (so no wireless interfaces)

[router]---[switch1]---[switch2]---[host]

Host

Runs Ubuntu 16.04.5
1x 1Gbps NIC configured with dhcp for management activities (em1)
1x 1Gbps NIC configured as a bridge with a static IP address (br0 / eth1 slave)
Bridge connectivity tested successfully using SSH & ping from different host in same LAN network.
I am explicitly disabling spanning-tree-protocol in the interfaces file,
and brctl show command correctly displays my bridge with eth1 as the only interface.

Install Command
virt-install --name={guest-name} --vcpus=2 --memory=4096 --network bridge=br0
--cdrom={.iso-img-path} --disk size=20,path={diskimg-path} --os-variant=debian8
--graphics vnc,password={pass},listen=0.0.0.0 --noautoconsole

Observed behavior and troubleshooting so far
-> Debian 9 graphical installer reports a failure to autoconfigure the guests network interface for DHCP over the host bridge interface
-> command 'sudo tcpdump -i br0 | grep -i dhcp' (output below) only shows the requests being broadcasted, and no replies.
10:08:57.833669 IP 0.0.0.0.bootpc > 255.255.255.255.bootps: BOOTP/DHCP, Request from 52:54:00:8a:9e:69 (oui Unknown), length 300

I have a technical background but am unfamiliar with the low level details and how to troubleshoot DHCP properly.
Like I said before I am new to asking for help on these forums, any and all advice is appreciated.

Thanks!
 
Old 08-12-2018, 03:52 PM   #2
smaclennan
Member
 
Registered: May 2010
Location: Ottawa, Canada
Distribution: slackware
Posts: 37
Blog Entries: 2

Rep: Reputation: 13
Couple of ideas:

Firewall issue?

Do you have the routing setup correctly for the bridge?

Is libvirt starting dnsmasq? i.e. Who is providing dhcp?
 
Old 08-20-2018, 08:16 AM   #3
stah0121
LQ Newbie
 
Registered: Aug 2018
Location: Minnesota, USA
Distribution: Debian, Ubuntu
Posts: 2

Original Poster
Rep: Reputation: Disabled
SOLVED

Apologies for not seeing the previous reply.

So the next thing I tried was to use the MAC address in the DHCP Discover packets, and configure a static IP on my router GUI. This succeeded as it allowed me to get past the network configuration part of the installer, but it failed when I reached the point where I needed to configure the package manager by connecting to a mirror server.

Now ARP resolution IS something I am familiar with, and I found my ARP packets being sent out the bridge were not getting a reply, similar to the DHCP discover packets. When I inspected the packets from pinging the bridge interface from another host on the LAN I found the wrong MAC address in the source field for the reply. It turns out the Linux kernel treats an IP address as a "system object" in a loosely coupled system, so having multiple interfaces connected to the same network (192.168.1.0/24) won't guarantee which physical interface gets used for handling packets pertaining to a specific IP.

To resolve this, I just added every physical interface in the system to the bridge interface definition and everything is working now after reboot. Not my ideal setup, but it works, and DHCP works as expected.

Further info: https://lwn.net/Articles/45373/
 
Old 08-21-2018, 04:41 PM   #4
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,982

Rep: Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626
Thanks for the update and solution.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] qemu guest network Haythem Linux - Virtualization and Cloud 3 09-02-2012 11:18 AM
QEMU Guest having no internet Jeff91 Linux - Software 1 07-15-2011 09:33 PM
How does QEMU shuts down a Guest OS. alphy Linux - Virtualization and Cloud 25 06-13-2011 07:30 AM
[SOLVED] qemu ping guest os Squall90 Linux - Virtualization and Cloud 1 12-07-2010 08:31 AM
0 replies email not received today ... minrich LQ Suggestions & Feedback 11 12-04-2005 11:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud

All times are GMT -5. The time now is 06:20 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration