{"id":357,"date":"2010-08-13T05:35:17","date_gmt":"2010-08-13T11:35:17","guid":{"rendered":"http:\/\/blog.supportpro.com\/2010\/08\/install-packages-to-the-vps-container-from-the-main-node-2\/"},"modified":"2026-06-25T05:38:03","modified_gmt":"2026-06-25T11:38:03","slug":"install-packages-to-the-vps-container-from-the-main-node-2","status":"publish","type":"post","link":"https:\/\/www.supportpro.com\/blog\/install-packages-to-the-vps-container-from-the-main-node-2\/","title":{"rendered":"How To Install Packages to the VPS container from the main Node? | VEID-based Installation"},"content":{"rendered":"\n<p>When managing virtual private servers (VPS) based on container virtualization, such as OpenVZ\/Virtuozzo-style environments, you often need to install packages directly into a container from the main (host) node. This approach is useful for automation, recovery, or bulk provisioning without logging into each container individually.<\/p>\n\n\n\n<p>One of the commonly used commands for this purpose is:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>vzpkg install VEID -p yum<\/code><\/pre>\n\n\n\n<p>Here, <code>VEID<\/code> represents the <strong>Container ID<\/strong>, and <code>yum<\/code> is the package manager used inside the container.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">What This Command Does<\/h2>\n\n\n\n<p>The command allows the host node (main server) to install packages inside a specific VPS container without SSH access into that container.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Breakdown:<\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>vzpkg<\/strong> \u2192 Utility used to manage packages in VPS containers from the host node<\/li>\n\n\n\n<li><strong>install<\/strong> \u2192 Action to install packages<\/li>\n\n\n\n<li><strong>VEID<\/strong> \u2192 Unique identifier of the container (Virtual Environment ID)<\/li>\n\n\n\n<li><strong>-p yum<\/strong> \u2192 Specifies the package manager to use inside the container (YUM for CentOS\/RHEL-based systems)<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">When to Use This Method<\/h2>\n\n\n\n<p>You can use this command in scenarios like:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Bulk package installation across multiple VPS containers<\/li>\n\n\n\n<li>Repairing broken package dependencies inside a container<\/li>\n\n\n\n<li>Setting up standard packages during VPS provisioning<\/li>\n\n\n\n<li>Automating server management tasks via scripts<\/li>\n\n\n\n<li>Installing packages when SSH access to the container is unavailable<\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\">Example Usage<\/h4>\n\n\n\n<p>If your container ID is <code>101<\/code>, the command becomes:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>vzpkg install 101 -p yum<\/code><\/pre>\n\n\n\n<p>This will install the required packages using YUM inside container <code>101<\/code>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Important Notes<\/h2>\n\n\n\n<h4 class=\"wp-block-heading\">1. Correct VEID is Critical<\/h4>\n\n\n\n<p>Always verify the container ID before running the command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>vzlist -a<\/code><\/pre>\n\n\n\n<p>This lists all active containers along with their IDs.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">2. Package Manager Dependency<\/h4>\n\n\n\n<p>The <code>-p yum<\/code> flag assumes the container is based on a RHEL\/CentOS-style system. For other distributions, the package manager may differ.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">3. Host Node Permissions<\/h4>\n\n\n\n<p>You must be logged in as root on the <strong>main node (host server)<\/strong> to execute this command successfully.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">4. Container Must Be Running<\/h4>\n\n\n\n<p>The target container should be in a running state for package installation to work properly.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Troubleshooting<\/h2>\n\n\n\n<h4 class=\"wp-block-heading\">Issue: Command not found<\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Ensure VPS management tools (vzpkg utilities) are installed on the host node.<\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\">Issue: Installation fails inside container<\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Check network connectivity inside the container<\/li>\n\n\n\n<li>Verify repository configuration inside the VPS<\/li>\n\n\n\n<li>Ensure sufficient disk space is available<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p>Installing packages directly into a VPS container from the main node simplifies administration and reduces manual effort. The <code>vzpkg install VEID -p yum<\/code> command is especially useful for system administrators managing multiple virtual environments efficiently.<\/p>\n\n\n\n<p>By using the correct container ID and package manager, you can streamline provisioning and maintenance tasks across your VPS infrastructure.<\/p>\n\n\n\n<p>If you require help, <a href=\"https:\/\/www.supportpro.com\/requestquote.php\">contact SupportPRO Server Admin<\/a><\/p>\n\n\n\n<p class=\"has-text-align-center\"><span id=\"hs-cta-wrapper-9d590242-d641-4383-94b4-8cfd62f0af6b\" class=\"hs-cta-wrapper\"><span id=\"hs-cta-9d590242-d641-4383-94b4-8cfd62f0af6b\" class=\"hs-cta-node hs-cta-9d590242-d641-4383-94b4-8cfd62f0af6b\"><a href=\"https:\/\/cta-redirect.hubspot.com\/cta\/redirect\/2725694\/9d590242-d641-4383-94b4-8cfd62f0af6b\"><\/a><\/span><\/span><\/p>\n\n\n\n<div class=\"wp-block-media-text alignwide has-media-on-the-right is-stacked-on-mobile is-vertically-aligned-center has-white-background-color has-background\"><div class=\"wp-block-media-text__content\">\n<p class=\"has-large-font-size\">Facing issues? <\/p>\n\n\n\n<p class=\"has-large-font-size\">Our technical support<br>engineers can solve it. <\/p>\n\n\n\n<!--HubSpot Call-to-Action Code --><span class=\"hs-cta-wrapper\" id=\"hs-cta-wrapper-3350a795-db50-482f-9911-301930d1b1be\"><span class=\"hs-cta-node hs-cta-3350a795-db50-482f-9911-301930d1b1be\" id=\"hs-cta-3350a795-db50-482f-9911-301930d1b1be\"><!--[if lte IE 8]><div id=\"hs-cta-ie-element\"><\/div><![endif]--><a href=\"https:\/\/cta-redirect.hubspot.com\/cta\/redirect\/2725694\/3350a795-db50-482f-9911-301930d1b1be\" ><img class=\"hs-cta-img\" id=\"hs-cta-img-3350a795-db50-482f-9911-301930d1b1be\" style=\"border-width:0px;\" src=\"https:\/\/no-cache.hubspot.com\/cta\/default\/2725694\/3350a795-db50-482f-9911-301930d1b1be.png\"  alt=\"Contact Us today!\"\/><\/a><\/span><script charset=\"utf-8\" src=\"https:\/\/js.hscta.net\/cta\/current.js\"><\/script><script type=\"text\/javascript\"> hbspt.cta.load(2725694, '3350a795-db50-482f-9911-301930d1b1be', {\"useNewLoader\":\"true\",\"region\":\"na1\"}); <\/script><\/span><!-- end HubSpot Call-to-Action Code -->\n<\/div><figure class=\"wp-block-media-text__media\"><img width=\"904\" height=\"931\" src=\"https:\/\/www.supportpro.com\/blog\/wp-content\/uploads\/2022\/09\/Free-server-checkup.png\" alt=\"guy server checkup\" class=\"wp-image-12943 size-full\" srcset=\"https:\/\/www.supportpro.com\/blog\/wp-content\/uploads\/2022\/09\/Free-server-checkup.png 904w, https:\/\/www.supportpro.com\/blog\/wp-content\/uploads\/2022\/09\/Free-server-checkup-291x300.png 291w, https:\/\/www.supportpro.com\/blog\/wp-content\/uploads\/2022\/09\/Free-server-checkup-768x791.png 768w, https:\/\/www.supportpro.com\/blog\/wp-content\/uploads\/2022\/09\/Free-server-checkup-585x602.png 585w\" sizes=\"(max-width: 904px) 100vw, 904px\" \/><\/figure><\/div>\n","protected":false},"excerpt":{"rendered":"<p>When managing virtual private servers (VPS) based on container virtualization, such as OpenVZ\/Virtuozzo-style environments, you often need to install packages directly into a container from the main (host) node. This&hellip;<\/p>\n","protected":false},"author":4,"featured_media":17194,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_lmt_disableupdate":"","_lmt_disable":""},"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/posts\/357"}],"collection":[{"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/comments?post=357"}],"version-history":[{"count":3,"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/posts\/357\/revisions"}],"predecessor-version":[{"id":17176,"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/posts\/357\/revisions\/17176"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/media\/17194"}],"wp:attachment":[{"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/media?parent=357"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/categories?post=357"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/tags?post=357"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}