encrypted disk image

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

encrypted disk image

Peter Wens
Hi,

On a encrypted (sd1) OpenBSD 5.9 install (amd64, (qemu, virtio)):

I created a diskimage (dd if=/dev/urandom of=disk.img bs=1m count=100
vnconfig vnd0 disk.img
fdisk -iy vnd0
disklabel -E vnd0 ( a a RAID)

bioctl -c C -l /dev/vnd0a softraid0
  creates sd2newfs /dev/rsd2c
mount /dev/rsd2c /mnt
installboot -v -r /mnt sd2 /usr/mdec/biosboot /usr/mdec/boot

then copy some files and at some point the systems locks up.

The same procedure on a unencrypted install no troubles at all.

any suggestion in what's happening?

Regards,

--
Peter

Reply | Threaded
Open this post in threaded view
|

Re: encrypted disk image

Maurice McCarthy
On Fri, May 20, 2016 at 05:33:44PM +0200 or thereabouts, Peter Wens wrote:
> Hi,
>
> On a encrypted (sd1) OpenBSD 5.9 install (amd64, (qemu, virtio)):
>
> I created a diskimage (dd if=/dev/urandom of=disk.img bs=1m count=100

Is that a typo or is your image really only 100M ??

Regards

Reply | Threaded
Open this post in threaded view
|

Re: encrypted disk image

Peter Wens
no typo, just for testing 100M is enough.


On 05/20/2016 09:16 PM, Maurice McCarthy wrote:
> On Fri, May 20, 2016 at 05:33:44PM +0200 or thereabouts, Peter Wens wrote:
>> Hi,
>>
>> On a encrypted (sd1) OpenBSD 5.9 install (amd64, (qemu, virtio)):
>>
>> I created a diskimage (dd if=/dev/urandom of=disk.img bs=1m count=100
> Is that a typo or is your image really only 100M ??
>
> Regards

Reply | Threaded
Open this post in threaded view
|

Re: encrypted disk image

Ted Unangst-6
In reply to this post by Peter Wens
Peter Wens wrote:

> On a encrypted (sd1) OpenBSD 5.9 install (amd64, (qemu, virtio)):
>
> I created a diskimage (dd if=/dev/urandom of=disk.img bs=1m count=100
> vnconfig vnd0 disk.img
> fdisk -iy vnd0
> disklabel -E vnd0 ( a a RAID)
>
> bioctl -c C -l /dev/vnd0a softraid0
>   creates sd2newfs /dev/rsd2c
> mount /dev/rsd2c /mnt
> installboot -v -r /mnt sd2 /usr/mdec/biosboot /usr/mdec/boot
>
> then copy some files and at some point the systems locks up.
>
> The same procedure on a unencrypted install no troubles at all.
>
> any suggestion in what's happening?

Stacking softraid doesn't work. This has irked me for some time, but it's the
way things are for now.

Reply | Threaded
Open this post in threaded view
|

Re: encrypted disk image

Jakub Skrzypnik-2
In reply to this post by Maurice McCarthy
On Fri, May 20, 2016 at 08:16:30PM +0100, Maurice McCarthy wrote:
>
> Is that a typo or is your image really only 100M ??
>

No, "100M" means 100 megabytes for dd(1) if I'm correct...

Reply | Threaded
Open this post in threaded view
|

Re: encrypted disk image

Peter Wens
In reply to this post by Ted Unangst-6
Many thanks for clearing that up.

Regards,

Peter

On 05/21/2016 12:38 AM, Ted Unangst wrote:

> Peter Wens wrote:
>> On a encrypted (sd1) OpenBSD 5.9 install (amd64, (qemu, virtio)):
>>
>> I created a diskimage (dd if=/dev/urandom of=disk.img bs=1m count=100
>> vnconfig vnd0 disk.img
>> fdisk -iy vnd0
>> disklabel -E vnd0 ( a a RAID)
>>
>> bioctl -c C -l /dev/vnd0a softraid0
>>    creates sd2newfs /dev/rsd2c
>> mount /dev/rsd2c /mnt
>> installboot -v -r /mnt sd2 /usr/mdec/biosboot /usr/mdec/boot
>>
>> then copy some files and at some point the systems locks up.
>>
>> The same procedure on a unencrypted install no troubles at all.
>>
>> any suggestion in what's happening?
> Stacking softraid doesn't work. This has irked me for some time, but it's the
> way things are for now.

Reply | Threaded
Open this post in threaded view
|

Re: encrypted disk image

Joel Sing-3
In reply to this post by Ted Unangst-6
On Friday 20 May 2016 18:38:08 Ted Unangst wrote:

> Peter Wens wrote:
> > On a encrypted (sd1) OpenBSD 5.9 install (amd64, (qemu, virtio)):
> >
> > I created a diskimage (dd if=/dev/urandom of=disk.img bs=1m count=100
> > vnconfig vnd0 disk.img
> > fdisk -iy vnd0
> > disklabel -E vnd0 ( a a RAID)
> >
> > bioctl -c C -l /dev/vnd0a softraid0
> >
> >   creates sd2newfs /dev/rsd2c
> >
> > mount /dev/rsd2c /mnt
> > installboot -v -r /mnt sd2 /usr/mdec/biosboot /usr/mdec/boot
> >
> > then copy some files and at some point the systems locks up.
> >
> > The same procedure on a unencrypted install no troubles at all.
> >
> > any suggestion in what's happening?
>
> Stacking softraid doesn't work. This has irked me for some time, but it's
> the way things are for now.

Stacking softraid does work in general - it is specifically softraid crypto, on
vnd, on softraid crypto that is known to deadlock (which should now be fixed).