简体   繁体   English

在Windows上将无头Ubuntu服务器安装到VirtualBox

[英]Install headless Ubuntu server to VirtualBox on windows

I have recently started using VirtualBox to get my Linux environment rather than fully using Ubuntu. 我最近开始使用VirtualBox来获取我的Linux环境,而不是完全使用Ubuntu。 For me this works well. 对我来说这很有效。 But recently i have realized that in the Ubuntu vm the only thing I use a lot is the terminal, mostly just because I need the Linux environment and not the full desktop. 但最近我意识到在Ubuntu vm中我唯一使用的是终端,主要是因为我需要Linux环境而不是完整的桌面。

So I tried installing Ubuntu server into a VM, which worked. 所以我尝试将Ubuntu服务器安装到VM中,这很有用。 But as soon as I reboot the machine, it fails after the system boot logo. 但是一旦我重新启动机器,它就会在系统启动徽标后失败。 After BIOS and where I would log on from the command line I simply get a black screen with a non blinking cursor. 在BIOS和我从命令行登录后,我只是得到一个带有非闪烁光标的黑屏。 So I am never fully able to boot into the vbox. 所以我永远无法完全启动到vbox。

I read up on the command line version, trying to run it headless and then connecting to it from demote desktop. 我阅读了命令行版本,试图无头地运行它,然后从demote桌面连接到它。 after starting the vbox I am able to connect to the desktop and see the grub screen but after selecting Ubuntu I get that same non-blinking cursor. 启动vbox后,我能够连接到桌面并看到grub屏幕,但在选择Ubuntu后,我得到了同样的非闪烁光标。

So is this really possible? 这真的有可能吗? I tried cygwin but it never really felt adequate to me. 我尝试过cygwin,但它对我来说真的不合适。 I like and am very comfortable with the Ubuntu/Debian command line. 我喜欢并且非常熟悉Ubuntu / Debian命令行。 How could I (if possible) accomplish this? 我怎么能(如果可能的话)完成这个? I want to be bale to start up the VBox and get the full command line for that vbox session. 我希望能够启动VBox并获得该vbox会话的完整命令行。 Any ideas? 有任何想法吗?

Ubuntu version: 10.10, VirtualBox v. 4.0.4 r70112 and I am on Windows 7 Ultimate. Ubuntu版本:10.10,VirtualBox v.4.0.4 r70112和我在Windows 7旗舰版。

You didn't mention the versions of Ubuntu and Virtualbox. 你没有提到Ubuntu和Virtualbox的版本。

I failed twice to install full Ubuntu 10.10 over the latest VirtualBox 4.0.4 over Ubuntu (problems like those you describe), so I switched to Debian 6.0. 我没有两次在最新的VirtualBox 4.0.4上安装完整的Ubuntu 10.10而不是Ubuntu(问题就像你描述的那样),所以我切换到了Debian 6.0。

All you require to install Ubuntu headless is to install the server version, which you already did. 安装Ubuntu无头所需的只是安装你已经完成的服务器版本。 If you get blank screens, tweak the ioapic settings in both VB and Ubuntu. 如果你得到空白屏幕,调整VB和Ubuntu中的ioapic设置。 Another tweak is to switch between IDE and SATA drivers for the main disk (the Grub in my non-virtualized Ubuntu hangs if there's USB media attached at boot time). 另一个调整是在主磁盘的IDE和SATA驱动程序之间切换(如果在启动时连接了USB介质,我的非虚拟化Ubuntu中的Grub会挂起)。

If you can run full Ubuntu on a VM, you can try downgrading it by removing the xserver-xorg package, or changing the default runlevel. 如果您可以在VM上运行完整的Ubuntu,则可以尝试通过删除xserver-xorg包或更改默认运行级别来降级它。

If all you want is a Linux consule, you can install Debian 6 without any GUI components. 如果你想要的只是一个Linux用户,你可以在没有任何GUI组件的情况下安装Debian 6。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM