Debian Squeeze客户端运行在KVM下,如何获得序列号?

我刚刚在Ubuntu上运行,已经安装了一切,但厨房水槽。

有virt-console,virt-manager,运行debian Squeeze,一切正常。

但是…我不想通过vnc连接。 我想将大量KVM安装到无头服务器上。 我不想处理防火墙vnc。

但我无法找出正确的方法来启用串行tty访问,我理想喜欢每个访客机器将有一个相应的主机上的tty。

我不知道我应该在客人中连接getty。 运行lshw不会显示任何串行设备。 Grub 2并不是特别容易找出将内核控制台设置添加到initrd的位置

来宾机器具有以下ptyconfiguration。

<serial type='pty'> <target port='0'/> </serial> 

在RHEL / Fedora中,我将console=ttyS0添加到grub.conf中的grub内核引导行

然后确保虚拟机xml定义

 <serial type='pty'> <target port='0'/> </serial> <console type='pty'> <target type='serial' port='0'/> </console> 

启动VM并运行virsh list以获取其名称或编号

然后只需运行virsh console $VMNAME

我认为这也应该在Debian中起作用