Skip to content

Instantly share code, notes, and snippets.

Created April 1, 2014 23:21
Show Gist options
  • Save anonymous/9925063 to your computer and use it in GitHub Desktop.
Save anonymous/9925063 to your computer and use it in GitHub Desktop.
qemu-kvm -monitor unix:"${monitorsocket}",server,nowait \
-name "${vmname}" \
-chardev socket,id=monitor,path="${kvmhome}"vm/"${vmname}"/monitor.sock,server,nowait \
-monitor chardev:monitor \
-chardev socket,id=serial0,path="${kvmhome}"vm/"${vmname}"/console.sock,server,nowait \
-serial chardev:serial0 \
-enable-kvm \
-cpu "${cputype}" \
-smp "${cpucores}" \
-soundhw "${soundcard}" \
-netdev tap,id=net0,script="${kvmhome}"qemu-ifup.bash \
-device e1000,netdev=net0,mac="${macaddress}" \
-drive id=disk,file="${discimage}",if=none -device ahci,id=ahci -device ide-drive,drive=disk,bus=ahci.0 \
-m "${memoryinmegabytes}" \
-vga qxl \
-spice port="${spiceport}",addr="${hostip}",password="${spicepassword}" \
-device virtio-serial-pci \
-device virtserialport,chardev=spicechannel0,name=com.redhat.spice.0 \
-chardev spicevmc,id=spicechannel0,name=vdagent &
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment