From: Michael <confabulate@kintzios.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] virtualbox in headless configuration broken after update: delayed echo [ RESOLVED, kinda ]
Date: Thu, 18 Jun 2020 00:05:05 +0100 [thread overview]
Message-ID: <1961037.KlZ2vcFHjT@lenovo.localdomain> (raw)
In-Reply-To: <F67226EA-6496-491A-892C-8BCAF977B29B@antarean.org>
[-- Attachment #1: Type: text/plain, Size: 2528 bytes --]
On Wednesday, 17 June 2020 20:55:19 BST J. Roeleveld wrote:
> On 17 June 2020 21:32:19 CEST, Michael <confabulate@kintzios.com> wrote:
> This brings another problem I have with KVM/QEMU: all howtos and documents I
> find show long commandline options to just start the VM. I have not found
> one where I can provide all the config in a single file and use that.
> Allowing me to duplicate settings by simply copying the file and changing a
> few lines.
>
> KVM/Qemu seems to be written to be used together with virt-manager which,
> for me, lacks important features to make it usable in production.
>
> --
> Joost
The long line can be extremely short, if you are happy with defaults, or
silly-long if you have specific needs. The same long line can also go into a
script and invoked with bash. For example, this will boot a pfSense VM on an
EFI BIOS platform, 4G RAM and Opteron_G5-v1 CPU:
qemu-system-x86_64 -bios /usr/share/edk2-ovmf/OVMF_CODE.fd -m 4096 -cpu
Opteron_G5-v1,+topoext -smp cpus=4,maxcpus=8,cores=4,threads=2,sockets=1 -
enable-kvm -accel kvm,thread=multi -display sdl,gl=on -vga virtio -soundhw hda
-drive if=virtio,file=pfSense.qcow2,cache=none -usb -device qemu-xhci,id=xhci
-net nic,model=virtio -net user,hostfwd=tcp::53260-:443
or, you could set it all up in a script file, one or more lines at a time:
#!/bin/bash
#
qemu-system-x86_64 \
-bios /usr/share/edk2-ovmf/OVMF_CODE.fd \
-m 4096 \
-cpu Opteron_G5-v1,+topoext \
[snip ...]
Then call the script from a terminal whenever you want to run it. I prefer
using a script file when I experiment with new machines and options, because
it allows me to comment out options as I change them to alternatives and
backtrack as necessary.
If you prefer to use RHL's libvirt to execute in 'C' API calls onto QEMU/KVM,
then virt-manager will offer a VirtualBox GUI equivalent, or virsh a CLI
option. Virt-manager can be the front end for other hypervisors/VMs, e.g.
Xen, ESX, etc. so it is not QEMU/KVM specific.
QEMU also offers QMP for JSON scripting, because ... apps, and a rather basic
console interface called Human Monitor Interface (HMP), should you wish to
interact with it while it's running to modify inputs/interfaces, plug/unplug
devices, etc.
I'm not starting and stopping VMs all day long, so installing and running a
libvirt GUI, or some of the various front ends for QEMU has not been necessary
for me. However, they may offer more sophisticated options than my basic CLI
input above.
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
next prev parent reply other threads:[~2020-06-17 23:05 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-06-10 13:19 [gentoo-user] virtualbox in headless configuration broken after update: delayed echo n952162
2020-06-16 19:07 ` [gentoo-user] virtualbox in headless configuration broken after update: delayed echo [ RESOLVED, kinda ] n952162
2020-06-16 20:36 ` J. Roeleveld
2020-06-16 21:08 ` n952162
2020-06-17 4:48 ` J. Roeleveld
2020-06-17 5:42 ` n952162
2020-06-17 6:32 ` J. Roeleveld
2020-06-17 17:01 ` Michael
2020-06-17 17:31 ` J. Roeleveld
2020-06-17 19:32 ` Michael
2020-06-17 19:55 ` J. Roeleveld
2020-06-17 23:05 ` Michael [this message]
2020-06-17 23:09 ` William Kenworthy
2020-06-18 9:21 ` Michael
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1961037.KlZ2vcFHjT@lenovo.localdomain \
--to=confabulate@kintzios.com \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox