[SOLVED]Create a VM storage partition

Forum rules
Before you post please read this
Post Reply
Gebonimo
Level 1
Level 1
Posts: 9
Joined: Tue Dec 04, 2018 8:08 am

[SOLVED]Create a VM storage partition

Post by Gebonimo » Tue Dec 04, 2018 8:24 am

Hi people,

I'm trying to set up a W7 VM on my Linux 18.3. This computer is actually on dual boot.

I want to use a dedicate partition to do this, so I've created the VM partition (mounted as /dev/sda3).

My disk arch is like this
  • /dev/sda1 : Windows System Partition (100 Mo)
  • /dev/sda2 : C: of Windows (~250 Go)
  • /dev/sda3 : VM for Linux part (old D: of Windows, ~350 Go)
  • /dev/sda4 : Linux Mint 18.3 (~450 Go)
I created a security group named "vm" and added the kvm's user. I allowed this group to edit and create files in /dev/sda3 since the vmdk of my VM is stored in here.

But when I try to set up the VM, it keeps telling me that KVM has no access to this file. I presume it's because it has to go throught "/media/me" before.

How can i set up this ? Editing fstab ? Upgrading my /dev/sda4 size so I don't have the access trouble anymore ?

Thanks for help.
Last edited by Gebonimo on Tue Dec 04, 2018 3:20 pm, edited 1 time in total.
Linux Mint 18.3.

deepakdeshp
Level 11
Level 11
Posts: 3928
Joined: Sun Aug 09, 2015 10:00 am

Re: Create a VM storage partition

Post by deepakdeshp » Tue Dec 04, 2018 9:33 am

You have to mount sda3 on some mount point then the device will be accessed by the name of the mount point.
If I have helped you solve a problem, please add [SOLVED] to your first post title, it helps other users looking for help, and keeps the forum clean.
I am using Mint 19 Cinnamon 64 bit with AMD A8/7410 processor . Memory 8GB

Gebonimo
Level 1
Level 1
Posts: 9
Joined: Tue Dec 04, 2018 8:08 am

Re: Create a VM storage partition

Post by Gebonimo » Tue Dec 04, 2018 10:37 am

Even tho when the partition is mounted I can't access to it. I set up the partition to be automatically mounted when Mint starts up. But kvm still has no permission to read or write on it.

EDIT: Did you mean create a mount point ?
Linux Mint 18.3.

deepakdeshp
Level 11
Level 11
Posts: 3928
Joined: Sun Aug 09, 2015 10:00 am

Re: Create a VM storage partition

Post by deepakdeshp » Tue Dec 04, 2018 2:46 pm

You can mount to an existing mount point or create a directory and mount sda3 onto it.
If I have helped you solve a problem, please add [SOLVED] to your first post title, it helps other users looking for help, and keeps the forum clean.
I am using Mint 19 Cinnamon 64 bit with AMD A8/7410 processor . Memory 8GB

Gebonimo
Level 1
Level 1
Posts: 9
Joined: Tue Dec 04, 2018 8:08 am

Re: Create a VM storage partition

Post by Gebonimo » Tue Dec 04, 2018 3:20 pm

Thank you. it worked.

I do this again to do my backups.

I set it solved.
Linux Mint 18.3.

deepakdeshp
Level 11
Level 11
Posts: 3928
Joined: Sun Aug 09, 2015 10:00 am

Re: [SOLVED]Create a VM storage partition

Post by deepakdeshp » Tue Dec 04, 2018 11:34 pm

You are welcome
If I have helped you solve a problem, please add [SOLVED] to your first post title, it helps other users looking for help, and keeps the forum clean.
I am using Mint 19 Cinnamon 64 bit with AMD A8/7410 processor . Memory 8GB

Post Reply

Return to “Mounting Partitions”