LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices


Reply
  Search this Thread
Old 03-17-2010, 06:12 PM   #1
shadowbox12
Member
 
Registered: Mar 2010
Posts: 52

Rep: Reputation: 3
Any way to access old VMs after reinstalling KVM?


I'm using CentOS 5.4 with KVM as my host. It had been working fine then one day LUKS decided to stop accepting my password. I'm not sure what the deal is but maybe bad drive. Anyway, I was forced to reinstall CentOS on another drive. I had previously installed a Ubuntu VM to a dedicated flash drive, but now using the new installation, I can't access it. sdb1 shows up but can't be mounted. The docs read that when installing a VM to a disk the raw format is used, so maybe there is not a proper filesystem on that drive? Is there any way to access this VM or will I have to recreate from scratch?
 
Old 03-19-2010, 12:51 PM   #2
dyasny
Member
 
Registered: Dec 2007
Location: Canada
Distribution: RHEL,Fedora
Posts: 995

Rep: Reputation: 115Reputation: 115
if its raw, ther's no FS on that drive, just the raw image.
you can create a new VM and set it to use the old drive as its image
 
Old 03-19-2010, 05:42 PM   #3
shadowbox12
Member
 
Registered: Mar 2010
Posts: 52

Original Poster
Rep: Reputation: 3
Ok, cool, I was hoping it was something simple. I'm really new to KVM, so can you go into a little more detail on this? When I choose "New" under the virtual machine manager it asks for an installation media and a location to install to. There is no option to open an existing image. Next to the "New" button there is an "Open" button which is grayed out. I've also tried the "Restore saved machine" option under File and that doesn't work either. So, how do I make a new VM and point it to the old location without it overwriting with a new install?
 
Old 03-19-2010, 10:09 PM   #4
shadowbox12
Member
 
Registered: Mar 2010
Posts: 52

Original Poster
Rep: Reputation: 3
Alright! After hours of searching I found this: http://www.denraf.be/category/tagcloud/virt-manager Which explains the counter-intuitive process of starting the install to disk then stopping before it can copy files. Considering how easy this was, I wonder why no one said how to do it? I guess very few people know about this.
 
  


Reply

Tags
centos5, kvm



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
qemu-kvm howto setup virtual network to access Internet garydale Linux - Virtualization and Cloud 5 03-06-2010 12:16 PM
Loading kvm-intel module for qemu-kvm 0.11.0 alkos333 Slackware 6 11-13-2009 10:01 PM
my CentOS server bootup failed please help me. I have only KVM access now cluepatel Linux - Newbie 6 02-01-2009 10:59 AM
LXer: Using Xen With LVM-Based VMs Instead Of Image-Based VMs (Debian Etch) LXer Syndicated Linux News 0 01-14-2009 08:20 PM
KVM Samba access timonvo Linux - Software 0 06-28-2007 06:52 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud

All times are GMT -5. The time now is 05:49 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration