{"id":44,"date":"2012-04-21T13:11:10","date_gmt":"2012-04-21T11:11:10","guid":{"rendered":"http:\/\/esxi-v34\/wordpress\/?p=44"},"modified":"2013-04-27T20:08:01","modified_gmt":"2013-04-27T18:08:01","slug":"migrating-virtualbox-storage-from-local-disk-to-iscsi","status":"publish","type":"post","link":"\/wordpress\/freebsd\/migrating-virtualbox-storage-from-local-disk-to-iscsi\/","title":{"rendered":"Migrating virtualbox storage from local disk to iSCSI"},"content":{"rendered":"<p>Turn off the virtual machine, preferably by logging in and do a clean shutdown or if not possible<\/p>\n<pre><code>VBoxManage controlvm &lt;machine&gt; poweroff<\/code><\/pre>\n<p>Add another disk<\/p>\n<pre><code>VBoxManage storageattach &lt;machine&gt; --storagectl \"SATA Controller\" \u2013port 1 \u2013type hdd \u2013medium iscsi \u2013server 192.168.100.13 \u2013target \"iqn.2004-06.net.strahlert.home:<machine>L1\"<\/code><\/pre>\n<p>Boot the machine by FreeBSD 9.0 Install and start a Rescue Live shell<\/p>\n<pre><code>dd if=\/dev\/ada0 of=\/dev\/ada1 bs=1024000\r\npoweroff<\/code><\/pre>\n<p>Detach the local disk and install cd and start the machine anew. It should now boot off the iSCSI disk<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Turn off the virtual machine, preferably by logging in and do a clean shutdown or if not possible VBoxManage controlvm &lt;machine&gt; poweroff Add another disk VBoxManage storageattach &lt;machine&gt; &#8211;storagectl &#8220;SATA Controller&#8221; \u2013port 1 \u2013type hdd \u2013medium iscsi \u2013server 192.168.100.13 \u2013target &#8220;iqn.2004-06.net.strahlert.home:L1&#8221; Boot the machine by FreeBSD 9.0 Install and start a Rescue Live shell dd <span class=\"ellipsis\">&hellip;<\/span> <span class=\"more-link-wrap\"><a href=\"\/wordpress\/freebsd\/migrating-virtualbox-storage-from-local-disk-to-iscsi\/\" class=\"more-link\"><span>Read More &rarr;<\/span><\/a><\/span><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[14],"tags":[31,3,15],"_links":{"self":[{"href":"https:\/\/wp.strahlert.net\/wordpress\/wp-json\/wp\/v2\/posts\/44"}],"collection":[{"href":"https:\/\/wp.strahlert.net\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wp.strahlert.net\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wp.strahlert.net\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wp.strahlert.net\/wordpress\/wp-json\/wp\/v2\/comments?post=44"}],"version-history":[{"count":6,"href":"https:\/\/wp.strahlert.net\/wordpress\/wp-json\/wp\/v2\/posts\/44\/revisions"}],"predecessor-version":[{"id":259,"href":"https:\/\/wp.strahlert.net\/wordpress\/wp-json\/wp\/v2\/posts\/44\/revisions\/259"}],"wp:attachment":[{"href":"https:\/\/wp.strahlert.net\/wordpress\/wp-json\/wp\/v2\/media?parent=44"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wp.strahlert.net\/wordpress\/wp-json\/wp\/v2\/categories?post=44"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wp.strahlert.net\/wordpress\/wp-json\/wp\/v2\/tags?post=44"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}