
Andrew McGlashan via luv-main <luv-main@luv.asn.au> writes:
On 27/12/2015 6:57 PM, Andrew McGlashan via luv-main wrote:
virsh is very simple, no XML editing required.
Just a couple of quick examples from the cmd line.
# virsh autostart example.com # virsh autostart example.com --disable # virsh dominfo example.com Id: - Name: example.com UUID: 3581bbbb-84c9-5e5e-ada5-2dd39431c100 OS Type: hvm State: shut off CPU(s): 1 Max memory: 524288 KiB Used memory: 524288 KiB Persistent: yes Autostart: disable Managed save: no
Without using "virsh edit" or "virsh dumpxml", how do you do things like... * use virtio for all the things * enable serial & disable VNC * change the RAM cap from 2GB to 8GB * add /srv/kvm/foo.qcow2 visible to the guest as /dev/vdc * add a second NIC on bridge br-foo with mac dead.beef.babe Currently I do that with "virsh edit" and some cargo-culting. For great justice, "virsh edit" includes lots of read-only options, (e.g. how much RAM is CURRENTLY used) so sometimes it takes me a few goes.