Quote:
Originally Posted by ludomania007
@Brains,
I should admit that i didn't succeed to implement your suggestions. Because i d'ont rally know how to compile a second kernel and add it to the boot menu. I look from the physical machine and that is the ppartition on boot disk.
|
That's just my approach, get it ready to minimize the amount of work from single user/live mode in VMWare to get it booteed. I'm an Image freak, I'm always making backups of my OS partitions, not the ESP. On my EFI system I can create new partitions somewhere else on the drive and paste a Linux OS image in it and boot it without going into chroot/single user/live mode.
However, not with VMWare. I back up my important VMs the same way, take a compressed image of it. I've had Gentoo Linux in VMWare, it's folder quickly becomes the same size as the allocated disk size. The Gentoo only used 12GB of the 30GB disk, all the tmp space it used to compile software is seen as used space by VMWare. So it's folder constantly grows to to max allocated disk size. The backup software I use don't include un-allocated disk space, the image file size is about 5GB as a result. I then create a new VM and use partition software live to create a new ESP and a partition same size or larger as the partition the image came from, then with the backup software, plaster the image in it, then boot a live Linux to reinstall grub, then she boots, and it's back to 12GB in size.
With VMWare, I've found, one way or another, whether you created a new ESP or carried the original as part of the image, you will need to reinstall grub from a live environment.
You can take your chances with the current kernel, some distributions like Fedora have a very inclusive kernel with great support for virtualization either as host or guest.
The image software I use is not free and I won't recommend it as such as it also has a learning curve. What I can recommend since you only have two partitions:
Boot Gparted Live and shrink your ext4 root partition to bare minimum and note the size. Boot Linux live and make a "dd" bit for bit image of the / partition only using 4K bite size in the command, then boot Gparted Live and expand the partition back to it's original size, everything should be normal with the installed OS.
Make a new VM allocating desired "max" disk size, boot Gparted Live in the VM to create a new ESP at 64MB because no other OS will be adding boot files in it, it don't need be larger. And a partition same size as the shrunk partition size the image came from, the size you noted. Then boot Linux Live to dd the image into the partition, mount it and the ESP partition, and fix /etc/fstab to include the proper UUID for the partitions, reinstall grub, boot Gparted Live to expand the partition to max allocated size.