LinuxQuestions.org
Help answer threads with 0 replies.
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 05-27-2012, 08:11 PM   #1
commx
LQ Newbie
 
Registered: Sep 2003
Distribution: Arch
Posts: 16

Rep: Reputation: 0
qemu-kvm on a real partition


Earlier this day I've tried to boot a existing partition on a external hard disk, which didn't work. Now I'd like to find out why.

My disk layout is like:
  • /dev/sdb: Arch Linux
  • /dev/sdc: External Hard Disk

On /dev/sdc1 I have a Data partition. Of course this partition doesn't have any bootable files, but I just tried to find out if qemu-kvm is even able to boot from existing partitions rather than converting them into a raw file for example.

So I ran
Code:
qemu-kvm /dev/sdc1
which resulted into a black screen. The computer didn't respond anymore so I did a hard reset. Afterwards my Linux system wasnt able to boot anymore:

Code:
Booting the kernel.
mount: only root can do that (effective uid 1000)
mount: only root can do that (effective uid 1000)
mount: only root can do that (effective uid 1000)
mount: only root can do that (effective uid 1000)
ERROR: device '' not found. Skipping fsck.
ERROR: Unable to find root device ''. You are being dropped to a recovery shell.
I booted the Arch Live CD, chrooted into my partitions and regenerated the kernel image using mkinitcpio, but that didn't help. The log files on the root partition list several Segmentation faults, even on init at the time qemu-kvm was executed. What has happened when running qemu-kvm? Btw: I'm pretty sure that I have *not* specified the wrong partition, I even re-checked that twice by dumping the partition table of /dev/sdc before executing that command.

This case has been already solved, but I'd like to find out whats wrong with that.
Thanks for any hints.
 
Old 05-28-2012, 03:12 PM   #2
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,971

Rep: Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622
There are some docs that tell how to boot or access a physical partition. I don't think this is close to correct. "qemu-kvm /dev/sdc1"

I don't think this has changed.

"Hard disks
Hard disks can be used. Normally you must specify the whole disk (/dev/hdb instead of /dev/hdb1) so that the guest OS can see it as a partitioned disk. WARNING: unless you know what you do, it is better to only make READ-ONLY accesses to the hard disk otherwise you may corrupt your host data (use the -snapshot command line option or modify the device permissions accordingly). "
 
Old 05-29-2012, 09:34 PM   #3
commx
LQ Newbie
 
Registered: Sep 2003
Distribution: Arch
Posts: 16

Original Poster
Rep: Reputation: 0
It seems that I've run into a qemu-kvm bug, no idea if its QEMU or even libvirtd being the problematic part. Some minutes ago I tried to start a CentOS VM instance and the system crashed immediately. No log entries. After reboot I was able to start the VM without problems.
 
  


Reply


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Set up qemu-kvm-1.0+noroms as spice enabled qemu server vs qemu-kvm-spice on Ubuntu Precise LXer Syndicated Linux News 0 05-26-2012 07:41 AM
[Debian/Qemu/KVM] Why qemu --enable-kvm works but not kvm directly? gb2312 Linux - Virtualization and Cloud 2 03-21-2011 02:05 PM
LXer: Attempt of qemu-kvm-0.14 patching via Gerd’s Hoffmann “spice/qxl: locking fix for qemu-kvm” on LXer Syndicated Linux News 0 03-14-2011 01:20 PM
Error while installing qemu (qemu-kvm-0.13.0) in rhel 5.3 birla.sunil Linux - Virtualization and Cloud 2 10-19-2010 03:56 AM
On qemu-kvm, qemu-ifup script not found on Slackware 13 AndrewGaven Linux - Virtualization and Cloud 14 01-29-2010 03:36 AM

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

All times are GMT -5. The time now is 08:43 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