I have a guest image but that''s all I have, just the file.img. Is there a way of having xen recognize the guest even though I have no other information about it? _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Thu, Feb 26, 2009 at 9:20 AM, lists@grounded.net <lists@grounded.net> wrote:> I have a guest image but that''s all I have, just the file.img.Where is it from?> Is there a way of having xen recognize the guest even though I have no other information about it?Sort of. First you need to know what kind of image it is. Is it a raw disk, a loop-mounted partition, or just a tar archive. Or even vmdk or vdi image. "fdisk -l file_name" or looking at file extension should provide some info. Second, you need to know what kind of guest it is. Is it Xen PV, Xen HVM, KVM, vmware, virtualbox, or whatever. Next, assuming it''s Xen, you can simply create a generic PV or HVM configuration. You may lose some networking info (IP address and such, since some distros bind it to MAC address), but it might not be important and there''s a way to get it back later. Regards, Fajar _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
> Where is it from?It''s from an earlier xen server which was shutdown and the drives taken out for something else. The guest.img had been backed up but the rest was lost in the drive change.> Second, you need to know what kind of guest it is. Is it Xen PV, Xen > HVM, KVM, vmware, virtualbox, or whatever.It''s a xen guest. I know most everything about it, it''s IP, drive size, memory, things like that.> Next, assuming it''s Xen, you can simply create a generic PV or HVM > configuration. You may lose some networking info (IP address and such, > since some distros bind it to MAC address), but it might not be > important and there''s a way to get it back later.Actually install one then use it''s config or just create the configuration file? _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Any chance you could post a config file? Don''t seem to have any available to me right now. Mike _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Hi, You can find some sample configs in /etc/xen/. -Alex On Wed, Feb 25, 2009 at 10:59 PM, lists@grounded.net <lists@grounded.net> wrote:> Any chance you could post a config file? Don''t seem to have any available to me right now. > > Mike > > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
> You can find some sample configs in /etc/xen/.Thanks, I knew I saw them somewhere :). Mike _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Ah, piece of cake. Just do a quick install of a similar guest, then nuke it, edit the config file, stick my old image file in there and done. Thanks for the input. PS: What files should I be making sure to back up next time? Obviously, /etc/xen and the guests, anything else? _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Thu, Feb 26, 2009 at 11:20 AM, lists@grounded.net <lists@grounded.net> wrote:> Ah, piece of cake. Just do a quick install of a similar guest, then nuke it, edit the config file, stick my old image file in there and done. Thanks for the input.I usually make a template config and a template tar-file of domU. So my "install" is actually a "restore", plus minor changes :) This PV config uses pygrub bootloader and allows memory and cpu dynamic allocation up to 8 vcpu and 8G memory. The vfb part is optional (and I usually comment it out) http://pastebin.com/f3d29c35e This HVM config is for running Win2003 on 64bit Linux dom0 http://pastebin.com/f23e0f5e1 Also works for Windows 2008 x84 if you set apic and pae=1, and memory >= 1000> > PS: What files should I be making sure to back up next time? Obviously, /etc/xen and the guests, anything else? >That should do it. Just make sure that you have consistent backup of the guest. e.g. shutdown domU first, or have LVM snapshot or similar. Regards, Fajar _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Thanks for the input on this. I''ll make notes and keep this in mind. Mike On Thu, 26 Feb 2009 12:13:01 +0700, Fajar A. Nugraha wrote:> On Thu, Feb 26, 2009 at 11:20 AM, lists@grounded.net <lists@grounded.net> > wrote: > >> Ah, piece of cake. Just do a quick install of a similar guest, then nuke >> it, edit the config file, stick my old image file in there and done. >> Thanks for the input. >> > I usually make a template config and a template tar-file of domU. So > my "install" is actually a "restore", plus minor changes :) > > This PV config uses pygrub bootloader and allows memory and cpu > dynamic allocation up to 8 vcpu and 8G memory. The vfb part is > optional (and I usually comment it out) > > http://pastebin.com/f3d29c35e > > This HVM config is for running Win2003 on 64bit Linux dom0 > > http://pastebin.com/f23e0f5e1 > > Also works for Windows 2008 x84 if you set apic and pae=1, and memory >> 1000 > >> >> PS: What files should I be making sure to back up next time? Obviously, >> /etc/xen and the guests, anything else? >> > > That should do it. Just make sure that you have consistent backup of > the guest. e.g. shutdown domU first, or have LVM snapshot or similar. > > Regards, > > Fajar > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users