Re: qemu and raspberrypi

2022-05-10 Thread Philipp Ammann
Hi Marco,

I haven't tried it myself but the Raspberry Pi 2 is a supported machine:

https://wiki.qemu.org/Documentation/Platforms/ARM

and

$ qemu-system-aarch64 -machine help | grep raspi
raspi2   Raspberry Pi 2

Generally you can follow any tutorial on creating a Raspbian VM using
qemu. It doesn't matter whether the host is an ARM or x86. Also Raspbian
is basically Debian, so most info you find for Debian is likely also
valid for Raspbian.

Good luck
Philipp

Am 10.05.22 um 17:48 schrieb Marco Capella:
> English translation by google, original text below.
> 
> Hello.
> 
> Guys, my knowledge in English is equal to zero and I also don't know if
> the correct place to
> 
> post and here so I apologize in advance ok
> 
> I have an RPi4 with 4gb of memory, I'm studying shell script to automate
> 
> commands or install applications for example, I would love to create a
> machine
> 
> virtual with qemu to test these scripts without ending up messing up my
> usage system
> 
> main, for testing the commands a lot and mainly, testing the
> installation and
> 
> uninstalling apps I end up having to format and reinstall my system
> 
> on the sdcard, reducing its useful life, so I thought to create this VM
> on an external HD
> 
> to be able to delete and recreate the machine without running the risk
> of damaging my sdcard.
> 
> The detail is that I would like to create a raspberry pi with raspbian
> inside my RPi4
> 
> with raspbian ok?
> 
> I've already found several tutorials teaching how to create virtual
> machines (PC with Windows
> 
> inside MAC, RPi with raspbian inside Windows PC for example) but I
> didn't find
> 
> RPI with raspbian (can be RPi2, 3 or 4 whatever) inside RPi 4.
> 
> 
> Could anyone help?
> 
> EM PORTUGUES
> 
> Ola.
> 
> Pessoal meu conhecimento em ingles e igual a zero e tambem não sei se o
> lugar correto de
> 
> postar e aqui por isso peço desculpas antecipadas ok
> 
> Tenho um RPi4 com 4gb de memoria, estou estudadando shell script  para
> automatizar
> 
> comandos ou instalar aplicativos por exemplo, gostaria muito de criar
> uma maquina
> 
> virtual com o qemu para testar esses scripts sem acabar sujando meu
> sistema de uso
> 
> principal, por testar muito os comandos e principalmente, testar a
> instalação e
> 
> desinstalação de aplicativos acabo tendo que formatar e reinstalar meu
> sistema
> 
> no sdcard, diminuindo sua vida util, então pensei criar essa VM num HD
> externo
> 
> para poder apagar e recriar a maquina sem correr o risco de danificar
> meu sdcard.
> 
> O detalhe e que gostaria de criar um raspberry pi com raspbian dentro do
> meu RPi4
> 
> com raspbian ok?
> 
> Ja encontrei varios tutoriais ensinando como criar maquinas virtuais (PC
> com Windows
> 
> dentro do MAC, RPi com raspbian dentro do PC com Windows por exemplo)
> mas não encontrei
> 
> RPI com raspbian ( pode ser RPi2, 3 ou 4 tanto faz ) dentro do RPi 4.
> 
> 
> Alguem poderia ajudar?
> 
> 
> Desde ja, muito obrigado pela atenção.
> 
> 

— φ



Re: Date/Time 4 hours ahead - Ubuntu 20 host/ Windows 10 guest

2021-06-07 Thread Philipp Ammann
Am 07.06.21 um 21:26 schrieb Weiss, Howard:
> Whenever I start my guest OS, the date/time is 4 hours ahead.  I disable
> synchronization with Internet Time and correct the date/time, then
> restarted the guest.  The time reverted to being 4 hours ahead.

Do you live on the US East Coast? ;-P Try telling Windows that its BIOS
is using UTC:


https://superuser.com/questions/975717/does-windows-10-support-utc-as-bios-time

Alternatively you can tell qemu to use local time as the RTC base:

  https://qemu-project.gitlab.io/qemu/system/invocation.html

(grep for -rtc)

-- Philipp




Re: Windows 9x - which graphic?

2021-06-07 Thread Philipp Ammann
Am 07.06.21 um 16:27 schrieb Simon Becherer:
> I tried minport vbe driver
> (https://web.archive.org/web/20191129030225/https://bearwindows.zcm.com.au/vbe9x.htm#2)
> with cirrus/vga/vmga card 
> and cirrus driver with cirrus card - but without sucess.
> Both 95 and 98 hangs during shutting down :(
> 
> Any hints?

Cirrus should work fine with the stock drivers included in Windows.
Personally I'm using vmware with the official VMware driver. You can
extract the driver for Win9x from preWin2k.iso shipped with VMware.

Bonus: set vmport=on (may be default) an install the vmmouse driver from
said ISO, and try vmxnet3 if you need networking.



ATAPI Passthrough or how to expose a CD drive to a VM

2021-04-14 Thread Philipp Ammann
Dear List!

I'm looking for a way to plug a CD drive's SATA cable into the virtual
SATA controller in the guest, i.e. pass through a single SATA port.
Unfortunately that doesn't seem to be possible. The next best thing is
to pass through ATAPI commands from the guest to the physical CD drive.
The reason is that I want to run Exact Audio Copy (EAC) in the guest to
create bit-perfect copies of my audio CDs (which is a surprisingly hard
thing to do!).

EAC (and IIRC CDDA reading in general) sends low-level ATAPI commands to
the CD drive, which is why I want to pass them through. When searching
for this I found this thread from 2009~10:

https://qemu-devel.nongnu.narkive.com/HNXMnx1m/patch-0-7-atapi-cdrom-passthrough-v5

There is also this patch from 2015:

https://github.com/brendank310/meta-qemu-1.4-oxt/blob/master/recipes-openxt/qemu-dm/files/atapi-pass-through.patch

I was wondering if this has ever made it into qemu and if so how to
enable it.

The only remaining option I see is buying a PCIe-SATA controller and
passing the entire controller to the VM.

Do you folks have any ideas here?

Thanks!
Philipp



Re: Strange behavior by qemu and the VM console.

2021-01-20 Thread Philipp Ammann
Hi George,

did you recently upgrade your DE or mess with your DPI settings?

In the GTK window, there's an option "zoom to fit" (or similar, I don't
have it in front of me ATM). Make sure that is disabled.

Best regards
Philipp


Am 20.01.21 um 20:45 schrieb George R Goffe:
> Hi,
> 
> This system is a Fedora Core 34 x86_64 (Rawhide) at "latest" upgrade levels.
> 
> qemu is: :qemu-5.2.0-4.fc34.x86_64
> 
> kernel is:  5.11.0-0.rc4.129.fc34.x86_64
> 
> I have had good success with qemu but since the more recent 5.10.x kernels, 
> qemus VM console has been sized much larger than the physical screen which 
> makes operations largely VERY difficult to accomplish. i.e., attempting to 
> install of FC34 .iso produces a console about twice as big as the physical 
> screen. All the buttons are at the lower right of the screen but most of the 
> "important" things are on the upper left.
> 
> Here's my current and unchanged qemu start script. I have tried -nographic 
> (no results, no console), -display curses , -display gtk (no change in 
> behavior), -g (not supported for the host)... I have tried boot parameters 
> "nomodeset" (my standard), and removing "nomodeset" with NO appreciable 
> change in behavior.
> 
> This radical change in behavior has come about fairly recently (past 2 weeks).
> 
> I'm sure there's something I've done... possibly by system upgrades of 
> packages but whatever it is is not at all obvious.
> 
> I'm stumped. Can  you folks help me please?
> 
> Best regards and STAY SAFE,
> 
> George...
> 
> 
> qemu-system-x86_64   \
>   -cdrom /isos/Fedora-Everything-netinst-x86_64-Rawhide-20210118.n.1.iso  
> \
>   -name fc34v 
> \
>   -cpu host   
> \
>   -enable-kvm 
> \
>   -m 2g   
> \
>   -smp 2  
> \
>   -drive file=/export/home/var-lib-libvirt-images/fc34-bt.img,format=raw  
> \
>   -trace file=/root/qemu-trace-events 
> \
>   -boot menu=on,reboot-timeout=15
> 
> 
> 
> 




Re: Windows XP SP3

2020-12-31 Thread Philipp Ammann
Am 30.12.20 um 18:22 schrieb Narcis Garcia via:
> Here is working fine with Qemu 4.2.1
> I don't know newer versions.

XP works on all versions, including 5.2. It even supports most of the
paravirtualized devices, most importantly virtio-blk and virtio-net.



Re: Bug https://bugs.launchpad.net/qemu/+bug/1618301 - any hint/workaround?

2020-10-05 Thread Philipp Ammann
Am 05.10.20 um 08:11 schrieb Thomas Huth:
> On 03/10/2020 20.05, Kamil Jońca wrote:
>>
>> I have some ancient archive machines in virtualbox. These mainly NT 4.0.
>> [...]
> 
> Have you tried to use "-device usb-mouse" instead? ... maybe that
> behaves differently...
> 

Does NT 4 even support USB? I suspect the headache will be bigger than
the benefit ;-)

I'd use vmmouse. You need to set vmport=on and install the drivers. This
is also mentioned here:

  https://www.linux-kvm.org/page/Guest_Support_Status

You can find the drivers on winPre2k.iso. That ISO is included with
VMware Player. If you choose that route can also use VMware SVGA (-vga
vmware) and possibly VMXNET3 (-net nic,model=vmxnet3; I haven't tried).

BUT: The EULA might forbid you to use those drivers on anything other
than VMware. However, I'm not sure this applies in the EU because of
interoperability laws. I'm not a lawyer, you have to decide for yourself.



USB support in microvm

2020-05-31 Thread Philipp Ammann
Hi,

I'm trying to add an USB controller to a microvm. Background: I need to
pass a USB network controller to the guest.

The trouble is that all USB controllers use the PCI(e) bus, which isn't
supported by microvm. It should be possible though: the Raspberry Pi < 4
has USB support without PCI.

(How) is it possible to use USB in microvm?

Thanks!
Philipp



USB support in microvm

2020-05-31 Thread Philipp Ammann
Hi,

I'm trying to add an USB controller to a microvm. Background: I need to
pass a USB network controller to the guest.

The trouble is that all USB controllers use the PCI(e) bus, which isn't
supported by microvm. It should be possible though: the Raspberry Pi < 4
has USB support without PCI.

(How) is it possible to use USB in microvm?

Thanks!
Philipp