LinuxQuestions.org
Visit Jeremy's Blog.
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 05-29-2012, 03:36 PM   #1
essential1
LQ Newbie
 
Registered: May 2012
Posts: 17

Rep: Reputation: Disabled
installing kvm from source...


hi all,

i am trying to install kvm from source on ubuntu 12.04. i have already managed it using apt-get and can confirm it works, but since i want to try to modify it i need to do it from source.

i followed the guide here, after downloading and extracting this. then i moved into that folder and did the following:

./configure --prefix=/usr/local/kvm

make

sudo make install

sudo /sbin/modprobe kvm-intel

this passed without any problem.
then i create a vm as suggested on the guide using :

/usr/local/kvm/bin/qemu-img create -f qcow2 vdisk.img 10G

sudo /usr/local/kvm/bin/qemu-system-x86_64 -hda vdisk.img -cdrom /home/mus/downloads/ubuntu.iso \ -boot d

however the command

virsh -c qemu:///system list

whilst confirming that kvm is running, does not show that a kvm virtual machine is running, so i suspect what starts up is only running in qemu (rather than kvm). i have followed the instructions on the official guide to the letter. can anybody suggest what i might be doing wrong please?

Last edited by essential1; 05-30-2012 at 12:36 PM.
 
Old 05-30-2012, 01:44 AM   #2
dyasny
Member
 
Registered: Dec 2007
Location: Canada
Distribution: RHEL,Fedora
Posts: 995

Rep: Reputation: 115Reputation: 115
you started the VM with qemu-kvm directly, and want to see the VM run using virsh? will never work, because virsh is part of libvirt, and in order for it to manage VMs, VMs need to be started through it.

define the VM in libvirt, and then start it using `virsh start` - then virsh list will show it
 
Old 05-30-2012, 12:36 PM   #3
essential1
LQ Newbie
 
Registered: May 2012
Posts: 17

Original Poster
Rep: Reputation: Disabled
thanks for that, i was confused because it seemed to be working like a proper vm. this means that kvm is running nicely and now i can hopefully have a go at messing around with it.
 
  


Reply



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
[SOLVED] Installing and runnin qemu-kvm on debian iwanttolickazunyan Linux - Virtualization and Cloud 4 05-03-2012 05:52 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
Installing KVM on redhat linux 5.4 beta tarik007 Linux - Newbie 3 10-08-2009 08:41 AM
Problems installing OS in kvm TSquaredF Slackware 3 08-30-2008 06:19 PM
Error installing KVM on Intel notebook pino_otto Slackware 7 08-26-2008 02:22 AM

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

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