分页: 1 / 1

win7装virutualbox再虚拟Ubuntu, pause功能不会用,暂停之后再启动卡登录界面

发表于 : 2014-09-22 19:47
xbenben
如题,我以为virtualbox应该有vmware那样的暂停一个虚拟系统的功能。即关闭vritualbox的时候不需要关虚拟的操作系统,只需要暂定、保存当前状态。
virtualbox也有个pause选项,暂停的时候也有进度条显示保存当前状态。
但是每次重启virtaulbox试图恢复ubuntu的虚拟机的时候,界面都会死在ubuntu登陆的界面,鼠标点ubuntu的任何地方都没有反应,只能重启VM.

已经装了那个virtualbox附带的iso. 请问这是个bug还是我打开的姿势不对? :em23

版本是: 主机 WIN7 64位
virtualbox 4.3.16 (最新版了)
虚拟机 ubuntu14.04.01

Re: win7装virutualbox再虚拟Ubuntu, pause功能不会用

发表于 : 2014-09-22 21:26
poloshiao
看看 Save the machine state 跟你的期望接近嗎

摘錄自 Virtualbox 使用說明書

1.8.6 Saving the state of the machine

When you click on the “Close” button of your virtual machine window (at the top right of the window, just like you would close any other window on your system), VirtualBox asks you whether you want to “save” or “power off” the VM. (As a shortcut, you can also press the Host key together with “Q”.)

The difference between these three options is crucial. They mean:

Save the machine state: With this option, VirtualBox “freezes” the virtual machine by completely saving its state to your local disk.
When you start the VM again later, you will find that the VM continues exactly where it was left off. All your programs will still be open, and your computer resumes operation.
Saving the state of a virtual machine is thus in some ways similar to suspending a laptop computer (e.g. by closing its lid).

Send the shutdown signal. This will send an ACPI shutdown signal to the virtual machine, which has the same effect as if you had pressed the power button on a real computer. So long as the VM is running a fairly modern operating system, this should trigger a proper shutdown mechanism from within the VM.

Power off the machine: With this option, VirtualBox also stops running the virtual machine, but without saving its state.

Warning: This is equivalent to pulling the power plug on a real computer without shutting it down properly. If you start the machine again after powering it off, your operating system will have to reboot completely and may begin a lengthy check of its (virtual) system disks. As a result, this should not normally be done, since it can potentially cause data loss or an inconsistent state of the guest system on disk.

As an exception, if your virtual machine has any snapshots (see the next chapter), you can use this option to quickly restore the current snapshot of the virtual machine. In that case, powering off the machine will not disrupt its state, but any changes made since that snapshot was taken will be lost.

The “Discard” button in the VirtualBox Manager window discards a virtual machine’s saved state. This has the same effect as powering it off, and the same warnings apply.

Re: win7装virutualbox再虚拟Ubuntu, pause功能不会用

发表于 : 2014-09-26 14:00
xbenben
我就是如2楼所说那样用的啊。关闭的时候选择save the machine state. 但是再启动的时候界面就卡在login那里了。
鼠标点击任何ubuntu的界面都没有反应。只能Power offf the machine.

没有别人遇到过这个问题么?

Re: win7装virutualbox再虚拟Ubuntu, pause功能不会用,暂停之后再启动卡登录界面

发表于 : 2014-09-26 14:09
poloshiao
再启动的时候界面就卡在login那里了。鼠标点击任何ubuntu的界面都没有反应
按 右邊的 ctrl + F2
看看能否登入 tty2 ?

Re: win7装virutualbox再虚拟Ubuntu, pause功能不会用,暂停之后再启动卡登录界面

发表于 : 2014-09-26 23:36
xbenben
poloshiao 写了:
再启动的时候界面就卡在login那里了。鼠标点击任何ubuntu的界面都没有反应
按 右邊的 ctrl + F2
看看能否登入 tty2 ?
这样可以登录进去。我运行startx 也能启动桌面。可是“桌面”会充满整个屏幕,左边和上面的任务栏 工具栏都看不到了。
有什么办法切换到正常的桌面么?

以前用vmware觉得最好的功能就是暂停,可是vb怎就不行呢。
怎么办啊这是不是vbox的bug啊?似乎不是ubuntu的问题?

Re: win7装virutualbox再虚拟Ubuntu, pause功能不会用,暂停之后再启动卡登录界面

发表于 : 2014-09-27 8:06
poloshiao
我运行startx 也能启动桌面
試試
sudo start lightdm
以前用vmware觉得最好的功能就是暂停,可是vb怎就不行呢
Virtualbox manual 4.3.16
P. 134

8.13 VBoxManage controlvm

The controlvm subcommand allows you to change the state of a virtual machine that is currently
running. The following can be specified:

VBoxManage controlvm <vm> pause temporarily puts a virtual machine on hold, without changing its state for good. The VM window will be painted in gray to indicate that the VM is currently paused. (This is equivalent to selecting the “Pause” item in the “Machine”
menu of the GUI.)

當你啟動一個 Guest 時
左上角 機器 / 暫停 選單 試試

Re: win7装virutualbox再虚拟Ubuntu, pause功能不会用,暂停之后再启动卡登录界面

发表于 : 2014-09-27 16:14
xbenben
poloshiao 写了:
我运行startx 也能启动桌面
試試
sudo start lightdm
以前用vmware觉得最好的功能就是暂停,可是vb怎就不行呢
Virtualbox manual 4.3.16
P. 134

8.13 VBoxManage controlvm

The controlvm subcommand allows you to change the state of a virtual machine that is currently
running. The following can be specified:

VBoxManage controlvm <vm> pause temporarily puts a virtual machine on hold, without changing its state for good. The VM window will be painted in gray to indicate that the VM is currently paused. (This is equivalent to selecting the “Pause” item in the “Machine”
menu of the GUI.)

當你啟動一個 Guest 時
左上角 機器 / 暫停 選單 試試
按暂停还是一样的情况。
后来偶然发现启动VM以后调整VB窗口的大小,就可以恢复鼠标的控制了,比如按最大化。
这应该是个virtualbox的bug吧。不管怎样问题暂时解决了。感谢!