NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

install/49892: sysinst can not configure DHCP in a paravirtualized interface vioif0



>Number:         49892
>Category:       install
>Synopsis:       sysinst can not configure DHCP in a paravirtualized interface vioif0
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    install-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon May 11 00:35:00 +0000 2015
>Originator:     Vicente Chaves
>Release:        NetBSD 7.0_BETA
>Organization:
>Environment:
System: NetBSD netbsd7.st3tailor.net 7.0_BETA NetBSD 7.0_BETA (XEN3_DOM0) #1: Thu May 7 13:55:23 BRT 2015 vchaves%netbsd7.st3tailor.net@localhost:/home/vchaves/netbsd-7/obj/sys/a
rch/amd64/compile/XEN3_DOM0 amd64
>Description:
During the installation of the NetBSD7 in a Xen domU HVM with paravirtualized network card (virtio-net) the sysinst displays error if we choose yes to "Perform DHCP autoconfiguration?"

This prevents the information from being saved in /etc files.

Apparently the ifconfig command located in sysinst's file net.c:858 effectively removes the IP address previously configured by DHCP

# ifconfig vioif0
vioif0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        address: 00:16:3e:4c:bb:32
        inet6 fe80::d320:f370:cd8e:f846%vioif0 prefixlen 64 scopeid 0x1


>How-To-Repeat:
netbsd7# xl console netbsd7
:-(Welcome to the NetBSD 7.0_BETA installation CD
===============================================================================

ACPI (Advanced Configuration and Power Interface) should work on all modern
and legacy hardware.  However if you do encounter a problem while booting,
try disabling it and report a bug at http://www.NetBSD.org/.
>
> boot
command(s): boot netbsd
14184880+654264+595016 [1024704+717260]=0x1162e60
Loading /stand/amd64/7.0/modules/cd9660/cd9660.kmod
Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
    2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014
    The NetBSD Foundation, Inc.  All rights reserved.
Copyright (c) 1982, 1986, 1989, 1991, 1993
    The Regents of the University of California.  All rights reserved.

NetBSD 7.0_BETA (GENERIC) #3: Thu May  7 13:55:11 BRT 2015
        vchaves%netbsd7.st3tailor.net@localhost:/home/vchaves/netbsd-7/obj/sys/arch/amd64/compile/GENERIC
total memory = 479 MB
avail memory = 447 MB
kern.module.path=/stand/amd64/7.0/modules
mainbus0 (root)
ACPI: RSDP 0xea020 000024 (v02    Xen)
ACPI: XSDT 0xfc00ff60 000054 (v01    Xen      HVM 00000000 HVML 00000000)
ACPI: FACP 0xfc00fc20 0000F4 (v04    Xen      HVM 00000000 HVML 00000000)
ACPI: DSDT 0xfc003fa0 00BBF6 (v02    Xen      HVM 00000000 INTL 20131218)
ACPI: FACS 0xfc003f60 000040
ACPI: APIC 0xfc00fd20 0000D8 (v02    Xen      HVM 00000000 HVML 00000000)
ACPI: HPET 0xfc00fe70 000038 (v01    Xen      HVM 00000000 HVML 00000000)
ACPI: WAET 0xfc00feb0 000028 (v01    Xen      HVM 00000000 HVML 00000000)
ACPI: SSDT 0xfc00fee0 000031 (v02    Xen      HVM 00000000 INTL 20131218)
ACPI: SSDT 0xfc00ff20 000031 (v02    Xen      HVM 00000000 INTL 20131218)
ACPI: All ACPI Tables successfully acquired
cpu0 at mainbus0 apid 0: Intel(R) Xeon(R) CPU           X3320  @ 2.50GHz, id 0x10677
cpu1 at mainbus0 apid 2: Intel(R) Xeon(R) CPU           X3320  @ 2.50GHz, id 0x10677
ioapic0 at mainbus0 apid 1
acpi0 at mainbus0: Intel ACPICA 20131218
hpet0 at acpi0: high precision event timer (mem 0xfed00000-0xfed00400)
MEM0 (PNP0C02) at acpi0 not configured
SYSR (PNP0C02) at acpi0 not configured
attimer1 at acpi0 (TMR, PNP0100): io 0x40-0x43 irq 0
pcppi1 at acpi0 (SPKR, PNP0800): io 0x61
midi0 at pcppi1: PC speaker
sysbeep0 at pcppi1
pckbc1 at acpi0 (PS2M, PNP0F13) (aux port): irq 12
pckbc2 at acpi0 (PS2K, PNP0303) (kbd port): io 0x60,0x64 irq 1
FDC0 (PNP0700) at acpi0 not configured
UAR1 (PNP0501) at acpi0 not configured
LTP1 (PNP0400) at acpi0 not configured
HP0 (PNP0C02) at acpi0 not configured
ACPI: Enabled 2 GPEs in block 00 to 0F
ACPI Exception: AE_NOT_FOUND, While evaluating Sleep State [\_S0_] (20131218/hwxface-646)
ACPI Exception: AE_NOT_FOUND, While evaluating Sleep State [\_S1_] (20131218/hwxface-646)
ACPI Exception: AE_NOT_FOUND, While evaluating Sleep State [\_S2_] (20131218/hwxface-646)
attimer1: attached to pcppi1
pckbd0 at pckbc2 (kbd slot)
pckbc2: using irq 1 for kbd slot
wskbd0 at pckbd0 mux 1
pms0 at pckbc2 (aux slot)
pckbc2: using irq 12 for aux slot
wsmouse0 at pms0 mux 0
pci0 at mainbus0 bus 0: configuration mode 1
pchb0 at pci0 dev 0 function 0: vendor 0x8086 product 0x1237 (rev. 0x02)
pcib0 at pci0 dev 1 function 0: vendor 0x8086 product 0x7000 (rev. 0x00)
piixide0 at pci0 dev 1 function 1: Intel 82371SB IDE Interface (PIIX3) (rev. 0x00)
piixide0: primary channel interrupting at ioapic0 pin 14
atabus0 at piixide0 channel 0
piixide0: secondary channel interrupting at ioapic0 pin 15
atabus1 at piixide0 channel 1
uhci0 at pci0 dev 1 function 2: vendor 0x8086 product 0x7020 (rev. 0x01)
uhci0: interrupting at ioapic0 pin 23
usb0 at uhci0: USB revision 1.0
piixpm0 at pci0 dev 1 function 3: vendor 0x8086 product 0x7113 (rev. 0x01)
piixpm0: 24-bit timer
piixpm0: SMBus disabled
vga0 at pci0 dev 2 function 0: vendor 0x1234 product 0x1111 (rev. 0x00)
wsdisplay0 at vga0 kbdmux 1
drm at vga0 not configured
vendor 0x5853 product 0x0001 (undefined, subclass 0x80, revision 0x01) at pci0 dev 3 function 0 not configured
virtio0 at pci0 dev 4 function 0
virtio0: Virtio Network Device (rev. 0x00)
vioif0 at virtio0: Ethernet address 00:16:3e:4c:bb:32
virtio0: interrupting at ioapic0 pin 32
isa0 at pcib0
lpt0 at isa0 port 0x378-0x37b irq 7
com0 at isa0 port 0x3f8-0x3ff irq 4: ns16550a, working fifo
com0: console
fdc0 at isa0 port 0x3f0-0x3f7 irq 6 drq 2
acpicpu0 at cpu0: ACPI CPU
acpicpu1 at cpu1: ACPI CPU
uhub0 at usb0: vendor 0x8086 UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhidev0 at uhub0 port 2 configuration 1 interface 0
uhidev0: QEMU 0.10.2 QEMU USB Tablet, rev 1.00/0.00, addr 2, iclass 3/1
ums0 at uhidev0: 3 buttons and Z dir
wsmouse1 at ums0 mux 0
atapibus0 at atabus0: 2 targets
cd0 at atapibus0 drive 0: <QEMU DVD-ROM, QM00001, 0.10.2> cdrom removable
wd0 at atabus1 drive 0
wd0: <QEMU HARDDISK>
wd0: 6400 MB, 13003 cyl, 16 head, 63 sec, 512 bytes/sect x 13107200 sectors
pad0: outputs: 44100Hz, 16-bit, stereo
audio0 at pad0: half duplex, playback, capture
boot device: cd0
root on cd0a dumps on cd0b
root file system type: cd9660
warning: no /dev/console


You are using a serial console, we do not know your terminal emulation.
Please select one, typical values are:

        vt100
        ansi
        xterm

Terminal type (just hit ENTER for 'vt220'):

 On which disk do you want to install NetBSD?


                        &#9484;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9488;
                        &#9474; Available disks              &#9474;
                        &#9474;                              &#9474;
                        &#9474;>a: wd0 (6.3G, QEMU HARDDISK) &#9474;
                        &#9474; b: Extended partitioning     &#9474;
                        &#9474; x: Exit                      &#9474;
                        &#9492;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9496;

 Please enter a name for your NetBSD disk [QEMU HARDDISK  ]:

 Setting up the DOS partition table ...
     Status: Finished
    Command: disklabel -w -r -f /tmp/disktab wd0 'QEMU HARDDISK  '

--------------------------------------------------------------------------------
     Status: Finished
    Command: /sbin/newfs -V2 -O 2 -b 16384 -f 2048 /dev/rwd0a

--------------------------------------------------------------------------------
/dev/rwd0a: 5919.5MB (12123216 sectors) block size 16384, fragment size 2048
using 33 cylinder groups of 179.39MB, 11481 blks, 22272 inodes.
...............................................................................

 Installing boot blocks on wd0....
     Status: Finished
 The NetBSD distribution is broken into a collection of distribution sets.     d
eThere are some basic sets that are needed by all installations and there are
 some other sets that are optional.  You may choose to install a core set
-(Minimal installation), all of them (Full installation), or a custom group of -
 sets (Custom installation).






                        &#9484;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9488;
                        &#9474; Select your distribution    &#9474;
                        &#9474;                             &#9474;
                        &#9474; a: Full installation        &#9474;
                        &#9474; b: Installation without X11 &#9474;
                        &#9474;>c: Minimal installation     &#9474;
                        &#9474; d: Custom installation      &#9474;
                        &#9474; x: Abandon installation     &#9474;
                        &#9492;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9496;

     Status: Finished
 Your disk is now ready for installing the kernel and the distribution sets.   d
eAs noted in your INSTALL notes, you have several options.  For ftp or nfs,
 you must be connected to a network with access to the proper machines.
-                                                                              -
 Sets selected 4, processed 0, Next set kern-GENERIC.

                   &#9484;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9488;
                   &#9474; Install from                          &#9474;
                   &#9474;                                       &#9474;
                   &#9474;>a: CD-ROM / DVD / install image media &#9474;
                   &#9474; b: FTP                                &#9474;
                   &#9474; c: HTTP                               &#9474;
                   &#9474; d: NFS                                &#9474;
                   &#9474; e: Floppy                             &#9474;
                   &#9474; f: Unmounted fs                       &#9474;
                   &#9474; g: Local directory                    &#9474;
                   &#9474; h: Skip set                           &#9474;
                   &#9474; i: Skip set group                     &#9474;
                   &#9474; j: Abandon installation               &#9474;
                   &#9492;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9496;
     Status: Finished
    Command: progress -zf /amd64/binary/sets/kern-GENERIC.tgz tar --chroot -xhep
f -

--------------------------------------------------------------------------------
100% |***********************************| 17360 KiB   53.43 MiB/s    00:00 ETA
     Status: Finished
    Command: progress -zf /amd64/binary/sets/modules.tgz tar --chroot -xhepf -

--------------------------------------------------------------------------------
100% |***********************************| 20670 KiB   53.03 MiB/s    00:00 ETA
     Status: Finished
    Command: progress -zf /amd64/binary/sets/base.tgz tar --chroot -xhepf -

--------------------------------------------------------------------------------
100% |***********************************|   153 MiB   44.48 MiB/s    00:00 ETA
     Status: Finished
    Command: progress -zf /amd64/binary/sets/etc.tgz tar --chroot -xhepf -

--------------------------------------------------------------------------------
100% |***********************************|  3690 KiB   27.26 MiB/s    00:00 ETA

 All selected distribution sets unpacked successfully.

 Making device nodes ...
     Status: Finished
    Command: /etc/rc.d/random_seed stop

--------------------------------------------------------------------------------
Saved entropy to /var/db/entropy-file.

 The extraction of the selected sets for NetBSD-7.0_BETA is complete.  The
 system is now able to boot from the selected hard disk.  To complete the
 installation, sysinst will give you the opportunity to configure some
 essential things first.





                           &#9484;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9488;
                           &#9474;>Hit enter to continue &#9474;
                           &#9492;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9496;

 The extraction of the selected sets for NetBSD-7.0_BETA is complete.  The
 system is now able to boot from the selected hard disk.  To complete the
 installation, sysinst will give you the opportunity to configure some
 essential things first.





                           &#9484;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9488;
                           &#9474;>Hit enter to continue &#9474;
                           &#9492;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9496;

 To be able to use the network, we need answers to the following:

 Network media type:






                     &#9484;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9488;
                     &#9474; Perform DHCP autoconfiguration?    &#9474;
                     &#9474;                                    &#9474;
                     &#9474;>a: Yes                             &#9474;
                     &#9474; b: No                              &#9474;
                     &#9492;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9496;
     Status: Finished
    Command: /sbin/dhcpcd -d -n vioif0

--------------------------------------------------------------------------------
dhcpcd[218]: vioif0: offered 10.0.1.6 from 10.0.0.1
dhcpcd[218]: vioif0: sending REQUEST (xid 0x406181fa), next in 4.2 seconds
dhcpcd[218]: vioif0: acknowledged 10.0.1.6 from 10.0.0.1
dhcpcd[218]: vioif0: probing for 10.0.1.6
dhcpcd[218]: vioif0: ARP probing 10.0.1.6 (1 of 3), next in 1.9 seconds
dhcpcd[218]: vioif0: ARP probing 10.0.1.6 (2 of 3), next in 1.1 seconds
dhcpcd[218]: vioif0: sending Router Solicitation
dhcpcd[218]: vioif0: ARP probing 10.0.1.6 (3 of 3), next in 2.0 seconds
dhcpcd[218]: vioif0: leased 10.0.1.6 for 604800 seconds
dhcpcd[218]: vioif0: renew in 302400 seconds, rebind in 529200 seconds
dhcpcd[218]: vioif0: writing lease `/var/db/dhcpcd-vioif0.lease'
dhcpcd[218]: vioif0: adding IP address 10.0.1.6/8
dhcpcd[218]: vioif0: adding host route to 10.0.1.6 via 127.0.0.1
dhcpcd[218]: vioif0: if_addroute: Network is unreachable
dhcpcd[218]: vioif0: adding route to 10.0.0.0/8
dhcpcd[218]: vioif0: adding default route via 10.0.0.1
dhcpcd[218]: vioif0: executing `/libexec/dhcpcd-run-hooks' BOUND
dhcpcd[218]: forking to background
dhcpcd[218]: forked to background, child pid 205

 The following are the values you entered.

 DNS Domain:             xen.lab
 Host Name:              netbsd7
 Primary Interface:      vioif0
 Host IP:                10.0.1.6
 Netmask:                255.0.0.0
 IPv4 Nameserver:        10.0.0.1
 IPv4 Gateway:           10.0.0.1
 Media type:             <default>
 IPv6 autoconf:          no
 IPv6 Nameserver:        <none>
                              &#9484;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9488;
                              &#9474; Are they OK?    &#9474;
                              &#9474;                 &#9474;
                              &#9474;>a: Yes          &#9474;
                              &#9474; b: No           &#9474;
                              &#9492;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9496;
     Status: Finished
    Command: /sbin/route -n flush -inet

--------------------------------------------------------------------------------
     Status: Command failed
    Command: /sbin/route -n add default 10.0.0.1

     Hit enter to continue
--------------------------------------------------------------------------------
route: writing to routing socket: Network is unreachable
add net default: gateway 10.0.0.1
: Network is unreachable














 Waiting while network interface comes up.
     Status: Command failed
    Command: /sbin/ping -v -c 5 -w 5 -o -n 10.0.0.1

     Hit enter to continue
--------------------------------------------------------------------------------
PING 10.0.0.1
 (10.0.0.1): 56 data bytes
ping: sendto: No route to host
ping: sendto: No route to host
ping: sendto: No route to host
ping: sendto: No route to host
ping: sendto: No route to host

----10.0.0.1
 PING Statistics----
5 packets transmitted, 0 packets received, 100.0% packet loss

 Configure the additional items as needed.


>a: Configure network                                  configure
 b: Timezone                                           UTC
 c: Root shell                                         /bin/sh
 d: Change root password                               ***EMPTY***
 e: Enable installation of binary packages             install
 f: Fetch and unpack pkgsrc for building from source   install
 g: Enable sshd                                        NO
 h: Enable ntpd                                        NO
 i: Run ntpdate at boot                                NO
 j: Enable mdnsd                                       NO
 k: Enable xdm                                         NO
 l: Enable cgd                                         YES
 m: Enable lvm                                         NO
 n: Enable raidframe                                   YES
 o: Add a user
 x: Finished configuring
>Fix:



Home | Main Index | Thread Index | Old Index