Re: NetBSD 7.1 i386 on Virtualbox (fatal breakpoint trap in supervisor mode)

2017-07-16 Thread coypu
On Sun, Jul 16, 2017 at 06:48:46PM +, Valery Ushakov wrote:
> Finally found my old mail on the topic:
> 
>   http://mail-index.netbsd.org/netbsd-users/2013/06/21/msg013010.html

there's vm_guest you can add the hypervisor to to add a quirk in x86_patch


Re: NetBSD 7.1 i386 on Virtualbox (fatal breakpoint trap in supervisor mode)

2017-07-16 Thread Valery Ushakov
Thor Lancelot Simon  wrote:

> On Sun, Jul 16, 2017 at 05:35:09PM +, Valery Ushakov wrote:
>> 
>> Right, because you use VT-x.  Older CPUs and low-end CPUs (atoms)
>> don't have VT-x.  Even if your CPU supports it, you might also need to
>> explicitly enable VT-x in BIOS (not a problem for OSX).
> 
[...]
> The problem with VirtualBox without VT-x is that their trick of
> patching the guest OS to run in ring 3 doesn't play nice with our
> method of dynamically patching various primitives in the kernel to
> be efficient in particular machine configurations.  I thought they'd
> fixed that, though...

Finally found my old mail on the topic:

  http://mail-index.netbsd.org/netbsd-users/2013/06/21/msg013010.html

You refer to second problem.  Dunno if it's been fixed.  The first one
is more complex.

As for the TSS, someone with x86 clue should look into this.  Might
give a performance boost under qemu too - will be good for anita runs.

-uwe



Re: NetBSD 7.1 i386 on Virtualbox (fatal breakpoint trap in supervisor mode)

2017-07-16 Thread Thor Lancelot Simon
On Sun, Jul 16, 2017 at 05:35:09PM +, Valery Ushakov wrote:
> 
> Right, because you use VT-x.  Older CPUs and low-end CPUs (atoms)
> don't have VT-x.  Even if your CPU supports it, you might also need to
> explicitly enable VT-x in BIOS (not a problem for OSX).

I think even all current-production Atom CPUs have VT-x, and have for
a few years now.

The problem with VirtualBox without VT-x is that their trick of
patching the guest OS to run in ring 3 doesn't play nice with our
method of dynamically patching various primitives in the kernel to
be efficient in particular machine configurations.  I thought they'd
fixed that, though...

Thor


Re: NetBSD 7.1 i386 on Virtualbox (fatal breakpoint trap in supervisor mode)

2017-07-16 Thread Valery Ushakov
Gua Chung Lim  wrote:
> * Valery Ushakov (u...@stderr.spb.ru) wrote:
>> Without VT-x enabled VirtualBox fails to run NetBSD by default.  This
>> is a VirtualBox limitation, it cannot correctly handle some low-level
>> kernel code that NetBSD uses.  IIRC, using --recompile-supervisor flag
>> should help in this case.
>
> I'm not quite sure what you mean.
> But on my machine, NetBSD runs behind VirtualBox on macOS host pretty 
> fine with default configuration. I have been running it for years.

Right, because you use VT-x.  Older CPUs and low-end CPUs (atoms)
don't have VT-x.  Even if your CPU supports it, you might also need to
explicitly enable VT-x in BIOS (not a problem for OSX).

-uwe



Re: NetBSD 7.1 i386 on Virtualbox (fatal breakpoint trap in supervisor mode)

2017-07-16 Thread Gua Chung Lim
* Valery Ushakov (u...@stderr.spb.ru) wrote:
> Without VT-x enabled VirtualBox fails to run NetBSD by default.  This
> is a VirtualBox limitation, it cannot correctly handle some low-level
> kernel code that NetBSD uses.  IIRC, using --recompile-supervisor flag
> should help in this case.
I'm not quite sure what you mean.
But on my machine, NetBSD runs behind VirtualBox on macOS host pretty 
fine with default configuration. I have been running it for years.

-- 
Gua Chung Lim
 
If you desire knowledges, learn one thing everyday.
If you desire wisdom, leave one thing everyday.
 
-- Lao Tzu


Re: NetBSD 7.1 i386 on Virtualbox (fatal breakpoint trap in supervisor mode)

2017-07-16 Thread Rodolfo Edgar
2017-07-16 8:53 GMT-05:00, Valery Ushakov :
> Rodolfo Edgar  wrote:
>
>> 2017-07-15 20:35 GMT-05:00, Valery Ushakov :
>>> Rodolfo Edgar  wrote:
>>>
 I have machine when I am using virtualbox, I use 32 bits operating
 system as Debian, CentOS, FreeBSD, but NetBSD and OpenBSD have
 problem, in this case NetBSD 6.x or 7.x have problem:
 The screenshot about NetBSD and VirtualBox

 http://i.imgur.com/RtynhXn.png

 I want to use NetBSD, what is the procedure to do NetBSD install
 normally? Thanks you for your reply.
>>>
>>> Do you have VT-x enabled on the host?
>>
>> Is not necesary,  because I can run 32 bits machines, currently have
>> my real machine is a Notebook compaq 610, I have operating system 64
>> bits, my guest all are 32 bits operating system, I have FreeBSD and
>> others 32 bits, it's works, but NetBSD 32 bits nothing :(
>
> What do you mean by "is not necessary"?  Do you have VT-x enabled or
> not?
My machine don't support VT-x, is intel, but i can run 32 bits
operating system as FreeBSD 32 bits, GNU/Linux 32 bits, but NetBSD
nothing :(

>
> -uwe
>
>


Re: NetBSD 7.1 i386 on Virtualbox (fatal breakpoint trap in supervisor mode)

2017-07-16 Thread Valery Ushakov
Rodolfo Edgar  wrote:

> 2017-07-15 20:35 GMT-05:00, Valery Ushakov :
>> Rodolfo Edgar  wrote:
>>
>>> I have machine when I am using virtualbox, I use 32 bits operating
>>> system as Debian, CentOS, FreeBSD, but NetBSD and OpenBSD have
>>> problem, in this case NetBSD 6.x or 7.x have problem:
>>> The screenshot about NetBSD and VirtualBox
>>>
>>> http://i.imgur.com/RtynhXn.png
>>>
>>> I want to use NetBSD, what is the procedure to do NetBSD install
>>> normally? Thanks you for your reply.
>>
>> Do you have VT-x enabled on the host?
> 
> Is not necesary,  because I can run 32 bits machines, currently have
> my real machine is a Notebook compaq 610, I have operating system 64
> bits, my guest all are 32 bits operating system, I have FreeBSD and
> others 32 bits, it's works, but NetBSD 32 bits nothing :(

What do you mean by "is not necessary"?  Do you have VT-x enabled or
not?

-uwe



Re: NetBSD 7.1 i386 on Virtualbox (fatal breakpoint trap in supervisor mode)

2017-07-16 Thread coypu
On Sun, Jul 16, 2017 at 08:40:00AM +, co...@sdf.org wrote:
> https://www.virtualbox.org/ticket/3947

Never mind, I misread it...


Re: NetBSD 7.1 i386 on Virtualbox (fatal breakpoint trap in supervisor mode)

2017-07-16 Thread Marc Balmer
> Am 15.07.2017 um 16:53 schrieb Rodolfo Edgar :

>
> The screenshot about NetBSD and VirtualBox
>
> http://i.imgur.com/RtynhXn.png
>
> I want to use NetBSD, what is the procedure to do NetBSD install
> normally? Thanks you for your reply.

Last time i checked (which, admittedly, was several years ago), VirtualBox
had trouble running any BSD operating systems. They were mainly interested
in Linux, and bugs which surfaced in „niche“ OSes did not bother the
developers all that much.

qemu works better but is slower.


NetBSD runs just fine on VirtualBox.  I use it all the time this way.
FWIW, a NetBSD developer even works for them.


Re: NetBSD 7.1 i386 on Virtualbox (fatal breakpoint trap in supervisor mode)

2017-07-16 Thread Benny Siegert

> Am 15.07.2017 um 16:53 schrieb Rodolfo Edgar :
> 
> The screenshot about NetBSD and VirtualBox
> 
> http://i.imgur.com/RtynhXn.png
> 
> I want to use NetBSD, what is the procedure to do NetBSD install
> normally? Thanks you for your reply.

Last time i checked (which, admittedly, was several years ago), VirtualBox had 
trouble running any BSD operating systems. They were mainly interested in 
Linux, and bugs which surfaced in „niche“ OSes did not bother the developers 
all that much.

qemu works better but is slower.

—Benny.


Re: NetBSD 7.1 i386 on Virtualbox (fatal breakpoint trap in supervisor mode)

2017-07-15 Thread Rodolfo Edgar
2017-07-15 20:35 GMT-05:00, Valery Ushakov :
> Rodolfo Edgar  wrote:
>
>> I have machine when I am using virtualbox, I use 32 bits operating
>> system as Debian, CentOS, FreeBSD, but NetBSD and OpenBSD have
>> problem, in this case NetBSD 6.x or 7.x have problem:
>> The screenshot about NetBSD and VirtualBox
>>
>> http://i.imgur.com/RtynhXn.png
>>
>> I want to use NetBSD, what is the procedure to do NetBSD install
>> normally? Thanks you for your reply.
>
> Do you have VT-x enabled on the host?

Is not necesary,  because I can run 32 bits machines, currently have
my real machine is a Notebook compaq 610, I have operating system 64
bits, my guest all are 32 bits operating system, I have FreeBSD and
others 32 bits, it's works, but NetBSD 32 bits nothing :(

>
> -uwe
>
>


Re: NetBSD 7.1 i386 on Virtualbox (fatal breakpoint trap in supervisor mode)

2017-07-15 Thread Valery Ushakov
Rodolfo Edgar  wrote:

> I have machine when I am using virtualbox, I use 32 bits operating
> system as Debian, CentOS, FreeBSD, but NetBSD and OpenBSD have
> problem, in this case NetBSD 6.x or 7.x have problem:
> The screenshot about NetBSD and VirtualBox
> 
> http://i.imgur.com/RtynhXn.png
> 
> I want to use NetBSD, what is the procedure to do NetBSD install
> normally? Thanks you for your reply.

Do you have VT-x enabled on the host?

-uwe