LinuxQuestions.org
Review your favorite Linux distribution.
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 01-29-2012, 08:29 AM   #1
malak33
Member
 
Registered: Dec 2011
Location: Amish Country PA, USA
Distribution: CentOS 6.2
Posts: 55

Rep: Reputation: 0
command line virt-install problems


hola,

i originally posted this in linux newbs, however not much help over there so i thought i would post it here where i might be able to get some better help with this problem.

so i am running into some issues here; I'm trying to learn everything through the command prompt once i understand how to do it in the GUI. I'm working through michael jang's RHCSA book, I'm using Centos 6.2.

I'm trying to install a KVM virt machine through my host which has a ftp site up, by using a kickstart file.

I did this already in the GUI and it works fine; I'm trying to do it in command prompt and it's not working it doesn't load up at all just a black screen or a black screen with the following error
kvm: 5657: cpu0 unimplememted perfctr wrmsr

this is the command i type into the command prompt; i have shut down, restarted done this and done that i don't know what is wrong. i don't know what is different. I even changed the ks.cfg file from sda to vda. i read that the kickstart file assumes that vda is being used. I can ping the host to the other 3 virt machines and vice-versa. Also when i do a install through the gui, no problems at all it finds the kickstart file and then preceeds to the installation gui. Thanks in advance guys

this is what i type into the console
virt-install -n outsider1.example.org -r 1200 \
--disk path=/home/username/KVM/outsider1.example.org.img,size=20 \
-l ftp://192.168.122.1/pub/inst
--vcpus 2 \
-x "ks=ftp://192.168.122.1/pub/ks.cfg"

then it says
starting install...
retrieving file...
blah
blah blah

here are the logs from when i ran the commands last; this is way outta my league. online i couldn't find much either.
command i ran tail -f /var/log/messages

Jan 28 15:33:03 Peaceprize kernel: device vnet1 entered promiscuous mode
Jan 28 15:33:03 Peaceprize kernel: virbr0: topology change detected, propagating
Jan 28 15:33:03 Peaceprize kernel: virbr0: port 3(vnet1) entering forwarding state
Jan 28 15:33:03 Peaceprize NetworkManager[1803]: <warn> /sys/devices/virtual/net/vnet1: couldn't determine device driver; ignoring...
Jan 28 15:33:04 Peaceprize avahi-daemon[1819]: Registering new address record for fe80::fc54:ff:fecc:417 on vnet1.*.
Jan 28 15:33:09 Peaceprize kernel: kvm: 8449: cpu0 unimplemented perfctr wrmsr: 0xc1 data 0x0
Jan 28 15:33:09 Peaceprize kernel: kvm: 8449: cpu0 unimplemented perfctr wrmsr: 0x186 data 0x130079
Jan 28 15:33:09 Peaceprize kernel: kvm: 8449: cpu0 unimplemented perfctr wrmsr: 0xc1 data 0xffd750e4
Jan 28 15:33:09 Peaceprize kernel: kvm: 8449: cpu0 unimplemented perfctr wrmsr: 0x186 data 0x530079
Jan 28 15:33:09 Peaceprize kernel: kvm: 8449: cpu1 unimplemented perfctr wrmsr: 0xc1 data 0x0
Jan 28 15:33:09 Peaceprize kernel: kvm: 8449: cpu1 unimplemented perfctr wrmsr: 0x186 data 0x130079
Jan 28 15:33:09 Peaceprize kernel: kvm: 8449: cpu1 unimplemented perfctr wrmsr: 0xc1 data 0xffd750e4
 
Old 01-29-2012, 12:17 PM   #2
spoore
LQ Newbie
 
Registered: Aug 2004
Posts: 22

Rep: Reputation: 2
Malak, hi.

I think you can ignore those cpu messages according to this: https://bugzilla.redhat.com/show_bug.cgi?id=507085

Do you ever get to a page showing that the network couldn't be set up? Or, unable to download kickstart file?

You could try adding "--network network=default" to your command line to see if that helps? Or are you using/expecting bridged networking? If so, something like "--network bridge=br0" might help...need to replace br0 with the name of your specific bridge though if using that method.

I thought (and the way the manpage reads to me) networking should default for you. I ran a quick test on a fedora 15 box. It couldn't configure the network so that might be your problem too.

Also, did you check the other virtual terminals with alt-f3 and alt-f4 to look for more info on what's happening on the guest?

Good luck,
Scott
 
Old 01-29-2012, 01:10 PM   #3
saifelyzal
LQ Newbie
 
Registered: Jun 2011
Distribution: Redhat
Posts: 26

Rep: Reputation: Disabled
try virt-install --name test --ram 1024 --disk pool=default,size=8 -l ftp://192.168.122.1/pub/inst
-x ks=ftp://192.168.122.1/pub/ks.cfg and you should be able to install your vm
 
Old 01-29-2012, 10:41 PM   #4
mike_rhce
Member
 
Registered: Jun 2011
Posts: 123

Rep: Reputation: Disabled
Dear malak33,

That was an error. In the book, I had set up the outsider.example.org system on the 192.168.100.0 network. My error was to couple that with the FTP server on the 192.168.122.1 system. (The FTP server is most easily accessible on that network from IP address 192.168.100.1).

Another user had a slightly different take on this, and an interesting workaround -- see the discussion starting Oct 12, 2011 in this Amazon thread, ref http://www.amazon.com/Collecting-que...sin=0071765654

This is in my list of errata to incorporate.

FYI, I usually monitor the LQ certification board at http://www.amazon.com/Collecting-que...sin=0071765654 , as well as the discussions on the Amazon page for the book. If you have any additional questions, you should be able to get my attention in one of those two places.

Thanks!
 
Old 02-16-2012, 12:34 PM   #5
malak33
Member
 
Registered: Dec 2011
Location: Amish Country PA, USA
Distribution: CentOS 6.2
Posts: 55

Original Poster
Rep: Reputation: 0
Sorry for the late reply.
Thank you for help trying to find the answer that i was looking for. I haven't tried this out yet, but i went to the thread you linked to and saw the solution. I will try this when i get some more time.

it has been crazy for me school just finished and i was studying for the A+ cert as well. I passed woot!

i thought i was going to get training for the RHCSA cert in march, however it has been pushed back until august(that's when i will be at my current job for a year)

So i thought it would be a good idea to go ahead and get my Network+ awhile and maybe my Security+ as well.

Once i get these i will go back to your book, and i will let you know how it works out for me.

Great book by the way!!! i have read to page 600 and am currently on page 200 for all the labs. I have learned so much already. Thank you for writing it, amazing job!!!
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
command line virt-install problems malak33 Linux - Newbie 1 01-28-2012 02:36 PM
Command line setup of Red Hat 6 virt-manager to recognize image. geelsu Linux - Virtualization 4 04-29-2011 01: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
[SOLVED] Keyboard problems: virt-manager fails, but kvm from the command line works kenneho Linux - Virtualization 1 11-14-2009 11:11 AM


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