comparison sources/targets/i686-virtio/settings @ 1423:2878f05277c9

Invoke qemu instead of kvm
author Alessio Igor Bogani <alessioigorbogani@gmail.com>
date Tue, 02 Aug 2011 12:01:15 +0200
parents 73b7ff43d1da
children 5a0ca606858b
comparison
equal deleted inserted replaced
1422:73b7ff43d1da 1423:2878f05277c9
1 DESCRIPTION=" 1 DESCRIPTION="
2 Variant of i686 target using kvm with virtio (different kernel/emulator config). 2 Variant of i686 target using virtio and (if possible) kvm (different kernel/emulator config).
3 " 3 "
4 4
5 # Use the i686 base architecture 5 # Use the i686 base architecture
6 6
7 base_architecture i686 7 base_architecture i686
27 27
28 emulator_command() 28 emulator_command()
29 { 29 {
30 echo "if [ \"\$WITH_HDC\"X\"\" != \"X\" ]; then WITH_HDC=\"-drive file=\$HDC,if=virtio\"; fi" 30 echo "if [ \"\$WITH_HDC\"X\"\" != \"X\" ]; then WITH_HDC=\"-drive file=\$HDC,if=virtio\"; fi"
31 echo "if [ \"\$WITH_HDB\"X\"\" != \"X\" ]; then WITH_HDB=\"-drive file=\$HDB,if=virtio\"; fi" 31 echo "if [ \"\$WITH_HDB\"X\"\" != \"X\" ]; then WITH_HDB=\"-drive file=\$HDB,if=virtio\"; fi"
32 echo -n "kvm -nographic -no-reboot -kernel $KERNEL \$WITH_HDC \$WITH_HDB" 32 echo -n "qemu -nographic -no-reboot -kernel $KERNEL \$WITH_HDC \$WITH_HDB"
33 [ "$SYSIMAGE_TYPE" != "initramfs" ] && echo -n " -drive file=$IMAGE,if=virtio" 33 [ "$SYSIMAGE_TYPE" != "initramfs" ] && echo -n " -drive file=$IMAGE,if=virtio"
34 echo -n " -append \"$(kernel_cmdline)\" \$QEMU_EXTRA -net nic,model=virtio -net user" 34 echo -n " -append \"$(kernel_cmdline)\" \$QEMU_EXTRA -net nic,model=virtio -net user"
35 } 35 }