From 7df8bd62cf651fd31dfa3b3734c8336e7cefbd99 Mon Sep 17 00:00:00 2001 From: Ian Gulliver Date: Sat, 2 Apr 2016 15:55:12 -0700 Subject: [PATCH] qemu booting --- README.md | 11 +++++++++++ server/iso_files/grub.cfg | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 592b408..c4e6df4 100644 --- a/README.md +++ b/README.md @@ -164,6 +164,17 @@ To push a rollout to more targets, edit /image/path/manifest.json.unsigned, and change rollout_\u2031 (u2031 is ‱, the symbol for basis point). Save, then re-run publish_manifest.py to generate the signed version. +## Testing with qemu + +You can boot images for testing and issue reproduction using qemu. + +```base +sudo apt-get install qemu-system-x86_64 +sudo kvm_ok +# The above must "KVM acceleration can be used" to be able to get reasonable performance +sudo qemu-system-x86_64 --curses --smp 2 --m 4G --netdev user,id=vmnic --device virtio-net,netdev=vmnic --enable-kvm --cdrom /path/to/image.iso +``` + ## Imaging You can write created images to flash drives for installation on other systems, diff --git a/server/iso_files/grub.cfg b/server/iso_files/grub.cfg index a45740d..95e87de 100644 --- a/server/iso_files/grub.cfg +++ b/server/iso_files/grub.cfg @@ -2,6 +2,6 @@ set timeout=5 terminal_output console menuentry "Ubuntu Server Live Image" { - linux /casper/vmlinuz.efi boot=casper + linux /casper/vmlinuz.efi boot=casper root=LABEL=ISOIMAGE initrd /casper/initrd.lz }