Score:0

Migrate a QEMU/KVM VM from qemu:///system to qemu:///session

cn flag

I have a created a Windows 10 VM using virt-manager as user (not root).

However, when try to list the VMs with virsh list --all, My VM is not listed? And, if I specify the system URI with by running virsh -c qemu:///system list --all, I see my VM listed.
I would like to migrate my VM from qemu:///system to qemu:///session to be able to list it with virsh list --all.

  • How can I achieve that?
Michael Hampton avatar
cz flag
You lose a lot of functionality in the user session. Consider something like `alias virsh='virsh -c qemu:///system` instead.
Score:-1
in flag

https://mike42.me/blog/libvirt-migrate-a-vm-from-qemusession-to-qemusystem

virsh undefine foo-machine
sudo virsh define foo-machine.xml 
sudo virsh start foo-machine
Michael Hampton avatar
cz flag
This is the opposite of what the poster asked for.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.