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

Add instructions for QEMU to documentation #128

Closed
hw-claudio opened this issue Feb 10, 2021 · 8 comments
Closed

Add instructions for QEMU to documentation #128

hw-claudio opened this issue Feb 10, 2021 · 8 comments

Comments

@hw-claudio
Copy link

Hello,

tried both:

hello-0.4.0_0D11-FreeBSD-13.0-amd64.iso,
hello-0.4.0_0D26-FreeBSD-12.1-amd64.iso

and they both boot to rescue disk for me:

qemu-system-x86_64 --enable-kvm hello-0.4.0_0D11-FreeBSD-13.0-amd64.iso

Enter full pathname of shell or RETURN for /rescue/sh

@probonopd
Copy link
Member

Hello @hw-claudio, thanks for testing.

Some time ago, I had helloSystem running as a guest on QEMU on helloSystem as a host:
#25 (comment)

  • Did you assign at least 4 GB RAM to the virtual machine?
  • Did you use BIOS mode (no UEFI)?

@probonopd
Copy link
Member

On https://app.element.io/#/room/%23helloSystem:matrix.org we got this information:

boot and install of hellosystem worked on qemu on linux x86_64. only thing i needed to do with qemu was to increase the memory from 2 gigs to 4 gigs and remove the usb mouse (tablet) settings

@aki-k
Copy link

aki-k commented Feb 10, 2021

I'm running qemu on Fedora 32 x86_64.

Here are the qemu options I used to boot hellosystem in qemu:

qemu-system-x86_64 -machine type=q35,accel=kvm \
-enable-kvm -cpu host -smp 2 -m 4096 \
-device virtio-net,netdev=vmnic -netdev user,id=vmnic,hostfwd=tcp::5222-:22 \
-vga std -soundhw hda -no-quit \
-drive format=raw,file=${HOME}/.qemu/hellosystem/hellosystem.img

For the first boot I also used these qemu options but removed them when it was installed on the qemu disk:

-drive format=raw,file=${HOME}/Downloads/hello-0.4.0_0D26-FreeBSD-12.1-amd64.iso \
-boot menu=on

@probonopd
Copy link
Member

@hw-claudio can you please try those exact settings? If they work for many users, we may want to add them to https://hellosystem.github.io/docs/user/getting-started.html#tested-virtualization-environments

@aki-k
Copy link

aki-k commented Feb 10, 2021

To boot/install in UEFI mode, first install OVMF Open Virtual Machine Firmware on your qemu host side.

The package name for Fedora 32 is edk2-ovmf.

Then add these two qemu options for the VM start:

-bios /usr/share/edk2/ovmf/OVMF_CODE.fd \
-smbios type=0,vendor=0vendor,version=0version,date=0date,release=0.0,uefi=on

@aki-k
Copy link

aki-k commented Feb 12, 2021

I found out if i use -vga std instead of -vga virtio in qemu, I get the full resolution, not just 800x600.
I'll edit my previous comment here.

@probonopd probonopd changed the title ISOs run under qemu just boot to rescue disk Add instructions for QEMU to documentation Feb 12, 2021
@probonopd
Copy link
Member

Let's add this information to https://github.com/helloSystem/docs/blob/main/user/getting-started.md#tested-virtualization-environments. Do you want to edit that page?

@probonopd
Copy link
Member

Instructions have been added to the helloSystem documentation. Thank you very much. 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants