Skip to contentSkip to conversation

Major BUG in xm restore command

DISCUSSION Philippe Berthault 2 participants 2 messages Apr 6, 2006

lore
Share & tools
lore
#0 lore raw

Xen release 3.0.0

With 'xm rename' and 'xm restore' commands, it's possible to start several domains with the same properties (same config file).

Example:
- create a config file named 'A'
- xm create A
- xm rename A B
- xm save B B.save
- xm create A
- xm restore B.save

At this time, there is two domains A and B with the same properties (same hard disk, same IP address, etc..).

The correct behavior would be to reject the "xm restore B.save".

#1 lore raw
Quoted 13 lines · Philippe Berthault

Xen release 3.0.0

With 'xm rename' and 'xm restore' commands, it's possible to start several domains with the same properties (same config file).

Example:
- create a config file named 'A'
- xm create A
- xm rename A B
- xm save B B.save
- xm create A
- xm restore B.save

Quoted 4 lines

At this time, there is two domains A and B with the same properties (same hard disk, same IP address, etc..).

The correct behavior would be to reject the "xm restore B.save".

The hotplug scripts should be protecting you from writing to the same disk by two domains at the same time. What does your config file look like -- how is that not happening?

Ewan.