Re: which is the config file for a vm ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 2016-03-01 at 14:57 +0100, Lentes, Bernd wrote:
> Hi, 
> 
> i have a weird problem. I have a vm (KVM) which seems to run fine.
[...]
> As you see, the vm has one NIC. Its MAC-Address is: '52:54:00:37:92:03'.
> I also see that MAC when i edit the config via virsh.
> 
> But when i boot that vm, it has a nic with another MAC: '52:54:00:37:92:B2' ???

Looks like the domain configuration has been changed while it
was already running: the inactive configuration contains the
new MAC address, but the live configuration still contains the
previous value.

Example:

  $ sudo virsh dumpxml test | grep '<mac'
        <mac address='52:54:00:e9:0a:e1'/>

  $ sudo virsh dumpxml --inactive test | grep '<mac'
        <mac address='52:54:00:e9:0a:5f'/>

Destroying the domain and starting it up again should be
enough for it to pick up the new MAC address.

Cheers.


PS: You should never look at the on-disk domain XML directly as
    it's owned by the deamon; always use 'virsh edit', 'virsh
    dumpxml' etc. to inspect and modify it.
-- 
Andrea Bolognani
Software Engineer - Virtualization Team

_______________________________________________
libvirt-users mailing list
libvirt-users@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvirt-users




[Index of Archives]     [Virt Tools]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]

  Powered by Linux