ganadist

Untitled

Aug 2nd, 2017
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.39 KB | None | 0 0
  1. # host qemu launch command
  2. ganadist@ganadist:qemu $ cat qemu.sh
  3. #!/bin/bash
  4.  
  5. CPU_OPT="-enable-kvm -cpu host -accel kvm,thread=multi -smp 4,cores=4 -m 4G -soundhw hda"
  6. NET_OPT=""
  7.  
  8. BLK_OPT="$BLK_OPT -drive file=qemu.img,if=virtio"
  9. BLK_OPT="$BLK_OPT -drive id=disk,file=qemu-zesty.img,if=none -device ich9-ahci,id=ahci -device ide-drive,drive=disk,bus=ahci.0"
  10. RNG_OPT="-device virtio-rng"
  11.  
  12. exec qemu-system-x86_64 $CPU_OPT $GFX_OPT $NET_OPT $BLK_OPT $RNG_OPT "$@"
  13.  
  14.  
  15. # guest pci devices list
  16. ganadist@ganadist-qemu:~$ lspci
  17. 00:00.0 Host bridge: Intel Corporation 440FX - 82441FX PMC [Natoma] (rev 02)
  18. 00:01.0 ISA bridge: Intel Corporation 82371SB PIIX3 ISA [Natoma/Triton II]
  19. 00:01.1 IDE interface: Intel Corporation 82371SB PIIX3 IDE [Natoma/Triton II]
  20. 00:01.3 Bridge: Intel Corporation 82371AB/EB/MB PIIX4 ACPI (rev 03)
  21. 00:02.0 VGA compatible controller: Device 1234:1111 (rev 02)
  22. 00:03.0 Ethernet controller: Intel Corporation 82540EM Gigabit Ethernet Controller (rev 03)
  23. 00:04.0 Audio device: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) High Definition Audio Controller (rev 01)
  24. 00:05.0 Unclassified device [0002]: Red Hat, Inc Virtio filesystem
  25. 00:06.0 SATA controller: Intel Corporation 82801IR/IO/IH (ICH9R/DO/DH) 6 port SATA Controller [AHCI mode] (rev 02)
  26. 00:07.0 Unclassified device [00ff]: Red Hat, Inc Virtio RNG
  27. 00:08.0 SCSI storage controller: Red Hat, Inc Virtio block device
Advertisement
Add Comment
Please, Sign In to add comment