从这个link,我已经能够在MacOS High Sierra主机上从Debian Sparc64客户Qemu做ssh .

现在,我尝试配置访客和主机,以便在Debian Sparc64客户端上使用“ apt-get install ”,因为我知道我在访客上没有互联网访问权限,只有SSH客户端(有一个服务器SSH,但只在MacOS High Sierra上) .

我通过以下方式启动VM Qemu:

qemu-system-sparc64 \
-boot c \
-hda debian-9.0-sparc64.qcow2 \
-device virtio-balloon \
-net nic,model=virtio,macaddr=52:54:00:12:34:56 \
-vga none \
-net tap,ifname=tap0,script=no,downscript=no \
-m 1024 \
-nographic

我这样做: ifconfig bridge0 addm tap0

然后从客人,我可以做: ssh user_host@192.168.10.1

要在guest上获取 apt-get 函数,我输入 /etc/apt/apt.conf

Acquire::http::Proxy "http://localhost:2222";

并在 /etc/apt_sources/list

deb http://localhost:2222/debian stretch main
deb-src http://localhost:2222/debian stretch main

deb http://localhost:2222/debian stretch-updates main
deb-src http://localhost:2222/debian stretch-updates main

在Debian Sparc64上使用以下命令:

ssh -R 80:deb.debian.org:2222 user_host@192.168.10.1

192.168.10.1 是来宾的角度来看主机的IP) .

1 *)第一个问题,上面客人的ssh隧道命令是否正确?我只想通过ssh隧道将guest虚拟机的 port 80 (或访客的代理端口)重定向到主机的 port 80 :这可能吗?

2 *)我想在Sparc64的不同会话之间切换,我该怎么办?如果我第二次启动Qemu VM,而第一个正在运行,那么我收到如下错误消息:

qemu-system-sparc64: -net tap,ifname=tap0,script=no,downscript=no: could not open /dev/tap0: Resource busy

这意味着第一个启动的Qemu VM已经使用了接口 tap0 .

有没有办法在MacOS主机终端上有多个 tty (可能有键盘快捷键)?

这里捕获它似乎存在多个tty可用(在这个数字上,表示6个tty);但它表明:

Started getty on tty2-tty6 if dbus and logind are not available

这是否意味着在 tty2-tty6 上无法登录?我怎么能摆脱这个问题?

欢迎任何帮助

enter image description here