{"id":161,"date":"2025-01-25T17:17:49","date_gmt":"2025-01-25T17:17:49","guid":{"rendered":"http:\/\/petrumihai.home.ro\/?p=161"},"modified":"2025-10-03T17:58:42","modified_gmt":"2025-10-03T17:58:42","slug":"proxmox-how-to-access-files-inside-lxc","status":"publish","type":"post","link":"https:\/\/petrumihai.ro\/index.php\/2025\/01\/25\/proxmox-how-to-access-files-inside-lxc\/","title":{"rendered":"Proxmox &#8211; how to access files inside containers"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Shutdown VM.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Mount a container into the hosts file system<\/p>\n\n\n\n<pre class=\"wp-block-code has-black-color has-white-background-color has-text-color has-background has-link-color wp-elements-f680970925779a0803b86aaa284c049b\"><code><em>pct mount ContainerID<\/em><\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">After mounting, you can access the files at \/var\/lib\/lxc\/&lt;vmid>\/rootfs\/ on the host system.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"> Umount a container<br><\/p>\n\n\n\n<pre class=\"wp-block-code has-black-color has-white-background-color has-text-color has-background has-link-color wp-elements-699fbf96554c6ee0965e5fd7abfb67c8\"><code><em>pct unmount ContainerID<\/em><\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Restart VM.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Shutdown VM. Mount a container into the hosts file system After mounting, you can access the files at \/var\/lib\/lxc\/&lt;vmid>\/rootfs\/ on the host system. Umount a container Restart VM.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-container-style":"default","site-container-layout":"default","site-sidebar-layout":"default","disable-article-header":"default","disable-site-header":"default","disable-site-footer":"default","disable-content-area-spacing":"default","footnotes":""},"categories":[15],"tags":[],"class_list":["post-161","post","type-post","status-publish","format-standard","hentry","category-server"],"_links":{"self":[{"href":"https:\/\/petrumihai.ro\/index.php\/wp-json\/wp\/v2\/posts\/161","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/petrumihai.ro\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/petrumihai.ro\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/petrumihai.ro\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/petrumihai.ro\/index.php\/wp-json\/wp\/v2\/comments?post=161"}],"version-history":[{"count":13,"href":"https:\/\/petrumihai.ro\/index.php\/wp-json\/wp\/v2\/posts\/161\/revisions"}],"predecessor-version":[{"id":180,"href":"https:\/\/petrumihai.ro\/index.php\/wp-json\/wp\/v2\/posts\/161\/revisions\/180"}],"wp:attachment":[{"href":"https:\/\/petrumihai.ro\/index.php\/wp-json\/wp\/v2\/media?parent=161"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/petrumihai.ro\/index.php\/wp-json\/wp\/v2\/categories?post=161"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/petrumihai.ro\/index.php\/wp-json\/wp\/v2\/tags?post=161"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}