Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # host qemu launch command
- ganadist@ganadist:qemu $ cat qemu.sh
- #!/bin/bash
- CPU_OPT="-enable-kvm -cpu host -accel kvm,thread=multi -smp 4,cores=4 -m 4G -soundhw hda"
- NET_OPT=""
- BLK_OPT="$BLK_OPT -drive file=qemu.img,if=virtio"
- 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"
- RNG_OPT="-device virtio-rng"
- exec qemu-system-x86_64 $CPU_OPT $GFX_OPT $NET_OPT $BLK_OPT $RNG_OPT "$@"
- # guest pci devices list
- ganadist@ganadist-qemu:~$ lspci
- 00:00.0 Host bridge: Intel Corporation 440FX - 82441FX PMC [Natoma] (rev 02)
- 00:01.0 ISA bridge: Intel Corporation 82371SB PIIX3 ISA [Natoma/Triton II]
- 00:01.1 IDE interface: Intel Corporation 82371SB PIIX3 IDE [Natoma/Triton II]
- 00:01.3 Bridge: Intel Corporation 82371AB/EB/MB PIIX4 ACPI (rev 03)
- 00:02.0 VGA compatible controller: Device 1234:1111 (rev 02)
- 00:03.0 Ethernet controller: Intel Corporation 82540EM Gigabit Ethernet Controller (rev 03)
- 00:04.0 Audio device: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) High Definition Audio Controller (rev 01)
- 00:05.0 Unclassified device [0002]: Red Hat, Inc Virtio filesystem
- 00:06.0 SATA controller: Intel Corporation 82801IR/IO/IH (ICH9R/DO/DH) 6 port SATA Controller [AHCI mode] (rev 02)
- 00:07.0 Unclassified device [00ff]: Red Hat, Inc Virtio RNG
- 00:08.0 SCSI storage controller: Red Hat, Inc Virtio block device
Advertisement
Add Comment
Please, Sign In to add comment