LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Virtualization and Cloud (https://www.linuxquestions.org/questions/linux-virtualization-and-cloud-90/)
-   -   libvirt: post virt-clone, unchanged values in resulting XML file from original XML file (https://www.linuxquestions.org/questions/linux-virtualization-and-cloud-90/libvirt-post-virt-clone-unchanged-values-in-resulting-xml-file-from-original-xml-file-4175577018/)

CptSupermrkt 04-08-2016 04:39 PM

libvirt: post virt-clone, unchanged values in resulting XML file from original XML file
 
Hey guys,

I just cloned a simple VM with this command:

Code:

virt-clone --original linax2-new --name linax1-new --file /scratch/vm/linax1.img
This created a new linax1.img and linax1.xml file. However inspecting the linax1.xml file reveals this "channel" under devices:

Code:

    <channel type='unix'>
      <source mode='bind' path='/var/lib/libvirt/qemu/channel/target/domain-linax2-new/org.qemu.guest_agent.0'/>
      <target type='virtio' name='org.qemu.guest_agent.0'/>
      <address type='virtio-serial' controller='0' bus='0' port='1'/>
    </channel>

It makes direct reference to the original domain it was cloned from (linax2-new). Is this okay? Can it be changed? *Should* it be changed?

dt64 04-14-2016 08:20 AM

This refers to the Guest Agent installed on your source VM.
libvirt Wiki states:
Quote:

Libvirt does not guarantee any support of direct use of the guest agent.
This means that virt-clone doesn't handle this option. You need to adjust these settings manually.


All times are GMT -5. The time now is 06:17 AM.