Proxmox serial console

De Linux Server Wiki
Aller à la navigation Aller à la recherche

sur proxmox :

Ajouter a la conf de la vm (remplacer <VMID> par l'id)

args: -serial unix:/var/run/qemu-server/<VMID>.serial,server,nowait

Installer minicom

aptitude install minicom

Créer le fichier

/etc/minicom/minirc.<VMID>

contenant :

pu port             unix#/var/run/qemu-server/<VMID>.serial
pu minit
pu mreset

sous une vm ubuntu :

Créer

/etc/init/ttyS0.conf

contenant :

# ttyS0 - getty
#
# This service maintains a getty on ttyS0 from the point the system is
# started until it is shut down again.
start on stopped rc or RUNLEVEL=[2345]
stop on runlevel [!2345]
respawn
exec /sbin/getty -L 115200 ttyS0 vt102

Pour voir le boot : ajoutez dans /etc/default/grub :

GRUB_CMDLINE_LINUX_DEFAULT="console=ttyS0 console=tty0 quiet splash"


Lancez le de suite :

start ttyS0

Sur l'hôte : lancer

minicom <VMID>

pour vous connecter