mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-09 05:56:58 +02:00
Use cirrus driver for QEMU
Moving to the cirrus driver (instead of std) so we can support cirrus-fb, in preparation for nonroot-X support. BUG=chromium-os:388 TEST=local build, run with x86-generic Change-Id: Ic7d5776f673ac3c15680d62331345d55985f1d73 Reviewed-on: https://gerrit.chromium.org/gerrit/39900 Reviewed-by: Stéphane Marchesin <marcheu@chromium.org> Reviewed-by: Chris Sosa <sosa@chromium.org> Tested-by: John Sheu <sheu@chromium.org> Commit-Queue: John Sheu <sheu@chromium.org>
This commit is contained in:
parent
eb4595f1e8
commit
b7b095befd
@ -241,7 +241,7 @@ fi
|
|||||||
|
|
||||||
if [ "${FLAGS_format}" == "qemu" ]; then
|
if [ "${FLAGS_format}" == "qemu" ]; then
|
||||||
echo "If you have qemu-kvm installed, you can start the image by:"
|
echo "If you have qemu-kvm installed, you can start the image by:"
|
||||||
echo "sudo kvm -m ${FLAGS_mem} -vga std -pidfile /tmp/kvm.pid -net nic,model=virtio " \
|
echo "sudo kvm -m ${FLAGS_mem} -vga cirrus -pidfile /tmp/kvm.pid" \
|
||||||
"-net user,hostfwd=tcp::9222-:22 \\"
|
"-net nic,model=virtio -net user,hostfwd=tcp::9222-:22 \\"
|
||||||
echo " -hda ${FLAGS_to}/${DEFAULT_QEMU_IMAGE}"
|
echo "-hda ${FLAGS_to}/${DEFAULT_QEMU_IMAGE}"
|
||||||
fi
|
fi
|
||||||
|
@ -97,7 +97,7 @@ start_kvm() {
|
|||||||
|
|
||||||
sudo "${KVM_BINARY}" -m 2G \
|
sudo "${KVM_BINARY}" -m 2G \
|
||||||
-smp 4 \
|
-smp 4 \
|
||||||
-vga std \
|
-vga cirrus \
|
||||||
-pidfile "${KVM_PID_FILE}" \
|
-pidfile "${KVM_PID_FILE}" \
|
||||||
-daemonize \
|
-daemonize \
|
||||||
${net_option} \
|
${net_option} \
|
||||||
|
Loading…
Reference in New Issue
Block a user