Otto Moerbeek [o...@drijf.net] wrote:
> 
> There's a bug somewhere that computes the left-over memory for the
> primary wrong.
> 
> Take the mem printed by OpenBoot (8064M), subtract the mem taken by
> your guests and assign that to the primary.
> 
> primary {
>       memory ..
> }
> 

This seems to work:

domain primary {
        memory 1920M
}
domain one {
        vcpu 4
        memory 1G
        vdisk "/home/one/vdisk0"
        vdisk "/home/one/vdisk1"
        vnet
}
domain two {
        vcpu 4
        memory 1G
        vdisk "/home/two/vdisk0"
        vdisk "/home/two/vdisk1"
        vnet
}
domain three {
        vcpu 3
        memory 1G
        vdisk "/home/three/vdisk0"
        vdisk "/home/three/vdisk1"
        vnet
}
domain four {
        vcpu 3
        memory 1G
        vdisk "/home/four/vdisk0"
        vdisk "/home/four/vdisk1"
        vnet
}
domain five {
        vcpu 3
        memory 1G
        vdisk "/home/five/vdisk0"
        vdisk "/home/five/vdisk1"
        vnet
}
domain six {
        vcpu 3
        memory 1G
        vdisk "/home/six/vdisk0"
        vdisk "/home/six/vdisk1"
        vnet
}

--

Here is one of the virtual machines booting miniroot53.fs:

# cu -s 9600 -l /dev/ttyV5
Connected (speed 9600)

{0} ok 
{0} ok boot disk1
Boot device: /virtual-devices@100/channel-devices@200/disk@1  File and args: 
OpenBSD IEEE 1275 Bootblock 1.3
..>> OpenBSD BOOT 1.4
Trying bsd...
Booting /virtual-devices@100/channel-devices@200/disk@1:a/bsd
3906312@0x1000000+1272@0x13b9b08+3253136@0x1800000+941168@0x1b1a390 
symbols @ 0xfedba2c0 99 start=0x1000000
console is /virtual-devices@100/console@1
Copyright (c) 1982, 1986, 1989, 1991, 1993
        The Regents of the University of California.  All rights reserved.
Copyright (c) 1995-2013 OpenBSD. All rights reserved.  http://www.OpenBSD.org

OpenBSD 5.3-current (RAMDISK) #102: Wed Jun  5 18:50:06 MDT 2013
    dera...@sparc64.openbsd.org:/usr/src/sys/arch/sparc64/compile/RAMDISK
real mem = 1073741824 (1024MB)
avail mem = 1041440768 (993MB)
mainbus0 at root: Sun Fire(TM) T1000
cpu0 at mainbus0: SUNW,UltraSPARC-T1 (rev 0.0) @ 1000 MHz
"SUNW,UltraSPARC-T1" at mainbus0 not configured
"SUNW,UltraSPARC-T1" at mainbus0 not configured
vbus0 at mainbus0
"flashprom" at vbus0 not configured
cbus0 at vbus0
vdsk0 at cbus0 chan 0x2: ivec 0x204, 0x205
scsibus0 at vdsk0: 2 targets
sd0 at scsibus0 targ 0 lun 0: <SUN, Virtual Disk, 1.1> SCSI3 0/direct fixed
sd0: 8192MB, 512 bytes/sector, 16777216 sectors
vdsk1 at cbus0 chan 0x3: ivec 0x206, 0x207
scsibus1 at vdsk1: 2 targets
sd1 at scsibus1 targ 0 lun 0: <SUN, Virtual Disk, 1.1> SCSI3 0/direct fixed
sd1: 2MB, 512 bytes/sector, 5760 sectors
vnet0 at cbus0 chan 0x4: ivec 0x208, 0x209, address 00:14:4f:f9:30:9e
vcons0 at vbus0: ivec 0x111, console
vrtc0 at vbus0
softraid0 at root
scsibus2 at softraid0: 256 targets
bootpath: /virtual-devices@100,0/channel-devices@200,0/disk@1,0
root on rd0a swap on rd0b dump on rd0b
erase ^?, werase ^W, kill ^U, intr ^C, status ^T

Welcome to the OpenBSD/sparc64 5.3 installation program.
(I)nstall, (U)pgrade or (S)hell? 

--

Here is the primary's dmesg after that config is loaded in place:

console is /virtual-devices@100/console@1
Copyright (c) 1982, 1986, 1989, 1991, 1993
        The Regents of the University of California.  All rights reserved.
Copyright (c) 1995-2013 OpenBSD. All rights reserved.  http://www.OpenBSD.org

OpenBSD 5.3-current (GENERIC.MP) #118: Wed Jun  5 18:28:38 MDT 2013
    dera...@sparc64.openbsd.org:/usr/src/sys/arch/sparc64/compile/GENERIC.MP
real mem = 2013265920 (1920MB)
avail mem = 1964482560 (1873MB)
mainbus0 at root: Sun Fire(TM) T1000
cpu0 at mainbus0: SUNW,UltraSPARC-T1 (rev 0.0) @ 1000 MHz
cpu1 at mainbus0: SUNW,UltraSPARC-T1 (rev 0.0) @ 1000 MHz
cpu2 at mainbus0: SUNW,UltraSPARC-T1 (rev 0.0) @ 1000 MHz
cpu3 at mainbus0: SUNW,UltraSPARC-T1 (rev 0.0) @ 1000 MHz
vbus0 at mainbus0
"flashprom" at vbus0 not configured
cbus0 at vbus0
vldc0 at cbus0
vldcp0 at vldc0 chan 0x0: ivec 0x200, 0x201 channel "hvctl"
"ldom-primary" at vldc0 chan 0x1 not configured
"fmactl" at vldc0 chan 0x3 not configured
vldc1 at cbus0
"ldmfma" at vldc1 chan 0x4 not configured
vldc2 at cbus0
vldcp1 at vldc2 chan 0x14: ivec 0x228, 0x229 channel "spds"
"system-management" at vldc2 chan 0xd not configured
vldcp2 at vldc2 chan 0x19: ivec 0x232, 0x233 channel "ldom-one"
vldcp3 at vldc2 chan 0x1e: ivec 0x23c, 0x23d channel "ldom-two"
vldcp4 at vldc2 chan 0x23: ivec 0x246, 0x247 channel "ldom-three"
vldcp5 at vldc2 chan 0x28: ivec 0x250, 0x251 channel "ldom-four"
vldcp6 at vldc2 chan 0x2d: ivec 0x25a, 0x25b channel "ldom-five"
vldcp7 at vldc2 chan 0x32: ivec 0x264, 0x265 channel "ldom-six"
vcc0 at cbus0
vcctty0 at vcc0 chan 0x18: ivec 0x230, 0x231 domain "one"
vcctty1 at vcc0 chan 0x1d: ivec 0x23a, 0x23b domain "two"
vcctty2 at vcc0 chan 0x22: ivec 0x244, 0x245 domain "three"
vcctty3 at vcc0 chan 0x27: ivec 0x24e, 0x24f domain "four"
vcctty4 at vcc0 chan 0x2c: ivec 0x258, 0x259 domain "five"
vcctty5 at vcc0 chan 0x31: ivec 0x262, 0x263 domain "six"
vds0 at cbus0
vdsp0 at vds0 chan 0x1a: ivec 0x234, 0x234
vdsp1 at vds0 chan 0x1b: ivec 0x236, 0x236
vdsp2 at vds0 chan 0x1f: ivec 0x23e, 0x23e
vdsp3 at vds0 chan 0x20: ivec 0x240, 0x240
vdsp4 at vds0 chan 0x24: ivec 0x248, 0x248
vdsp5 at vds0 chan 0x25: ivec 0x24a, 0x24a
vdsp6 at vds0 chan 0x29: ivec 0x252, 0x252
vdsp7 at vds0 chan 0x2a: ivec 0x254, 0x254
vdsp8 at vds0 chan 0x2e: ivec 0x25c, 0x25c
vdsp9 at vds0 chan 0x2f: ivec 0x25e, 0x25e
vdsp10 at vds0 chan 0x33: ivec 0x266, 0x266
vdsp11 at vds0 chan 0x34: ivec 0x268, 0x268
vsw0 at cbus0
vnet0 at vsw0 chan 0x1c: ivec 0x238, 0x239
vnet1 at vsw0 chan 0x21: ivec 0x242, 0x243
vnet2 at vsw0 chan 0x26: ivec 0x24c, 0x24d
vnet3 at vsw0 chan 0x2b: ivec 0x256, 0x257
vnet4 at vsw0 chan 0x30: ivec 0x260, 0x261
vnet5 at vsw0 chan 0x35: ivec 0x26a, 0x26b
vcons0 at vbus0: ivec 0x111, console
vrtc0 at vbus0
"fma" at vbus0 not configured
"sunvts" at vbus0 not configured
"sunmc" at vbus0 not configured
"explorer" at vbus0 not configured
"led" at vbus0 not configured
"flashupdate" at vbus0 not configured
vpci0 at mainbus0: bus 2 to 2, dvma map 80000000-ffffffff
pci0 at vpci0
ebus0 at mainbus0
com0 at ebus0 addr c2c000-c2c007 ivec 0xa: st16650, 32 byte fifo
vpci1 at mainbus0: bus 2 to 4, dvma map 80000000-ffffffff
pci1 at vpci1
ppb0 at pci1 dev 0 function 0 "ServerWorks PCIE-PCIX" rev 0xb3
pci2 at ppb0 bus 3
bge0 at pci2 dev 4 function 0 "Broadcom BCM5714" rev 0xa2, BCM5715 A1 (0x9001): 
ivec 0x7d4, address 00:14:4f:2c:e2:48
brgphy0 at bge0 phy 1: BCM5714 10/100/1000baseT/SX PHY, rev. 0
bge1 at pci2 dev 4 function 1 "Broadcom BCM5714" rev 0xa2, BCM5715 A1 (0x9001): 
ivec 0x7d5, address 00:14:4f:2c:e2:49
brgphy1 at bge1 phy 1: BCM5714 10/100/1000baseT/SX PHY, rev. 0
ppb1 at pci2 dev 8 function 0 "ServerWorks HT-1000 PCIX" rev 0xb3
pci3 at ppb1 bus 4
bge2 at pci3 dev 1 function 0 "Broadcom BCM5704C" rev 0x10, BCM5704 B0 
(0x2100): ivec 0x7c2, address 00:14:4f:2c:e2:4a
brgphy2 at bge2 phy 1: BCM5704 10/100/1000baseT PHY, rev. 0
bge3 at pci3 dev 1 function 1 "Broadcom BCM5704C" rev 0x10, BCM5704 B0 
(0x2100): ivec 0x7c1, address 00:14:4f:2c:e2:4b
brgphy3 at bge3 phy 1: BCM5704 10/100/1000baseT PHY, rev. 0
mpi0 at pci3 dev 2 function 0 "Symbios Logic SAS1064" rev 0x02: msi
scsibus0 at mpi0: 63 targets
sd0 at scsibus0 targ 0 lun 0: <ATA, ST31000524AS, JC4B> SCSI3 0/direct fixed 
naa.5000c50045e761c2
sd0: 953869MB, 512 bytes/sector, 1953525168 sectors
vscsi0 at root
scsibus1 at vscsi0: 256 targets
softraid0 at root
scsibus2 at softraid0: 256 targets
bootpath: /pci@7c0,0/pci@0,0/pci@8,0/scsi@2,0/disk@0,0
root on sd0a (6f7f7705c7253071.a) swap on sd0b dump on sd0b

Reply via email to