public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] Creating KVM image using existing gentoo partition
@ 2012-09-25 22:33 felix
  2012-09-25 22:40 ` Alan McKinnon
  0 siblings, 1 reply; 5+ messages in thread
From: felix @ 2012-09-25 22:33 UTC (permalink / raw
  To: gentoo-user

Got a new laptop at work,, running Linux instead of Mac, yay!  Unfortunately, it comes with Ubuntu installed, boo!  But I split the 500GB drive into two parts, began a gentoo install in the second half, and now I am stalled.

The main purpose of the laptop is to run Centos 6.2 in a KVM image so it can simulate production as much as possible.  As much as I dislike Ubuntu, I really only use it for terminals, Emacs, and Firefox.  I ssh into the Centos image for all that stuff.  I'd love to switch Ubuntu to gentoo and set up my usual fvwm etc instead of that awful Unity.

Unfortunately, because I have to leave that Centos image running as much as possible, I can't take the time to reboot into the gentoo partition to finish the install, not even on weekends or evenings.  It was ok getting the initial gentoo install started, but that was only an hour or two.  I can't take the time for a real install, there's work to do.

So it occurred to me it would be great to create a new KVM image using the gentoo partition as is for its file system, instead of creating one out of a file as it did for the Centos image.  But I don't see any obvious options to do that.  This is my first time with KVM, and someone else set up the Centos image using some GUI wizard.


Here be my scurvy dog question(s):

Is it possible to create a KVM image using an existing gentoo partition (/dev/sda3) for the filesystem, such that once I get the gentoo install finished, I can boot directly to the gentoo partition and not have to purify it or sanitize it after KVM has meddled with it?  (and how do I do this? :-)

If not, seems like the simplest workaround would be to create a KVM image from scratch and do a complete install there, then use cp, tar, cpio, or something similar to copy everything over to the real partition.  But that sounds ugly for some reason.

-- 
            ... _._. ._ ._. . _._. ._. ___ .__ ._. . .__. ._ .. ._.
     Felix Finch: scarecrow repairman & rocket surgeon / felix@crowfix.com
  GPG = E987 4493 C860 246C 3B1E  6477 7838 76E9 182E 8151 ITAR license #4933
I've found a solution to Fermat's Last Theorem but I see I've run out of room o


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2012-09-25 23:38 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-09-25 22:33 [gentoo-user] Creating KVM image using existing gentoo partition felix
2012-09-25 22:40 ` Alan McKinnon
2012-09-25 22:59   ` felix
2012-09-25 23:35     ` Alan McKinnon
2012-09-25 23:04   ` Peter Humphrey

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox