Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

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?

share|improve this question

2 Answers 2

up vote 2 down vote accepted

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.

share|improve this answer
sudo virsh define XXX.xml

That command can add a vm into virsh persistently.

The command "sudo virsh help" show help info.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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