preload preload preload preload

Accéder au port série d'une VM Linux sous Proxmox


Le mercredi 18 avril 2012 par madpellzo Proxmox 29 commentaires

Cet article vous explique comment prendre la main sur le port série d'une VM exécutée sur l'hyperviseur Proxmox VE.

Proxmox VE est un fabuleux système de virtualisation utilsant OpenVZ (Containeurs Linux) et KVM (Virtualisation complète). Proxmox est en réalité une distributin Debian modifiée qui propose une interface web afin d'administrer vos machines virtuelles (création, backup, migration ...).

L'interface web d'administration permet l'accès à la console de vos guests (machines virtuelles). Il existe un autre moyen, depuis la ligne de commande sous Proxmox d'accèder au serial (la console série) de vos machines virtuelles.

Vous aurez besoin d'accéder à la console si vous n'arrivez plus à atteindre votre VM par le réseau. Les copiers/collers de textes seront aussi possible par ce biais (pas possible par la console de l'interface web de Proxmox)

La configuration qui suit a été réalisée avec une VM Ubuntu 10.04.

1) Configurer Proxmox VE

Editer le fichier /etc/qemu-server/<VMID>.conf et y ajouter la ligne suivante :

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

Installer l'utilitaire minicom:

# aptitude install minicom

 

2) Configurer la VM (guest sous Unbuntu 10.04)

Créer le fichier /etc/init/ttyS0.conf:

# 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

Démarrer le getty :

# start ttyS0

 

3) Connexion au serial de votre VM depuis Proxmox VE

# minocom <VMID>

Vous voilà connecté au serial de votre VM ! Pressez Enter afin de faire apparaitre le prompt de login ou faites Ctrl-Z puis A afin de faire appaitre le menu de minicom.

 

4) Optionnel: messages du Grub sur votre port série

Vous pouvez aussi faire appaitre les messages du Grub lors du lancement de votre VM, sur le port série.

Pour ce faire, modifier le fichier de configuration /etc/default/grub/conf et y ajouter ceci :

GRUB_TERMINAL=serial
GRUB_SERIAL_COMMAND="serial --speed=115200 --unit=0 --word=8 --parity=no --stop=1"

 

Sources

Help Ubuntu : https://help.ubuntu.com/community/SerialConsoleHowto

FAQ Proxmox VE : http://pve.proxmox.com/wiki/FAQ

Mots clés : Proxmox serial console

  • Commentaires

  • Avatar Gravatar
     domino qq
     #1 Le 26 septembre 2017

    Hi! I just wanted to ask if you ever have any trouble with
    hackers? My last blog (wordpress) was hacked and I
    ended up losing many months of hard work due to no back up.
    Do you have any solutions to stop hackers?

  • Avatar Gravatar
     Bola168
     #2 Le 07 novembre 2017

    Thanks very interesting blog!

  • Avatar Gravatar
     info Agen betting
     #3 Le 16 décembre 2017

    I feel this is one of the such a lot vital
    information for me. And i'm happy reading your article.
    But want to remark on few general issues, The site taste is great,
    the articles is in reality great : D. Excellent task,
    cheers

  • Avatar Gravatar
     white horse jakarta
     #4 Le 27 février 2018

    Hello, I cueck your blogs regularly. Your story-telling style is witty,keep doing what you're doing!

  • Avatar Gravatar
     STOMVI TB5100 B/F-Tenor-Posaune (Schallstück gesteckt) bei Musical-Instruments.Online
     #5 Le 02 avril 2018

    Excellent blog here! Also your website loads up fast!
    What host are you using? Can I get your affiliate link to your
    host? I wish my web site loaded up as quickly as yours lol

  • Avatar Gravatar
     STOMVI 5381 B-Trompete MASTER bei Musical-Instruments.Online
     #6 Le 02 avril 2018

    I constantly spent my half an hour to read
    this blog's articles every day along with a mug of coffee.

  • Avatar Gravatar
     jasa backlink
     #7 Le 06 avril 2018

    Ꮋi jսst wanted to giᴠe you a quiϲk heads ᥙp and let you know a few of the images aren't loading correctly.
    I'm not sure why but I think itѕ a linking issue. I'vе tried it in two
    different web browsers and both show the same outcome.

  • Avatar Gravatar
     TOMASI Flöte 10S kaufen: bei Musical-Instruments.Online
     #8 Le 21 avril 2018

    I'm really loving the theme/design of your blog. Do
    you ever run into any browser compatibility problems?
    A few of my blog visitors have complained about my blog
    not operating correctly in Explorer but looks great in Safari.
    Do you have any recommendations to help fix this issue?

  • Avatar Gravatar
     Kisha
     #9 Le 23 avril 2018

    Excellent pieces. Keep writing such kind of information on your
    site. Im really impressed by it.
    Hello there, You have done a fantastic job. I will certainly digg
    it and individually recommend to my friends. I am confident they will be benefited from this website.

  • Avatar Gravatar
     asianbookie
     #10 Le 01 mai 2018

    I c᧐uld not refrain from commenting. Perfectⅼy written!

  • Avatar Gravatar
     live Skor bola
     #11 Le 02 mai 2018

    Why users ѕtіll make use of to read news papers when in thiѕ
    tеcһnological world the whoⅼe thing is available on net?

  • Avatar Gravatar
     domino qiu qiu
     #12 Le 05 mai 2018

    Really no matter if somelne ԁоesn't know then its up to other people that they will assist, so here
    it happens.

  • Avatar Gravatar
     live Skor bola
     #13 Le 19 mai 2018

    І've learn a few good stuff here. Ceгtainly woгth boօkmarkіng for revisіting.
    I wonder how a ⅼot effort you place to create one of these excelⅼent informatіve websitе.

  • Avatar Gravatar
     Togel Hongkong
     #14 Le 20 mai 2018

    Yоuu can definitely see your enthusiasm withіnn the article you write.

    The world hoрes for even more pаssionate writers such as
    you who aren't afraiԁ to mention how they belіeve.
    At all times follow your heart.

  • Avatar Gravatar
     Capsa Susun Online
     #15 Le 23 mai 2018

    If you want to grow your experience just keep visiting this web page and be updated with
    the most up-to-date information posted here.

  • Avatar Gravatar
     Andrea
     #16 Le 25 mai 2018

    Hi to eveгy body, it's my first visit of tһis website;
    this weblog carries amazing and in fact good stuff in support of visіtors.

  • Avatar Gravatar
     pokeronline.4gameplay.com
     #17 Le 31 mai 2018

    Excellent website. Lots of helpful info here. I am sending it to several buddies ans additionally sharing in delicious.
    And of course, thank you for your sweat!

  • Avatar Gravatar
     Bandarq Online
     #18 Le 08 juin 2018

    Quality content is the secret to be a focus for the users to pay a visit the web page, that's what this
    website is providing.

  • Avatar Gravatar
     capsa susun
     #19 Le 19 juin 2018

    Very nice post. I just stumbled upon your blog and wanted to say that I've
    truly loved browsing your blog posts. In any case I will be subscribing in your
    feed and I hope you write again very soon!

  • Avatar Gravatar
     QQ Online
     #20 Le 21 juin 2018

    It's fantastic that you are getting thoughts from this paragraph as well as from our argument made aat this place.

  • Avatar Gravatar
     BandarQ
     #21 Le 21 juin 2018

    This piec of writing presents cclear idea designed ffor the new people of
    blogging, that truly how to do blogging.

  • Avatar Gravatar
     BandarQ Online
     #22 Le 22 juin 2018

    Hi would you mind letting me knoiw which web host you're utilizing?
    I've loaded your blog in 3 different browsers and I must say this blog loads a lot quicker then most.
    Can you recommend a good web hosting provider at a fair
    price? Thanks, I appreciate it!

  • Avatar Gravatar
     QQ Online
     #23 Le 22 juin 2018

    I think the admin of this web page iss actually working hard
    in support of hiis website, because here every stuff is quality based data.

  • Avatar Gravatar
     Dianne
     #24 Le 22 juin 2018

    Hello! I've been reading your bblog for some time now and finally
    got the bravery to go ahead and give you a shout out from
    Humble Tx! Just wanted to tell you keep up the great job!

  • Avatar Gravatar
     DominoQQ
     #25 Le 22 juin 2018

    A motivating discussion is worth comment. There's no doubt that
    that you need too write more on this issue, it might not
    be a taboo subject but usually people do not speaak about
    such subjects. To tthe next! Kind regards!!

  • Avatar Gravatar
     Capsa Susun
     #26 Le 22 juin 2018

    Hey, I think your blog miht be having browser compatibility issues.

    When I look aat your website in Firefox, it looks finee but when opeing in Interneet Explorer, it has some overlapping.

    I just wanted to give you a quick heads up!

    Other then that, great blog!

  • Avatar Gravatar
     AGUNGQQ Agen DominoQQ, BandarQ, Capsa Susun, QQ Online Terpercaya di Indonesia
     #27 Le 22 juin 2018

    Hi! I could have sworn I've been to this site before buut
    after checking through some of the post I realized it's new to me.
    Anyways, I'm definitely happy I found it and I'll be bookmarking and checking back frequently!

  • Avatar Gravatar
     AGUNGQQ
     #28 Le 22 juin 2018

    continuously i used to read smaller content that as wll clear their motive, and that
    iis also happening with this paragraph which I amm reading here.

  • Avatar Gravatar
     QQ Online
     #29 Le 22 juin 2018

    What's up to every , since I am truly eager of reading this blog's post to bbe
    updated regularly. It carries pleasant stuff.

  • Ecrire un commentaire








    Quelle est la cinquième lettre du mot ekovvp ?