lost and found ( for me ? )

KVM : allow access to FreeBSD 9.0 VMs via “virsh console”

small tips

add console="comconsole" in /boot/loader.conf
# cat /boot/loader.conf
# for virtio drivers
virtio_load="YES"
virtio_pci_load="YES"
virtio_blk_load="YES"
if_vtnet_load="YES"
virtio_balloon_load="YES"

# for virsh console
console="comconsole"

edit ttys

from
ttyu0  "/usr/libexec/getty std.9600"   dialup  off secure

to
ttyu0   "/usr/libexec/getty std.9600"   vt100   on secure

reboot the VM
# reboot

on the KVM host , access to the VM via “virsh console”
virsh # console bsd90-64-vm1
Connected to domain bsd90-64-vm1
Escape character is ^]


FreeBSD/amd64 (bsd90) (ttyu0)

login:

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.