tanuj bansal
2009-Apr-01 15:40 UTC
[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@lists.xensource.com http://lists.xensource.com/xen-users
Ferreira, N.L.
2009-Apr-01 17:51 UTC
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@lists.xensource.com on behalf of tanuj bansal Sent: Wed 01-Apr-09 5:40 PM To: xen-users@lists.xensource.com 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@lists.xensource.com http://lists.xensource.com/xen-users
Ryan Perc
2009-Apr-03 11:05 UTC
RE: [Xen-users] Creating DomU by copying the files from another DomU
The way I would do it is shutdown the domU and dd if=/dev/sdaX of=/dev/sdaY then copy sdaX cfg file -> sdaY and make the changes you need. Date: Wed, 1 Apr 2009 21:10:07 +0530 From: bansal.tanuj@gmail.com To: xen-users@lists.xensource.com 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 _________________________________________________________________ Rediscover HotmailĀ®: Get e-mail storage that grows with you. http://windowslive.com/RediscoverHotmail?ocid=TXT_TAGLM_WL_HM_Rediscover_Storage1_042009 _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users