Bochs 2.6
  • Acolyte of the Butterfly
    Acolyte of the Butterfly
    Derringer
    Posts: 103 from 2008/8/4
    From: Budapest, Hung...
    I play with the latest Bochs a few days ago, but i have some issues with it:

    I tried to set up winxp to an image file, but under MOS the bximage util cannot create larger files than 2GB. It's on Icefilesystem anyway. If i move an image file larger than 2 gigs from a pc, it is not recognized, if i let it to Auto or even i set the correct cylinder/heads/etc datas.

    anyway, different setup result:

    http://i.imgur.com/hDXpl1F.jpg

    boot time is about 11 min...but, works! :-D

    [ Edited by Derringer 15.04.2013 - 23:24 ]
    MorphOS PowerBook G4 1,67GHz, 2GB Ram, 250GBHdd, ATI 9700/128MB
    Morphos G5 2,7GHz, 8GB Ram, 500GB Hdd, ATi Passive cooled 9800 PRO/128MB
  • »15.04.13 - 21:23
    Profile
  • Paladin of the Pegasos
    Paladin of the Pegasos
    koszer
    Posts: 1246 from 2004/2/8
    From: Poland
    How did you get it to work? I tried this version and I get PANIC every time (could not open the vga font).

    Could you please share your .bochsrc with me?
  • »15.04.13 - 21:58
    Profile
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    boot_wb
    Posts: 874 from 2007/4/9
    From: Kingston upon ...
    @Derringer

    Nice! Always wanted to see XP boxed on Ambient desktop :-)

    On Powerbook 5,6 (512MB ram) I've created a 1GB hardfile (on SFS) - bximage was able to create the image with no problems.

    .bochsrc changes made:

    1) I've set the ATA master section as:
    Quote:

    ata0-master: type=disk, path="work:applications_test/bochs-2.6/images/c.img", mode=flat, cylinders=2080, heads=16, spt=63

    2) I've set host/guest ram to 256/128 (as I only have 512MB ram myself).

    I've not made any other configuration changes.

    When running bochs (double-click bochs executable) I get the following error:
    Quote:

    00000000000i[ ] installing amigaos module as the Bochs GUI
    00000000000i[ ] using log file bochsout.txt
    terminate called after throwing an instance of 'std::bad_alloc'
    what(): std::bad_alloc
    Abort trap - Work:Applications_Test/bochs-2.6/bochs


    Were there any other config changes you made to get it working?

    (NB - I successfully created a 10GB hardfile on ext2 using bximage util, although with the same result when I tried to launch bochs. I changed the ATA line appropriately when testing this.)

    [ Edited by boot_wb 15.04.2013 - 23:05 ]
    www.hullchimneyservices.co.uk

    UI: Powerbook 5,6 (1.67GHz, 128MB VRam): OS3.1, OSX 10.5.8
    HTPC: Mac Mini G4 (1,5GHz, 64MB VRam): OS3.1 (ZVNC)
    Audiophile: Efika 5200b (SB Audigy): OS3.1 (VNC + Virtual Monitor)

    Windows free since 2011!
  • »15.04.13 - 22:02
    Profile Visit Website
  • Acolyte of the Butterfly
    Acolyte of the Butterfly
    Derringer
    Posts: 103 from 2008/8/4
    From: Budapest, Hung...
    koszer,
    Quote:

    How did you get it to work? I tried this version and I get PANIC every time (could not open the vga font).

    Could you please share your .bochsrc with me?


    old trick: i copied, and renamed newtopaz.font which was already in my fonts folder to vga.font,
    anyway a few days later it is appeared on aminet:

    http://aminet.net/package/text/font/vga-font
    However, i don't try this.

    If you wish i share, my .bochsscr, but mostly i give it 1Gigz ram,set boot to cdrom image, set up a 2gigz hardfile,

    Quote:

    2) I've set host/guest ram to 256/128 (as I only have 512MB ram myself).


    uhh, with 256Mb ram my boot process was 24min.

    Because i have only xp prof sp3 in my hands, tricked the setup. (AFAIK it needs more than 2GB space) I used HIREN's boot cd, it's contains a bootable winxp sp2 image, and it don't need to setup, and the whole iso is 0,6GB.



    [ Edited by Derringer 16.04.2013 - 00:44 ]
    MorphOS PowerBook G4 1,67GHz, 2GB Ram, 250GBHdd, ATI 9700/128MB
    Morphos G5 2,7GHz, 8GB Ram, 500GB Hdd, ATi Passive cooled 9800 PRO/128MB
  • »15.04.13 - 22:38
    Profile
  • Moderator
    Develin
    Posts: 100 from 2003/4/19
    From: Karlstad, Sweden
    I cheated a little used my PC to create a 1.5 GB image and installed XP via QEMU :)
    Here is the result : http://www.onyxsoft.se/stefan/morphos/bochsxp2.png
  • »15.04.13 - 23:31
    Profile Visit Website
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    bash64
    Posts: 958 from 2010/10/29
    From: USA
    Develin,

    I would like to do this.
    Can you provide the hd image file for download?
    Or some steps to configuring bochs correctly?
    Braggin rights at the club only. I have no interrest in running Windows. I can just hit the kvm switch and run windows all I want.
    :-D
    Mac G5 ISight 21" 2.5 gb of ram 233gb hd matshita dvd-r uj-846
    Powerbook G4 1.67ghz 2GB, ATI 9700M Pro 128mb
    1TB hd, DL-DVD Burner, Netgear pcmcia wireless card.
    ImageFX 4.5, PageStream 3.3, PhotoGenics 5.0
  • »16.04.13 - 20:53
    Profile Visit Website
  • Moderator
    Develin
    Posts: 100 from 2003/4/19
    From: Karlstad, Sweden
    I cannot supply you with this image sadly, but it's pretty easy to create one.
    download bochs and qemu (I used kvm in this case).

    create a empty image with bximage (just start it and you can follow the instructions, I didn't change anything from the default values except from the actuall name of the image and size) let's call it windowsxp.img

    start qemu with your favourite OS of choice like :

    kvm -boot d -cdrom installdisk.iso -hda windowsxp.img

    This starts qemu and the installer etc. when your done just copy the image to your MorphOS-machine and adjust following .bochsrc-file to suite your needs.


    megs: 256
    cpu: count=1, ips=6000000, reset_on_triple_fault=1, ignore_bad_msrs=1, msrs="msrs.def"
    romimage: file=bios/BIOS-bochs-latest
    vgaromimage: file=bios/VGABIOS-lgpl-latest
    vga:extension=vbe, update_freq=5
    pci: enabled=1, chipset=i440fx, slot1=pcivga
    ata0: enabled=1, ioaddr1=0x1f0, ioaddr2=0x3f0, irq=14
    ata1: enabled=1, ioaddr1=0x170, ioaddr2=0x370, irq=15
    ata0-master: type=disk, path="Work:Emulatorer/bochs/images/windowsxp.img"
    boot: c
    config_interface: textconfig
    display_library: amigaos
    log: bochsout.txt
    mouse: enabled=1
    clock: sync=none, time0=1


    I've tried to do this with a nightly build of AROS i386 aswell so I assume that it would be possible run pretty much every OS here :)

    [ Edited by Develin 17.04.2013 - 01:00 ]
  • »16.04.13 - 22:57
    Profile Visit Website
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    bash64
    Posts: 958 from 2010/10/29
    From: USA
    ok, I have done everything right and now I must be punished.
    Bochs comes up but locks up my powerbook G4.
    The image was created and installed on a windows machine with bximage and qemu.
    XP is installed.
    I open a shell:
    >bochs

    The config file is from your post and the location of the windowsxp.img file is correct.

    :-(

    I tried:
    >bochs -f .bochsrc

    also.


    [ Edited by bash64 16.04.2013 - 22:33 ]
    Mac G5 ISight 21" 2.5 gb of ram 233gb hd matshita dvd-r uj-846
    Powerbook G4 1.67ghz 2GB, ATI 9700M Pro 128mb
    1TB hd, DL-DVD Burner, Netgear pcmcia wireless card.
    ImageFX 4.5, PageStream 3.3, PhotoGenics 5.0
  • »17.04.13 - 02:29
    Profile Visit Website
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    bash64
    Posts: 958 from 2010/10/29
    From: USA
    More info:

    Bochs is exiting with the following message:
    [IMG ] size of disk image not detected / invalid

    This happens, the GUI comes up and then the whole system locks up.

    Here is my config:
    megs: 512
    cpu: count=1, ips=6000000, reset_on_triple_fault=1, ignore_bad_msrs=1, msrs="msrs.def"
    romimage: file=bios/BIOS-bochs-latest
    vgaromimage: file=bios/VGABIOS-lgpl-latest
    vga:extension=vbe, update_freq=5
    pci: enabled=1, chipset=i440fx, slot1=pcivga
    ata0: enabled=1, ioaddr1=0x1f0, ioaddr2=0x3f0, irq=14
    ata1: enabled=1, ioaddr1=0x170, ioaddr2=0x370, irq=15
    ata0-master: type=disk, path="images/windowsxp.img"
    boot: c
    config_interface: textconfig
    display_library: amigaos
    log: bochsout.txt
    mouse: enabled=1
    clock: sync=none, time0=1
    Mac G5 ISight 21" 2.5 gb of ram 233gb hd matshita dvd-r uj-846
    Powerbook G4 1.67ghz 2GB, ATI 9700M Pro 128mb
    1TB hd, DL-DVD Burner, Netgear pcmcia wireless card.
    ImageFX 4.5, PageStream 3.3, PhotoGenics 5.0
  • »17.04.13 - 02:42
    Profile Visit Website
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    bash64
    Posts: 958 from 2010/10/29
    From: USA
    Hmmmmmmmmmmmmmmm.....

    I went back to the original .bochsrc file which is for MorphOS and just changed the line for the hard drive and it works wiihtout locking up.
    However, same error, cannot determine disk size.
    Cannot boot off the image file.
    .img file crated with bximage.exe on windows.
    qemu used to install xp pro.
    Shutdown windows xp pro last thing I did.
    Copied to amiga using ntfs external drive.
    Copied to an internal ICEfs drive.
    Mac G5 ISight 21" 2.5 gb of ram 233gb hd matshita dvd-r uj-846
    Powerbook G4 1.67ghz 2GB, ATI 9700M Pro 128mb
    1TB hd, DL-DVD Burner, Netgear pcmcia wireless card.
    ImageFX 4.5, PageStream 3.3, PhotoGenics 5.0
  • »17.04.13 - 03:17
    Profile Visit Website
  • Moderator
    Develin
    Posts: 100 from 2003/4/19
    From: Karlstad, Sweden
    When you created the image with bximage you get some geometry figures maybe you still has the original ones in the rc file which doesn't work with your new image?
    I noticed that I didn't need to have it specified in the file anymore though.
    Backup the orginal file and create a new one with what I pasted above as a test.
  • »17.04.13 - 05:43
    Profile Visit Website
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    bash64
    Posts: 958 from 2010/10/29
    From: USA
    I went back to bximage and recreated a new file but just wrote down the geometry only.
    Plugged the geometry into the .bochsrc file and same issue.
    Commented out the deffualt line and uncommented a line that specified autodetection - same issue.
    All I can assume is that there is something not right with the file.
    Going back to windows to let qemu boot it again.
    Mac G5 ISight 21" 2.5 gb of ram 233gb hd matshita dvd-r uj-846
    Powerbook G4 1.67ghz 2GB, ATI 9700M Pro 128mb
    1TB hd, DL-DVD Burner, Netgear pcmcia wireless card.
    ImageFX 4.5, PageStream 3.3, PhotoGenics 5.0
  • »17.04.13 - 09:03
    Profile Visit Website
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    bash64
    Posts: 958 from 2010/10/29
    From: USA
    Well, found an issue.
    The archive name is bochs-2.6.lha
    dearchive it and you get a home folder of /bochs-2.6/
    This does wonderful things for the emualtor like crashing it.
    Renamed it to /bochs and now it finds the .img file and says it is 10gb which is correct.
    It says Booting from hard disk and then 'Boot failed: could not read the boot disk'.
    I checked the permissions and the file is RWD.

    Gotta keep trying.
    Mac G5 ISight 21" 2.5 gb of ram 233gb hd matshita dvd-r uj-846
    Powerbook G4 1.67ghz 2GB, ATI 9700M Pro 128mb
    1TB hd, DL-DVD Burner, Netgear pcmcia wireless card.
    ImageFX 4.5, PageStream 3.3, PhotoGenics 5.0
  • »17.04.13 - 09:25
    Profile Visit Website