WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
Xen

xen-users

[Top] [All Lists]

Re: [Xen-users] Cloning VM from Xen

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-users] Cloning VM from Xen
From: Simon Hobson <linux@xxxxxxxxxxxxxxxx>
Date: 2010年8月23日 08:45:48 +0100
Delivery-date: 2010年8月23日 00:47:22 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <4C722412.7070406@xxxxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <8CBB53B8098D4544A6FF75CFFAD77DF2CA3C0C@xxxxxxxxxxxxxxxxxxxxx> <4C6D3C0F.80701@xxxxxxxxxxx> <AANLkTim0sBfAexN=BT16TfvvKx3ydf16q3nYPq=6Rr6d@xxxxxxxxxxxxxx> <4C6E3DCC.4060600@xxxxxxxxxxx> <AANLkTi=VfC-qdYGo7dqm3Ss_hoLKZ4Fbfs=6K96cze0j@xxxxxxxxxxxxxx> <4C6E6EC6.6070408@xxxxxxxxxxx> <AANLkTikw_nZnyz8i0LuctcMemeCoBubhMc5Le71fDNZ0@xxxxxxxxxxxxxx> <p06240825c8943431328c@xxxxxxxxxxxxxxxxxxxxxx> <4C722412.7070406@xxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Benjamin Knoth wrote:
I found it in /etc/udev/rules.d/30-persistent-net.rules
This file include the following lines
SUBSYSTEM=="net", ACTION=="add", SYSFS{address}=="00:16:3e:00:00:12",
IMPORT="/l
ib/udev/rename_netiface %k eth0"
SUBSYSTEM=="net", ACTION=="add", SYSFS{address}=="00:16:3e:00:00:d5",
IMPORT="/l
ib/udev/rename_netiface %k eth1"
Eth0 is the old network interface which i find also in Yast.
I think eth1 was automatically added by xen from the config file but i
find it in Yast and (see on the top) the os also find it.
Should i changed something in this file?
 Just edit this and put the new mac in the line that defines the old
 eth1, and delete the 'new' NIC. There's probably some means of
 > reloading stuff after this, but rebooting does it for me.
As I wrote, just edit this file to match your current interfaces. The easiest way to do it is just delete the line that ends with eth0, and change eth1 to eth0. When you reboot, the interface with mac 00:16:3e:00:00:d5 will then appear at eth0. All this file does is store persistently the mappings generated when udev finds a new device - a big improvement from the days when the interfaces could change names/order under different OSs, or even randomly at boot time :( The downside is that you may need to go and manually delete/edit mappings when changing 'hardware'.
--
Simon Hobson
Visit http://www.magpiesnestpublishing.co.uk/ for books by acclaimed
author Gladys Hobson. Novels - poetry - short stories - ideal as
Christmas stocking fillers. Some available as e-books.
_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users
<Prev in Thread] Current Thread [Next in Thread>
Previous by Date: [Xen-users] [SPAM] How to Know DomU resources from Dom0 , mukul
Next by Date: Re: [Xen-users] [SPAM] How to Know DomU resources from Dom0 , George Shuklin
Previous by Thread: Re: [Xen-users] Cloning VM from Xen , Benjamin Knoth
Next by Thread: Re: [Xen-users] Cloning VM from Xen , Benjamin Knoth
Indexes: [Date] [Thread] [Top] [All Lists]

Copyright ©, Citrix Systems Inc. All rights reserved. Legal and Privacy
Citrix This site is hosted by Citrix

AltStyle によって変換されたページ (->オリジナル) /