3

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 Answers 2

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.

1
sudo virsh define XXX.xml 

That command can add a vm into virsh persistently.

The command "sudo virsh help" show help info.

1
  • 2
    The XML needs to exist for this command to work which is not the case for the OP. Commented Aug 22, 2015 at 18:16

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.