LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 12-09-2008, 03:00 PM   #1
t-mow
LQ Newbie
 
Registered: Dec 2008
Posts: 1

Rep: Reputation: 0
Clone a bootable Partition with which itself is a disk of a Xen DomU


Hi!

The last days I am trying to install a Fedora 9 DomU and move it from
host A (my setup machine) to host B (a huge server). I am using a whole
partition of host A as the disk to store the DomU on.

Now i would like to use this DomU as a kind of a master VM which is
configured to run in our environment and may be cloned to get a working
and fully configured DomU. I think this would work very well but so far
I don't get a working copy of the partition that contains the filesystem
of the master VM.

My first idea was to use rsync, since only file are copied and not the
whole partition like dd would do. So i created a new partition on the
same host (when it works on the same host i'll get it working using the
network to another host) and copied the whole filesystem of the master
VM to the new partition using rsync. After that I used dd to copy the
MBR of the old partition.to the new one. Finally I modified the
configuration to use the new partition. As expected the VM boots but
when grub should take the control of the boot process the VM hangs. The
last line of text on the display (VNC Session) is GRUB.

I decided to use dd instead of rsync with the same result except a large
image file and a lot of coffee for all the time it took to create this
file.

Any suggestions on that? A link to a tutorial, how-to or book would be
nice.

cheers
 
Old 12-09-2008, 04:03 PM   #2
Siqsuruq
LQ Newbie
 
Registered: Dec 2008
Location: Cape Verde
Distribution: Slackware13, Solaris11, OpenSolaris, Windows 2008 Server
Posts: 12

Rep: Reputation: 1
Create template of DomU:
dd if=/var/lib/xen/images/template of=/var/lib/xen/images/copy bs=4k

Dump configuration of DomU:
virsh dumpxml template > template.xml

Edit config
vim template.xml

Import this to new Domu:
virsh define template.xml
virsh start copy

Xen web site have really good manuals http://tx.downloads.xensource.com/downloads/docs/user/
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Clone/duplicate a Xen VM / domU? jantman SUSE / openSUSE 6 01-13-2010 03:07 AM
[XEN] domu unreachable to and from external duyuyang Linux - Networking 3 11-02-2008 06:44 PM
Install Fedora as DomU of Xen treotan Ubuntu 1 02-08-2008 02:57 PM
Xen: To use simple file or normal disk partition Swakoo Linux - General 3 02-03-2008 09:18 PM
Xen domU and Lvm flamy Linux - General 3 11-25-2006 11:16 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:35 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration