DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD General

OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 8th June 2022
liar666 liar666 is offline
New User
 
Join Date: Jun 2022
Posts: 8
Default OpenBSD 7.1 resolution in VirtualBox

Hi,

Due to a problem with my wifi card (see http://daemonforums.org/showthread.p...2528#post72528), the only way I found to run my OpenBSD box with an internet access is to start Win10 (which is the only other system I have also installed on the box), then run OpenBSD as a Guest in VirtualBox directly from the HD, using the trick here:
http://guillaumemuller1.free.fr/show...php?entry=1545 (as OpenBSD is installed on the same HD as Windows).

This works pretty well in text mode. I managed to install / setup almost everyting I need.

Unfortunately, when I start Xorg, it runs with a ~4000x~4000 resolution, which makes it very difficult to use on my 1600x900 screen.

I've tried various tricks that worked in the past :
- Forcing VBox's VM CustomVideoMode
https://www.tumfatig.net/2019/custom...in-virtualbox/
- Use xrandr to change the resolution
https://r0ngsh3n.github.io/common/ch...on-via-xrandr/

But it did not succeed.

In particular the xorg.conf file I copied from the site results in "No Screen Found". And apparently Xorg --configure does not work on OpenBSD. And I don't remember how to setup Xorg manually :[

I tried to play with scaling, both in VBox and in Xorg, but it did not work.

Does anyone have the same problem? Is there a solution?
Reply With Quote
  #2   (View Single Post)  
Old 9th June 2022
J65nko J65nko is offline
Administrator
 
Join Date: May 2008
Location: Budel - the Netherlands
Posts: 4,121
Default

For some ideas see http://daemonforums.org/showthread.php?t=11734
You can check /var/log/Xorg.0.log for clues why it trying such a high resolution.
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump
Reply With Quote
  #3   (View Single Post)  
Old 9th June 2022
Head_on_a_Stick's Avatar
Head_on_a_Stick Head_on_a_Stick is offline
Real Name: Matthew
Bitchy Nerd Elitist
 
Join Date: Dec 2015
Location: London
Posts: 455
Default

The ArchWiki has a sample configuration file that adds new modelines (as generated by, for example, cvt(1)) and sets the preferred mode:

https://wiki.archlinux.org/title/Xra...ed_resolutions
__________________
Are you infected with Wetiko?
Reply With Quote
  #4   (View Single Post)  
Old 14th June 2022
liar666 liar666 is offline
New User
 
Join Date: Jun 2022
Posts: 8
Default [SOLVED] with "> machine gop 1" before boot

Hi again,

Thanks for the pointers. I already had a look at xrandr and creating new modes, but with no success.

By looking at /var/log/Xorg.0.log, I discovered the driver used is "wsfb", which made me assume that indeed xrandr would not work and I had to focus on the console.

Thanks to the following pages:
https://www.unitedbsd.com/d/271-wfsb/6
https://man.openbsd.org/boot.8
I discovered that I can set the console resolution at boot, using:
Code:
> machine gop
> machine gop <x>
> boot
and I finally managed to boot my OpenBSD installation within VBox in Windows, so that I'll now be able to debug the wifi connection problems I reported here: http://daemonforums.org/showthread.p...2528#post72528...

Thanks everybody for your help!!!
I thought it would take me ages to find a solution and finally it was a really easy one (as often with OpenBSD when you know where to look ).

See you soon!
Reply With Quote
  #5   (View Single Post)  
Old 18th June 2022
scottro's Avatar
scottro scottro is offline
Real Name: Scott Robbins
ISO Quartermaster
 
Join Date: Apr 2008
Location: NYC
Posts: 652
Default

By the way, my VirtualBox of OpenBSD, running on FreeBSD, enables me to enlarge it with a
Code:
xrandr -s 1280x1024
in my .xinitrc. For me, that's a big help and keeps me from worrying about modelines.
Good luck with your debugging, hope you fix it quickly.
Reply With Quote
Reply

Tags
virtualbox guest, xorg

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Need help with DNS resolution betweendayandnight OpenBSD General 0 13th July 2015 06:21 PM
OpenBSD as host for VirtualBox gpatrick OpenBSD General 15 9th May 2012 02:22 AM
OpenBSD i386 snapshot & PAE on VirtualBox aleunix OpenBSD Installation and Upgrading 2 1st March 2012 06:44 PM
virtualbox+Openbsd+ports harrykar OpenBSD Packages and Ports 7 16th June 2010 07:48 PM
openBSD 4.5: success w/virtualbox 2.2.4 s2scott OpenBSD Installation and Upgrading 18 1st July 2009 02:45 PM


All times are GMT. The time now is 08:58 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick