{"id":88,"date":"2023-10-24T15:00:37","date_gmt":"2023-10-24T13:00:37","guid":{"rendered":"https:\/\/www.cajondesastres.net\/?p=88"},"modified":"2023-10-24T15:01:48","modified_gmt":"2023-10-24T13:01:48","slug":"mostrar-el-mapeo-de-puertos-en-virtualbox-y-los-snapshots-en-linux","status":"publish","type":"post","link":"https:\/\/www.cajondesastres.net\/?p=88","title":{"rendered":"Mostrar el mapeo de puertos en virtualbox y los snapshots en linux"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Crear el script con el siguiente contenido:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>for i in $(vboxmanage list runningvms | awk -F \"{\" '{print $2}';)\ndo      \nmaquina=\"$i\"\nmaquina=$(sed 's\/.$\/\/' &lt;&lt;&lt; $maquina)\necho \"$maquina\"\nvboxmanage showvminfo $maquina | grep 'Name\\|NIC' | grep 'Name\\|Rule'\ndone<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Hacer el fichero ejecutable, por ejemplo si se llamaba listarPuertos.sh<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>chmod u+x listarPuertos.sh\nEjecutarlo\n.\/listarPuertos.sh\n\nAl ejecutarlo mostrar\u00e1 algo as\u00ed:\n29831584-8637-4550-9c32-40244879a10a\nName:                        Maquina 7.4\nStorage Controller Name (0):            IDE\nStorage Controller Name (1):            SATA\nNIC 1 Rule(0):   name = Oracle Listener, protocol = tcp, host ip = , host port = 19750, guest ip = , guest port = 9750\nNIC 1 Rule(1):   name = Rule 1, protocol = tcp, host ip = , host port = 8090, guest ip = , guest port = 8080\nName: 'Shared', Host path: '\/home\/user\/1tbMec\/vms\/shared' (machine mapping), writable, auto-mount, mount-point: '\/apps\/compartido'\n   Name: Antes de Activar Alfa (UUID: d1db4ea6-c092-47fa-9129-9a92927c0f59)\n      Name: Antes de Cargar entorno gr\u00e1fico K Workflow (UUID: 9d13d8de-7542-46e1-add1-ddf3075c9498)\n\nPor ejemplo nos indica que el puerto 9750  de la m\u00e1quina virtual Maquina 7.4 est\u00e1 publicado como 19750 o el 8080 (guest port) se mapea hacia el exterior como 8090 (host port).<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Crear el script con el siguiente contenido: Hacer el fichero ejecutable, por ejemplo si se llamaba listarPuertos.sh<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2,7],"tags":[],"class_list":["post-88","post","type-post","status-publish","format-standard","hentry","category-informatica","category-linux"],"_links":{"self":[{"href":"https:\/\/www.cajondesastres.net\/index.php?rest_route=\/wp\/v2\/posts\/88","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.cajondesastres.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.cajondesastres.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.cajondesastres.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.cajondesastres.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=88"}],"version-history":[{"count":2,"href":"https:\/\/www.cajondesastres.net\/index.php?rest_route=\/wp\/v2\/posts\/88\/revisions"}],"predecessor-version":[{"id":91,"href":"https:\/\/www.cajondesastres.net\/index.php?rest_route=\/wp\/v2\/posts\/88\/revisions\/91"}],"wp:attachment":[{"href":"https:\/\/www.cajondesastres.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=88"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.cajondesastres.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=88"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.cajondesastres.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=88"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}