Yve*_*ves 5 virtual-machine qemu
我正在尝试使用 QEMU 在我的 Ubuntu 服务器上安装 Ubuntu 16.04 的虚拟机。我的服务器没有桌面,我通过 ssh 进行操作。所以我需要能够在没有桌面的情况下远程使用 QEMU。
这是我执行的内容:
qemu-img create Ubuntu16.04.qcow2 5G
qemu-system-x86_64 -cdrom /home/me/ubuntu-16.04.3-server-amd64.iso -hda Ubuntu16.04.qcow2 -boot d -net nic -net user -m 1024 -localtime - curses
Run Code Online (Sandbox Code Playgroud)
似乎它需要桌面才能继续,我不确定。
另外,我尝试了推荐:
qemu-system-x86_64 -cdrom /home/me/ubuntu-16.04.3-server-amd64.iso -hda Ubuntu16.04.qcow2 -boot d -net nic -net user -m 1024 -localtime -nographic
Run Code Online (Sandbox Code Playgroud)
但它在这里阻塞:
me@mymachine:~$ qemu-system-x86_64 -cdrom /home/zyh/ubuntu-16.04.3-server-amd64.iso -hda Ubuntu16.04.qcow2 -boot d -net nic -net user -m 1024 -localtime -nographic
WARNING: Image format was not specified for 'Ubuntu16.04.qcow2' and probing guessed raw.
Automatically detecting the format is dangerous for raw images, write operations on block 0 will be restricted.
Specify the 'raw' format explicitly to remove the restrictions.
warning: TCG doesn't support requested feature: CPUID.01H:ECX.vmx [bit 5]
Run Code Online (Sandbox Code Playgroud)
要远程运行 QEMU,最好的选择是使用其 VNC 支持;这将禁用其 SDL 窗口显示,并允许您远程连接到图形显示。使用-vnc带有目标显示器的选项(例如 -vnc :0侦听端口 5900 并允许从任何地方进行连接)。如果您\xe2\x80\x99 不使用美国英语键盘,则\xe2\x80\x99 还需要使用该-k选项指定键盘布局。
如果您\xe2\x80\x99d 更愿意使用KVM,这也适用于KVM。(KVM 使用 QEMU 作为其 I/O。)Xen 也支持 VNC。
\n| 归档时间: |
|
| 查看次数: |
12853 次 |
| 最近记录: |