大网数据广告活动
服务器运维问答

Booting a Debian Live ISO on QEMU

· 52CE 我爱测

Situation : A server: access only via SSH (no physical access, no KVM) a netboot OS (Debian/Jessie) 3 x 2T HDD 16G RAM Final goal : Building a ZFS pool with the local HDD and install Debian on a ZFS root , the netboot OS is missi…

问题原文

原帖链接 · freezed · CC BY-SA 4.0

Situation:

A server:

  • access only via SSH (no physical access, no KVM)
  • a netboot OS (Debian/Jessie)
  • 3 x 2T HDD
  • 16G RAM

Final goal:

Building a ZFS pool with the local HDD and install Debian on a ZFS root, the netboot OS is missing packages to install ZFS via apt, that's why I want to boot a Live Debian.

Issue:

  1. I wget the debian-live-11.0.0-amd64-standard.iso on /tmp
  2. I installed QEMU (via apt) and the plethora of options confuses me (I am discovering it). My most advanced attempt is this:
qemu-system-x86_64 -curses -net nic -net user -m 1024M
    -drive file=/tmp/11-live-amd64-std.iso,media=cdrom -boot c

The -curses option gives a correct result with an install iso, when the 640 x 480 Graphic mode message appears, I use <esc> to access the boot: menu of grub and I pass it the install vga=normal fb=false options and it goes (screenshot)

But with the Live iso, it doesn't work (screenshot)

These are my questions:

  1. Did I miss any QEMU option(s) to display the output that is not supposed to be graphical with this standard iso?
  2. Do I need to configure my live iso with (e.g.) a GRUB in console mode?
  3. Will I not be able to configure the port forwarding of QEMU to access the console via SSH or telnet?
  4. Is there any other solution (without QEMU)?

Thanks in advance

已采纳解答

原帖链接 · freezed · CC BY-SA 4.0

I fix this issue by using -vnc & -nographic options.

Here the final command:

qemu-system-x86_64 -nographic -net nic -net user -m 1024M -drive file=/tmp/11-live-amd64-std.iso,media=cdrom -boot c -vnc :0

With this, the machine is reachable with a VNC client.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2021-09-23)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 4.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。