LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 08-22-2010, 01:31 PM   #1
eviatarkhen
LQ Newbie
 
Registered: Aug 2010
Posts: 18

Rep: Reputation: 0
Installing a getty on /dev/hvc0


Hi all,
I am trying to use Lguest(hypervisor of linux kernel) of the first time, on ubuntu 10.04 with kernel version 2.6.32.33. One of the instructions of the running operations is: "Make sure that you install a getty on /dev/hvc0 if you want to log in on the console!".
Does anyone understands what this means? How do I install a getty?
By the way, /dev/hvc0 is not present in my system, do I need to create it?

Thank you and best regards

Evi
 
Old 08-26-2010, 12:40 AM   #2
scott_R
Member
 
Registered: Jul 2003
Location: Brighton, Michigan, USA
Distribution: Lots of distros in the past, now Linux Mint
Posts: 748

Rep: Reputation: 31
Yeppers, you need to create it. There's a link here:

https://help.ubuntu.com/community/Xen

The relevant section follows:

* The detailed instructions below for setting up the Xen configuration describe how to fix getty by editing the automatic scripts. On karmic things have changed further. If you want to have a console for your domUs, you'll need to have getty running on /dev/hvc0 inside the domU. getty is run out of /etc/init/hvc0.conf on karmic. (On jaunty it's /etc/event.d/hvc0.conf.) Copy /etc/init/tty1.conf and edit appropriately. Make sure you have:

extras = "console=hvc0"

in the domU configuration file. (The domU console has changed names over the years. See this table at the bottom of the XenDom0Kernels Wiki for details, but basically with the pv_ops kernels since 2.6.26 the correct name is hvc0; before that the correct name was often xvc0; before that the syntax was "xenconsole=tty".)

* If you also want to upgrade your dom0, remember that you will need at least a 2.6.26 kernel if you're going to karmic. A good source of these kernels is debian. The debian 2.6.26-2-xen-amd64 kernels are known to work with at least jaunty, and should in principle be sufficient for karmic. (Please report definitive experience here if you can.)

Cheers!
 
Old 08-30-2010, 11:31 AM   #3
eviatarkhen
LQ Newbie
 
Registered: Aug 2010
Posts: 18

Original Poster
Rep: Reputation: 0
Thanks Scott!

I understood how to install the getty on hvc0.
The problem is that I don't have it (i.e it is not in /dev). Do you have any idea how to create it?
mknod is not good because it does not survive a boot...
I just got all confused with "upstart" and there is no relevant post for it on that matter(I guess because it's quite new).
By the way, lguest is not like Xen, it is a "type 2" hypervisor(a hypervisor that is a user space process), so it does not have (as long as I know) a need with a dom0.

Thanks again

Evi
 
  


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
pseudo terminals: /dev/ptmx <-> /dev/pts/ vs. /dev/ptyp <-> /dev/ttyp rtspitz Linux - Software 2 12-02-2011 03:07 PM
Starting lguest - installing a getty on /dev/hvc0 eviatarkhen Linux - Virtualization and Cloud 2 08-23-2010 01:52 AM
Installing a getty on /dev/hvc0 eviatarkhen Linux - Software 2 08-22-2010 05:42 PM
Installing grub on /dev/sdb or /dev/sdc Skaperen Ubuntu 4 07-18-2009 08:45 PM
Installing RIP LinuX on a USB drive - device name /dev/sdc becomes /dev/sda Mleahy Linux - Software 1 07-30-2008 09:57 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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