{"id":6186,"date":"2023-06-02T13:52:29","date_gmt":"2023-06-02T10:52:29","guid":{"rendered":"https:\/\/skeletor.org.ua\/?p=6186"},"modified":"2026-02-04T14:12:34","modified_gmt":"2026-02-04T12:12:34","slug":"linux-solaris-%d0%bf%d0%b5%d1%80%d0%b5%d0%bd%d0%be%d1%81%d0%b8%d0%bc%d0%be-linux-%d1%83-virtualbox-%d0%bf%d1%96%d0%b4-solaris","status":"publish","type":"post","link":"https:\/\/skeletor.org.ua\/?p=6186","title":{"rendered":"[Linux\/Solaris] \u041f\u0435\u0440\u0435\u043d\u043e\u0441\u0438\u043c\u043e Linux \u0443 VirtualBox \u043f\u0456\u0434 Solaris"},"content":{"rendered":"\n<p>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 <strong>VirtualBox<\/strong> \u043f\u0456\u0434 <strong>Solaris<\/strong> \u043d\u0435 \u0432\u0456\u0434\u0440\u0456\u0437\u043d\u044f\u0454\u0442\u044c\u0441\u044f \u0441\u043a\u043b\u0430\u0434\u043d\u0456\u0441\u0442\u044e: \u0441\u043a\u0430\u0447\u0443\u0454\u043c\u043e \u043f\u0430\u043a\u0435\u0442 \u0456 \u0432\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u044e\u0454\u043c\u043e:<\/p>\n\n\n\n<p><code># wget https:\/\/... &amp;&amp; pkgadd -d &lt;pkg_name.pkg&gt;<\/code><\/p>\n\n\n<p>\u0422\u0430\u043a\u043e\u0436 \u0432\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u044e\u0454\u043c\u043e <strong>extension pack<\/strong> (\u0456\u043d\u0430\u043a\u0448\u0435 <strong>VRDE<\/strong> \u043d\u0435 \u0437\u0430\u043f\u0440\u0430\u0446\u044e\u0454 \u0456 \u0432\u0438\u0434\u0430\u0441\u0442\u044c \u043f\u043e\u043c\u0438\u043b\u043a\u0443), \u044f\u043a\u0438\u0439 \u0441\u043a\u0430\u0447\u0443\u0454\u043c\u043e \u0437 \u0441\u0430\u0439\u0442\u0443 <a href=\"https:\/\/download.virtualbox.org\/virtualbox\/7.0.8\/Oracle_VM_VirtualBox_Extension_Pack-7.0.8.vbox-extpack\">virtualbox<\/a><\/p>\n<blockquote>\n<p><span style=\"color: #993366;\">VRDE: VirtualBox Remote Desktop Extension is not available.<\/span><\/p>\n<\/blockquote>\n\n\n<p><code>#&nbsp;VBoxManage extpack install \/opt\/VirtualBox\/Oracle_VM_VirtualBox_Extension_Pack-7.0.8.vbox-extpack&nbsp;<\/code><\/p>\n\n\n<p><!--more--><\/p>\n\n\n<p>\u041f\u0456\u0434\u0433\u043e\u0442\u043e\u0432\u043a\u0430 \u0456 \u0432\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u044f \u043f\u043e\u0440\u043e\u0436\u043d\u044c\u043e\u0457 \u043c\u0430\u0448\u0438\u043d\u0438 \u0447\u0435\u0440\u0435\u0437 <strong>VBoxManage<\/strong><\/p>\n\n\n<p><code><br \/>\n# VBoxManage createvm --name=pdf --basefolder=\/data\/VARSHARE\/VB --ostype=Debian_64 --register<br \/>\n# VBoxManage createhd --filename \/data\/VARSHARE\/VB\/pdf\/disk0.vdi --size=200000 --variant Standard<br \/>\n# VBoxManage storagectl pdf --name \"SATA Controller\" --add sata --controller IntelAhci<br \/>\n# VBoxManage storageattach pdf --storagectl \"SATA Controller\" --port 0 --device 0 --type hdd --medium \/data\/VARSHARE\/VB\/pdf\/disk0.vdi<br \/>\n# VBoxManage modifyvm pdf --memory 8192<br \/>\n# VBoxManage modifyvm pdf --cpus 4<br \/>\n# VBoxManage storagectl pdf --name \"IDE Controller\" --add ide<br \/>\n# VBoxManage storageattach pdf --storagectl \"IDE Controller\" --port 0 --device 0 --type dvddrive --medium systemrescue-10.00-amd64.iso<br \/># VBoxManage modifyvm pdf --nic1 hostonly --hostonlyadapter1 vboxnet0<br \/>\n# VBoxManage modifyvm pdf --vrde on --vrdeport 3389 --vrdeaddress 0.0.0.0 --vrdeauthtype external --vrdeextpack default<br \/>\n# VBoxManage setproperty vrdeauthlibrary \"VBoxAuthSimple\"<br \/>\n# VBoxManage internalcommands passwordhash \"MegaPass\"<br \/>\n# VBoxManage setextradata pdf \u00a0\"VBoxAuthSimple\/users\/MegaUser\" \"hash from previous step\"<br \/>\n# VBoxManage startvm pdf --type headless<\/code><\/p>\n<p>\u0422\u0440\u043e\u0445\u0438 \u043f\u043e\u044f\u0441\u043d\u044e. \u0422\u0443\u0442 \u043c\u0438 \u0432\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043b\u0438 \u0434\u043e\u0434\u0430\u0442\u043a\u043e\u0432\u043e \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0456\u044e \u043f\u0440\u0438 \u043f\u0456\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u043d\u0456 \u0434\u043e \u043a\u043e\u043d\u0441\u043e\u043b\u0456 (<strong>username=MegaUser<\/strong>, <strong>password=MegaPass<\/strong>). \u042f \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u043e\u0432\u0443\u044e \u043e\u0431\u0440\u0430\u0437 <a href=\"https:\/\/www.system-rescue.org\">systemrescue-10.00-amd64.iso<\/a>, \u0431\u043e \u0432\u0456\u043d \u043c\u0430\u0454 \u0432\u0441\u0456 \u043d\u0435\u043e\u0431\u0445\u0456\u0434\u043d\u0456 \u0443\u0442\u0438\u043b\u0456\u0442\u0438 \u0434\u043b\u044f \u043f\u0435\u0440\u0435\u043d\u043e\u0441\u0443 \u0424\u0421 (<strong>dump\/restore<\/strong>). \u041f\u0456\u0434 <strong>Solaris<\/strong> \u0447\u043e\u043c\u0443\u0441\u044c \u043d\u0435 \u043f\u0440\u0430\u0446\u044e\u0454 <strong>bridge mode<\/strong> \u0434\u043b\u044f \u043c\u0435\u0440\u0435\u0436\u0456, \u0442\u043e\u043c\u0443 \u043f\u0440\u0438\u0439\u0448\u043b\u043e\u0441\u044f \u0432\u0438\u0431\u0440\u0430\u0442\u0438 <strong>hostonly<\/strong>.<\/p>\n<p><span style=\"color: #ff6600;\"><em>\u0422\u0430\u043a\u043e\u0436, \u043d\u0435 \u0437\u0430\u0431\u0443\u0432\u0430\u0454\u043c\u043e \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e \u0432\u043a\u0430\u0437\u0443\u0432\u0430\u0442\u0438 <strong>ostype<\/strong>, \u043e\u0441\u043e\u0431\u043b\u0438\u0432\u043e, \u044f\u043a\u0449\u043e \u0446\u0435 \u0441\u0442\u043e\u0441\u0443\u0454\u0442\u044c\u0441\u044f 64-\u0431\u0456\u0442, \u0431\u043e \u0437\u043c\u0456\u043d\u0438\u0442\u0438 \u0446\u0435 \u0432\u0436\u0435 \u043d\u0435 \u0432\u0438\u0439\u0434\u0435, \u0442\u0440\u0435\u0431\u0430 \u0431\u0443\u0434\u0435 \u043f\u0435\u0440\u0435\u0441\u0442\u0432\u043e\u0440\u044e\u0432\u0430\u0442\u0438 \u0437\u0430\u043d\u043e\u0432\u043e \u043c\u0430\u0448\u0438\u043d\u0443.<\/em><\/span><\/p>\n<p>\u0414\u0430\u043b\u0456 \u0437\u0430\u0432\u0430\u043d\u0442\u0430\u0436\u0443\u0454\u043c\u043e\u0441\u044f \u0437 <strong>ISO<\/strong>, \u043d\u0430\u043b\u0430\u0448\u0442\u043e\u0432\u0443\u0454\u043c\u043e \u043c\u0435\u0440\u0435\u0436\u0443, \u0441\u0442\u0430\u0432\u0438\u043c\u043e \u043f\u0430\u0440\u043e\u043b\u044c \u0434\u043b\u044f <strong>root&#8217;a<\/strong>, \u0434\u043e\u0434\u0430\u0454\u043c\u043e \u0443 \u0444\u0430\u0439\u0435\u0440\u0432\u043e\u043b \u0434\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0447\u0456 \u043f\u0440\u0430\u0432\u0438\u043b\u0430 \u0434\u043b\u044f \u043f\u0456\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u043d\u044f (\u0431\u043e \u0437\u0430 \u0437\u0430\u043c\u043e\u0432\u0447\u0443\u0432\u0430\u043d\u043d\u044f\u043c \u0442\u0430\u043c \u0432\u0441\u0435 <strong>DROP<\/strong>), \u0440\u043e\u0437\u0431\u0438\u0432\u0430\u0454\u043c\u043e \u0434\u0438\u0441\u043a \u044f\u043a \u0442\u0440\u0435\u0431\u0430, \u043c\u043e\u043d\u0442\u0443\u0454\u043c\u043e \u0443 <strong>\/mnt<\/strong> \u0456 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0454\u043c\u043e \u0441\u0430\u043c \u043f\u0435\u0440\u0435\u043d\u043e\u0441 \u0437 <strong>SRC<\/strong> \u0445\u043e\u0441\u0442\u0430:\u00a0<\/p>\n<p><code># dump -0 -f - \/ | ssh root@target_machine \"cd \/mnt; restore -rf -\"<\/code><\/p>\n<p>\u0426\u0435\u0439 \u043c\u0435\u0442\u043e\u0434 \u0443\u043d\u0456\u0432\u0435\u0440\u0441\u0430\u043b\u044c\u043d\u0438\u0439, \u043e\u0441\u043a\u0456\u043b\u044c\u043a\u0438 \u043c\u043e\u0436\u043d\u0430 \u043f\u0435\u0440\u0435\u043d\u043e\u0441\u0438\u0442\u0438 \u0437 \u0431\u0456\u043b\u044c\u0448\u043e\u0433\u043e \u0434\u0438\u0441\u043a\u0443 \u043d\u0430 \u043c\u0435\u043d\u0448\u0438\u0439. \u041f\u0456\u0441\u043b\u044f \u0437\u0430\u043a\u0456\u043d\u0447\u0435\u043d\u043d\u044f \u0440\u043e\u0431\u0438\u043c\u043e <a href=\"https:\/\/skeletor.org.ua\/?p=6168\">chroot<\/a> \u0443 \u043d\u043e\u0432\u0438\u0439 \u0434\u0438\u0441\u043a \u0456 \u043c\u0456\u043d\u044f\u0454\u043c\u043e \u043a\u043e\u043d\u0444\u0456\u0433\u0438 (<span style=\"color: #ff0000;\"><em><strong>\/etc\/fstab<\/strong> \u0434\u043b\u044f \u043d\u043e\u0432\u043e\u0433\u043e \u0434\u0438\u0441\u043a\u0443!!<\/em><\/span>) \u043f\u0456\u0434 \u043d\u043e\u0432\u0438\u0439 \u0445\u043e\u0441\u0442 (<strong>IP<\/strong>, hostname,&#8230;). \u041d\u0435 \u0437\u0430\u0431\u0443\u0432\u0430\u0454\u043c\u043e \u0432\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0438 <strong>grub<\/strong>.<\/p>\n<p>\u0422\u0435\u043f\u0435\u0440 \u0442\u0440\u0435\u0431\u0430 \u044f\u043a\u043e\u0441\u044c \u0434\u0430\u0442\u0438 \u0434\u043e\u0441\u0442\u0443\u043f \u0434\u043e \u0446\u0456\u0454\u0457 \u043c\u0430\u0448\u0438\u043d\u0438 \u0437\u0437\u043e\u0432\u043d\u0456. \u041f\u0435\u0440\u0435\u0432\u0456\u0440\u0438\u043c\u043e, \u0447\u0438 \u0432\u0432\u0456\u043c\u043a\u043d\u0435\u043d\u0438\u0439 <strong>forwarding<\/strong>:<\/p>\n<p><code># routeadm -p ipv4-forwarding<br \/>\npersistent=enabled default=disabled current=enabled<\/code><\/p>\n<p>\u042f\u043a\u0449\u043e \u043d\u0456, \u0442\u043e \u0432\u043c\u0438\u043a\u0430\u0454\u0442\u044c\u0441\u044f \u0442\u0430\u043a:<\/p>\n<p><code># routeadm -u -e ipv4-forwarding<\/code><\/p>\n<p>\u0412\u0440\u0430\u0445\u043e\u0432\u0443\u044e\u0447\u0438, \u0449\u043e \u0443 \u043d\u0430\u0448\u043e\u0457 \u043c\u0430\u0448\u0438\u043d\u0438 \u0441\u0456\u0440\u0430 <strong>IP<\/strong>-\u0430\u0434\u0440\u0435\u0441\u0430, \u0442\u043e \u0437\u0440\u043e\u0431\u0438\u043c\u043e <strong>binat<\/strong>:<\/p>\n<p><code>pass quick on ext_if from 192.168.56.102 to any binat-to XX.XX.XX.XX<br \/>\npass quick on vboxnet0 from 192.168.56.0\/24 to any<br \/>\npass quick on vboxnet0 from  to 192.168.56.0\/24<br \/>\npass out quick on vboxnet0 proto tcp from 192.168.56.0\/24 port {10050} to YY.YY.YY.YY<br \/>\npass quick proto tcp from YY.YY.YY.YY to 192.168.56.102 port {10050}<br \/>\n<\/code><\/p>\n<p>\u0434\u0435, <strong>XX.XX.XX.XX<\/strong> &#8211; \u0437\u043e\u0432\u043d\u0456\u0448\u043d\u044f <strong>IP<\/strong> \u0430\u0434\u0440\u0435\u0441\u0430, \u0437\u0430 \u044f\u043a\u043e\u044e \u0431\u0443\u0434\u0435 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u0430 <strong>vbox<\/strong>, <strong>&lt;white_list&gt;<\/strong> &#8211; \u0442\u0430\u0431\u043b\u0438\u0446\u044f \u0437 <strong>IP<\/strong> \u043d\u0430\u0434\u0456\u0439\u043d\u043e\u0457 \u043c\u0435\u0440\u0435\u0436\u0456, <strong>YY.YY.YY.YY<\/strong> &#8211; \u0445\u043e\u0441\u0442, \u044f\u043a\u0438\u0439 \u043d\u0435 \u043d\u0430\u043b\u0435\u0436\u0438\u0442\u044c \u0434\u043e <strong>white_list<\/strong><\/p>","protected":false},"excerpt":{"rendered":"<p>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 VirtualBox \u043f\u0456\u0434 Solaris \u043d\u0435 \u0432\u0456\u0434\u0440\u0456\u0437\u043d\u044f\u0454\u0442\u044c\u0441\u044f \u0441\u043a\u043b\u0430\u0434\u043d\u0456\u0441\u0442\u044e: \u0441\u043a\u0430\u0447\u0443\u0454\u043c\u043e \u043f\u0430\u043a\u0435\u0442 \u0456 \u0432\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u044e\u0454\u043c\u043e: # wget https:\/\/&#8230; &amp;&amp; pkgadd -d &lt;pkg_name.pkg&gt; \u0422\u0430\u043a\u043e\u0436 \u0432\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u044e\u0454\u043c\u043e extension pack (\u0456\u043d\u0430\u043a\u0448\u0435 VRDE \u043d\u0435 \u0437\u0430\u043f\u0440\u0430\u0446\u044e\u0454 \u0456 \u0432\u0438\u0434\u0430\u0441\u0442\u044c \u043f\u043e\u043c\u0438\u043b\u043a\u0443), \u044f\u043a\u0438\u0439 \u0441\u043a\u0430\u0447\u0443\u0454\u043c\u043e \u0437 \u0441\u0430\u0439\u0442\u0443 virtualbox VRDE: VirtualBox Remote Desktop Extension is not available. #&nbsp;VBoxManage extpack install \/opt\/VirtualBox\/Oracle_VM_VirtualBox_Extension_Pack-7.0.8.vbox-extpack&nbsp;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,24],"tags":[],"class_list":["post-6186","post","type-post","status-publish","format-standard","hentry","category-linux","category-solaris"],"_links":{"self":[{"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts\/6186","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=6186"}],"version-history":[{"count":9,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts\/6186\/revisions"}],"predecessor-version":[{"id":6679,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts\/6186\/revisions\/6679"}],"wp:attachment":[{"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=6186"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=6186"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=6186"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}