LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-26-2015, 10:13 AM   #1
bangnagr
Member
 
Registered: Jan 2013
Posts: 48

Rep: Reputation: 4
VitrualBox - How to show OS window from headless ?


Hi All

I'm trying to bring virtual guest from headless mode to gui mode in VirtualBox. But I don't know how to do it. I really appreciate if someone help me on this.

I usually run linux virtual machines in headless mode and connect to it through ssh. I have setup tigervnc-server on linux virtual machine, so that i can connect through vncviewer whenever i want to work on gui.

But recently, one of my friend said, I can also start virtual machine in headless mode in VirtualBox window by holding <SHIFT> key and press Start. Sure it did, it started in headless mode. But, now I don't know how to bring back window again.

Thanks you.
Attached Thumbnails
Click image for larger version

Name:	vb.png
Views:	9
Size:	153.2 KB
ID:	17675  
 
Old 02-26-2015, 10:26 AM   #2
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,454

Rep: Reputation: 2052Reputation: 2052Reputation: 2052Reputation: 2052Reputation: 2052Reputation: 2052Reputation: 2052Reputation: 2052Reputation: 2052Reputation: 2052Reputation: 2052
If it's running in headless mode, there is no window, so I'm not sure I understand the question.

You can connect to VirtualBox via RDP (each VM should have its own unique port) to watch/interact with the boot process or the OS even if it doesn't have a network connection. That's a much better solution than installing a VNC server on the VM IMO.

eg:
Code:
/usr/bin/nohup /usr/bin/vboxheadless -e "TCP/Ports"=3389 -s "VM Name" &> $HOME/vm_name.log &
Then just connect to the VM host (not the VM itself) on port 3389 with RDP.
 
Old 02-26-2015, 10:47 AM   #3
bangnagr
Member
 
Registered: Jan 2013
Posts: 48

Original Poster
Rep: Reputation: 4
Quote:
Originally Posted by suicidaleggroll View Post
If it's running in headless mode, there is no window, so I'm not sure I understand the question.
Sorry for my confusing english. I usually work in TUI, so that i can save some memory. This is what i do:

Start VirtualBox guest in terminal:
Code:
$ VBoxManage startvm kali --type headless
Connect to VM:
Code:
$ ssh root@kali
Then, Shutdown it by
Code:
$ VBoxManage controlvm kali poweroff
If I need gui...
Code:
$ vncviewer kali:1
I didn't knew that one can also start VM in headless mode from VirtualBox GUI Window by holding <SHIFT> key and pressing Start. Since I started VM in headless mode from GUI interface of VirtualBox, I thought, I can also show the window of VM back - like again holding <SHIFT> key and press something...

Quote:
Originally Posted by suicidaleggroll View Post
/usr/bin/nohup /usr/bin/vboxheadless -e "TCP/Ports"=3389 -s "VM Name" &> $HOME/vm_name.log &
I'll try this.

Thanks
 
Old 02-26-2015, 10:52 AM   #4
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,454

Rep: Reputation: 2052Reputation: 2052Reputation: 2052Reputation: 2052Reputation: 2052Reputation: 2052Reputation: 2052Reputation: 2052Reputation: 2052Reputation: 2052Reputation: 2052
Quote:
Originally Posted by bangnagr View Post
Since I started VM in headless mode from GUI interface of VirtualBox, I thought, I can also show the window of VM back - like again holding <SHIFT> key and press something...
No I don't believe that's possible. You can always use RDP to connect to the session though, the only difference then would be the menu bar along the top.
 
1 members found this post helpful.
Old 02-26-2015, 11:46 AM   #5
bangnagr
Member
 
Registered: Jan 2013
Posts: 48

Original Poster
Rep: Reputation: 4
@suicidaleggroll, thanks, appreciate it.
 
  


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
Trying to install software in a headless linux box, instructions only show gui namesake Linux - Newbie 2 10-19-2014 03:44 AM
gtkmm: show() doesn't show the window when adding windows from other places than main() Hvl Programming 0 06-21-2012 09:54 AM
I clicked the download window box "-- and dont show this window". How do I untick it? e82 Linux - Software 2 08-12-2010 05:39 PM
LXer: Running VitrualBox (OSE) on OpenSuse 10.3 LXer Syndicated Linux News 0 01-22-2008 01:11 AM
newbie wants to open a window to a headless workstation aleceiffel Linux - General 1 01-04-2005 03:39 AM


All times are GMT -5. The time now is 11:56 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration