Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
docpublic:systemes:linux:linux:virt_ovz:hypervisor_v9 [2023/02/03 09:43]
adminjp [default Templates]
docpublic:systemes:linux:linux:virt_ovz:hypervisor_v9 [2023/02/03 16:20] (current)
adminjp [add bridges for vlans]
Line 7: Line 7:
   * https://lists.openvz.org/pipermail/users/2022-December/008212.html   * https://lists.openvz.org/pipermail/users/2022-December/008212.html
   * https://bugs.openvz.org/secure/Dashboard.jspa   * https://bugs.openvz.org/secure/Dashboard.jspa
 +  * https://stats7-web.openvz.org/
  
 === old but interesting ressources === === old but interesting ressources ===
Line 85: Line 86:
 in this test lab of OVZ9 we would like to test VMs and CTs on different Vlans, so there is a networking configuration stage to prepare.  As there's not yet a dedicated OVZ9 doc on this, we'll take a combination of OVZ7 and RHEL9 docs on this matter :  in this test lab of OVZ9 we would like to test VMs and CTs on different Vlans, so there is a networking configuration stage to prepare.  As there's not yet a dedicated OVZ9 doc on this, we'll take a combination of OVZ7 and RHEL9 docs on this matter : 
  
-  * https://docs.virtuozzo.com/virtuozzo_hybrid_server_7_users_guide/managing-network/configuring-virtual-machines-and-containers-in-bridged-mode.html+  * https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/9/html-single/configuring_and_managing_networking/index#doc-wrapper 
 +  *  https://docs.virtuozzo.com/virtuozzo_hybrid_server_7_users_guide/managing-network/configuring-virtual-machines-and-containers-in-bridged-mode.html
  
 +
 +==== Network default install ====
 +
 +By default, OVZ9 installer creates a bridge0 (br0) on ethernet1 (eno1) and assignes the IP address (dhcp by default, fix it !)  
 +
 +<code>
 +[root@tovz ~]# nmcli device status
 +DEVICE  TYPE      STATE                   CONNECTION 
 +br0     bridge    connected               Bridge br0 
 +virbr0  bridge    connected (externally)  virbr0     
 +eno1    ethernet  connected               eno1       
 +eno2    ethernet  disconnected            --         
 +eno3    ethernet  disconnected            --         
 +eno4    ethernet  disconnected            --         
 +lo      loopback  unmanaged               --         
 +</code>
 +
 +<code>
 +[root@tovz ~]# brctl show
 +bridge name bridge id STP enabled interfaces
 +br0 8000.e0db550d6768 no eno1
 +virbr0 8000.525400a50a98 yes
 +</code>
 +
 +in terms of ifcfg* config file it result in 
 +
 +<code>
 +[root@tovz ~]# cat /etc/sysconfig/network-scripts/ifcfg-eno1
 +TYPE="Ethernet"
 +NAME="eno1"
 +UUID="c528abc8-5378-4d49-8407-884c87f77ff0"
 +DEVICE="eno1"
 +ONBOOT="yes"
 +BRIDGE="br0"
 +
 +
 +[root@tovz ~]# cat /etc/sysconfig/network-scripts/ifcfg-br0 
 +DEVICE="br0"
 +PROXY_METHOD="none"
 +BROWSER_ONLY="no"
 +BOOTPROTO="dhcp"
 +DEFROUTE="yes"
 +IPV4_FAILURE_FATAL="no"
 +IPV6INIT="yes"
 +IPV6_AUTOCONF="yes"
 +IPV6_DEFROUTE="yes"
 +IPV6_FAILURE_FATAL="no"
 +IPV6_ADDR_GEN_MODE="stable-privacy"
 +ONBOOT="yes"
 +TYPE="Bridge"
 +DELAY="2"
 +STP="off"
 +UUID="82899342-5b36-4947-a8b7-352880176976"
 +ZONE="trusted"
 +</code>
 +
 +==== add bridges for vlans ====
 +
 +  * https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/networking_guide/sec-network_bridging_using_the_networkmanager_command_line_tool_nmcli
 +
 +
 +
 +===== Update =====
 +
 +<code>
 +[root@tovz yum.repos.d]# dnf update
 +Last metadata expiration check: 3:58:06 ago on Fri 03 Feb 2023 07:19:16 AM EST.
 +Dependencies resolved.
 +================================================================================================================================================================
 + Package                               Architecture             Version                                             Repository                             Size
 +================================================================================================================================================================
 +Upgrading:
 + authselect                            x86_64                   1.2.5-2.vl9                                         virtuozzolinux-base                   142 k
 + authselect-libs                       x86_64                   1.2.5-2.vl9                                         virtuozzolinux-base                   222 k
 + bash                                  x86_64                   5.1.8-6.vl9                                         virtuozzolinux-base                   1.7 M
 + curl                                  x86_64                   7.76.1-19.vl9.1                                     virtuozzolinux-base                   303 k
 + expat                                 x86_64                   2.4.9-1.vl9.1                                       virtuozzolinux-base                   115 k
 + fontconfig                            x86_64                   2.14.0-2.vl9                                        virtuozzolinux-base                   275 k
 + glibc                                 x86_64                   2.34-40.vl9.1                                       virtuozzolinux-base                   2.2 M
 + glibc-all-langpacks                   x86_64                   2.34-40.vl9.1                                       virtuozzolinux-base                    27 M
 + glibc-common                          x86_64                   2.34-40.vl9.1                                       virtuozzolinux-base                   291 k
 + glibc-devel                           x86_64                   2.34-40.vl9.1                                       virtuozzolinux-base                    42 k
 + glibc-gconv-extra                     x86_64                   2.34-40.vl9.1                                       virtuozzolinux-base                   1.6 M
 + glibc-headers                         x86_64                   2.34-40.vl9.1                                       virtuozzolinux-base                   474 k
 + iputils                               x86_64                   20210202-8.vl9.1                                    virtuozzolinux-base                   167 k
 + libcurl                               x86_64                   7.76.1-19.vl9.1                                     virtuozzolinux-base                   284 k
 + libtasn1                              x86_64                   4.16.0-8.vl9                                        virtuozzolinux-base                    74 k
 + libteam                               x86_64                   1.31-16.vl9                                         virtuozzolinux-base                    48 k
 + libxml2                               x86_64                   2.9.13-3.vl9                                        virtuozzolinux-base                   752 k
 + pki-servlet-4.0-api                   noarch                   1:9.0.50-1.vl9                                      virtuozzolinux-base                   285 k
 + python3                               x86_64                   3.9.14-1.2.vl9                                      virtuozzolinux-base                    29 k
 + python3-libs                          x86_64                   3.9.14-1.2.vl9                                      virtuozzolinux-base                   7.8 M
 + python3-libxml2                       x86_64                   2.9.13-3.vl9                                        virtuozzolinux-base                   228 k
 + rsync                                 x86_64                   3.2.3-9.vl9.1.1                                     virtuozzolinux-base                   387 k
 + sqlite-libs                           x86_64                   3.34.1-6.vl9                                        virtuozzolinux-base                   623 k
 + swtpm                                 x86_64                   0.7.0-4.20211109gitb79fd91.vl9                      virtuozzolinux-base                    41 k
 + swtpm-libs                            x86_64                   0.7.0-4.20211109gitb79fd91.vl9                      virtuozzolinux-base                    48 k
 + swtpm-tools                           x86_64                   0.7.0-4.20211109gitb79fd91.vl9                      virtuozzolinux-base                   116 k
 + teamd                                 x86_64                   1.31-16.vl9                                         virtuozzolinux-base                   112 k
 + tpm2-tss                              x86_64                   3.0.3-8.vl9                                         virtuozzolinux-base                   567 k
 + virt-install                          noarch                   4.0.0-1.vl9                                         virtuozzolinux-base                    43 k
 + virt-manager                          noarch                   4.0.0-1.vl9                                         virtuozzolinux-base                   576 k
 + virt-manager-common                   noarch                   4.0.0-1.vl9                                         virtuozzolinux-base                   1.1 M
 + zlib                                  x86_64                   1.2.11-35.vl9                                       virtuozzolinux-base                    92 k
 +Installing dependencies:
 + libburn                               x86_64                   1.5.4-3.vl9                                         virtuozzolinux-base                   195 k
 + libisoburn                            x86_64                   1.5.4-4.vl9                                         virtuozzolinux-base                   417 k
 + libisofs                              x86_64                   1.5.4-4.vl9                                         virtuozzolinux-base                   220 k
 + xorriso                               x86_64                   1.5.4-4.vl9                                         virtuozzolinux-base                   317 k
 +
 +Transaction Summary
 +================================================================================================================================================================
 +Install   4 Packages
 +Upgrade  32 Packages
 +
 +Total download size: 48 M
 +Is this ok [y/N]: y
 +</code>
docpublic/systemes/linux/linux/virt_ovz/hypervisor_v9.1675417387.txt.gz · Last modified: 2023/02/03 09:43 by adminjp
[unknown link type]Back to top
CC Attribution-Noncommercial-Share Alike 4.0 International
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0