mk.conf:
MAKE_JOBS= 4
DEPENDS_TARGET= bin-install
---
VBoxManage setextradata "NetBSD-92amd" CustomVideoMode1 1920x1080x32
vesa list
vesa 0x160
---
mk.conf:
MAKE_JOBS= 4
DEPENDS_TARGET= bin-install
---
VBoxManage setextradata "NetBSD-92amd" CustomVideoMode1 1920x1080x32
vesa list
vesa 0x160
---
Normally doing a NetBSD desktop on VirtualBox involves a convoluted ritual on both host and guest. I still need to do VBoxManage for the host setup, but I've discovered something interesting. For the guest, all I need to do is specify a vesa setting, like this:
menu=Boot normally:rndseed /var/db/entropy-file;vesa 0x160;boot
...and I get a nice, rich but readable console, and a 1920x180 desktop in X too; without configuring X in any way. This works in VBoxSVGA and VMSVGA.
Best of all, I get a respectable sized console in full-screen mode -without X. Instead of a tiny 640x480 screen I get a console like this:
This blog post details a personal workflow experiment. This is for my own use only -if you found this entry because of google, whatever you should be aware that none of this is recommended. It's shit I'm trying for myself.
To get proper graphics, the following need to be done:
C:\Program Files\Oracle\VirtualBox>VBoxManage.exe setextradata OI-2021 CustomVideoMode1 1920x1080x16
C:\Program Files\Oracle\VirtualBox>VBoxManage modifyvm OI-2021 --graphicscontroller vboxvga
sudo apt update -y && apt upgrade sudo apt install dkms linux-headers-$(uname -r) build-essential
Then:
cd /media/cdrom0/; /bin/sh VBo*run
To set up ISO files as a local repository:
1)Download the files somewhere. I use /.iso:
random@flustered:~$ ls -l /.iso
total 12833380
dr-xr-xr-x 1 root root 4096 Oct 6 20:57 1
dr-xr-xr-x 1 root root 2048 Oct 6 21:13 2
dr-xr-xr-x 1 root root 2048 Oct 6 21:15 3
-rwxr-xr-x 1 random random 3838230528 Oct 7 09:23 debian-testing-amd64-DVD-1.iso
-rwxr-xr-x 1 random random 4619786240 Oct 7 09:25 debian-testing-amd64-DVD-2.iso
-rwxr-xr-x 1 random random 4683341824 Oct 7 09:27 debian-testing-amd64-DVD-3.iso
random@flustered:~$
2) create mountpoints (mkdir /.iso{1,2,3}).
3) add the mountpoints to /etc/fstab:
random@flustered:~$ cat /etc/fstab
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
#
# / was on /dev/sda1 during installation
UUID=4c / ext4 errors=remount-ro 0 1
# swap was on /dev/sda5 during installation
UUID=28 none swap sw 0 0
/dev/sr0 /media/cdrom0 udf,iso9660 user,noauto 0 0
/.iso/debian-testing-amd64-DVD-1.iso /.iso/1 iso9660 ro,loop,auto 0 0
/.iso/debian-testing-amd64-DVD-2.iso /.iso/2 iso9660 ro,loop,auto 0 0
/.iso/debian-testing-amd64-DVD-3.iso /.iso/3 iso9660 ro,loop,auto 0 0
random@flustered:~$
4) make the proper changes to /etc/apt/sources.list:
deb [trusted=yes] file:/.iso/2 bullseye contrib main
deb [trusted=yes] file:/.iso/3 bullseye contrib main
...it's important to put "[trusted=yes]", or apt won't process them.
5)apt update to use the new sources
...and you're good to go.
Section "ServerLayout"I've also found that setting RAM between 4G and 6G is needed for larger apps (CLang, GCC) to finish compiling.
Identifier "X.org Configured"
Screen 0 "Screen0" 0 0
InputDevice "Mouse0" "CorePointer"
InputDevice "Keyboard0" "CoreKeyboard"
EndSection
Section "Files"
ModulePath "/usr/X11R7/lib/modules"
FontPath "/usr/X11R7/lib/X11/fonts/misc/"
FontPath "/usr/X11R7/lib/X11/fonts/TTF/"
FontPath "/usr/X11R7/lib/X11/fonts/Type1/"
FontPath "/usr/X11R7/lib/X11/fonts/75dpi/"
FontPath "/usr/X11R7/lib/X11/fonts/100dpi/"
EndSection
Section "Module"
Load "dri"
Load "dri2"
Load "glx"
Load "shadow"
EndSection
Section "InputDevice"
Identifier "Keyboard0"
Driver "kbd"
EndSection
Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "wsmouse"
Option "Device" "/dev/wsmouse"
Option "ZAxisMapping" "4 5 6 7"
EndSection
Section "Monitor"
Identifier "Monitor0"
VendorName "Monitor Vendor"
ModelName "Monitor Model"
HorizSync 31-80
VertRefresh 30-100
EndSection
Section "Device"
### Available Driver options are:-
### Values: : integer,: float, : "True"/"False",
###: "String", : " Hz/kHz/MHz",
###: " %"
### [arg]: arg optional
#Option "ShadowFB" # []
#Option "DefaultRefresh" # []
#Option "ModeSetClearScreen" # []
Identifier "Card0"
Driver "vesa"
BusID "PCI:0:2:0"
EndSection
Section "Screen"
DefaultDepth 16
Identifier "Screen0"
Device "Card0"
Monitor "Monitor0"
SubSection "Display"
Viewport 0 0
Depth 16
EndSubSection
# SubSection "Display"
# Viewport 0 0
# Depth 24
# Modes "1920x1080"
# EndSubSection
EndSection
#!/bin/sh for x in obj xsrc src pkgsrc pkgsrc/distfiles pkgsrc/packages pkg do zfs create ext/$x zfs set mountpoint=/usr/$x ext/$x ...