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 05-17-2012, 04:52 AM   #1
malak33
Member
 
Registered: Dec 2011
Location: Amish Country PA, USA
Distribution: CentOS 6.2
Posts: 104

Rep: Reputation: 3
Virt-install problems


I'm using centos and trying to install a virt machine under KVM using the command line. I have 4 running right now that i installed through the gui. I can even install through the kickstarterfile in the gui.

However when i try to install in the command prompt i get these errors
this is from tail -f /var/log/messages
kvm: 5964: cpu unimplemented perfctr wrmsr 0xc1 data 0x0
kvm: 5964: cpu unimplemented perfctr wrmsr 0x186 data 0x130079
kvm: 5964: cpu unimplemented perfctr wrmsr 0xc1 data 0xffd74fa0
kvm: 5964: cpu unimplemented perfctr wrmsr 0x186 data 0x530079

this is from tail -f /var/log/messages

the command that i use to install is this

virt-install -n tester3.example.com -r 1500 --disk path=/home/user/KVM/images/tester3.example.com.img,size=20 -l /home/user/RHSCA/CentOS-6.0.iso

i have tried virt-install --prompt, and also the above virt-install command with a kickstart file changing the locations and adding the -x flag as well.

[edit]
the only help i found on google was this website http://wiki.atollon.com/en/tech/KVM i followed the "solution" and typed
yum upgrade kernel kvm kvm-kmod kvm-tools
reboot
and still no luck....

Please help guys
 
Old 06-05-2012, 05:46 AM   #2
maccas17
Member
 
Registered: May 2010
Location: UK
Distribution: RHEL6
Posts: 70

Rep: Reputation: 11
Hi,

As you're building from an ISO I think you should be using the -c option:

Code:
-c /home/user/RHSCA/CentOS-6.0.iso
The -l is the location argument and is what you would use for a distribution tree installation source, such as an HTTP/NFS/FTP location or an actual copy of your ISO's contents to a directory.

I've used both the -c and -l options fine with RHEL 6.2.

Hope this helps.
 
1 members found this post helpful.
Old 06-05-2012, 05:58 AM   #3
maccas17
Member
 
Registered: May 2010
Location: UK
Distribution: RHEL6
Posts: 70

Rep: Reputation: 11
By the way, the "errors" you mention in syslog are actually nothing to worry about. They are just harmless CPU probing messages that can be safely ignored. The OS is probing to see what PMU (Intel Performance Monitoring Units) are available on your processor. This happens when you initialise or reboot a VM guest.
 
1 members found this post helpful.
Old 06-05-2012, 08:57 PM   #4
malak33
Member
 
Registered: Dec 2011
Location: Amish Country PA, USA
Distribution: CentOS 6.2
Posts: 104

Original Poster
Rep: Reputation: 3
@ maccas17

thanks you so much for this bit of information. I have looked up the man for the virt-install command and see what you are talking about.
I am not able to try it out today. However, i will have my computer available to me tomorrow and i will try that out then. Your logic makes sense to me. We will have to see...
 
Old 06-06-2012, 11:13 PM   #5
malak33
Member
 
Registered: Dec 2011
Location: Amish Country PA, USA
Distribution: CentOS 6.2
Posts: 104

Original Poster
Rep: Reputation: 3
i have taken your advice and ran the following commands here

virt-install -n tester3.example.com -r 1500 -f/home/user/KVM/images/tester3.example.com.img -s 20 -c /home/user/RHSCA/CentOS-6.0.iso

no luck here.

i thought maybe i was having permission issues, so i have a dvd centos 6.0 i stuck it and ran the following command

virt-install -n tester3.example.com -r 1500 --disk path=/home/user/KVM/images/tester3.example.com.img,size=20 --cdrom /dev/cdrom/

no luck again, infact i get a new error with that one
boot failed: could not read from cdrom (code 003)

i do not think i am being specific enough when this error occurs, i get to the welcome to centos screen and then when i press enter to install it attempts to load vmlinuz......the errors appear then. here is a link to Imgur to help clarify.
https://imgur.com/a/VhqoH
 
Old 06-07-2012, 04:08 AM   #6
maccas17
Member
 
Registered: May 2010
Location: UK
Distribution: RHEL6
Posts: 70

Rep: Reputation: 11
I'm not quite clear on your setup.

Do you have X installed on your host and your display exported to the client you're using? If so, then it should default to VNC and open up a console on the guest. Is this working ok?
Are you trying to install CentOS in text only mode? Did you press tab at the installer screen and add the word "text" to the end of the vmlinuz boot string?

When you created your guest what does "virsh list --all" display?

Do you want to install without VNC using the CLI only? If so, might want to look at the following options:
Code:
--nographics
--extra-args="console=ttyS0,115200"
(Though if you're using these options you would need to mount your CentOS iso locally and use the -l option, as the above does not work with -c option)
 
1 members found this post helpful.
Old 06-18-2012, 08:22 PM   #7
malak33
Member
 
Registered: Dec 2011
Location: Amish Country PA, USA
Distribution: CentOS 6.2
Posts: 104

Original Poster
Rep: Reputation: 3
@ maccas
Yes I am trying to install without VNC with the CLI only. I didn't understand all the options that i had. I thought that it would install but i see that it automaticly defaults to vnc if certain packages are installed "GUI" I have been working on this for months on and off.

So the command that i ran to make this work with no problems at all is this

virt-install -n tester123.example.com -r 1500 -f /home/user/KVM/images/tester123.example.com.img -s 20 --nographics -l /home/mnobile/RHCSA/CentOS6.0.iso -x "console=ttyS0"

and that command worked fine no problems at all.

i still have a couple more questions if you could help me out though.
when you are connected to the KVM with a command like virsh console tester123.example.com
can change to other terminals like you can on the host example:"ctrl+alt+f2"


I was wondering if there are any tutorials that you know of to help me learn more about KVM, and or online labs... something like that.

Thanks again.
 
  


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
command line virt-install problems malak33 Linux - Virtualization and Cloud 7 09-01-2012 11:01 PM
Virt-install problems malak33 Linux - Newbie 1 05-17-2012 05:02 AM
command line virt-install problems malak33 Linux - Newbie 1 01-28-2012 02:36 PM
LXer: Hacking libvirt/virsh/virt-manager/virt-install at Xen 4.0 Dom0 on top of Ubunt LXer Syndicated Linux News 0 05-06-2010 02:50 PM
LXer: Virt-install&Virt-manager at Xen 4.0-rc8 (2.6.32.10 pvops) Dom0 on top Ubuntu K LXer Syndicated Linux News 0 03-26-2010 09:41 PM

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

All times are GMT -5. The time now is 12:27 AM.

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