![]() ' cd /mnt/tmp time nc -l -p 32100 |pv -t -r -b -W -i 2 -B 20M |tar xzpf - ' (Sysrescue has some nice utils included that we can use to show the data transfer rate.) Listen on port 32100 and untar: Now to restore the root filesystem from the backup. Do this next step ONLY if you need to setup the guest network so you can talk to the host via a Static IP address of (example) 10.0.1.6: Now we use System rescue to Netcat our root filesystem > ext4: Now hit ^A and then c to make a 2 nd screen (trust me this will be good) ' screen -aAO /root % ' blkid ' # Make a note of these! This is where it's handy to start a 'screen' session: ' mkfs.ext4 -m1 -v /dev/sda2 ' # Make root filesystem in guest VM ' mkswap /dev/sda1 & swapon /dev/sda1 ' # Make and activate swap Afterward, it just needs to look something like /root % ' fdisk -l ' NOTE - since we're doing this from System Rescue, you can make partitions on sda using the X GUI and gparted if you like. Install a Master Boot Record on the disk: I/O size (minimum/optimal): 512 bytes / 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes $ ssh -2 -l root 192.168.1.16 # Example IP address - we will use this for the remainder of the /root % ' fdisk -l 'ĭisk /dev/sda: 16 GiB, 17179869184 bytes, 33554432 sectors Now for convenience, from any machine on your LAN that can ping the VM: For convenience, once System Rescue is booted, you can SSH in: O Boot: Systemrescuecd Option 3, Framebuffer console hi-res ![]() On 1st boot, I went into the BIOS and disabled the floppy drive, modified the IDE settings for 32-bit I/O, set the Boot Diagnostic screen to display, and made the boot process look at the CD 1st. SETUP: Set the virtual CD to boot into the System Rescue CD ISO. NOTE – if you see a command in single-tick quotes, it is being typed inside the VM, but don't type the quotes. NOTE: Changed Guest SSH host keys as well, since this is an older version of the Host OS (SECURITY)Ģ015.0808 Created linux p2vtest for p3300 NOTE: Changed Root password after getting everything running OK) - ' passwd root ' ![]() Stock distro kernel 3.19.0-21-generic SMP This is basically a P2V of a recent tar.gz backup of the Host. bootable CD: System Rescue CD 4.5.4 ISO. Network: Bridged (Obtains DHCP IP address from router) vDisk: 20GB LSILogic SCSI (sdb) for /home (Optional) vDisk: 16GB LSILogic SCSI (sda) for root " / " Guest: Tar.gz Backup of Host OS, restored into VM. Host: AMD Phenom 3.3 GHz, 12GB RAM, 6-core Note that this was done "manually", without using Vmware Converter or anything besides stock Linux apps (and Vmware.) The goal is to have a running copy of my main Linux PC in a VM. It's been a while since I posted one of these, so thought I'd share the updated method. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |