LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 08-27-2012, 01:56 PM   #1
gezley
Member
 
Registered: Sep 2009
Location: Ireland
Distribution: Slackware64, NetBSD
Posts: 499

Rep: Reputation: 208Reputation: 208Reputation: 208
Getty for dual-mode physical/virtual Slackware


I have a Slackware installation (14 RC1 amd64) which I can boot either natively or as a Xen domU (virtual guest, in Xen parlance). The only problem is, when I boot Slackware as a domU and attach to the console (hvc0) I get the console messages but no getty login.

Is there any way of adding hvc0 to /etc/inittab so that I have a getty when Slackware runs under Xen? According to the Xen documentation this is how you do it in Debian:

Code:
vc:2345:respawn:/sbin/getty 38400 hvc0
Can I add something similar to Slackware's inittab without affecting the getty setup used when Slackware runs on the raw iron?

(I can SSH to the guest but sometimes I need a real console - for example, when I need to change network settings.)

Last edited by gezley; 08-27-2012 at 02:03 PM.
 
Old 08-28-2012, 08:02 AM   #2
anscal
LQ Newbie
 
Registered: Apr 2011
Distribution: Slackware, RHEL
Posts: 17

Rep: Reputation: 2
My Slackware domU has

q1:12345:respawn:/sbin/agetty 38400 hvc0 linux

added to the inittab.

When running on bare metal, that line produces a substantially harmless "respawning too fast" warning.

Also add hvc0 to the system's /etc/securetty.

Last edited by anscal; 08-28-2012 at 08:04 AM. Reason: typo
 
1 members found this post helpful.
Old 08-28-2012, 08:11 AM   #3
gezley
Member
 
Registered: Sep 2009
Location: Ireland
Distribution: Slackware64, NetBSD
Posts: 499

Original Poster
Rep: Reputation: 208Reputation: 208Reputation: 208
Quote:
Originally Posted by anscal View Post
My Slackware domU has

q1:12345:respawn:/sbin/agetty 38400 hvc0 linux

added to the inittab.

When running on bare metal, that line produces a substantially harmless "respawning too fast" warning.

Also add hvc0 to the system's /etc/securetty.
Thank you so much!
 
Old 08-28-2012, 08:15 AM   #4
anscal
LQ Newbie
 
Registered: Apr 2011
Distribution: Slackware, RHEL
Posts: 17

Rep: Reputation: 2
 
Old 08-28-2012, 09:16 AM   #5
gezley
Member
 
Registered: Sep 2009
Location: Ireland
Distribution: Slackware64, NetBSD
Posts: 499

Original Poster
Rep: Reputation: 208Reputation: 208Reputation: 208
Quote:
Originally Posted by anscal View Post
I have just tried this, and it works perfectly, except for one thing: before this, when I was in the bare metal Slackware, I was able to open a second virtual terminal and start X with a different window manager on a second display. For example,

Ctrl+Alt+F2 for a second VT

xinit /usr/bin/fvwm -- :1

Ctrl+Alt+F8 to go to X on :1

Now I think I have one too many virtual consoles, and I am not able to do that. Is it enough to to comment out one of the entries in inittab and the corresponding entry in securetty?
 
Old 08-28-2012, 09:27 AM   #6
anscal
LQ Newbie
 
Registered: Apr 2011
Distribution: Slackware, RHEL
Posts: 17

Rep: Reputation: 2
Not sure I understand what exactly you're not able to do now... but since the device hvc0 doesn't exist in the bare metal instance, nothing should have changed except for the frequently respawning agetty.

Anyway, you can comment out some of the agetty lines in the inittab if you don't need that many VTs.
 
Old 08-28-2012, 11:03 AM   #7
gezley
Member
 
Registered: Sep 2009
Location: Ireland
Distribution: Slackware64, NetBSD
Posts: 499

Original Poster
Rep: Reputation: 208Reputation: 208Reputation: 208
Quote:
Originally Posted by anscal View Post
Not sure I understand what exactly you're not able to do now... but since the device hvc0 doesn't exist in the bare metal instance, nothing should have changed except for the frequently respawning agetty.
Sorry for the noise - I didn't test it properly the first time. All is working well now. Thank you for your help!
 
  


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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Dual Boot Slackware 13 with FreeBSD, but Issue Dual Booting PC-BSD Photon Blizzard Linux - Newbie 1 10-22-2009 10:07 PM
True dual-mode console/X-window text-editor for Slackware 12.2? linus72 Linux - Newbie 4 03-17-2009 04:42 AM
What about getty lupinix Bluewhite64 4 09-11-2008 09:20 PM
dual mode camera on slackware 10 cyb0rg777 Linux - Hardware 4 12-17-2005 05:54 PM
What is getty? swmok Linux - Software 2 07-07-2004 05:54 AM


All times are GMT -5. The time now is 09:11 AM.

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 Google+: linuxquestions
Open Source Consulting | Domain Registration