Well, I guess it's a matter of terminology. My answer would be "it's the same thing". I guess some people refer to the first sector as a "bootsector" and what I would call a "second stage loader" as the "bootloader". More info here:
http://wiki.osdev.org/BootloaderIn any case, the first thing you want to do is:
nasm -f bin boot11.asm -o boot.bin
Now you've created a "bootsector". If you had a real floppy drive, you'd put a real floppy disk into it, format it if it isn't already formatted ("format a:"), copy some file named "loader.bin" to it, and write "boot.bin" to sector 1. "Copy" won't do this. John Fine's "partcopy" used to be popular, or "rawwrite", or DEBUG will do it. Then reboot your machine, telling the BIOS setup that you want to boot from "drive a:" if it isn't already set to do so.
I ASSume what you want to do is to "fool" virtual box into thinking that's what you did, if possible. If it isn't possible, you'll have to modify the code to comply with what it will do. I'm not familiar with virtual box, so you'll have to tell me about it. What does it say in the manual? (you have read the manual, right?) What did you do? What happened?
We've got a general rule on the Forum: "the less they give us, the less we give them". In other words, if you (this means "everybody" not just "you" personally) expect us to "give me the code" you aren't likely to get what you want. If you can show that you've put some effort into it and tried to solve the problem, we'll bend over backwards to help you. Before we can possibly help you, we need to know:
1) what are you trying to do (OS, other tools besides Nasm, etc.)
2) exactly what did you do?
3) what did you "expect" (hope) would happen?
4) what actually happened? (exact error message(s), no output, "garbage" output, etc.)
So far, it's been "like pulling teeth" to get any information out of you. "Give us more" and we'll try to "give you more"!
Best,
Frank