Difference between revisions of "Talk:Moving an existing install into (or out of) a virtual machine"

From ArchWiki
Jump to: navigation, search
(add content from page about to be deleted)
 
m (Kynikos moved page Talk:Migrate installation to new hardware to Talk:Moving an existing install into (or out of) a virtual machine without leaving a redirect: proper discussion page)
(One intermediate revision by one other user not shown)
Line 1: Line 1:
 +
==Migrate Arch from virtual machine to hardware==
 +
 
Content from '''HOWTO: Migrate Arch from virtual machine to hardware''' that should be tested and then merged into this page:
 
Content from '''HOWTO: Migrate Arch from virtual machine to hardware''' that should be tested and then merged into this page:
  
 
This is a summary of the following forum topic: http://bbs.archlinux.org/viewtopic.php?id=92528
 
This is a summary of the following forum topic: http://bbs.archlinux.org/viewtopic.php?id=92528
<br>
+
 
 
When you installed an Arch system inside a virtual machine and want to move it to work on the hardware machine, follow these steps:
 
When you installed an Arch system inside a virtual machine and want to move it to work on the hardware machine, follow these steps:
<br>
+
 
=='''Step by step instructions:<br>'''==
+
# Download, burn a LiveCD and boot from it (in this example Ubuntu)
1. Download, burn a LiveCD and boot from it (in this example Ubuntu)
+
# Install vdfuse[http://forums.virtualbox.org/viewtopic.php?f=7&t=17574]. (may well be in Ubuntu repos, I didn't check. I know it's in Arch's AUR somewhere)
<br>2. Install vdfuse[http://forums.virtualbox.org/viewtopic.php?f=7&t=17574]. (may well be in Ubuntu repos, I didn't check. I know it's in Arch's AUR somewhere)
+
# Mount the VDF disk file somewhere (we will call it directory A)
<br>3. Mount the VDF disk file somewhere (we will call it directory A)
+
# Prepare the target partition (the future root partition for migrated system) by making sure it's empty. I'm not sure if that's necessary, but I'd do it just in case and to simplify the process. Mount it somewhere. We will call this directory B.
<br>4. Prepare the target partition (the future root partition for migrated system) by making sure it's empty. I'm not sure if that's necessary, but I'd do it just in case and to simplify the process. Mount it somewhere. We will call this directory B.
+
# Copy the contents of directory A to directory B using "cp -a" (remove quotes)
<br>5. Copy the contents of directory A to directory B using "cp -a" (remove quotes)
+
# Adjust /etc/fstab in directory B and if you use GRUB below 2.0 adjust /boot/grub/menu.lst as well.
<br>6. Adjust /etc/fstab in directory B and if you use GRUB below 2.0 adjust /boot/grub/menu.lst as well.
+
# Reinstall GRUB onto the partiton mounted as directory B. Make sure you install it to the correct partition, errors may render the system unbootable.
<br>7. Reinstall GRUB onto the partiton mounted as directory B. Make sure you install it to the correct partition, errors may render the system unbootable.
+
# Chroot into directory B and run "mkinitcpio -p kernel26" (remove quotes). If you forget to do that, the target system may not work properly or don't boot at all.
<br>8. Chroot into directory B and run "mkinitcpio -p kernel26" (remove quotes). If you forget to do that, the target system may not work properly or don't boot at all.
+
# Cross your fingers and reboot. Hope everything works as expected.
<br>9. Cross your fingers and reboot. Hope everything works as expected.
+
  
 
'''IMPORTANT! This haven't been tested yet. Do it at your own risk. As usual, there is no guarantee whatsoever that this will work. Don't blame me if instructions above will cause any mayhem.'''
 
'''IMPORTANT! This haven't been tested yet. Do it at your own risk. As usual, there is no guarantee whatsoever that this will work. Don't blame me if instructions above will cause any mayhem.'''
  
 
-- [[User:Pointone|pointone]] 16:11, 10 June 2011 (EDT)
 
-- [[User:Pointone|pointone]] 16:11, 10 June 2011 (EDT)

Revision as of 02:49, 27 September 2012

Migrate Arch from virtual machine to hardware

Content from HOWTO: Migrate Arch from virtual machine to hardware that should be tested and then merged into this page:

This is a summary of the following forum topic: http://bbs.archlinux.org/viewtopic.php?id=92528

When you installed an Arch system inside a virtual machine and want to move it to work on the hardware machine, follow these steps:

  1. Download, burn a LiveCD and boot from it (in this example Ubuntu)
  2. Install vdfuse[1]. (may well be in Ubuntu repos, I didn't check. I know it's in Arch's AUR somewhere)
  3. Mount the VDF disk file somewhere (we will call it directory A)
  4. Prepare the target partition (the future root partition for migrated system) by making sure it's empty. I'm not sure if that's necessary, but I'd do it just in case and to simplify the process. Mount it somewhere. We will call this directory B.
  5. Copy the contents of directory A to directory B using "cp -a" (remove quotes)
  6. Adjust /etc/fstab in directory B and if you use GRUB below 2.0 adjust /boot/grub/menu.lst as well.
  7. Reinstall GRUB onto the partiton mounted as directory B. Make sure you install it to the correct partition, errors may render the system unbootable.
  8. Chroot into directory B and run "mkinitcpio -p kernel26" (remove quotes). If you forget to do that, the target system may not work properly or don't boot at all.
  9. Cross your fingers and reboot. Hope everything works as expected.

IMPORTANT! This haven't been tested yet. Do it at your own risk. As usual, there is no guarantee whatsoever that this will work. Don't blame me if instructions above will cause any mayhem.

-- pointone 16:11, 10 June 2011 (EDT)