https://bugzilla.novell.com/show_bug.cgi?id=669055 https://bugzilla.novell.com/show_bug.cgi?id=669055#c0 Summary: Virtual Box's DHCP Server fails with Internal Network adapter setting for VMs Classification: Internal Novell Products Product: openSUSE Build Service Version: master Platform: i686 OS/Version: openSUSE 11.3 Status: NEW Severity: Normal Priority: P5 - None Component: build process AssignedTo: mls@novell.com ReportedBy: cshorler@googlemail.com QAContact: adrian@novell.com Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-GB; rv:1.9.2.13) Gecko/20101203 SUSE/3.6.13-0.2.1 Firefox/3.6.13 - Virtual Box 4.0.2 (From Factory or Build Service), this may also happen with v3 as included with openSUSE 11.3 - I haven't tested that. - VM based on openSUSE 11.3 (although I doubt that makes any difference given the nature of the problem). Reproducible: Always Steps to Reproduce: To reproduce: - Use VBoxManage to set up a DHCPServer for "intnet" (this is essential) (I used private range 10.0.0.2 - 10.0.0.254, ip of DHCP 10.0.0.1, netmask/24) - Create a VM (I used an image I have on SUSE Studio) - Ensure the VM is configured to Internal Network (intnet), not NAT - Start the VM and configure the guest OS for DHCP Actual Results: DHCPCD never acquires an IP. Cause / Solution: Look at the running processes on the host - the IPC is failing for the DHCP Server and the guest is not getting it's DHCP allocated IP. The problem is due to wrong permissions of the binary that is launched via IPC. The VBoxSVC starts VBoxNetDHCP which promptly becomes a zombie! If you browse the source code to src/VBox/NetworkServices/DHCP you'll find the cause of the problem. Because we are compiling with 'Hardened security' this binary (VBoxNetDHCP) needs to be SetUID (Similar to some of the other binarys). The reason it works when the adapter is set to NAT is because the implementation code is called directly from a binary that is SetUID in that case. I've tested setting the permissions to 4750 and it seems to work. Also, I think that /etc/permissions.easy and secure would need amending so chkconfig would work correctly if run in set mode. I haven't investigated a patch yet, but looking at the spec file it looks as if some comments can be removed to fix part of the problem and editing /etc/permissions.xxxx and running chkconfig/suseconfig should fix the rest? Note: - There are quite a lot of comments on permissions in the spec file, they don't appear to concern this file (I only looked briefly). Expected Results: Virtual Box DHCP Server works with VMs set to Internal Network. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.