DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD Installation and Upgrading

OpenBSD Installation and Upgrading Installing and upgrading OpenBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 1st June 2009
s2scott's Avatar
s2scott s2scott is offline
Package Pilot
 
Join Date: May 2008
Location: Toronto, Ontario Canada
Posts: 198
Default openBSD 4.5: success w/virtualbox 2.2.4

Just thought I'd share ... I have just succeeded in installing and operating openBSD 4.5, 32-bit, as a GUEST in VirtualBox, 2.2.4 (released just last week), running on a Vista, 64-bit, (AMD) host.

Previous, I was unable (kernal panic and/or segment faults) to get 4.5 to work with previous versions of VB -- i.e. not with 2.2.0, or 2.2.2.

Getting 4.5/2.2.4 working was a still a bit cantankerous, but the following key/principal settings are working.

Code:
--v--
Video Memory: 32M  (16M did not seem to work even without X)
ACPI: Enabled
IO ACPI: Enabled
VT-x/AMD-V: Disabled
Nested Paging: Disabled
PAE/NX: Enabled
3D Accel: Disabled.

Hard disks:  IDE Primary (PIIX4 controller) 
USB: Enabled (no filter)  (seems to be *just* needed by OBSD for it to progress the boot/enumrate the ECHI hub.)
--^--
openBSD 4.5, as guest, panicked if I tired to present VirtualBox's puedo SATA interface to it. Used IDE (non-SATA) instead. Not sure if bsd.mp is needed or not. Unfortunately, on my last attempt (which was usccessful) I changed more then one VB setting and OBSD install elective -- including bsd.mp was one of them.

My host system is Vista-64, AMD dual-core 2.8GHz, ASUS M3A78-EM, which has the AMD 780G/SB700-series chipsets.

I may play with the settings to try to identify what is minimally needed, but right now I need to get on with USING the virtual machine, not WRESTLING with it.

Just thought I'd share that just-released VirtualBox 2.2.4 appears to have advanced itself sufficiently to run an openBSD 4.5 guest.

Good luck all.
/S
__________________
Never argue with an idiot. They will bring you down to their level and beat you with experience.

Last edited by s2scott; 1st July 2009 at 10:34 AM.
Reply With Quote
  #2   (View Single Post)  
Old 1st June 2009
revzalot's Avatar
revzalot revzalot is offline
Shell Scout
 
Join Date: May 2008
Posts: 123
Default

Excellent. I'm planning to do the same thing with a similar setup. I assume you did an OpenBSD netinstall.
Reply With Quote
  #3   (View Single Post)  
Old 1st June 2009
s2scott's Avatar
s2scott s2scott is offline
Package Pilot
 
Join Date: May 2008
Location: Toronto, Ontario Canada
Posts: 198
Default

Quote:
Originally Posted by revzalot View Post
...I assume you did an OpenBSD netinstall.
No.

I first downloaded (ftp) the "install45.iso" (i386/32-bit) to the Vista host. Then, in VirtualBox, in the openBSD guest's CD/DVD-ROM settings, you enable "Mount the CD/DVD Drive," and enable "ISO Image File," and path to install45.iso.

When you "start" the openBSD guest (virtual machine), it will "boot" the install45.iso just as if this were physical CD-ROM media in a real physical CD-ROM drive on a real physical machine. (It's very striaght forward.)

From there you just follow the install as if it were from the CD-ROM, including all the distro sets.

You can also do a half-and-half by downloading and "booting" "cd45.iso" (instead of install45.iso) and then getting the "rest" of any needed sets over the net.

install45.iso is the whole works. cd45.iso is a skinny boot-only image. If you're on high-speed broadband, get install45.iso; it's just the easiest, especially if you end up wrestling with openBSD/VirtualBox.

/S
__________________
Never argue with an idiot. They will bring you down to their level and beat you with experience.
Reply With Quote
  #4   (View Single Post)  
Old 1st June 2009
s2scott's Avatar
s2scott s2scott is offline
Package Pilot
 
Join Date: May 2008
Location: Toronto, Ontario Canada
Posts: 198
Default Interoperability update: Network Adapters -- intel PRO 1000 M vs. MT

Interoperability update...

GUEST Network Adapter types:
Code:
Intel PRO/1000 T Server (82543GC) /*seems to "just work" (no seg faults). */ 

Intel PRO/1000 MT Server (82545EM) /*emits sporadically "segment fault" errors.*/
My ASUS M3A78-EM HOST as real REALTEK RTL8168C(p)/8111C(P) family PCI-E GBE NICs.

When BRIDGING the above HOST adapter to the openBSD GUEST adapter, using the "MT" type guest adapter results in sporadic openBSD-level "seg faults." Using the "T" type guest adapter has been operating well.

/S
__________________
Never argue with an idiot. They will bring you down to their level and beat you with experience.
Reply With Quote
  #5   (View Single Post)  
Old 2nd June 2009
BSDfan666 BSDfan666 is offline
Real Name: N/A, this is the interweb.
Banned
 
Join Date: Apr 2008
Location: Ontario, Canada
Posts: 2,223
Default

Theo has already publicly stated that VirtualBox is horribly broken.. it doesn't emulate the x86 properly.

I cannot comprehend why people keep trying to use OpenBSD in a virtual environment.. that's like putting 50 locks on your door while keeping a window wide open.

Just say no, beige boxes will always triumph in dark cold clammy corners.

Reference: http://marc.info/?l=openbsd-misc&m=120492689515501&w=2
Relevant words of wisdom: http://marc.info/?l=openbsd-bugs&m=124051336616777&w=2
Reply With Quote
  #6   (View Single Post)  
Old 2nd June 2009
s2scott's Avatar
s2scott s2scott is offline
Package Pilot
 
Join Date: May 2008
Location: Toronto, Ontario Canada
Posts: 198
Default

Quote:
Originally Posted by BSDfan666 View Post
I cannot comprehend why people keep trying to use OpenBSD in a virtual environment..
  1. I do not have yet-another beige box.
  2. I do not want to install compiler and other tools on the production boxes -- a definite security risk/threat vector.
  3. I do not want to suck another 130 WATTS or so nor produce its equivalent in carbon footprint operating yet-another beige box, when a virtual machine *may* instead use an incremental 7-11 WATTS on my under utilized existing machine.
  1. I do want to form (and subsequently fold) a pilot / proof of concept sandbox to play in and keep safe my other production machines and environs.
  2. I do want to use an under-utilized machine that I already have in-hand for (A)'s purposes rather then breed yet-another under-utilized beige box.
  3. I do want to understand visualization -- in all its prevalent variants -- as part of my professional standing as a CISA, CISM and CISSP. And the best way to do so is live in and on the stuff, rather then parrot "someone says."
__________________
Never argue with an idiot. They will bring you down to their level and beat you with experience.
Reply With Quote
  #7   (View Single Post)  
Old 2nd June 2009
s2scott's Avatar
s2scott s2scott is offline
Package Pilot
 
Join Date: May 2008
Location: Toronto, Ontario Canada
Posts: 198
Default

Quote:
Originally Posted by BSDfan666 View Post
  • Dated. Fifteen months of development and advances in the tool.
  • The reverse of the cited argument is also true: the development and use of VM engines has surfaced all sorts of hard-core errors and crappy code lurking in O/S of all flavors and drivers resulting in across the board corrections and improvements.
  • Most projects learn and cooperate in the new ecosystem; certain projects don't.


/S
__________________
Never argue with an idiot. They will bring you down to their level and beat you with experience.

Last edited by s2scott; 2nd June 2009 at 04:16 AM.
Reply With Quote
  #8   (View Single Post)  
Old 2nd June 2009
BSDfan666 BSDfan666 is offline
Real Name: N/A, this is the interweb.
Banned
 
Join Date: Apr 2008
Location: Ontario, Canada
Posts: 2,223
Default

  • The ticket is still open and unresolved.
  • I'm quoting the project leaders views on virutalization, hardly an unreliable source or parroting.

Running OpenBSD in a VM makes OpenBSD vulnerable to bugs in the VM code, it can lead both developers and users down the wrong path.

Low cost, Low power x86 hardware exists.. I do understand that embedded Atom and Via Nano processors use very little power.

IMHO, real hardware is always a better option, virtualization will simply never quite cut it.. and considering the developers will not take any VM bug reports seriously, you're essentially using an unsupported setup.

Take care...
Reply With Quote
  #9   (View Single Post)  
Old 2nd June 2009
s2scott's Avatar
s2scott s2scott is offline
Package Pilot
 
Join Date: May 2008
Location: Toronto, Ontario Canada
Posts: 198
Default

Quote:
Originally Posted by BSDfan666 View Post
  • I'm quoting the project leaders views on virutalization.
Some projects recognize, learn and advance the ecosystem; other projects don't. We've agreed on the point. We've disagreed on its attitude.

/S
__________________
Never argue with an idiot. They will bring you down to their level and beat you with experience.
Reply With Quote
Old 2nd June 2009
s2scott's Avatar
s2scott s2scott is offline
Package Pilot
 
Join Date: May 2008
Location: Toronto, Ontario Canada
Posts: 198
Default

Quote:
Originally Posted by BSDfan666 View Post
  • I'm quoting the project leaders views on virutalization
Code:
-- Harry Chapin Flowers Are Red lyrics

(Spoken)Your son marches to the beat of a different drummer, comer.
(Spoken)But don't worry,
(Spoken)We'll have him joining the parade by the end of the term

The little boy went first day of school
He got some crayons and started to draw
He put colors all over the paper
For colors was what he saw
And the teacher said.. What you doin' young man
I'm paintin' flowers he said
She said... It's not the time for art young man
And anyway flowers are green and red
There's a time for everything young man
And a way it should be done
You've got to show concern for everyone else
For you're not the only one
And she said...
Flowers are red young man
Green leaves are green
There's no need to see flowers any other way
Than they way they always have been seen 
But the little boy said...
There are so many colors in the rainbow
So many colors in the morning sun
So many colors in the flower and I see every one
Well the teacher said.. You're sassy
There's ways that things should be
And you'll paint flowers the way they are
So repeat after me.....
And she said...
Flowers are red young man
Green leaves are green
There's no need to see flowers any other way
Than they way they always have been seen 
But the little boy said...
There are so many colors in the rainbow
So many colors in the morning sun
So many colors in the flower and I see every one
The teacher put him in a corner
She said.. It's for your own good..
And you won't come out 'til you get it right
And are responding like you should
Well finally he got lonely
Frightened thoughts filled his head
And he went up to the teacher
And this is what he said.. and he said
Flowers are red, green leaves are green
There's no need to see flowers any other way
Than the way they always have been seen
Time went by like it always does
And they moved to another town
And the little boy went to another school
And this is what he found
The teacher there was smilin'
She said...Painting should be fun
And there are so many colors in a flower
So let's use every one
But that little boy painted flowers
In neat rows of green and red
And when the teacher asked him why
This is what he said.. and he said
 Flowers are red, green leaves are green
There's no need to see flowers any other way
Than the way they always have been seen. 
But there still must be a way to have our children say . . .
There are so many colors in the rainbow
So many colors in the morning sun
So many colors in the flower and I see every one

-- Harry Chapin Flowers Are Red lyrics
Yes, bsdfan666 (and the cited leads), beige PCs are beige and, in some circles, "there's no need to see flowers --err beige PCs -- any other way."


Cheers, my forum friend.
/S
__________________
Never argue with an idiot. They will bring you down to their level and beat you with experience.

Last edited by s2scott; 2nd June 2009 at 06:10 AM.
Reply With Quote
Old 25th June 2009
revzalot's Avatar
revzalot revzalot is offline
Shell Scout
 
Join Date: May 2008
Posts: 123
Default

Finally installed OBSD in VBox using the iso and thanks. Has anyone succesfully got carp and psfync working using two obsd virtual machines of course? That's my next step. I'm using a Vista host on laptop.
Reply With Quote
Old 26th June 2009
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 8,028
Default

Yes, revzalot. I use Qemu for network testbeds of that sort. And while my normal use of Qemu is on an OpenBSD host, I *have* run the Windows version. The biggest differences on a Windows host were:
  • Requirement for an explicit -L on the command line
  • No obvious way to use -nographic
  • Different virtual NICs work or don't work correctly on each OS.
My personal preference is to interconnect Qemu virtual machines with multicast sockets.
Reply With Quote
Old 30th June 2009
qmemo's Avatar
qmemo qmemo is offline
Real Name: He
Package Pilot
 
Join Date: Jul 2008
Location: The big B
Posts: 141
Default

s2scott

Thanks for this great post, ..... any idea why does it tell me that /dev/console does not exist?

I used all the settings you posted + dynamic space 20G... i did not fully allocated them...

thanks in advance
Reply With Quote
Old 1st July 2009
s2scott's Avatar
s2scott s2scott is offline
Package Pilot
 
Join Date: May 2008
Location: Toronto, Ontario Canada
Posts: 198
Default

Quote:
Originally Posted by qmemo View Post
... any idea why does it tell me that /dev/console does not exist?
Sorry, no i do not know why. Are you using 2.2.4 or did you manage to grab the LATEST, latest, 3.0.0? If 3.0.0, then perhaps it introduced something.

You DID NOT try to install the "guest tools," right.

/S
__________________
Never argue with an idiot. They will bring you down to their level and beat you with experience.
Reply With Quote
Old 1st July 2009
s2scott's Avatar
s2scott s2scott is offline
Package Pilot
 
Join Date: May 2008
Location: Toronto, Ontario Canada
Posts: 198
Default

Quote:
Originally Posted by qmemo View Post
... + dynamic space 20G... i did not fully allocated them...
oBSD fits nicely into 4GB static, unless you're planning on pounding on the compiler a lot.

I've --personally-- NEVER used a dynamic with *UNIX file systems.

/S
__________________
Never argue with an idiot. They will bring you down to their level and beat you with experience.
Reply With Quote
Old 1st July 2009
qmemo's Avatar
qmemo qmemo is offline
Real Name: He
Package Pilot
 
Join Date: Jul 2008
Location: The big B
Posts: 141
Default

s2scott

Thanks for replying me, I am using 2.2.4, and I tend to give my v-machines lots of space ..just in case :P

any way I will try to allocate 4GB and try one more time and btw I still did not try to install guest tools yet D:
Reply With Quote
Old 1st July 2009
s2scott's Avatar
s2scott s2scott is offline
Package Pilot
 
Join Date: May 2008
Location: Toronto, Ontario Canada
Posts: 198
Default

Quote:
Originally Posted by qmemo View Post
... btw I still did not try to install guest tools yet D:
There are no true BSD guest tools, just linux ones, which is why I asked.


/S
__________________
Never argue with an idiot. They will bring you down to their level and beat you with experience.
Reply With Quote
Old 1st July 2009
s2scott's Avatar
s2scott s2scott is offline
Package Pilot
 
Join Date: May 2008
Location: Toronto, Ontario Canada
Posts: 198
Default

I just bumped my virtualbox to release 3.0.0 (from 2.2.4) and re-started my three (3) openBSD 4.5 (32-bit) guests.

Code:
-----(em0)openBSD1         openbsd2(em0) ------ (em0)openBSD3
             (em1) ------- (em1)
All is in in order so far!

In fact, now with VT-x/AMD-V: Enabled (and working), the openBSD-as-guests network performance "feels" faster. Too early to tell (quantify) for sure.

/S

N.B.: fresh out of the oven, 3.0.0, released 2009/6/29.
__________________
Never argue with an idiot. They will bring you down to their level and beat you with experience.

Last edited by s2scott; 1st July 2009 at 11:53 AM.
Reply With Quote
Old 1st July 2009
qmemo's Avatar
qmemo qmemo is offline
Real Name: He
Package Pilot
 
Join Date: Jul 2008
Location: The big B
Posts: 141
Default

I must be something wrong cause this time I faced so many segment faults now :P

any way thanks so much for trying to help
Reply With Quote
Reply

Tags
virtualbox, virtualization, vt-x/amd-v

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
Total Success divadgnol67 OpenBSD General 0 6th August 2009 07:15 PM
FreeBSD 7.2 and VirtualBox DNAeon FreeBSD Ports and Packages 12 6th July 2009 02:33 PM
VirtualBox DrJ FreeBSD Ports and Packages 6 18th May 2009 03:46 AM


All times are GMT. The time now is 11:37 AM.


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