# VirtualBox tutorial results in I/O error

**URL:** <https://forum.openwrt.org/t/virtualbox-tutorial-results-in-i-o-error/5112>\
**Category:** Installing and Using OpenWrt\
**Created:** [July 18, 2017, 5:28am UTC](https://forum.openwrt.org/t/virtualbox-tutorial-results-in-i-o-error/5112 "2017-07-18T05:28:17Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![nazar-pc](https://forum.openwrt.org/user_avatar/forum.openwrt.org/nazar-pc/32/1140_2.png) [@nazar-pc](https://forum.openwrt.org/u/nazar-pc)\
**Post date:** [July 18, 2017, 5:28am UTC](https://forum.openwrt.org/t/virtualbox-tutorial-results-in-i-o-error/5112/1 "2017-07-18T05:28:17Z")

</div>

I've followed [VirtualBox tutorial](https://lede-project.org/docs/user-guide/virtualbox-vm.) and didn't succeed in getting it working.  
On _uci commit_ it fails with _uci: I/O error_:  
 ![](https://forum.openwrt.org/uploads/default/original/2X/5/52e8d1aca0c5237064fc932034feebf77eaf0c2a.png)

I've tried with the same result both stable and latest snapshot (had to change _network_ with _dhcp_, not sure if it is actually correct.

---

<div class="post-metadata">

**Author:** ![eduperez](https://forum.openwrt.org/user_avatar/forum.openwrt.org/eduperez/32/2066_2.png) [@eduperez](https://forum.openwrt.org/u/eduperez)\
**Post date:** [July 18, 2017, 5:38am UTC](https://forum.openwrt.org/t/virtualbox-tutorial-results-in-i-o-error/5112/2 "2017-07-18T05:38:17Z")

</div>

Perhaps the filesystem is read-only? Have you checked the file permissions?

---

<div class="post-metadata">

**Author:** ![nazar-pc](https://forum.openwrt.org/user_avatar/forum.openwrt.org/nazar-pc/32/1140_2.png) [@nazar-pc](https://forum.openwrt.org/u/nazar-pc)\
**Post date:** [July 18, 2017, 5:51am UTC](https://forum.openwrt.org/t/virtualbox-tutorial-results-in-i-o-error/5112/3 "2017-07-18T05:51:17Z")

</div>

overlay is mounted as read-write, disk image is writable as well. But again, this is a stock combined-squashfs image prepared according to the wiki, if permissions are the reason, it must be an issue in build system.

---

<div class="post-metadata">

**Author:** ![eduperez](https://forum.openwrt.org/user_avatar/forum.openwrt.org/eduperez/32/2066_2.png) [@eduperez](https://forum.openwrt.org/u/eduperez)\
**Post date:** [July 18, 2017, 6:58am UTC](https://forum.openwrt.org/t/virtualbox-tutorial-results-in-i-o-error/5112/4 "2017-07-18T06:58:56Z")

</div>

> [@nazar-pc](#):
>
> if permissions are the reason, it must be an issue in build system

Yes, but we first have to find out what is the issue exactly, don't you think?  
Have you tried to edit "/etc/config/network" by hand and see what happens?

---

<div class="post-metadata">

**Author:** ![nazar-pc](https://forum.openwrt.org/user_avatar/forum.openwrt.org/nazar-pc/32/1140_2.png) [@nazar-pc](https://forum.openwrt.org/u/nazar-pc)\
**Post date:** [July 18, 2017, 7:17am UTC](https://forum.openwrt.org/t/virtualbox-tutorial-results-in-i-o-error/5112/5 "2017-07-18T07:17:25Z")

</div>

I think there is something wrong with mounting options. _/boot_ was mounted twice and I'm unable to write to _/etc/config_ even though there is some space available:  
 ![](https://forum.openwrt.org/uploads/default/original/2X/4/414738705279022cffcd368241ca27fa4dd996c2.png)

---

<div class="post-metadata">

**Author:** ![nazar-pc](https://forum.openwrt.org/user_avatar/forum.openwrt.org/nazar-pc/32/1140_2.png) [@nazar-pc](https://forum.openwrt.org/u/nazar-pc)\
**Post date:** [July 18, 2017, 7:17am UTC](https://forum.openwrt.org/t/virtualbox-tutorial-results-in-i-o-error/5112/6 "2017-07-18T07:17:58Z")

</div>

![](https://forum.openwrt.org/uploads/default/original/2X/f/fdeb8502b5bdd5fdb2fe912f11317fee3a9b0447.png)

---

<div class="post-metadata">

**Author:** ![eduperez](https://forum.openwrt.org/user_avatar/forum.openwrt.org/eduperez/32/2066_2.png) [@eduperez](https://forum.openwrt.org/u/eduperez)\
**Post date:** [July 18, 2017, 8:00am UTC](https://forum.openwrt.org/t/virtualbox-tutorial-results-in-i-o-error/5112/7 "2017-07-18T08:00:51Z")

</div>

That overlay filesystem is just 113KB in size, that is way too small to run LEDE; and it probably has used all available inodes, hence the "No space left on device" message.

Any idea why is that filesystem so tiny?

---

<div class="post-metadata">

**Author:** ![jow](https://forum.openwrt.org/user_avatar/forum.openwrt.org/jow/32/13_2.png) [@jow](https://forum.openwrt.org/u/jow)\
**Post date:** [July 18, 2017, 3:43pm UTC](https://forum.openwrt.org/t/virtualbox-tutorial-results-in-i-o-error/5112/8 "2017-07-18T15:43:08Z")

</div>

The combined squashfs images need to be padded to become usable as VM disks.

After the `convertfromraw` call try something like `VBoxManage modifymedium --resize 100 lede-x86-64-combined-squashfs.vdi`

---

<div class="post-metadata">

**Author:** ![nazar-pc](https://forum.openwrt.org/user_avatar/forum.openwrt.org/nazar-pc/32/1140_2.png) [@nazar-pc](https://forum.openwrt.org/u/nazar-pc)\
**Post date:** [July 18, 2017, 5:25pm UTC](https://forum.openwrt.org/t/virtualbox-tutorial-results-in-i-o-error/5112/9 "2017-07-18T17:25:19Z")

</div>

I've padded disk before conversion like suggested in wiki, but I guess actual partition wasn't changed accordingly. I've just resized it to 100M, but partition is still the same size.

---

<div class="post-metadata">

**Author:** ![PolynomialDivision](https://forum.openwrt.org/user_avatar/forum.openwrt.org/polynomialdivision/32/1147_2.png) [@PolynomialDivision](https://forum.openwrt.org/u/PolynomialDivision)\
**Post date:** [July 18, 2017, 8:38pm UTC](https://forum.openwrt.org/t/virtualbox-tutorial-results-in-i-o-error/5112/10 "2017-07-18T20:38:02Z")

</div>

I had the same [problem](https://forum.openwrt.org/t/vm-no-network-config/3897/3)

This worked for me:

```
dd if=lede-x86-64-combined-squashfs.img of=padded.img bs=100M conv=sync
```

---

<div class="post-metadata">

**Author:** ![nazar-pc](https://forum.openwrt.org/user_avatar/forum.openwrt.org/nazar-pc/32/1140_2.png) [@nazar-pc](https://forum.openwrt.org/u/nazar-pc)\
**Post date:** [July 18, 2017, 8:53pm UTC](https://forum.openwrt.org/t/virtualbox-tutorial-results-in-i-o-error/5112/11 "2017-07-18T20:53:38Z")

</div>

Interesting, resizing to 100M really helped. Maybe simple padding in wiki should be replaced with resizing to something bigger, what do you think?

---

<div class="post-metadata">

**Author:** ![PolynomialDivision](https://forum.openwrt.org/user_avatar/forum.openwrt.org/polynomialdivision/32/1147_2.png) [@PolynomialDivision](https://forum.openwrt.org/u/PolynomialDivision)\
**Post date:** [July 18, 2017, 8:57pm UTC](https://forum.openwrt.org/t/virtualbox-tutorial-results-in-i-o-error/5112/12 "2017-07-18T20:57:54Z")

</div>

This bug was very misterious... 😅  
If you read my thread you will notice that somebody postet this solution and deleted it again?!  
Thanks to bash history I was able to restore the command...

So I don't know if this is the solution that is good enough to get into the wiki... 😆

---

<div class="post-metadata">

**Author:** ![jet](https://forum.openwrt.org/letter_avatar/jet/32/6_449c533f586939b6e5f246632a46421f.png) [@jet](https://forum.openwrt.org/u/jet)\
**Post date:** [November 5, 2017, 9:02pm UTC](https://forum.openwrt.org/t/virtualbox-tutorial-results-in-i-o-error/5112/13 "2017-11-05T21:02:37Z")

</div>

Is there more info on this bug? I'm not able to use VIrtualBox w/ the LEDEopenWRT.  
I've followed the resizing instructions given above but I'm still getting 'no space left errors'.  
In the VirtualBox Settings-\>Storage-\>disk image, the virtual size is 100MB, actual size 9MB.

![45 PM](https://forum.openwrt.org/uploads/default/original/2X/1/1ca690ed9a3a3e2f418119980afcbf011906d3d0.png)

I'm missing something.

---

<div class="post-metadata">

**Author:** ![nazar-pc](https://forum.openwrt.org/user_avatar/forum.openwrt.org/nazar-pc/32/1140_2.png) [@nazar-pc](https://forum.openwrt.org/u/nazar-pc)\
**Post date:** [November 5, 2017, 9:14pm UTC](https://forum.openwrt.org/t/virtualbox-tutorial-results-in-i-o-error/5112/14 "2017-11-05T21:14:42Z")

</div>

Are you trying to copy files straight to the filesystem? That will not work. However, once you resize disk to 100M as described above, it will install packages without issues.

---

<div class="post-metadata">

**Author:** ![jet](https://forum.openwrt.org/letter_avatar/jet/32/6_449c533f586939b6e5f246632a46421f.png) [@jet](https://forum.openwrt.org/u/jet)\
**Post date:** [November 6, 2017, 3:10am UTC](https://forum.openwrt.org/t/virtualbox-tutorial-results-in-i-o-error/5112/15 "2017-11-06T03:10:33Z")

</div>

Thank you for the quick reply.  
it won't save when I update the root password, returns no space left.

what worked for you was running dd command w/ -bs=100, then running the VBoxManage convertfromraw on the new .img file. Did you also run the VBoxManage modifymedium --resize 100 command?

Also the uci show commands don't for the network connections, only for firewall.  
I don't see any errors while it's loading up, but my load does not comply w/ the wiki setup instructions for VirtualBox VM

---

<div class="post-metadata">

**Author:** ![nazar-pc](https://forum.openwrt.org/user_avatar/forum.openwrt.org/nazar-pc/32/1140_2.png) [@nazar-pc](https://forum.openwrt.org/u/nazar-pc)\
**Post date:** [November 6, 2017, 3:23am UTC](https://forum.openwrt.org/t/virtualbox-tutorial-results-in-i-o-error/5112/16 "2017-11-06T03:23:15Z")

</div>

No, I've only executed `dd`.  
Have you tried to change password using terminal? Try LuCI, it worked for me. Probably, there is some terminal command, I'm just not aware which one exactly.

---

<div class="post-metadata">

**Author:** ![nairvarun](https://forum.openwrt.org/letter_avatar/nairvarun/32/6_449c533f586939b6e5f246632a46421f.png) [@nairvarun](https://forum.openwrt.org/u/nairvarun)\
**Post date:** [July 4, 2018, 3:25pm UTC](https://forum.openwrt.org/t/virtualbox-tutorial-results-in-i-o-error/5112/17 "2018-07-04T15:25:06Z")

</div>

I am using the Openwrt image and faced the same issue. The problem was resolved by just using the "dd" command (dd if=openwrt-x86-64-combined-squashfs.img of=padded.img bs=100M conv=sync) and using the padded image as an input to convertfromraw.

---

<div class="post-metadata">

**Author:** ![rowlar](https://forum.openwrt.org/letter_avatar/rowlar/32/6_449c533f586939b6e5f246632a46421f.png) [@rowlar](https://forum.openwrt.org/u/rowlar)\
**Post date:** [June 22, 2019, 9:28am UTC](https://forum.openwrt.org/t/virtualbox-tutorial-results-in-i-o-error/5112/18 "2019-06-22T09:28:29Z")

</div>

I got the same issues, incl. wasn't able to set a password in Luci.

Now i am using openwrt-18.06.2-x86-64-combined-ext4 instead.  
No problems anymore and no problem in virtualbox with the ability to make snapshots.
