{"id":1307,"date":"2024-10-12T16:13:00","date_gmt":"2024-10-12T14:13:00","guid":{"rendered":"https:\/\/artheodoc.fr\/?p=1307"},"modified":"2024-10-12T19:57:46","modified_gmt":"2024-10-12T17:57:46","slug":"qemu-guest-agent-avec-debian-affichage-de-ladresse-ip-dune-vm-dans-proxmox","status":"publish","type":"post","link":"https:\/\/artheodoc.fr\/index.php\/2024\/10\/12\/qemu-guest-agent-avec-debian-affichage-de-ladresse-ip-dune-vm-dans-proxmox\/","title":{"rendered":"Qemu-guest-agent avec Debian \u2013 Affichage de l\u2019adresse IP d\u2019une VM dans Proxmox"},"content":{"rendered":"\n<p><em>Mis \u00e0 jour le 12\/10\/2024 &#8211; Proxmox 7.4-17 \u2013 Debian 12 <\/em><\/p>\n\n\n\n<p>Depuis un terminal on peut obtenir l\u2019adresse IP avec la commande :<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><strong>ip address<\/strong><\/pre>\n\n\n\n<p>qemu-guest-agent est peut-\u00eatre d\u00e9j\u00e0 install\u00e9, on peut le v\u00e9rifier avec la commande suivante :<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><strong>dpkg -l qemu-guest-agent<\/strong><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"641\" height=\"154\" src=\"https:\/\/artheodoc.fr\/wp-content\/uploads\/2024\/10\/Proxmox_VM_IP_1.png\" alt=\"\" class=\"wp-image-1332\" srcset=\"https:\/\/artheodoc.fr\/wp-content\/uploads\/2024\/10\/Proxmox_VM_IP_1.png 641w, https:\/\/artheodoc.fr\/wp-content\/uploads\/2024\/10\/Proxmox_VM_IP_1-300x72.png 300w\" sizes=\"auto, (max-width: 641px) 100vw, 641px\" \/><\/figure>\n\n\n\n<p>Sinon on l\u2019installe :<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><strong>apt-get install qemu-guest-agent<\/strong><\/pre>\n\n\n\n<p class=\"has-medium-font-size\"><strong>Dans Proxmox<\/strong><\/p>\n\n\n\n<p>Vous devez installer l&rsquo;agent invit\u00e9 dans la machine virtuelle, puis l&rsquo;activer, vous pouvez le faire dans l&rsquo;interface Web Proxmox VE (GUI).<\/p>\n\n\n\n<p>Aller dans le menu <strong>Options<\/strong> de la VM qui nous int\u00e9resse, et activer l&rsquo;option <strong>QEMU Guest Agent<\/strong> en cliquant sur <strong>[\u00c9diter]<\/strong>.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"786\" height=\"281\" src=\"https:\/\/artheodoc.fr\/wp-content\/uploads\/2024\/10\/Proxmox_VM_IP_2.png\" alt=\"\" class=\"wp-image-1309\" srcset=\"https:\/\/artheodoc.fr\/wp-content\/uploads\/2024\/10\/Proxmox_VM_IP_2.png 786w, https:\/\/artheodoc.fr\/wp-content\/uploads\/2024\/10\/Proxmox_VM_IP_2-300x107.png 300w, https:\/\/artheodoc.fr\/wp-content\/uploads\/2024\/10\/Proxmox_VM_IP_2-768x275.png 768w\" sizes=\"auto, (max-width: 786px) 100vw, 786px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"357\" height=\"265\" src=\"https:\/\/artheodoc.fr\/wp-content\/uploads\/2024\/10\/Proxmox_VM_IP_3-1.png\" alt=\"\" class=\"wp-image-1323\" srcset=\"https:\/\/artheodoc.fr\/wp-content\/uploads\/2024\/10\/Proxmox_VM_IP_3-1.png 357w, https:\/\/artheodoc.fr\/wp-content\/uploads\/2024\/10\/Proxmox_VM_IP_3-1-300x223.png 300w\" sizes=\"auto, (max-width: 357px) 100vw, 357px\" \/><\/figure>\n\n\n\n<p>Cochez \u00ab <strong>Utiliser QUEMU Guest Agent<\/strong> \u00bb.<\/p>\n\n\n\n<p>Cliquez sur <strong>[OK]<\/strong>.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"411\" height=\"49\" src=\"https:\/\/artheodoc.fr\/wp-content\/uploads\/2024\/10\/Proxmox_VM_IP_4-1.png\" alt=\"\" class=\"wp-image-1330\" srcset=\"https:\/\/artheodoc.fr\/wp-content\/uploads\/2024\/10\/Proxmox_VM_IP_4-1.png 411w, https:\/\/artheodoc.fr\/wp-content\/uploads\/2024\/10\/Proxmox_VM_IP_4-1-300x36.png 300w\" sizes=\"auto, (max-width: 411px) 100vw, 411px\" \/><\/figure>\n\n\n\n<p class=\"has-luminous-vivid-orange-color has-text-color has-link-color wp-elements-753f1547dd687cea1c2373cd20872caf\">Activ\u00e9 apparait en orange.<\/p>\n\n\n\n<p>Arr\u00eatez compl\u00e9tement la machine virtuelle, depuis la console :<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><strong>shutdown -h now<\/strong><\/pre>\n\n\n\n<p>Red\u00e9marrez ensuite la machine.<\/p>\n\n\n\n<p>Et l\u00e0 si l&rsquo;on va sur le menu <strong>Summary <\/strong>\/ <strong>R\u00e9sum\u00e9<\/strong>, l&rsquo;adresse IP s&rsquo;affiche.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity is-style-wide\"\/>\n\n\n\n<p class=\"has-medium-font-size\"><strong>Plus d\u2019informations<\/strong><\/p>\n\n\n\n<p>Pour v\u00e9rifier que Qemu guest agent est en ex\u00e9cution :<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><strong>systemctl status qemu-guest-agent<\/strong><\/pre>\n\n\n\n<p>Si on a besoin de d\u00e9marrer Qemu guest agent :<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><strong>systemctl start qemu-guest-agent<\/strong><\/pre>\n\n\n\n<p class=\"has-medium-font-size\"><strong>Et sur le WEB :<\/strong><\/p>\n\n\n\n<p><a href=\"https:\/\/pve.proxmox.com\/wiki\/Qemu-guest-agent\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/pve.proxmox.com\/wiki\/Qemu-guest-agent<\/a><\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Mis \u00e0 jour le 12\/10\/2024 &#8211; Proxmox 7.4-17 \u2013 Debian 12 Depuis un terminal on peut obtenir l\u2019adresse IP avec la commande : ip address qemu-guest-agent est peut-\u00eatre d\u00e9j\u00e0 install\u00e9, on peut le v\u00e9rifier avec la commande suivante : dpkg -l qemu-guest-agent Sinon on l\u2019installe : apt-get install qemu-guest-agent Dans Proxmox Vous devez installer l&rsquo;agent [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[57],"tags":[68,58,67],"class_list":["post-1307","post","type-post","status-publish","format-standard","hentry","category-proxmox","tag-ip","tag-proxmox","tag-qemu-guest-agent"],"_links":{"self":[{"href":"https:\/\/artheodoc.fr\/index.php\/wp-json\/wp\/v2\/posts\/1307","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/artheodoc.fr\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/artheodoc.fr\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/artheodoc.fr\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/artheodoc.fr\/index.php\/wp-json\/wp\/v2\/comments?post=1307"}],"version-history":[{"count":9,"href":"https:\/\/artheodoc.fr\/index.php\/wp-json\/wp\/v2\/posts\/1307\/revisions"}],"predecessor-version":[{"id":1334,"href":"https:\/\/artheodoc.fr\/index.php\/wp-json\/wp\/v2\/posts\/1307\/revisions\/1334"}],"wp:attachment":[{"href":"https:\/\/artheodoc.fr\/index.php\/wp-json\/wp\/v2\/media?parent=1307"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/artheodoc.fr\/index.php\/wp-json\/wp\/v2\/categories?post=1307"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/artheodoc.fr\/index.php\/wp-json\/wp\/v2\/tags?post=1307"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}