Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 16th June 2009, 09:39
ripit ripit is offline
Junior Member
 
Join Date: Nov 2006
Posts: 22
Thanks: 0
Thanked 0 Times in 0 Posts
Default Kvm vm only randomly starts

Hi,

I'm have a vm runned by kvm that I converted from VirtualBox and most of the times it doesn't start. When I run it in VirtualBox I have to set ide controller to PIIX4. If I set it to PIIX3 it doesn't start.

In kvm it says that /dev/hda3 is not found.
Can it be the controller that is wrong and if it is how can I change it.

This is pretty enoying that I have to restart it several times to get it to work.

I would be happy for any tips.
Reply With Quote
Sponsored Links
  #2  
Old 17th June 2009, 12:49
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

How exactly did you convert the vm?

Which distribution are you using?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 20th June 2009, 12:17
ripit ripit is offline
Junior Member
 
Join Date: Nov 2006
Posts: 22
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi,

it's an physical Ubuntu 6.06 server that I've backedup and restored to a VirtualBox machine with systemimager. It's running fine on VirtualBox 2.2.4 so I tried to convert it to kvm.
I used clonehd to raw image in virtualbox and then i converted it to qcow2 format with qemu-imageconvert. It's all running on a Ubuntu 9.04 with kvm amd qemu installed frop repos.
Reply With Quote
  #4  
Old 21st June 2009, 15:50
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

Hm... Are there any errors in the logs?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #5  
Old 22nd June 2009, 01:40
ripit ripit is offline
Junior Member
 
Join Date: Nov 2006
Posts: 22
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I can't see anything in the log for the vm.
Which log should i check? If I get it running again I can check the logs there.
Reply With Quote
  #6  
Old 22nd June 2009, 15:26
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

Check the /var/log directory.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #7  
Old 24th June 2009, 10:40
ripit ripit is offline
Junior Member
 
Join Date: Nov 2006
Posts: 22
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I have checked there but the problem is that kvm starts fine and the grub boot shows up but then it doesn't find /dev/hda. So I don't think that kvm or libvirtd is aware that something is wrong.
Reply With Quote
  #8  
Old 25th June 2009, 15:28
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
 
Default

Ok, then I guess something went wrong with the conversion. In chapter 8 on http://www.howtoforge.com/virtualiza...a-11-server-p3 I fill the new image with zeros before I do the conversion because otherwise I got a similar error:

Code:
dd bs=1M if=/dev/zero of=/dev/vg_server1/vm10
You might want to try this as well.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Fail to create KVM guest satimis Server Operation 1 24th June 2009 21:07
Virtualization With KVM On A CentOS 5.2 Server AdrianG HOWTO-Related Questions 4 21st April 2009 17:33
USB KVM switch slow mouse and keyboard mcardo Technical 0 2nd March 2009 04:25
KVM Over IP (Dell) edge Server Operation 2 2nd March 2009 00:06
About KVM installation satimis Server Operation 0 28th July 2008 04:39


All times are GMT +2. The time now is 20:52.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.