|
|
|
|
|
|
|
|
|
|
xen-users
RE: [Xen-users] Creating DomU by copying the files from another DomU
Hey Tanuj
So, you want to create another domU, by cloning one of domU's running on dom0, that's it?
First thing. Do you already have a partition (/dev/sda9) ready to be flooded with a domU?
Taking your steps as an example, going to copy dom1 contents (sda7) to a new dom3 (sda9).
0. fdisk -l should already show a /dev/sda9 (otherwise, you have to create the partition)
1. mkfs.ext3 /dev/sda9
2. mkdir /mnt/dom3
3. mount /dev/sda9 /mnt/dom3
3. xm shutdown dom1 ; cp -ax /dev/sda7/* /mnt/dom3
note: if you have a partition table in dom1, you are going to loose it in dom3
4. cd /mnt/dom3; edit /etc/fstab to meet your needs
5. umount /mnt/dom3
6. cp /etc/xen/dom1 /etc/xen/dom3
7. edit /etc/xen/dom3 to meet your needs
8. xm create dom1; xm -c create dom3
9. check that dom3 boots properly
Cheers,
N.
-----Original Message-----
From: xen-users-bounces@xxxxxxxxxxxxxxxxxxx on behalf of tanuj bansal
Sent: Wed 01-Apr-09 5:40 PM
To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-users] Creating DomU by copying the files from another DomU
Hi:
2 DomU are running on my systems and I would like to add one more there but
without installing it.
My DomU 1,2 are in /dev/sda7 and /dev/sda8
how is it possible to create another DomU using disk dev/sda9 without
installing media.
I got the information from somewhere on gogole to use the below steps but it
did not work
1. ext3 /dev/sda9
2. mount it
3. Copy all data from DomU1 to mounted disk
4. unmount
5. create DomU configuration file
6. now boot new DomU
After the above steps the DomU starts grub and then deid....
TANUJ BANSAL
_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users
|
|
|
|
|