2

I followed this guide to create a KVM guest but I didn't pay attention to this line

Note: if you want to use Virsh to manage your virtual machines as detailed below, you must add this parameter:1

So the VM is running fine but I'd like to add it to the list of VMs managed with virsh, how can I do this?

2

Create another VM (adding --libvirt qemu:///system this time), but don't boot it -- virsh edit it and replace the path to your virtual disk with your existing VM's disk path.

0
sudo virsh define XXX.xml

That command can add a vm into virsh persistently.

The command "sudo virsh help" show help info.

  • 1
    The XML needs to exist for this command to work which is not the case for the OP. – talonx Aug 22 '15 at 18:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.