Opensuse Fresh install vmdk not working vdi work

Discussions related to using VirtualBox on Linux hosts.
Post Reply
llr
Posts: 15
Joined: 11. Oct 2018, 18:22

Opensuse Fresh install vmdk not working vdi work

Post by llr »

I did a brand new install of opensuse 15.2 (after failed 15.3 beta)
I installed virtualbox and the vbox extensions.
I restored my virtual machines as I always do on a rebuild or restore
All the VDI machines started and run fine
my USB virtual machines on /dev/sdb and /dev/sdc error so I tried to make a new vmdk and got errors

Here is output from the machine that failed - and what VirtualBox was installed with similar output from a long running box with the exact same Virtual Machines that work.
  • Permission problem accessing the file for the medium '/vm/diskb.vmdk' (VERR_ACCESS_DENIED).

    Result Code:
    VBOX_E_FILE_ERROR (0x80BB0004)
    Component:
    MediumWrap
    Interface:
    IMedium {ad47ad09-787b-44ab-b343-a082a3f2dfb1}
    Callee:
    IVirtualBox {d0a0163f-e254-4e5b-a1f2-011cf991c38d}
    Callee RC:
    VBOX_E_OBJECT_NOT_FOUND (0x80BB0001)


    LLR3:~ # zypper se -si virtual
    Loading repository data...
    Reading installed packages...

    S | Name | Type | Version | Arch | Repository
    ---+------------------------+---------+--------------------------------------+--------+--------------------------
    i+ | virtualbox | package | 6.1.18-lp152.2.14.1 | x86_64 | openSUSE-Leap-15.2-Update
    i | virtualbox-kmp-default | package | 6.1.18_k5.3.18_lp152.63-lp152.2.14.1 | x86_64 | openSUSE-Leap-15.2-Update
    i | virtualbox-qt | package | 6.1.18-lp152.2.14.1 | x86_64 | openSUSE-Leap-15.2-Update

    llrainey@LLR3:/vm> VBoxManage internalcommands createrawvmdk -filename /vm/disk1b.vmdk -rawdisk /dev/sdb
    VBoxManage: error: Cannot open the raw disk '/dev/sdb': VERR_ACCESS_DENIED
    VBoxManage: error: The raw disk vmdk file was not created
    llrainey@LLR3:/vm> ll /dev/sd*
    brw-rw---- 1 root disk 8, 0 Mar 31 22:04 /dev/sda
    brw-rw---- 1 root disk 8, 1 Mar 31 22:04 /dev/sda1
    brw-rw---- 1 root disk 8, 16 Apr 1 09:52 /dev/sdb
    brw-rw---- 1 root disk 8, 17 Apr 1 09:52 /dev/sdb1
    brw-rw---- 1 root disk 8, 18 Apr 1 09:52 /dev/sdb2
    brw-rw---- 1 root disk 8, 32 Apr 1 09:03 /dev/sdc
    brw-rw---- 1 root disk 8, 33 Apr 1 09:03 /dev/sdc1
    brw-rw---- 1 root disk 8, 34 Apr 1 09:03 /dev/sdc2
    llrainey@LLR3:~> cat /vm/diskb.vmdk
    # Disk DescriptorFile
    version=1
    CID=e56c00fc
    parentCID=ffffffff
    createType="fullDevice"

    # Extent description
    RW 62656641 FLAT "/dev/sdb" 0

    # The disk Data Base
    #DDB

    ddb.virtualHWVersion = "4"
    ddb.adapterType="ide"
    ddb.geometry.cylinders="16383"
    ddb.geometry.heads="16"
    ddb.geometry.sectors="63"
    ddb.uuid.image="666b3213-7d5d-4986-9efc-b9535aa61bf8"
    ddb.uuid.parent="00000000-0000-0000-0000-000000000000"
    ddb.uuid.modification="00000000-0000-0000-0000-000000000000"
    ddb.uuid.parentmodification="00000000-0000-0000-0000-000000000000"
    llrainey@LLR3:~>

    On the previous 15.1 to 15.2 upgrade that works I suspect that since multiple kernels multiple versions

    LLR4:~ # zypper se -si virtual
    Loading repository data...
    Reading installed packages...

    S | Name | Type | Version | Arch | Repository
    ---+------------------------+---------+--------------------------------------+--------+--------------------------
    i+ | virtualbox | package | 6.1.18-lp152.2.14.1 | x86_64 | openSUSE-Leap-15.2-Update
    i+ | virtualbox-kmp-default | package | 6.1.18_k5.3.18_lp152.63-lp152.2.14.1 | x86_64 | openSUSE-Leap-15.2-Update
    i+ | virtualbox-kmp-default | package | 6.1.18_k5.3.18_lp152.60-lp152.2.11.1 | x86_64 | openSUSE-Leap-15.2-Update
    i+ | virtualbox-kmp-default | package | 6.1.16_k5.3.18_lp152.57-lp152.2.8.1 | x86_64 | openSUSE-Leap-15.2-Update
    i+ | virtualbox-qt | package | 6.1.18-lp152.2.14.1 | x86_64 | openSUSE-Leap-15.2-Update
llr
Posts: 15
Joined: 11. Oct 2018, 18:22

Re: Opensuse Fresh install vmdk not working vdi work

Post by llr »

I think I know why - user is not a member of group disk.
llr
Posts: 15
Joined: 11. Oct 2018, 18:22

Re: Opensuse Fresh install vmdk not working vdi work

Post by llr »

That was not the reason.
llr
Posts: 15
Joined: 11. Oct 2018, 18:22

Re: Opensuse Fresh install vmdk not working vdi work

Post by llr »

It was - did not have the USB drive plugged in to test.
Post Reply