Old 09-21-2011, 12:46 PM   #1 (permalink)
Newbie
 
Join Date: Mar 2010
Posts: 5
gbern001 is on a distinguished road
Question need command line (terminal) from hyper-v

I have untangle working under hyper-v to test a simple solution but I wanted to get a terminal to run remotely and/or get the linux integration services running for hyper-v.

Both require a terminal windowed opened on the console and I can't see how to get that.

( FYI I am not a good linux user)

I can get the grub window open but dont know if I can control a cli boot from there.

I get the graphics untangle window open but I don't believe that keyboard input is captured at all at that screen to open the terminal from there.

I am able to get to the remote admin window and I am working from there.

So I need ssh on or some way to trigger the terminal windows from the bootup.

thanks for any help
glenn
gbern001 is offline  
Old 09-21-2011, 01:00 PM   #2 (permalink)
Untangle Ninja
 
mrunkel's Avatar
 
Join Date: Jul 2008
Posts: 2,768
mrunkel is on a distinguished road
Default

At the console window, you can click on the bottom right button. That will allow you to set a root password and access the terminal.

After that you can enable ssh if you'd like or just run your commands from there.

However, if you're not "a good linux user." I'd rate your chances of getting the hyper-v linux integration services running at about 0%.
__________________
m.


Big Frickin Disclaimer:
While I'm pretty sure, I can't guarantee that I know what I'm doing. There might be a better way to do this, and this way might actually suck. Make sure you understand the implications of what you're doing before trying to follow these directions.

It often helps troubleshooting if you have a good network map. Look here if you want my advice on how to draw one.
Attention: Support and help on the Untangle Forums is provided by volunteers and community members like yourself.
If you need Untangle support please call or email support@untangle.com
mrunkel is online now  
Old 09-22-2011, 01:08 AM   #3 (permalink)
Master Untangler
 
Join Date: Dec 2010
Location: Echuca, Victoria, Australia
Posts: 256
pazza3564 is on a distinguished road
Send a message via MSN to pazza3564 Send a message via Yahoo to pazza3564 Send a message via Skype™ to pazza3564
Default

You could try this http://blog.allanglesit.com/2009/05/...tu-and-debian/

Note- I have not tried this, just googled it
pazza3564 is offline  
Old 09-23-2011, 12:20 PM   #4 (permalink)
Newbie
 
Join Date: Mar 2010
Posts: 5
gbern001 is on a distinguished road
Default no mouse!

The point of the original question is that I don't have mouse support from the untangle console on the host VM in hyper-v. I can't click on the terminal icon, so I can't get to the cli to do what I want to do (enable ssh for example). So I can only admin untangle from another machine but w/o ssh, I can't even try to add the hyper-v integration.

So does anyone know if there is a keyboard command to get a terminal window to open?

Or a trick from the remote admin window to enable ssh?
gbern001 is offline  
Old 09-23-2011, 12:54 PM   #5 (permalink)
Master Untangler
 
Join Date: Oct 2008
Posts: 775
pirateghost is on a distinguished road
Default

the tab key?

its always worked for me on prior versions when i didnt have an actual mouse on hand
pirateghost is offline  
Old 09-23-2011, 02:19 PM   #6 (permalink)
Newbie
 
Join Date: Mar 2010
Posts: 5
gbern001 is on a distinguished road
Default

Quote:
Originally Posted by pirateghost View Post
the tab key?

its always worked for me on prior versions when i didnt have an actual mouse on hand
Nope. Worked during installation (that's how its up and running) but from the graphic console, it doesn't seem to do anything.
gbern001 is offline  
Old 09-24-2011, 11:19 AM   #7 (permalink)
Untangle Ninja

 
WebFooL's Avatar
 
Join Date: Jan 2009
Location: Sweden (Eskilstuna)
URLs submitted: 57
Posts: 3,877
WebFooL is on a distinguished road
Send a message via MSN to WebFooL
Default

Are you RDPing to the Hyper-V server?

You can start Untangle in "Failsafe" and start SSH from there.

Quote:
when Grub comes up hit down arrow then up arrow (so that you have Debian GNU/Linux, kernel 2.6.26-1-untangle-686 line) followed by "e" then go the kernel line and hit "e".
Remove "vga=791 quiet Splash" and add "init=/bin/bash" and then hit "enter" followed by "B" to boot.
Debian/Untangle will now boot in to a root terminal but only with read permissions.
So we will need to remount it as rw. do that by "mount -o remount,rw /"
then you can follow the normal instructions on how to enable ssh.
http://wiki.untangle.com/index.php/Enable_SSH
WebFooL is offline  
Old 09-24-2011, 01:39 PM   #8 (permalink)
Untanglit
 
Join Date: Apr 2009
Posts: 25
appleoddity is on a distinguished road
Default

I dealt with the exact same scenario.

I have a Server 2008 box running in a datacenter. I am running Untangle under Hyper-V but because it is an RDP session to the server 2008 box, I have no mouse control over the running Untangle box after installation and such a simple thing as keyboard control over the Untangle GUI would be nice, but it doesn't exist - so no way to "click" terminal and get it to open.

This is how I get around it.

First, you'll need to boot to single user mode and reset the root passwd and enable SSH.

Reboot your Untangle VM and use the TAB key at the Grub loading screen. Arrow down to the kernel line and press 'e' to edit. Add "init=/bin/bash" to the end of the line and press ENTER then B to boot. (I'm pulling this from memory, so I can't remember if I had to remove any entries off of that kernel line when I added the init parameter. You might need to remove the splash parameter too)

If all goes well it will drop you right to a root prompt pretty quickly (in a few seconds).

Issue the mount -o remount rw / command to make the file system read/write.

Use the passwd command to set your root password.

Issue the rm /etc/ssh/sshd_not_to_be_run command to enable SSH.

Issue the reboot command to restart your untangle box normally.

It will now be listening for SSH connections and you can login with root and your new password.

The second obstacle is pulling up the web interface to configure untangle. Now that you can SSH to the box, do that. At the command prompt issue the following commands:
psql -U postgres uvm
(at the uvm=# prompt) update u_access_settings set allow_outside_admin = 'true';
(at the uvm=# prompt) \q
/etc/init.d/untangle-vm restart

Now your untangle box will accept web connections on its external interface for administration purposes.

And there you go. I was able to remotely install and configure an Untangle VM using this procedure on Hyper-V.

But, my final note is this: You will not, under any circumstances, be able to run the Hyper-V integration on the untangle box. They use a kernel version that is right in between two version that you can install integrations on. Trust me, I spent days on it. There is no way to do it, and no reason to do it. Untangle runs fine without them. Just make sure you use legacy network cards. They'll show disconnected but will work fine.
appleoddity is offline  
Old 09-26-2011, 02:54 PM   #9 (permalink)
Newbie
 
Join Date: Mar 2010
Posts: 5
gbern001 is on a distinguished road
Default

appleodity/webfool.

thanks. that's exactly what i needed to know. i am going to try this tomorrow.
as for the remote admin. i was actually able to enable that from untangle - because it only became a "remote" admin once I was outside the the subnet, so i just set another vm ip to the same subnet and was able to get in.

my fear is that for any reason, the untangle cannot be reached on web portal, i will lose it forever. nice thing about hyper-v though is that I just made a copy of the vhd, so i could allows replace the vm with a backup image.
gbern001 is offline  
Old 10-03-2011, 12:25 AM   #10 (permalink)
Untangler
 
Join Date: Dec 2009
Location: Olympia, WA
Posts: 76
joshgay is on a distinguished road
Default

Other way to fix this, is to not RDP into the Hyper-V host, but use the RSAT (Win7 SP1 version http://www.microsoft.com/download/en...s.aspx?id=7887 ) to do this, which will require that remote admin is enabled properly on Hyper-V standalone, or as a component of server 2008, and that the logged in user on Win7 box has those rights.

YMMV I have to do this on occasion from my "home" office to the "office", and well, 3g sprint in the rain at 10 miles from the tower, to DSL isn't always speedy, but can usually get the job done.
joshgay is offline  
Closed Thread

Tags
hyper-v, ssh, terminal

Thread Tools

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



All times are GMT -7. The time now is 07:27 AM.


© 2010 Untangle, Inc. All Rights Reserved.   SEO by vBSEO 3.6.0 PL2