Re: vmd: upper limit on number of vm's?

2017-02-09 Thread Eric Brown
Gregor Best  writes:

> Hi,
>
>> [...]
>> # tail -4 /var/log/messages
>> Feb  9 11:21:44 air vmd[73442]: parent terminating
>> Feb 9 11:21:47 air vmd[73405]: config_setvm: can't open tap tap: No
>> such file or directory
>> [...]
>
> You're probably missing the device files for the taps in /dev. The
> installer creates 4 by default, so you'll have to run
>
>   cd /dev; sh MAKEDEV tap4
>
> and so on for each new tap device you need.

Worked like a charm.  So awesome.

Thank you!



Re: vmd: upper limit on number of vm's?

2017-02-09 Thread Eric Brown
Gregor Best  writes:

> Hi,
>
> On Thu, Feb 09, 2017 at 11:33:19AM -0600, Eric Brown wrote:
>> [...]
>> # tail -4 /var/log/messages
>> Feb  9 11:21:44 air vmd[73442]: parent terminating
>> Feb  9 11:21:47 air vmd[73405]: config_setvm: can't open tap tap: No such 
>> file or directory
>> [...]
>
> You're probably missing the device files for the taps in /dev. The
> installer creates 4 by default, so you'll have to run
>
>   cd /dev; sh MAKEDEV tap4
>
> and so on for each new tap device you need.

Worked like a charm.  So awesome.

Thank you!



Re: vmd: upper limit on number of vm's?

2017-02-09 Thread Gregor Best
Hi,

On Thu, Feb 09, 2017 at 11:33:19AM -0600, Eric Brown wrote:
> [...]
> # tail -4 /var/log/messages
> Feb  9 11:21:44 air vmd[73442]: parent terminating
> Feb  9 11:21:47 air vmd[73405]: config_setvm: can't open tap tap: No such 
> file or directory
> [...]

You're probably missing the device files for the taps in /dev. The
installer creates 4 by default, so you'll have to run

cd /dev; sh MAKEDEV tap4

and so on for each new tap device you need.

-- 
Gregor



vmd: upper limit on number of vm's?

2017-02-09 Thread Eric Brown
Dear List,

I am experimenting with virtual machines (vmd) in recent OpenBSD
snapshots.  Having gotten a few VMs working, I am eager to make many
more and also run them. I'm pleased to have an autoinstall process
running from a vmd instance.

However, when running more than 4 instances, I run into an error:

# /etc/rc.d/vmd stop
# ... /etc/vm.conf  enable a fifth machine that is confirmed to run
# /etc/rc.d/vmd start

# vmctl status
vmctl: connect: /var/run/vmd.sock: Connection refused

# tail -4 /var/log/messages
Feb  9 11:21:44 air vmd[73442]: parent terminating
Feb  9 11:21:47 air vmd[73405]: config_setvm: can't open tap tap: No such file 
or directory
Feb  9 11:21:47 air vmd[73405]: config_setvm: failed to start vm 
mirror.ericcbrown.com
Feb  9 11:21:47 air vmd[73405]: parent: configuration failed

Some evidence that may help:
* I can make a bunch of tap's with ifconfig, many more than4. 
  (hostname.bridge0,hostname.bge0,and hostname.vether configured)
* I am using i7 2.0 Ghz with 2 cores and 4 hyperthreads that appear in
`top' (macbook air 2011)
* I confirm that each machine works in any combination of 4 vm's concurrently

I've tried to read the source, but I'm totally stuck here, and thought I
would ask whether anyone knows what could be the stopper here at running
many vm's.

Best regards,
Eric

PS Thank you very much to Mike Larkin and Reyk Floeter for authoring this.
It has been a very nice way to explore network and routing concepts
while making VM's that do very useful things for me.

-- dmesg of host machine --
OpenBSD 6.0-current (GENERIC.MP) #163: Sun Feb  5 13:55:12 MST 2017
dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
RTC BIOS diagnostic error 
f7
real mem = 1836232704 (1751MB)
avail mem = 1775980544 (1693MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.4 @ 0xe (39 entries)
bios0: vendor Apple Inc. version "MB61.88Z.00C8.B00.0908271503" date 08/27/09
bios0: Apple Inc. MacBook6,1
acpi0 at bios0: rev 2
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP HPET APIC APIC MCFG ASF! SBST ECDT SSDT SSDT SSDT SSDT
acpi0: wakeup devices ADP1(S3) LID0(S3) EC__(S3) OHC1(S3) EHC1(S3) OHC2(S3) 
EHC2(S3) GIGE(S5) ARPT(S5)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpihpet0 at acpi0: 2500 Hz
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Core(TM)2 Duo CPU P7550 @ 2.26GHz, 2255.72 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,PBE,SSE3,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,XSAVE,NXE,LONG,LAHF,PERF,SENSOR
cpu0: 3MB 64b/line 8-way L2 cache
cpu0: smt 0, core 0, package 0
mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges
cpu0: apic clock running at 265MHz
cpu0: mwait min=64, max=64, C-substates=0.2.2.2.2.1.3, IBE
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Intel(R) Core(TM)2 Duo CPU P7550 @ 2.26GHz, 2255.35 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,PBE,SSE3,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,XSAVE,NXE,LONG,LAHF,PERF,SENSOR
cpu1: 3MB 64b/line 8-way L2 cache
cpu1: smt 0, core 1, package 0
ioapic0 at mainbus0: apid 1 pa 0xfec0, version 11, 24 pins
acpimcfg0 at acpi0 addr 0xf000, bus 0-255
acpiec0 at acpi0
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 2 (IXVE)
acpicpu0 at acpi0: !C3(100@57 mwait.3@0x31), !C2(500@1 mwait@0x10), C1(1000@1 
mwait), PSS
acpicpu1 at acpi0: !C3(100@57 mwait.3@0x31), !C2(500@1 mwait@0x10), C1(1000@1 
mwait), PSS
acpiac0 at acpi0: AC unit online
acpibtn0 at acpi0: LID0
"APP0002" at acpi0 not configured
acpibtn1 at acpi0: PWRB
acpibtn2 at acpi0: SLPB
"APP0001" at acpi0 not configured
"APP0003" at acpi0 not configured
"ACPI0002" at acpi0 not configured
acpibat0 at acpi0: BAT0 model "3545797981023400290" type 3545797981528607052 
oem "3545797981528608836"
cpu0: Enhanced SpeedStep 2255 MHz: speeds: 2261, 2128, 1862, 1596, 798 MHz
memory map conflict 0xffc0/0x40
pci0 at mainbus0 bus 0
0:3:5: mem address conflict 0x9330/0x8
pchb0 at pci0 dev 0 function 0 "NVIDIA MCP79 Host" rev 0xb1
"NVIDIA MCP79 Memory" rev 0xb1 at pci0 dev 0 function 1 not configured
pcib0 at pci0 dev 3 function 0 "NVIDIA MCP79 ISA" rev 0xb3
"NVIDIA MCP79 Memory" rev 0xb1 at pci0 dev 3 function 1 not configured
nviic0 at pci0 dev 3 function 2 "NVIDIA MCP79 SMBus" rev 0xb1
iic0 at nviic0
spdmem0 at iic0 addr 0x50: 2GB DDR3 SDRAM PC3-8500 SO-DIMM
iic1 at nviic0
iic1: addr 0x4c 00=47 01=5a 02=92 04=07 05=55 07=55 0a=07 0b=55 0d=55 10=e0 
15=55 19=55 1a=55 20=55 21=0a 22=70 23=43 24=60 25=0b 26=0f 27=12 28=12 29=a0 
35=02 37=02 60=06 70=06 71=03 72=07 8c=ff 8d=ff 8e=ff 8f=ff 90=ff 9a=ff 9b=ff 
9c=ff 9d=ff 9e=ff 9f=ff a0=ff a1=ff a2=ff a3=ff a4=ff a5=ff a6=ff