I''m debating doing a reinstall of the OS. My domU''s are mounted on a ZFS raidz pool The ZFS pool = tank domU = tank/vm/centos48/disk0 domU = tank/vm/centos54/disk0 etc What i''m wondering is if I do a zfs export, wipe/reinstall opensolaris, add xen - how would I re-import the existing domU''s? -- This message posted from opensolaris.org
Le 26/12/09 09:37, Muhammed Syyid a écrit :> I''m debating doing a reinstall of the OS. My domU''s are mounted on a ZFS raidz pool > The ZFS pool = tank > domU = tank/vm/centos48/disk0 > domU = tank/vm/centos54/disk0 > etc > What i''m wondering is if I do a zfs export, wipe/reinstall opensolaris, add xen - how would I re-import the existing domU''s? >I do that every build of SXCE just recreate them xm new centos48.cfg ...
I actually used the following guide http://hub.opensolaris.org/bin/view/Community+Group+xen/virtinstall and issued a command similar to mount -F hsfs /isos/opensuse11.iso /mnt share -o ro /mnt virt-install --paravirt --name dom1 --ram 1024 --vnc \ --os-type=linux --os-variant=sles10 \ --network bridge \ --disk path=/tank/guests/dom1/disk0,size=10,driver=phy,subdriver=zvol \ --location nfs:nfshost.domain.com:/mnt would re-doing that work? or a specific flag I need (I''m asking because by xm create centos48.cfg) I''d need to have a cfg file which I lack (@ least to specify the path of the zvol image) Thanks a bunch -- This message posted from opensolaris.org
On 12/30/09 07:34 AM, Muhammed Syyid wrote:> I actually used the following guide http://hub.opensolaris.org/bin/view/Community+Group+xen/virtinstall > and issued a command similar to > > mount -F hsfs /isos/opensuse11.iso /mnt > share -o ro /mnt > > virt-install --paravirt --name dom1 --ram 1024 --vnc \ > --os-type=linux --os-variant=sles10 \ > --network bridge \ > --disk path=/tank/guests/dom1/disk0,size=10,driver=phy,subdriver=zvol \ > --location nfs:nfshost.domain.com:/mnt > > would re-doing that work? or a specific flag I need > (I''m asking because by xm create centos48.cfg) I''d need to have a cfg file which I lack (@ least to specify the path of the zvol image) > > Thanks a bunch >I haven''t tested (I will) but replacing --location xx by --import should be the wy to go ? maybe remove the size parameter in disk path (should only be use when creating )
Bruno Take a look at my documents I made for creating/cloning virtual machines. I use the "--import" option there. That is designed to "create" a machine from an already installed image, or basically it skips the "boot from CD" (--location) or "boot from net" (--pxe). http://wikis.sun.com/display/OpenIT/Cloning+iSCSI+xVMs Tommy On Dec 31, 2009, at 1:09 AM, Bruno Damour wrote:> On 12/30/09 07:34 AM, Muhammed Syyid wrote: >> I actually used the following guide http://hub.opensolaris.org/bin/view/Community+Group+xen/virtinstall >> and issued a command similar to >> >> mount -F hsfs /isos/opensuse11.iso /mnt >> share -o ro /mnt >> >> virt-install --paravirt --name dom1 --ram 1024 --vnc \ >> --os-type=linux --os-variant=sles10 \ >> --network bridge \ >> --disk path=/tank/guests/dom1/disk0,size=10,driver=phy,subdriver=zvol \ >> --location nfs:nfshost.domain.com:/mnt >> >> would re-doing that work? or a specific flag I need >> (I''m asking because by xm create centos48.cfg) I''d need to have a cfg file which I lack (@ least to specify the path of the zvol image) >> >> Thanks a bunch >> > I haven''t tested (I will) but replacing --location xx by --import should be the wy to go ? maybe remove the size parameter in disk path (should only be use when creating ) > _______________________________________________ > xen-discuss mailing list > xen-discuss@opensolaris.org
On 12/31/09 05:44 PM, Tommy McNeely wrote:> Bruno > > Take a look at my documents I made for creating/cloning virtual machines. I use the "--import" option there. That is designed to "create" a machine from an already installed image, or basically it skips the "boot from CD" (--location) or "boot from net" (--pxe). > > http://wikis.sun.com/display/OpenIT/Cloning+iSCSI+xVMs > > TommyThanks Tommy, I tried theway I suggested and it works, so I''m planning to migrate my .cfg xvm files to virt-install, as it seems to be the new supported way. I just have 2 problems : - virt-install has no way (AFAIK) to specify usbdevice)''tablet'' as I used to in cfg file, and this is quite annoying for windows hosts - I did not manage to re-create a VM without the size option in the disk definition, I hope it doesn''t bork everything if I do not remember the initial size of my zvol Bruno