User Tools

Site Tools


You are not allowed to perform this action
qemu

QEMU

Redirecting monitor to unix socket

1. Run QEMU with the following options:

-monitor unix:/tmp/qemu-monitor-socket,server,nowait

2. Connect using socat:

socat -,echo=0,icanon=0 unix-connect:/tmp/qemu-monitor-socket

You can also issue individual commands directly to that socket, e.g.:

echo “info status” | socat - unix-connect:/tmp/qemu-monitor-socket

QEMU General Options

machine type (PPC only) -M mac99
CPU type -cpu coreduo
RAM (in megabytes) -m 512
disks and other media -drive file=$FILENAME,format=qcow2,media=disk
optical media -cdrom $FILENAME
resolution -g 1024x768x32
devices to add -device usb-tablet
-device rtl8139,netdev=network0
-device piix3-usb-uhci
-soundhw sb16,adlib,pcspk
network device -netdev user,id=network0
sound card -soundhw es1370,pcspk
boot from this device -boot c
-boot a
-boot order=dc
clock settings -rtc base=localtime
-rtc base=“2001-05-05”
VNC -vnc :1 - outputs to port 5901
monitor settings -monitor stdio
-monitor unix:qemu-monitor-socket,server,nowait
snapshot/start “read-only” -snapshot

qemu-img

create raw image 2 GB in size qemu-img create -f raw “Mac OS 8.1.img” 2G
convert from raw to qcow2 qemu-img convert -f raw -O qcow2 -c _tmp/Windows\ ME.img _hdd/Windows\ ME.qcow2
convert from raw to VMDK qemu-img convert -f raw -O vmdk ophelia.img ophelia.vmdk
list snapshots qemu-img snapshot -l $DISK_IMAGE.qcow2
create snapshot qemu-img snapshot -c $SNAPSHOT_NAME $DISK_IMAGE
restore snapshot qemu-img snapshot -a $SNAPSHOT_NAME $DISK_IMAGE
delete snapshot qemu-img snapshot -d $SNAPSHOT_NAME $DISK_IMAGE

qemu-system-ppc machine types

Specify the desired machine using -M $MACHINETYPE. Available options are:

40p IBM RS/6000 7020 (40p)
bamboo bamboo
g3beige Heathrow based PowerMAC (default)
mac99 Mac99 based PowerMAC
mpc8544ds mpc8544ds
none empty machine
ppce500 generic paravirt e500 platform
prep PowerPC PREP platform (deprecated)
ref405ep ref405ep
sam460ex aCube Sam460ex
taihu taihu
virtex-ml507 Xilinx Virtex ML507 reference design
qemu.txt · Last modified: by wolfo

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki