[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-users] Partition vs disk images
Kai Schaetzl wrote: I didn't find a way to directly install on the LV, but it's possible to install like normal to xvda and just use one partition (one could use more, but then it gets more complex). Then attach another LV and copy the the system over: cp -ax /{bin,boot,etc,home,lib,media,mnt,opt,root,sbin,srv,tmp,usr,var} /mnt/vm4Don't forget to change the network configurations, as well, and set a new MAC address in your Xen configuration files. Or the new image will much with the network connections of your old image.create dev, proc and sys directories change fstab and grub.conf (to use /dev/sda1 or whatever you name it) disable selinux in /etc/selinux/config xm create the new vm with a config file that fits Unfortunately, RHEL's installation tools and CD image do not deal well with running 'grub-install' from their CD rescue images. You have to do something clever like duplicate the /boot partition and grub boot loader with tools like 'dd', and keep /boot as your tiny first partition, if you intend to use the pygrub tool normally used with RHEL for booting Xen images. Otherwise you have to keep a copy of the guest kernel on your server: this is a *NASTY* problem if you use the Xensource kernels, which traditionally had the same kernel name for RHEL 4 and RHEL 5 kernels. This is outlined in more detail here: http://www.virtuatopia.com/index.php/Building_a_Xen_Virtual_Guest_Filesyst em_using_Logical_Volume_Management_%28LVM%29 but you don't have to do all these steps, just what I did. Kai _______________________________________________ Xen-users mailing list Xen-users@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-users
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |