马磊
2012-Aug-27 07:19 UTC
【problem】Why can't modify mac addr in the saved state file to restore a vm with the specific mac addr?
Hi all, `xl save domid saved-state-file` will generate a saved state file which consists of three parts: vm configuration, memory dump and qemu state info. So, I try to modify the `vifspec` in vm configuration for a different mac addr, and modify the 6-bytes mac in the rtl8139 section of the qemu state info. But when restoreing by the modified saved state file, although I restarted the network within the vm, I couldn''t get the specific mac addr , it''s still the original mac. Why should this happen? It''s odd. Thanks _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel
马磊
2012-Aug-27 10:05 UTC
Re: 【problem】Why can't modify mac addr in the saved state file to restore a vm with the specific mac addr?
On Mon, Aug 27, 2012 at 3:19 PM, 马磊 <aware.why@gmail.com> wrote:> Hi all, > `xl save domid saved-state-file` will generate a saved state file > which consists of three parts: vm configuration, memory dump and qemu state > info. > > So, I try to modify the `vifspec` in vm configuration for a different > mac addr, and modify the 6-bytes mac in the rtl8139 section of the qemu > state info. > > But when restoreing by the modified saved state file, although I > restarted the network within the vm, I couldn''t get the specific mac addr , > it''s still the original mac. > > Why should this happen? It''s odd. > > Thanks >In `xm restore` way , the same method above can achive the expected goal. What happened to that? _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel