I am using kubuntu 14.04
I have installed VirtualBox (VB) from Ubuntu Software Centre.
I have an iso of Win7 on a USB stick.
To get VB to boot from the USB I have created a .vmdk file to enable the USB stick to be used as a boot disk.
If I start VB from a terminal as root I can use that file and the boot takes place normally followed by Win7 install.
Problem: If I close the terminal window or shutdown the Virtual Machine (VM), the VM is lost and I must start again from the beginning.
If I start VB as a normal user then I am unable to use the .vmdk file as I get the error:
"Failed to open the hard disk file /home/makem/my_usb_stick.vmdk. Permission problem accessing the file for the medium '/home/makem/my_usb_stick.vmdk' (VERR_ACCESS_DENIED)."
This is because this can only be done as root.
I have tried changing the owner and permissions to 777 of the .vmdk file but still get the same error
Solution: Start VB as root from the kubuntu menu system.
However, I cannot find any way to do this. Help appreciated.
Edit: I have since tried editing the launcher for VB from Exec=VirtualBox %U to Exec=sudo -k -u root VirtualBox %U
VB does not start up at all.
I have installed VirtualBox (VB) from Ubuntu Software Centre.
I have an iso of Win7 on a USB stick.
To get VB to boot from the USB I have created a .vmdk file to enable the USB stick to be used as a boot disk.
If I start VB from a terminal as root I can use that file and the boot takes place normally followed by Win7 install.
Problem: If I close the terminal window or shutdown the Virtual Machine (VM), the VM is lost and I must start again from the beginning.
If I start VB as a normal user then I am unable to use the .vmdk file as I get the error:
"Failed to open the hard disk file /home/makem/my_usb_stick.vmdk. Permission problem accessing the file for the medium '/home/makem/my_usb_stick.vmdk' (VERR_ACCESS_DENIED)."
This is because this can only be done as root.
I have tried changing the owner and permissions to 777 of the .vmdk file but still get the same error
Solution: Start VB as root from the kubuntu menu system.
However, I cannot find any way to do this. Help appreciated.
Edit: I have since tried editing the launcher for VB from Exec=VirtualBox %U to Exec=sudo -k -u root VirtualBox %U
VB does not start up at all.
Comment