Emulation mit qemu


  • Mod

    Betreibe PrettyOS z.Z. auch noch emuliert auf WinXP. Als Emulation schätze ich qemu sehr. Bisher war die letzte lauffähige Version 0.14.1, spätere Versionen stürzten bisher bei mir jeweils mit einem Fehler ab. Seit heute hat sich dies geändert: 👍

    qemu 1.3 läuft! Downloadlink: http://qemu-buch.de/download/qemu-1.3-windows.zip
    (qemu 1.0, 1.1, 1.2 laufen bei mir nicht, sondern brechen mit einer Windows-Fehlermeldung ab)

    Ich verwende folgendes batch \1:

    qemu-system-i386.exe -boot a -k en-us -fda G:\OSDev\PrettyOS\FloppyImage.img -soundhw all -net nic,model=rtl8139 -redir tcp:5023::23 -redir tcp:8080::80 -redir udp:8084::8084 -redir udp:8085::8085 -localtime -net user -net dump,file=netdump.pcap -serial file:serielleSchnittstelle1.txt -serial file:serielleSchnittstelle2.txt -serial file:serielleSchnittstelle3.txt -serial file:serielleSchnittstelle4.txt -usb -device piix4-usb-uhci -device pci-ohci -device pci-ohci -device usb-ehci

    In stderr.txt finde ich fünffach aufgezeichnet:
    ehci: ASYNC list address register set while async schedule is enabled and HC is enabled

    Console 5: EHCI 1
    Start EHCI Host Controller: Initialize Reset Start
    line state: SE0
    line state: SE0
    line state: SE0
    line state: SE0
    line state: SE0
    
    >>> Press key to close this console. <<<
    

    Netzwerk netdump.pcap liefert via wireshark:

    No. Time Source Destination Protocol Length Info
    1 0.000000 192.168.1.22 255.255.255.255 DHCP 618 DHCP Discover - Transaction ID 0xaffe001

    Frame 1: 618 bytes on wire (4944 bits), 618 bytes captured (4944 bits)
    Ethernet II, Src: RealtekU_12:34:56 (52:54:00:12:34:56), Dst: Broadcast (ff:ff:ff:ff:ff:ff)
    Internet Protocol Version 4, Src: 192.168.1.22 (192.168.1.22), Dst: 255.255.255.255 (255.255.255.255)
    User Datagram Protocol, Src Port: bootpc (68), Dst Port: bootps (67)
    Bootstrap Protocol

    No. Time Source Destination Protocol Length Info
    2 0.000214 10.0.2.2 255.255.255.255 DHCP 590 DHCP Offer - Transaction ID 0xaffe001

    Frame 2: 590 bytes on wire (4720 bits), 590 bytes captured (4720 bits)
    Ethernet II, Src: 52:55:0a:00:02:02 (52:55:0a:00:02:02), Dst: Broadcast (ff:ff:ff:ff:ff:ff)
    Internet Protocol Version 4, Src: 10.0.2.2 (10.0.2.2), Dst: 255.255.255.255 (255.255.255.255)
    User Datagram Protocol, Src Port: bootps (67), Dst Port: bootpc (68)
    Bootstrap Protocol

    No. Time Source Destination Protocol Length Info
    3 0.551497 RealtekU_12:34:56 Broadcast ARP 60 Who has 10.0.2.2? Tell 192.168.1.22

    Frame 3: 60 bytes on wire (480 bits), 60 bytes captured (480 bits)
    Ethernet II, Src: RealtekU_12:34:56 (52:54:00:12:34:56), Dst: Broadcast (ff:ff:ff:ff:ff:ff)
    Address Resolution Protocol (request)

    No. Time Source Destination Protocol Length Info
    4 0.551551 52:55:0a:00:02:02 RealtekU_12:34:56 ARP 64 10.0.2.2 is at 52:55:0a:00:02:02

    Frame 4: 64 bytes on wire (512 bits), 64 bytes captured (512 bits)
    Ethernet II, Src: 52:55:0a:00:02:02 (52:55:0a:00:02:02), Dst: RealtekU_12:34:56 (52:54:00:12:34:56)
    Address Resolution Protocol (reply)

    No. Time Source Destination Protocol Length Info
    5 0.552548 192.168.1.22 255.255.255.255 DHCP 618 DHCP Request - Transaction ID 0xaffe002

    Frame 5: 618 bytes on wire (4944 bits), 618 bytes captured (4944 bits)
    Ethernet II, Src: RealtekU_12:34:56 (52:54:00:12:34:56), Dst: Broadcast (ff:ff:ff:ff:ff:ff)
    Internet Protocol Version 4, Src: 192.168.1.22 (192.168.1.22), Dst: 255.255.255.255 (255.255.255.255)
    User Datagram Protocol, Src Port: bootpc (68), Dst Port: bootps (67)
    Bootstrap Protocol

    No. Time Source Destination Protocol Length Info
    6 0.552576 10.0.2.2 255.255.255.255 DHCP 590 DHCP ACK - Transaction ID 0xaffe002

    Frame 6: 590 bytes on wire (4720 bits), 590 bytes captured (4720 bits)
    Ethernet II, Src: 52:55:0a:00:02:02 (52:55:0a:00:02:02), Dst: Broadcast (ff:ff:ff:ff:ff:ff)
    Internet Protocol Version 4, Src: 10.0.2.2 (10.0.2.2), Dst: 255.255.255.255 (255.255.255.255)
    User Datagram Protocol, Src Port: bootps (67), Dst Port: bootpc (68)
    Bootstrap Protocol

    No. Time Source Destination Protocol Length Info
    7 0.553632 RealtekU_12:34:56 Broadcast ARP 60 Who has 10.0.2.2? Tell 192.168.1.22

    Frame 7: 60 bytes on wire (480 bits), 60 bytes captured (480 bits)
    Ethernet II, Src: RealtekU_12:34:56 (52:54:00:12:34:56), Dst: Broadcast (ff:ff:ff:ff:ff:ff)
    Address Resolution Protocol (request)

    No. Time Source Destination Protocol Length Info
    8 0.553653 52:55:0a:00:02:02 RealtekU_12:34:56 ARP 64 10.0.2.2 is at 52:55:0a:00:02:02

    Frame 8: 64 bytes on wire (512 bits), 64 bytes captured (512 bits)
    Ethernet II, Src: 52:55:0a:00:02:02 (52:55:0a:00:02:02), Dst: RealtekU_12:34:56 (52:54:00:12:34:56)
    Address Resolution Protocol (reply)

    Es soll auch bereits qemu 1.4 geben, allerdings finde ich noch keinen Download für Windows. Ab qemu 1.6 ist xHCI intergriert.

    Wie sind eure Erfahrungen?


Log in to reply