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

发布于 2024-10-21 22:46:19 字数 550 浏览 5 评论 0原文

我最近开始使用 VirtualBox 来获取 Linux 环境,而不是完全使用 Ubuntu。对我来说这很有效。但最近我意识到在 Ubuntu 虚拟机中我唯一经常使用的是终端,主要是因为我需要 Linux 环境而不是完整的桌面。

所以我尝试将 Ubuntu 服务器安装到虚拟机中,结果成功了。但是一旦我重新启动机器,系统启动徽标后就失败了。在 BIOS 和我从命令行登录的位置之后,我只是得到一个黑屏,光标不闪烁。所以我永远无法完全启动到 vbox。

我阅读了命令行版本,尝试无头运行它,然后从降级桌面连接到它。启动 vbox 后,我能够连接到桌面并看到 grub 屏幕,但在选择 Ubuntu 后,我得到了相同的不闪烁光标。

那么这真的可能吗?我尝试过 cygwin 但它对我来说从来没有真正感觉足够。我喜欢 Ubuntu/Debian 命令行,并且使用起来非常舒服。我怎样才能(如果可能的话)完成这个任务?我想要启动 VBox 并获取该 vbox 会话的完整命令行。有什么想法吗?

Ubuntu 版本:10.10,VirtualBox v.4.0.4 r70112,我使用的是 Windows 7 Ultimate。

I have recently started using VirtualBox to get my Linux environment rather than fully using 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.

So I tried installing Ubuntu server into a VM, which worked. 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. So I am never fully able to boot into the vbox.

I read up on the command line version, trying to run it headless and then connecting to it from demote desktop. 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.

So is this really possible? I tried cygwin but it never really felt adequate to me. I like and am very comfortable with the Ubuntu/Debian command line. 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. Any ideas?

Ubuntu version: 10.10, VirtualBox v. 4.0.4 r70112 and I am on Windows 7 Ultimate.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

葬花如无物 2024-10-28 22:46:20

你没有提到Ubuntu和Virtualbox的版本。

我在 Ubuntu 上安装最新的 VirtualBox 4.0.4 上的完整 Ubuntu 10.10 失败了两次(像你描述的问题),所以我切换到 Debian 6.0。

安装 Ubuntu headless 所需要做的就是安装服务器版本,您已经这样做了。如果出现空白屏幕,请调整 VB 和 Ubuntu 中的 ioapic 设置。另一个调整是在主磁盘的 IDE 和 SATA 驱动程序之间切换(如果启动时连接了 USB 介质,我的非虚拟化 Ubuntu 中的 Grub 会挂起)。

如果您可以在虚拟机上运行完整的 Ubuntu,则可以尝试通过删除 xserver-xorg 软件包或更改默认运行级别来降级它。

如果您想要的只是一个 Linux 控制台,您可以安装 Debian 6,而不需要任何 GUI 组件。

You didn't mention the versions of Ubuntu and 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.

All you require to install Ubuntu headless is to install the server version, which you already did. If you get blank screens, tweak the ioapic settings in both VB and Ubuntu. 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).

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.

If all you want is a Linux consule, you can install Debian 6 without any GUI components.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文