LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization
User Name
Password
Linux - Virtualization This forum is for the discussion of all topics relating to Linux Virtualization. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices

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

Rep: Reputation: 2
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: Israel
Distribution: RHEL,Fedora
Posts: 566

Rep: Reputation: 58
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: 39

Original Poster
Rep: Reputation: 2
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: 39

Original Poster
Rep: Reputation: 2
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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
qemu-kvm howto setup virtual network to access Internet garydale Linux - Virtualization 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


All times are GMT -5. The time now is 02:03 PM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration