Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More space on Windows 98 VM. #1

Open
SrIzan10 opened this issue Feb 12, 2021 · 30 comments
Open

More space on Windows 98 VM. #1

SrIzan10 opened this issue Feb 12, 2021 · 30 comments
Assignees
Labels
being worked on documentation Improvements or additions to documentation enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed

Comments

@SrIzan10
Copy link

Hi, I love your work with your script but when I installed games it said that I ran out of space. Can you resize the image so it can be 8 gb (or less)?
Or can you show me how can I put more space in the virtual hard drive.
Thanks!

@Itai-Nelken
Copy link
Owner

Itai-Nelken commented Feb 12, 2021

I'll add a tutorial to the readme, but here is how to do it:
open terminal and run:

cd ~/win98
qemu-img resize win98.qcow2 20G

you can change 20G with any size you want.

Thats the command if I remember correctly.

@SrIzan10
Copy link
Author

Thanks, I'll try when finish installing Premiere.

@Itai-Nelken
Copy link
Owner

@SrIzan10 did it work?

@SrIzan10
Copy link
Author

The image broke because of a Windows protecion error (I didn't resize it). I'll redownload the tar.gz.

@SrIzan10
Copy link
Author

SrIzan10 commented Feb 14, 2021

image
Hmmm... I think that the image flooded with unallocated space and the OS doesn't recognize it. I am going to see it via Partlogic
(https://partitionlogic.org.uk/download/). I'm running this command: qemu-system-x86_64 -hda 8gbwin98copiaseguridadcopiadeguridad.qcow2 -cdrom partlogic.iso -boot d -soundhw sb16 -m 512M

@SrIzan10
Copy link
Author

image
And yes, it was. I'm going to resize it.
image
Ok, it's good. I'm going to boot up in Windows.

@SrIzan10
Copy link
Author

image
And... no. It didn't work. I'll install soundblaster drivers so sound can work. I'll try later.

@Itai-Nelken
Copy link
Owner

try this:
follow the instructions here to mount the qcow2 image, once its mounted open gparted and resize the windows partition to fill all the unalocated space.
apply the changes and boot the VM.
it should work.

@Itai-Nelken
Copy link
Owner

also if you manage to get sound, can you send the steps in a new issue so I can add it?

@SrIzan10
Copy link
Author

If I manage to get sound succesfully, can you credit me on the tutorial?

@SrIzan10
Copy link
Author

try this:
follow the instructions here to mount the qcow2 image, once its mounted open gparted and resize the windows partition to fill all the unalocated space.
apply the changes and boot the VM.
it should work.

Instructions didn't work. It doesn't show on gparted

@Itai-Nelken
Copy link
Owner

If I manage to get sound succesfully, can you credit me on the tutorial?

yes, of course!

@Itai-Nelken
Copy link
Owner

Instructions didn't work. It doesn't show on gparted

I'll try to find a way tomorrow.

@Itai-Nelken Itai-Nelken self-assigned this Feb 14, 2021
@Itai-Nelken
Copy link
Owner

I'm working on finding a solution.

@Itai-Nelken Itai-Nelken added enhancement New feature or request good first issue Good for newcomers being worked on labels Feb 20, 2021
@SrIzan10
Copy link
Author

Ok, thanks for your work @Itai-Nelken !

@Itai-Nelken Itai-Nelken added documentation Improvements or additions to documentation help wanted Extra attention is needed labels Mar 4, 2021
@Itai-Nelken
Copy link
Owner

Itai-Nelken commented Mar 19, 2021

ok, @SrIzan10 I have a idea:

  1. resize the virtual HD: qemu-img resize win98.qcow2 20G change 20G with the size you want.
  2. Download this puppy linux iso: http://distro.ibiblio.org/puppylinux/puppy-bionic/bionicpup32/bionicpup32-8.0-uefi.iso
  3. boot it with this command using the win98 HD:
qemu-system-x86_64 -hda win98.qcow2 -device sb16 -cdrom bionicpup32-8.0-uefi.iso -boot d
  1. once puppy linux booted succesfully (hopefully) install gparted and expand the partition of the HD.
  2. shut down puppy linux and start the VM normally.

This wasn't tested, but I hope it works.

I picked puppy linux because its very light and I hope will run at aceptable speeds.

@SrIzan10
Copy link
Author

SrIzan10 commented Mar 19, 2021

Ok, I’ll try when I go to home. Thank you.

@SrIzan10
Copy link
Author

SrIzan10 commented Mar 19, 2021

How can I make the VM run better? I tried -smp 2 but it didn't work. Do I need to make another issue with that?

@Itai-Nelken
Copy link
Owner

How can I make the VM run better? I tried -smp 2 but it didn't work. Do I need to make another issue with that?

that gives it an extra core. no you can't. its emulation, so the faster your host CPU is the faster the VM is, and the pi isn't that powerful.

did it work?

@SrIzan10
Copy link
Author

No, it was stuck at Setting up networking...
Can you try it?

@Itai-Nelken
Copy link
Owner

No, it was stuck at Setting up networking...
Can you try it?

yes, I'll try it.

@Itai-Nelken
Copy link
Owner

this isn't working for me unfortunately...
I'll have to find a different way...

@Itai-Nelken
Copy link
Owner

Itai-Nelken commented Mar 31, 2021

this might work

  • shutoff vm.
  • duplicate image (so you have a backup in case something goes wrong) cp win98.qcow2 win98backup.qcow2.
  • run qemu-img resize win98.qcow2 +SIZE (replace SIZE with the size, for example 20G)
  • boot gparted live click here to download it and resize the partition (qemu-system-x86_64 - hda win98.qcow2 -cdrom gparted-live-1.2.0-1-i686.iso - boot d - m 512 to boot

@SrIzan10 can you try that?

@SrIzan10
Copy link
Author

SrIzan10 commented Apr 1, 2021

Yeah, I'll try tomorrow. Thanks @Itai-Nelken

@Itai-Nelken
Copy link
Owner

BTW @SrIzan10 did you get sound working?
I tried to use a few of the sound cards QEMU can emulate and after using the default drivers from the win98 CD the system always froze and broke after starting the startup sound.

@Itai-Nelken
Copy link
Owner

Itai-Nelken commented Apr 1, 2021

@SrIzan10
Copy link
Author

SrIzan10 commented Apr 2, 2021

https://drive.google.com/file/d/1ayOY0krVLix8TuoNEayJO7AwialaadXg/view?usp=drivesdk
What the startup sound was like

I was thinking it was a prank of april fools! 😄
Yeah, that sounds like a BSOD.

@SrIzan10
Copy link
Author

SrIzan10 commented Apr 2, 2021

BTW @SrIzan10 did you get sound working?
I tried to use a few of the sound cards QEMU can emulate and after using the default drivers from the win98 CD the system always froze and broke after starting the startup sound.

It could be something about Pulseaudio. Check Pavucontrol. And, I didn't get sound working, only on Dosbox-X. I'm eating right now, I'll try the new method for the gparted vm when I get home.

@SrIzan10
Copy link
Author

SrIzan10 commented Apr 2, 2021

And I installed nt4 yesterday. I'll make a Pull request when I have time 😅

@SrIzan10
Copy link
Author

SrIzan10 commented Apr 2, 2021

And, it was pretty slow. 1 hour later, it didn't even boot up to the gparted screen...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
being worked on documentation Improvements or additions to documentation enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants