Virtualise everything

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
unplygOS
Posts: 3
Joined: Wed Aug 06, 2008 12:27 pm

Virtualise everything

Post by unplygOS »

On my laptop, I'm running openSUSE 11. And because my floppy drive doesn't work I was thinking of testing and debugging my OS using virtualbox. It works really well with oses such as haiku (http://www.haiku-os.org). But I can't even get a "virtual" grub booting floppy to work :( . I've followed the tutorial on Loopback_Device and that didn't work, I also followed that tutorial and in /mnt/myfloppy and ran
# dd if=stage1 of=/dev/loop0 bs=512 count=1
# dd if=stage2 of=/dev/loop0 bs=512 seek=1
but all i got when i "virtualised" it is i got "GRUB" printed on the screen for as long as I kept the virtual machine running.

Can someone help me create a virtual floppy.
A virtual machine is the only type of machine my OS is ever going to see.

Thanks in advanced
DeletedAccount
Member
Member
Posts: 566
Joined: Tue Jun 20, 2006 9:17 am

Re: Virtualise everything

Post by DeletedAccount »

Hi,
havent seen a nix box in ages ........ :(

however try appending conv = notrunc to the dd commands

Regards
Shrek
User avatar
Combuster
Member
Member
Posts: 9301
Joined: Wed Oct 18, 2006 3:45 am
Libera.chat IRC: [com]buster
Location: On the balcony, where I can actually keep 1½m distance
Contact:

Re: Virtualise everything

Post by Combuster »

Or grab a precompiled GRUB floppy image.
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
quok
Member
Member
Posts: 490
Joined: Wed Oct 18, 2006 10:43 pm
Location: Kansas City, KS, USA

Re: Virtualise everything

Post by quok »

Personally, I find it much easier to just create a bootable ISO image than to mess with making bootable floppies. WIth bootable ISO images you don't have to worry about mounting a loopback device or esoteric options to the dd command. Making a bootable ISO image is rather easy even on the command line, and every GUI application I've ever used (such as Nero or whatever) supports it as well.

There's even a tutorial on the wiki that describes just how to do this. See Bootable_El-Torito_CD_with_GRUB_Legacy.
unplygOS
Posts: 3
Joined: Wed Aug 06, 2008 12:27 pm

Re: Virtualise everything

Post by unplygOS »

Thanks for the tip, I'm going to start right away.

Hope it works.

Oh and do you like the name of my new OS. It's simplicity in welsh.

Thanks quok
System123
Member
Member
Posts: 196
Joined: Mon Jul 07, 2008 1:25 am

Re: Virtualise everything

Post by System123 »

If possible use Bochs. Its easy to configure. You can also make use of an ISO which boots easier.
Gizmic OS
Currently - Busy with FAT12 driver and VFS
User avatar
Combuster
Member
Member
Posts: 9301
Joined: Wed Oct 18, 2006 3:45 am
Libera.chat IRC: [com]buster
Location: On the balcony, where I can actually keep 1½m distance
Contact:

Re: Virtualise everything

Post by Combuster »

unplygOS wrote:Oh and do you like the name of my new OS. It's simplicity in welsh.
It reads like unplugOS (unplugged as in guitar play, or terminology from the Matrix) Whether that's a good association or not is debatable.
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
Post Reply