-
-
Notifications
You must be signed in to change notification settings - Fork 187
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
qemu: Facilitate testing Heads with persistent VMs
Create a persistent VM with the proper configuration using virsh Provide instructions for bootstrapping a complete working system in qemu Signed-off-by: Jonathon Hall <[email protected]>
- Loading branch information
1 parent
002f7cb
commit 5581866
Showing
3 changed files
with
140 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38 changes: 38 additions & 0 deletions
38
boards/qemu-coreboot-fbwhiptail/heads-qemu-coreboot-fbwhiptail.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
<domain type='kvm'> | ||
<name>heads-qemu-coreboot-fbwhiptail</name> | ||
<memory unit='KiB'>6291456</memory> | ||
<currentMemory unit='KiB'>6291456</currentMemory> | ||
<vcpu placement='static'>2</vcpu> | ||
<os> | ||
<type arch='x86_64' machine='q35'>hvm</type> | ||
<loader readonly='no' type='pflash'>{{HEADS_ROM_PATH}}</loader> | ||
</os> | ||
<features> | ||
<acpi/> | ||
<apic/> | ||
<smm state="on"/> | ||
</features> | ||
<devices> | ||
<emulator>/usr/bin/qemu-system-x86_64</emulator> | ||
<interface type='network'> | ||
<source network='default'/> | ||
<model type='virtio'/> | ||
</interface> | ||
<tpm model='tpm-tis'> | ||
<backend type='emulator' version='1.2'/> | ||
<alias name='tpm0'/> | ||
</tpm> | ||
<graphics type='spice' autoport='yes'> | ||
<image compression='off'/> | ||
</graphics> | ||
<video> | ||
<model type='bochs' heads='1' primary='yes'/> | ||
</video> | ||
<rng model='virtio'> | ||
<backend model='random'>/dev/urandom</backend> | ||
<alias name='rng0'/> | ||
<address type='pci' domain='0x0000' bus='0x05' slot='0x00' function='0x0'/> | ||
</rng> | ||
</devices> | ||
</domain> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters