This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
docpublic:systemes:linux:linux:virt_ovz:hypervisor_v9 [2023/02/03 08:59] adminjp [references] |
docpublic:systemes:linux:linux:virt_ovz:hypervisor_v9 [2023/02/03 16:20] (current) adminjp [add bridges for vlans] |
||
---|---|---|---|
Line 3: | Line 3: | ||
==== references ==== | ==== references ==== | ||
+ | * https:// | ||
* https:// | * https:// | ||
* https:// | * https:// | ||
* https:// | * https:// | ||
+ | * https:// | ||
=== old but interesting ressources === | === old but interesting ressources === | ||
Line 11: | Line 13: | ||
* https:// | * https:// | ||
* https:// | * https:// | ||
+ | |||
+ | ==== install ==== | ||
+ | |||
+ | download => https:// | ||
+ | |||
+ | create a boot USB key , supposed your USB key associated with device /dev/sdb | ||
+ | |||
+ | < | ||
+ | # dd if=openvz-iso-9.0.1-383.iso of=/dev/sdb status=progress | ||
+ | </ | ||
+ | |||
+ | boot on the USB key and follow the traditional RHEL like installation process | ||
+ | ==== 1st access ==== | ||
+ | |||
+ | < | ||
+ | MOTD generated at: 03:54:04 | ||
+ | Uptime: | ||
+ | OS: OpenVZ release 9.0.1 (383) | ||
+ | IP: 10.10.2.9 192.168.122.1 fe80:: | ||
+ | Hostname: | ||
+ | Kernel: | ||
+ | System Load: 0.0 | ||
+ | /vz Usage: | ||
+ | Swap Usage: | ||
+ | RAM Free: 96% of 23.2GB | ||
+ | |||
+ | Last login: Thu Feb 2 12:54:48 2023 from 10.10.2.10 | ||
+ | </ | ||
+ | |||
+ | ==== disk partitions === | ||
+ | |||
+ | During the install process, automatic partition is choosed (here with UEFI bios) , here is the result | ||
+ | |||
+ | < | ||
+ | [root@tovz ~]# df -H | ||
+ | Filesystem | ||
+ | devtmpfs | ||
+ | tmpfs | ||
+ | tmpfs 5.0G 9.9M 5.0G 1% /run | ||
+ | tmpfs 4.2M | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | tmpfs 2.5G | ||
+ | </ | ||
+ | |||
+ | Most of the disk space is dedicated th CT/VM storage in /vz | ||
+ | |||
+ | ==== default Templates ==== | ||
+ | |||
+ | list of defaut VM/CT os templates | ||
+ | |||
+ | < | ||
+ | [root@tovz ~]# vzpkg list -O --with-summary | ||
+ | centos-7-x86_64 | ||
+ | debian-11.0-x86_64 | ||
+ | debian-10.0-x86_64 | ||
+ | almalinux-8-x86_64 | ||
+ | ubuntu-20.04-x86_64 | ||
+ | ubuntu-18.04-x86_64 | ||
+ | vzlinux-8-x86_64 | ||
+ | vzlinux-9-x86_64 | ||
+ | vzlinux-7-x86_64 | ||
+ | rhel-8-x86_64 | ||
+ | rhel-7-x86_64 | ||
+ | </ | ||
+ | |||
+ | |||
+ | ===== Networking ==== | ||
+ | |||
+ | 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. | ||
+ | |||
+ | * https:// | ||
+ | * https:// | ||
+ | |||
+ | |||
+ | ==== Network default install ==== | ||
+ | |||
+ | By default, OVZ9 installer creates a bridge0 (br0) on ethernet1 (eno1) and assignes the IP address (dhcp by default, fix it !) | ||
+ | |||
+ | < | ||
+ | [root@tovz ~]# nmcli device status | ||
+ | DEVICE | ||
+ | br0 | ||
+ | virbr0 | ||
+ | eno1 ethernet | ||
+ | eno2 ethernet | ||
+ | eno3 ethernet | ||
+ | eno4 ethernet | ||
+ | lo loopback | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | [root@tovz ~]# brctl show | ||
+ | bridge name bridge id STP enabled interfaces | ||
+ | br0 8000.e0db550d6768 no eno1 | ||
+ | virbr0 8000.525400a50a98 yes | ||
+ | </ | ||
+ | |||
+ | in terms of ifcfg* config file it result in | ||
+ | |||
+ | < | ||
+ | [root@tovz ~]# cat / | ||
+ | TYPE=" | ||
+ | NAME=" | ||
+ | UUID=" | ||
+ | DEVICE=" | ||
+ | ONBOOT=" | ||
+ | BRIDGE=" | ||
+ | |||
+ | |||
+ | [root@tovz ~]# cat / | ||
+ | DEVICE=" | ||
+ | PROXY_METHOD=" | ||
+ | BROWSER_ONLY=" | ||
+ | BOOTPROTO=" | ||
+ | DEFROUTE=" | ||
+ | IPV4_FAILURE_FATAL=" | ||
+ | IPV6INIT=" | ||
+ | IPV6_AUTOCONF=" | ||
+ | IPV6_DEFROUTE=" | ||
+ | IPV6_FAILURE_FATAL=" | ||
+ | IPV6_ADDR_GEN_MODE=" | ||
+ | ONBOOT=" | ||
+ | TYPE=" | ||
+ | DELAY=" | ||
+ | STP=" | ||
+ | UUID=" | ||
+ | ZONE=" | ||
+ | </ | ||
+ | |||
+ | ==== add bridges for vlans ==== | ||
+ | |||
+ | * https:// | ||
+ | |||
+ | |||
+ | |||
+ | ===== Update ===== | ||
+ | |||
+ | < | ||
+ | [root@tovz yum.repos.d]# | ||
+ | Last metadata expiration check: 3:58:06 ago on Fri 03 Feb 2023 07:19:16 AM EST. | ||
+ | Dependencies resolved. | ||
+ | ================================================================================================================================================================ | ||
+ | | ||
+ | ================================================================================================================================================================ | ||
+ | Upgrading: | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | Installing dependencies: | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | |||
+ | Transaction Summary | ||
+ | ================================================================================================================================================================ | ||
+ | Install | ||
+ | Upgrade | ||
+ | |||
+ | Total download size: 48 M | ||
+ | Is this ok [y/N]: y | ||
+ | </ |