{"id":2096,"date":"2025-04-29T13:04:47","date_gmt":"2025-04-29T11:04:47","guid":{"rendered":"https:\/\/artheodoc.fr\/?p=2096"},"modified":"2025-04-30T11:41:46","modified_gmt":"2025-04-30T09:41:46","slug":"virtualisation-de-proxmox-dans-virtualbox-acces-reseau-pour-les-vms","status":"publish","type":"post","link":"https:\/\/artheodoc.fr\/index.php\/2025\/04\/29\/virtualisation-de-proxmox-dans-virtualbox-acces-reseau-pour-les-vms\/","title":{"rendered":"Virtualisation de Proxmox dans VirtualBox \u2013 Acc\u00e8s r\u00e9seau pour les VMs"},"content":{"rendered":"\n<p>Linux Mint 21.1 &#8211; VirtualBox 7.0.10<\/p>\n\n\n\n<p class=\"has-pale-ocean-gradient-background has-background\"><em>Pour r\u00e9aliser des tests, j\u2019ai virtualis\u00e9 Proxmox dans VirtualBox. <a href=\"https:\/\/artheodoc.fr\/index.php\/2025\/04\/29\/activer-la-virtualisation-imbriquee-vt-x-amd-v-dans-une-vm-virtualbox\/\" data-type=\"post\" data-id=\"2091\" target=\"_blank\" rel=\"noreferrer noopener\">Apr\u00e8s avoir activ\u00e9 la virtualisation<\/a> pour Proxmox, j\u2019ai r\u00e9alis\u00e9 que mes machines virtuelles n\u2019avaient pas de connexion \u00e0 internet&#8230;<\/em><\/p>\n\n\n\n<p>Sources&nbsp;:<\/p>\n\n\n\n<p><a href=\"https:\/\/www.reddit.com\/r\/Proxmox\/comments\/1caalwc\/puzzled_on_how_to_make_a_vm_get_internet\/?tl=fr\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/www.reddit.com\/r\/Proxmox\/comments\/1caalwc\/puzzled_on_how_to_make_a_vm_get_internet\/?tl=fr<\/a><\/p>\n\n\n\n<p>Dans VirtualBox pour votre VM Proxmox avant de la d\u00e9marrer :<\/p>\n\n\n\n<p>On doit Activer la virtualisation imbriqu\u00e9e VT-x\/AMD-V dans une VM VirtualBox.<\/p>\n\n\n\n<p>La carte r\u00e9seau de ma machine virtuelle Proxmox est configur\u00e9e avec un <strong>Acc\u00e8s par pont<\/strong>.<\/p>\n\n\n\n<p>Ensuite activez ce qui suit&nbsp;:<\/p>\n\n\n\n<p><strong>R\u00e9seau<\/strong> ==&gt; <strong>Adaptater <\/strong><em><strong>x<\/strong><\/em> ==&gt; <strong>Advanced<\/strong> ==&gt; <strong>Mode Promiscuit\u00e9<\/strong> ==&gt; <strong>Allow All<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"871\" height=\"512\" src=\"https:\/\/artheodoc.fr\/wp-content\/uploads\/2025\/04\/VirtualBox_Reseau_Allow_All.png\" alt=\"\" class=\"wp-image-2098\" srcset=\"https:\/\/artheodoc.fr\/wp-content\/uploads\/2025\/04\/VirtualBox_Reseau_Allow_All.png 871w, https:\/\/artheodoc.fr\/wp-content\/uploads\/2025\/04\/VirtualBox_Reseau_Allow_All-300x176.png 300w, https:\/\/artheodoc.fr\/wp-content\/uploads\/2025\/04\/VirtualBox_Reseau_Allow_All-768x451.png 768w\" sizes=\"auto, (max-width: 871px) 100vw, 871px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Pour la VM Proxmox une fois d\u00e9marr\u00e9e depuis sa console<\/h3>\n\n\n\n<p>Activer le transfert IPv4 :<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><strong>echo 1 &gt; \/proc\/sys\/net\/ipv4\/ip_forward<\/strong><\/pre>\n\n\n\n<p><br><em>En \u00e9crivant <strong>1<\/strong> dans le fichier <strong>\/proc\/sys\/net\/ipv4\/ip_forward<\/strong> on <strong>active le transfert de paquets IP<\/strong>. Cela signifie que le syst\u00e8me agira comme un routeur, transf\u00e9rant les paquets re\u00e7us sur une interface r\u00e9seau vers une autre interface r\u00e9seau en fonction des r\u00e8gles de routage d\u00e9finies. En \u00e9crivant 0, on d\u00e9sactiverait le transfert de paquets IP.<\/em><\/p>\n\n\n\n<p>Cr\u00e9ez une table NAT avec :<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><strong>iptables -t nat -A POSTROUTING -j MASQUERADE<\/strong><\/pre>\n\n\n\n<p><br><em>Cette commande configure le syst\u00e8me pour masquer les adresses IP des paquets sortants, permettant ainsi aux machines d&rsquo;un r\u00e9seau priv\u00e9 de communiquer avec l&rsquo;ext\u00e9rieur via l&rsquo;adresse IP publique de la passerelle. C&rsquo;est une configuration courante pour les routeurs et les passerelles qui connectent un r\u00e9seau local \u00e0 Internet.<\/em><\/p>\n\n\n\n<p>On peut visualiser le r\u00e9sultat avec la commande&nbsp;:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><strong>iptables -t nat -L<\/strong><\/pre>\n\n\n\n<p class=\"has-pale-ocean-gradient-background has-background\">Dans mon cas pour la VM dans Proxmox la <strong>passerelle<\/strong> est adresse IP que attribu\u00e9e au <strong>vmbr0<\/strong>.<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Linux Mint 21.1 &#8211; VirtualBox 7.0.10 Pour r\u00e9aliser des tests, j\u2019ai virtualis\u00e9 Proxmox dans VirtualBox. Apr\u00e8s avoir activ\u00e9 la virtualisation pour Proxmox, j\u2019ai r\u00e9alis\u00e9 que mes machines virtuelles n\u2019avaient pas de connexion \u00e0 internet&#8230; Sources&nbsp;: https:\/\/www.reddit.com\/r\/Proxmox\/comments\/1caalwc\/puzzled_on_how_to_make_a_vm_get_internet\/?tl=fr Dans VirtualBox pour votre VM Proxmox avant de la d\u00e9marrer : On doit Activer la virtualisation imbriqu\u00e9e VT-x\/AMD-V dans [&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":[1],"tags":[],"class_list":["post-2096","post","type-post","status-publish","format-standard","hentry","category-non-classe"],"_links":{"self":[{"href":"https:\/\/artheodoc.fr\/index.php\/wp-json\/wp\/v2\/posts\/2096","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=2096"}],"version-history":[{"count":5,"href":"https:\/\/artheodoc.fr\/index.php\/wp-json\/wp\/v2\/posts\/2096\/revisions"}],"predecessor-version":[{"id":2126,"href":"https:\/\/artheodoc.fr\/index.php\/wp-json\/wp\/v2\/posts\/2096\/revisions\/2126"}],"wp:attachment":[{"href":"https:\/\/artheodoc.fr\/index.php\/wp-json\/wp\/v2\/media?parent=2096"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/artheodoc.fr\/index.php\/wp-json\/wp\/v2\/categories?post=2096"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/artheodoc.fr\/index.php\/wp-json\/wp\/v2\/tags?post=2096"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}