LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 02-26-2011, 02:38 PM   #1
manyrootsofallevil
Member
 
Registered: Dec 2010
Distribution: Red Hat, Kubuntu
Posts: 130

Rep: Reputation: 14
KVM --Guest Install from console


Hello,

I'm trying to do a complete install from console, i.e. not using VNC at all.

I have the following command:

Code:
virt-install -n test -r 1024 --vcpu=1  -l rhel6.iso --os-type='linux' --os-variant='rhel5' --network network:default --file=/var/lib/libvirt/images/test.img  --file-size=6 -x console=ttyS0
I also tried with disk instead of file.

If I try using -c rhel6.iso, nothing seems to happen

At any rate, the above command works in so far as it launches a text install, however, when I get to the installation method screen, it's not working.
  • if I select cd/dvd it complains about a lack of driver, and then it allows me to select from a list of all drivers.
  • If I try to use a hard drive, again it complains. It says that I don't have any hard drives and then it's back to mounting driver disks

Any ideas?

TIA
 
Old 02-26-2011, 11:36 PM   #2
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,841

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
http://www.techotopia.com/index.php/..._(virt-install)
 
Old 02-27-2011, 02:00 AM   #3
manyrootsofallevil
Member
 
Registered: Dec 2010
Distribution: Red Hat, Kubuntu
Posts: 130

Original Poster
Rep: Reputation: 14
Quote:
Originally Posted by EDDY1 View Post

Not really sure what to say, you have provided a broken link (we all make typos) to essentially the man page, which contains an example that does not really apply.

Thanks for bothering to reply, but a RTFM would have been just as helpful. That's read the fine manual, btw.

At any rate, I've set up NFS on my box (host) and installed it off that source. This worked fine.

I had tried that before but the box has several vlans and I'm guessing that kvm was using the untagged nic, while my other NFS server was on one of the tagged vlans.

Installing it this way, also sets up grub so that the VM can be accessed via the console (serial console, that is), i.e. virsh console myvm, which is very nice indeed. Of course, I could have just ssh'd onto the virtual but it's a requirement to be able to access a VM's console.

Excerpt from grub.conf

Code:
serial --unit=0 --speed=9600
terminal --timeout=5 serial console
title Red Hat Enterprise Linux (2.6.32-71.el6.x86_64)
        root (hd0,0)
        kernel /vmlinuz-2.6.32-71.el6.x86_64 ro root=/dev/mapper/VolGroup-lv_root rd_LVM_LV=VolGroup/lv_root rd_LVM_LV=VolGroup/lv_swap rd_NO_LUKS rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us console=ttyS0 crashkernel=auto
 
Old 02-27-2011, 02:09 AM   #4
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,841

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
It had content when I looked earlier now nothing.
 
Old 02-27-2011, 02:13 AM   #5
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,841

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
Check it out before it disappears.
http://www.techotopia.com/index.php/...irt-install%29
 
Old 02-27-2011, 05:26 AM   #6
manyrootsofallevil
Member
 
Registered: Dec 2010
Distribution: Red Hat, Kubuntu
Posts: 130

Original Poster
Rep: Reputation: 14
Quote:
Originally Posted by EDDY1 View Post
Or I could try

http://docs.redhat.com/docs/en-US/Re...ion/index.html

which I doubt will disappear
 
Old 02-28-2011, 06:55 AM   #7
warrenn
LQ Newbie
 
Registered: Feb 2008
Posts: 16

Rep: Reputation: 0
Hi,

I think the link should be:
http://www.techotopia.com/index.php/...irt-install%29

When you click the link EDDY1 supplied, you can add a closing bracket ")" to the url and it should be viewable.

Hope that helps,
Warren

EDIT: Sorry, I've just seen that EDDY1 has already posted the correct link.

Last edited by warrenn; 02-28-2011 at 06:57 AM.
 
  


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
KVM Guest Install Error - Could not find an installable distribution linbox289 Linux - Virtualization and Cloud 3 02-18-2011 06:11 AM
Assign IP to Guest VM in KVM vzxen Linux - Virtualization and Cloud 9 09-28-2010 04:14 AM
KVM: Mouse under Windows Guest performs way better than under Centos Guest martdj Linux - Virtualization and Cloud 3 03-29-2010 04:20 AM
emulate slackware install over serial console using kvm/qemu [GOD]Anck Slackware 5 04-05-2009 03:31 AM
LXer: HowTo: Install configure KVM Virtualization & run Guest OSes in openSUSE LXer Syndicated Linux News 0 10-01-2008 03:50 AM

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

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