LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Installing a getty on /dev/hvc0 (https://www.linuxquestions.org/questions/linux-general-1/installing-a-getty-on-dev-hvc0-827822/)

eviatarkhen 08-22-2010 01:31 PM

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

scott_R 08-26-2010 12:40 AM

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! :)

eviatarkhen 08-30-2010 11:31 AM

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


All times are GMT -5. The time now is 11:23 PM.