No networking with cd46.iso on qemu?

2010-04-28 Thread Uwe Dippel

Trying to install a virtual OpenBSD on OpenBSD 4.6 on amd64, I did:

# env ETHER=em0 qemu -net nic,model=rtl8139 -net tap -m 32 -monitor stdio 
-no-fd-bootchk -hda virtual.img \
-cdrom cd46.iso -boot d

as described in 
http://www.openbsd.org/cgi-bin/cvsweb/ports/emulators/qemu/files/README.OpenBSD?rev=1.5;content-type=text%2Fx-cvsweb-markup
It does start the install, everything, but I can't seem to get any network connection. dhcp times out. 
I restarted, and tried the usual qemu 10.0.2.0/24 as fixed addresses (and given in that site); but no fun.
Restarted again and set some addresses of the network in which the host runs, 192.168.1.0/24. At least, I could ping the (real) gateway of the host, 
and even an outside server holding the installation files. Strange enough, though, the ftp to get the .tgz closes immediately 
with some 'connection refused', though I can ping it from the guest-to-be installed, as well as ftp to it from the host.

I used qemu on Knoppix before, and it always offered dhcp out of the box.

Where is my mistake?

Uwe



Re: No networking with cd46.iso on qemu?

2010-04-28 Thread Bryan
On Wed, Apr 28, 2010 at 08:03, Uwe Dippel udip...@uniten.edu.my wrote:
 Trying to install a virtual OpenBSD on OpenBSD 4.6 on amd64, I did:

 # env ETHER=em0 qemu -net nic,model=rtl8139 -net tap -m 32 -monitor stdio
 -no-fd-bootchk -hda virtual.img \
 -cdrom cd46.iso -boot d

try it without the -net switches in...  I'm using qemu thusly:

qemu -m 128 -monitor stdio -no-fd-bootchk -hda openbsd-vm1.qcow


works fine for me...



Re: No networking with cd46.iso on qemu?

2010-04-28 Thread Robert

Uwe Dippel wrote:

Trying to install a virtual OpenBSD on OpenBSD 4.6 on amd64, I did:

# env ETHER=em0 qemu -net nic,model=rtl8139 -net tap -m 32 -monitor 
stdio -no-fd-bootchk -hda virtual.img \

-cdrom cd46.iso -boot d


I start qemu instances like this:

qemu -no-fd-bootchk -hda 1hda.img -m 512 -usb -usbdevice tablet -boot c 
-net nic,macaddr=12:34:56:78:90:01 -net tap -name qemu1 -vnc :0


qemu -no-fd-bootchk -hda 2hda.img -m 512 -usb -usbdevice tablet -boot c 
-net nic,macaddr=12:34:56:78:90:02 -net tap -name qemu2 -vnc :1



The scripts /etc/qemu-ifdown and -ifup (included in the qemu package) 
are automatically executed when qemu is run to manage a bridge and add 
the tap devices to it.


Works nicely.


kind regards,
Robert



Re: No networking with cd46.iso on qemu?

2010-04-28 Thread Uwe Dippel

Rares Aioanei wrote:

On 04/28/2010 04:03 PM, Uwe Dippel wrote:
  

Trying to install a virtual OpenBSD on OpenBSD 4.6 on amd64, I did:

# env ETHER=em0 qemu -net nic,model=rtl8139 -net tap -m 32 -monitor 
stdio -no-fd-bootchk -hda virtual.img \

-cdrom cd46.iso -boot d

as described in 
http://www.openbsd.org/cgi-bin/cvsweb/ports/emulators/qemu/files/README.OpenBSD?rev=1.5;content-type=text%2Fx-cvsweb-markup 



You're not mistaking, Realtek is. Stay away from them, virtual or not,
and try the other NICs qemu has to offer. It will work.
  

No, sorry. All the same. No dhcp (dhclient) ever.
I tried pcnet, ne2k_pci, i82551 (the latter segfaults, see below).
What I did:

# env ETHER=bge0 qemu -net nic,model=ne2k_pci -net tap -m 32 -monitor 
stdio -no-fd-bootchk -hda virtual.img \

-cdrom cd46.iso -boot d

I guess there is something wrong with that 'ether' thing. I had tried 
em0 as written in that OpenBSD cvsweb, but then it works even less. I 
see no em0 coming up, only the pcn0 (pcnet), ne3 (ne2k_pci), fxp0 
(i82551); no vlan, tun. Just lo and that respective network card.


I always boot cd46.iso and go to (S)hell immediately, and do the network 
setting, first trying dhcp, then manually. All dhclient {pcn0| ne3} time 
out. All manual settings fail to connect to ftp, as well.


dhclient fxp0 segfaults qemu reproducably:
# env ETHER=bge0 qemu -net nic,model=i82551 -net tap -m 32 -monitor 
stdio -no-
 -cdrom cd46.iso -boot 
d 
{tun0 (bridge0 - bge0)}

QEMU 0.9.1 monitor - type 'help' for more information
(qemu) assertion !feature is missing in this emulation:  unknown 
word read
failed: file /usr/obj/ports/qemu-0.9.1p10/qemu-0.9.1/hw/eepro100.c, 
line 1202

, function eepro100_read2
Abort trap (core dumped)

It *must* be a mistake on my side, if the description on the OpenBSD 
site is correct.

What can I do?

Uwe



Re: No networking with cd46.iso on qemu?

2010-04-28 Thread Uwe Dippel

Uwe Dippel wrote:


It *must* be a mistake on my side, if the description on the OpenBSD 
site is correct.

What can I do?


Let me add some remarks, after trying to debug it further:

Trying the install the conventional way results as to be expected on amd64:

qemu -m 32 -monitor stdio -no-fd-bootchk -hda virtual.img \
-cdrom cd45.iso -boot d

segfaults reproduceably at entering the root password (why there?)

Okay, so I followed the 2. tap mode further down. Still, no success. 
The interfaces are not created as expected/described:


# ifconfig tun0 link0
# ifconfig bridge0 create
# brconfig bridge0 add tun0 add em0 up
brconfig: bridge0: em0: No such file or directory

No luck here, neither.

What to do next?

Uwe

Here is the dmesg, in case:

OpenBSD 4.6 (GENERIC.MP) #0: Mon Apr 26 18:00:52 SGT 2010
   udip...@mybox.myorg.my:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 3756994560 (3582MB)
avail mem = 3633987584 (3465MB)
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.3 @ 0xec000 (62 entries)
bios0: vendor HP version D17 date 07/16/2007
bios0: HP ProLiant ML350 G4
acpi0 at bios0: rev 2
acpi0: tables DSDT FACP SPCR MCFG APIC
acpi0: wakeup devices
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Xeon(TM) CPU 3.00GHz, 3000.50 MHz
cpu0: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,CNXT-ID,CX16,xTPR,LONG

cpu0: 1MB 64b/line 8-way L2 cache
cpu0: apic clock running at 200MHz
cpu1 at mainbus0: apid 6 (application processor)
cpu1: Intel(R) Xeon(TM) CPU 3.00GHz, 3000.11 MHz
cpu1: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,CNXT-ID,CX16,xTPR,LONG

cpu1: 1MB 64b/line 8-way L2 cache
cpu2 at mainbus0: apid 1 (application processor)
cpu2: Intel(R) Xeon(TM) CPU 3.00GHz, 3000.12 MHz
cpu2: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,CNXT-ID,CX16,xTPR,LONG

cpu2: 1MB 64b/line 8-way L2 cache
cpu3 at mainbus0: apid 7 (application processor)
cpu3: Intel(R) Xeon(TM) CPU 3.00GHz, 3000.12 MHz
cpu3: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,CNXT-ID,CX16,xTPR,LONG

cpu3: 1MB 64b/line 8-way L2 cache
ioapic0 at mainbus0 apid 8 pa 0xfec0, version 20, 24 pins
ioapic1 at mainbus0 apid 9 pa 0xfec1, version 20, 24 pins
ioapic1: misconfigured as apic 0, remapped to apid 9
ioapic2 at mainbus0 apid 10 pa 0xfec8, version 20, 24 pins
ioapic3 at mainbus0 apid 11 pa 0xfec80400, version 20, 24 pins
acpiprt0 at acpi0: bus 1 (IP2P)
acpiprt1 at acpi0: bus 2 (IPXB)
acpiprt2 at acpi0: bus 6 (PCXA)
acpiprt3 at acpi0: bus 9 (PCXB)
acpiprt4 at acpi0: bus 5 (PTA0)
acpiprt5 at acpi0: bus 13 (PTB0)
acpiprt6 at acpi0: bus 16 (PTC0)
acpiprt7 at acpi0: bus 0 (PCI0)
acpicpu0 at acpi0
acpicpu1 at acpi0
acpicpu2 at acpi0
acpicpu3 at acpi0
acpitz0 at acpi0: critical temperature 31 degC
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 Intel E7520 Host rev 0x0c
ppb0 at pci0 dev 2 function 0 Intel E7520 PCIE rev 0x0c
pci1 at ppb0 bus 5
ppb1 at pci1 dev 0 function 0 Intel PCIE-PCIE rev 0x09
pci2 at ppb1 bus 6
ppb2 at pci1 dev 0 function 2 Intel PCIE-PCIE rev 0x09
pci3 at ppb2 bus 9
ppb3 at pci0 dev 4 function 0 Intel E7520 PCIE rev 0x0c
pci4 at ppb3 bus 13
ppb4 at pci0 dev 6 function 0 Intel E7520 PCIE rev 0x0c
pci5 at ppb4 bus 16
ppb5 at pci0 dev 28 function 0 Intel 6300ESB PCIX rev 0x02
pci6 at ppb5 bus 2
mpi0 at pci6 dev 3 function 0 Symbios Logic 53c1030 rev 0x08: apic 9 
int 0 (irq 5)

scsibus0 at mpi0: 16 targets, initiator 7
sd0 at scsibus0 targ 0 lun 0: COMPAQ, BF03688284, HPB3 SCSI3 0/direct 
fixed

sd0: 34732MB, 512 bytes/sec, 71132000 sec total
sd1 at scsibus0 targ 3 lun 0: COMPAQ, BF3008AFEC, HPB1 SCSI3 0/direct 
fixed

sd1: 286102MB, 512 bytes/sec, 585937500 sec total
sd2 at scsibus0 targ 5 lun 0: COMPAQ, BF3008AFEC, HPB1 SCSI3 0/direct 
fixed

sd2: 286102MB, 512 bytes/sec, 585937500 sec total
mpi0: target 0 Sync at 160MHz width 16bit offset 63 QAS 1 DT 1 IU 1
mpi0: target 3 Sync at 160MHz width 16bit offset 127 QAS 1 DT 1 IU 1
mpi0: target 5 Sync at 160MHz width 16bit offset 127 QAS 1 DT 1 IU 1
mpi1 at pci6 dev 3 function 1 Symbios Logic 53c1030 rev 0x08: apic 9 
int 1 (irq 5)

scsibus1 at mpi1: 16 targets, initiator 7
uhci0 at pci0 dev 29 function 0 Intel 6300ESB USB rev 0x02: apic 8 int 
16 (irq 3)
uhci1 at pci0 dev 29 function 1 Intel 6300ESB USB rev 0x02: apic 8 int 
19 (irq 3)

Intel 6300ESB WDT rev 0x02 at pci0 dev 29 function 4 not configured
Intel 6300ESB APIC rev 0x02 at pci0 dev 29 function 5 not configured
ehci0 at pci0 dev 29 function 7 Intel 6300ESB USB rev 0x02: apic 8 int 
23 (irq 3)

usb0 at ehci0: USB revision 2.0
uhub0 at usb0 Intel