BlueVM KVM and NetBSD I.


"NetBSD is a free, fast, secure, and highly portable Unix-like Open Source operating system. It is available for a wide range of platforms, from large-scale servers and powerful desktop systems to handheld and embedded devices. Its clean design and advanced features make it excellent for use in both production and research environments, and the source code is freely available under a business-friendly license. NetBSD is developed and supported by a large and vivid international community. Many applications are readily available through pkgsrc, the NetBSD Packages Collection." » Learn more


"BlueVM (affiliate link) is dedicated to offering low cost, high quality Virtual Private Servers (VPS). Our VPS come with your choice of OS distribution, control panel and software. We strive to maintain fast servers, friendly support and no downtime.Our hardware consists of primarily Intel E3-1240 @ 3.4GHz with 32 GB of RAM and 4 x 1 or 2 TB RAID10 Hard Drives. All of our hardware runs on a minimum dedicated connection speed of 1Gbps."




Let's get started with getting rid of anything on disk, right? I booted up SystemRescueCD and formatted disk. I played before so I wanna started with empty space.



So let's boot NetBSD iso. They have the latest images:
  • NetBSD - 6.1.2 - 32 Bit - Net Install 
  • NetBSD - 6.1.2 - 64 Bit - Net Install  
I chose 32 bit. Anyway, as mentioned before, there are more options to the HW part.

First I go with recommended Intel Network card and IDE disk driver.

Seems to be booting just fine, let's install. And that seems to be easy as well. Not gonna talk about it here now, but if you want to, I can make a guide.

After that I set up networking, sshd and logged in with ssh (till then I was using vnc).

# dmesg

NetBSD 6.1.2 (GENERIC)
total memory = 1023 MB
avail memory = 993 MB
timecounter: Timecounters tick every 10.000 msec
timecounter: Timecounter "i8254" frequency 1193182 Hz quality 100
Bochs Bochs
mainbus0 (root)
cpu0 at mainbus0 apid 0: QEMU Virtual CPU version 1.5.0, id 0x623
cpu1 at mainbus0 apid 1: QEMU Virtual CPU version 1.5.0, id 0x623
cpu2 at mainbus0 apid 2: QEMU Virtual CPU version 1.5.0, id 0x623
ioapic0 at mainbus0 apid 0: pa 0xfec00000, version 11, 24 pins
acpi0 at mainbus0: Intel ACPICA 20110623
acpi0: X/RSDT: OemId <BOCHS ,BXPCRSDT,00000001>, AslId <BXPC,00000001>
LNKS: ACPI: Found matching pin for 0.1.INTA at func 3: 9
LNKD: ACPI: Found matching pin for 0.1.INTD at func 2: 11
LNKC: ACPI: Found matching pin for 0.3.INTA at func 0: 11
LNKD: ACPI: Found matching pin for 0.4.INTA at func 0: 11
acpi0: SCI interrupting at int 9
timecounter: Timecounter "ACPI-Safe" frequency 3579545 Hz quality 900
hpet0 at acpi0: high precision event timer (mem 0xfed00000-0xfed00400)
timecounter: Timecounter "hpet0" frequency 100000000 Hz quality 2000
pckbc1 at acpi0 (KBD, PNP0303) (kbd port): io 0x60,0x64 irq 1
pckbc2 at acpi0 (MOU, PNP0F13) (aux port): irq 12
FDC0 (PNP0700) at acpi0 not configured
PEVT (QEMU0001) at acpi0 not configured
apm0 at acpi0: Power Management spec V1.2
pckbd0 at pckbc1 (kbd slot)
pckbc1: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard
pms0 at pckbc1 (aux slot)
pckbc1: using irq 12 for aux slot
wsmouse0 at pms0 mux 0
pci0 at mainbus0 bus 0: configuration mode 1
pci0: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok
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: bus-master DMA support present
piixide0: primary channel wired to compatibility mode
piixide0: primary channel interrupting at ioapic0 pin 14
atabus0 at piixide0 channel 0
piixide0: secondary channel wired to compatibility mode
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 11
usb0 at uhci0: USB revision 1.0
piixpm0 at pci0 dev 1 function 3: vendor 0x8086 product 0x7113 (rev. 0x03)
timecounter: Timecounter "piixpm0" frequency 3579545 Hz quality 1000
piixpm0: 24-bit timer
piixpm0: interrupting at ioapic0 pin 9
iic0 at piixpm0: I2C bus
vga1 at pci0 dev 2 function 0: vendor 0x1013 product 0x00b8 (rev. 0x00)
wsdisplay0 at vga1 kbdmux 1: console (80x25, vt100 emulation), using wskbd0
wsmux1: connecting to wsdisplay0
drm at vga1 not configured
wm0 at pci0 dev 3 function 0: Intel i82540EM 1000BASE-T Ethernet (rev. 0x03)
wm0: interrupting at ioapic0 pin 11
wm0: 32-bit 33MHz PCI bus
wm0: 64 word (6 address bits) MicroWire EEPROM
wm0: Ethernet address 00:16:3c:ea:6d:a7
makphy0 at wm0 phy 1: Marvell 88E1011 Gigabit PHY, rev. 0
makphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
virtio0 at pci0 dev 4 function 0
virtio0: Virtio Memory Balloon Device (rev. 0x00)
viomb0 at virtio0
virtio0: allocated 8192 byte for virtqueue 0 for inflate, size 128
virtio0: allocated 8192 byte for virtqueue 1 for deflate, size 128
virtio0: interrupting at ioapic0 pin 11
isa0 at pcib0
attimer0 at isa0 port 0x40-0x43
pcppi0 at isa0 port 0x61
midi0 at pcppi0: PC speaker
sysbeep0 at pcppi0
isapnp0 at isa0 port 0x279
npx0 at isa0 port 0xf0-0xff
npx0: reported by CPUID; using exception 16
fdc0 at isa0 port 0x3f0-0x3f7 irq 6 drq 2
attimer0: attached to pcppi0
isapnp0: no ISA Plug 'n Play devices found
acpicpu0 at cpu0: ACPI CPU
acpicpu0: C1: HLT, lat   0 us, pow     0 mW
acpicpu1 at cpu1: ACPI CPU
acpicpu2 at cpu2: ACPI CPU
timecounter: Timecounter "clockinterrupt" frequency 100 Hz quality 0
uhub0 at usb0: vendor 0x8086 UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
uhidev0 at uhub0 port 1 configuration 1 interface 0
uhidev0: QEMU QEMU USB Tablet, rev 1.00/0.00, addr 2, iclass 3/0
ums0 at uhidev0: 3 buttons and Z dir
wsmouse1 at ums0 mux 0
wd0 at atabus0 drive 0
wd0: <QEMU HARDDISK>
wd0: drive supports 16-sector PIO transfers, LBA48 addressing
wd0: 30720 MB, 62415 cyl, 16 head, 63 sec, 512 bytes/sect x 62914560 sectors
wd0: 32-bit data port
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 5 (Ultra/100)
wd0(piixide0:0:0): using PIO mode 4, DMA mode 2 (using DMA)
atapibus0 at atabus1: 2 targets
cd0 at atapibus0 drive 0: <QEMU DVD-ROM, QM00003, 1.5.0> cdrom removable
cd0: 32-bit data port
cd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 5 (Ultra/100)
cd0(piixide0:1:0): using PIO mode 4, DMA mode 2 (using DMA)
Kernelized RAIDframe activated
boot device: wd0
root on wd0a dumps on wd0b
root file system type: ffs
wsdisplay0: screen 1 added (80x25, vt100 emulation)
wsdisplay0: screen 2 added (80x25, vt100 emulation)
wsdisplay0: screen 3 added (80x25, vt100 emulation)
wsdisplay0: screen 4 added (80x25, vt100 emulation)

So what do you think? 

What I wanted to do next is some test (disk, network). For linux there are many scripts (VPS testing), but I didn't find some for BSD.

Thought there are some in http://ftp.netbsd.org/pub/pkgsrc/current/pkgsrc/benchmarks/README.html. I did not go through all of them, but some seems to be pretty outdated.

What I am looking for is something like this. Simple one, but informative. It's for linux only, so I am probably going to make it run for BSDs and put on github or so. Why? because what I wanna do is compare disk and network with different drivers with different BSDs.

I have no experience with scripting stuff, so I am gonna learn something new, and blog about it. So keep reading next parts folks!
SHARE

Jan Hovancik

software developer - guitar player - poetry lover